@spritz-finance/api-client 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import{PublicKey as vp,VersionedTransaction as pp}from"@solana/web3.js";var Cu=(e=>(e.Sandbox="staging",e.Production="production",e))(Cu||{}),hp=Object.defineProperty,An=(e,n)=>{for(var t in n)hp(e,t,{get:n[t],enumerable:!0})};function gi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gi=function(t){return typeof t}:gi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gi(e)}function wn(e){return gi(e)=="object"&&e!==null}var ec=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",xe=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function $u(e,n){for(var t=/\r\n|[\n\r]/g,r=1,i=n+1,u;(u=t.exec(e.body))&&u.index<n;)r+=1,i=n+1-(u.index+u[0].length);return{line:r,column:i}}function gp(e){return nc(e.source,$u(e.source,e.start))}function nc(e,n){var t=e.locationOffset.column-1,r=Ei(t)+e.body,i=n.line-1,u=e.locationOffset.line-1,a=n.line+u,o=n.line===1?t:0,s=n.column+o,c="".concat(e.name,":").concat(a,":").concat(s,`
2
- `),l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){for(var m=Math.floor(s/80),d=s%80,v=[],h=0;h<f.length;h+=80)v.push(f.slice(h,h+80));return c+tc([["".concat(a),v[0]]].concat(v.slice(1,m+1).map(function(b){return["",b]}),[[" ",Ei(d-1)+"^"],["",v[m+1]]]))}return c+tc([["".concat(a-1),l[i-1]],["".concat(a),f],["",Ei(s-1)+"^"],["".concat(a+1),l[i+1]]])}function tc(e){var n=e.filter(function(r){r[0];var i=r[1];return i!==void 0}),t=Math.max.apply(Math,n.map(function(r){var i=r[0];return i.length}));return n.map(function(r){var i=r[0],u=r[1];return Ep(t,i)+(u?" | "+u:" |")}).join(`
3
- `)}function Ei(e){return Array(e+1).join(" ")}function Ep(e,n){return Ei(e-n.length)+n}function yi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yi=function(t){return typeof t}:yi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function ic(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function yp(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ic(Object(t),!0).forEach(function(r){bp(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ic(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function bp(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function kp(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Dp(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sp(e,n,t){return n&&Dp(e.prototype,n),e}function Bp(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Tt(e,n)}function Ap(e){var n=uc();return function(){var r=Ot(e),i;if(n){var u=Ot(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return rc(this,i)}}function rc(e,n){return n&&(yi(n)==="object"||typeof n=="function")?n:Nt(e)}function Nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iu(e){var n=typeof Map=="function"?new Map:void 0;return Iu=function(r){if(r===null||!wp(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(r))return n.get(r);n.set(r,i)}function i(){return bi(r,arguments,Ot(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Tt(i,r)},Iu(e)}function bi(e,n,t){return uc()?bi=Reflect.construct:bi=function(i,u,a){var o=[null];o.push.apply(o,u);var s=Function.bind.apply(i,o),c=new s;return a&&Tt(c,a.prototype),c},bi.apply(null,arguments)}function uc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function wp(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Tt(e,n){return Tt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Tt(e,n)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ot(e)}var ne=function(e){Bp(t,e);var n=Ap(t);function t(r,i,u,a,o,s,c){var l,f,m,d;kp(this,t),d=n.call(this,r),d.name="GraphQLError",d.originalError=s??void 0,d.nodes=ac(Array.isArray(i)?i:i?[i]:void 0);for(var v=[],h=0,b=(E=d.nodes)!==null&&E!==void 0?E:[];h<b.length;h++){var E,g=b[h],k=g.loc;k!=null&&v.push(k)}v=ac(v),d.source=u??((l=v)===null||l===void 0?void 0:l[0].source),d.positions=a??((f=v)===null||f===void 0?void 0:f.map(function(B){return B.start})),d.locations=a&&u?a.map(function(B){return $u(u,B)}):(m=v)===null||m===void 0?void 0:m.map(function(B){return $u(B.source,B.start)}),d.path=o??void 0;var _=s?.extensions;return c==null&&wn(_)?d.extensions=yp({},_):d.extensions=c??{},Object.defineProperties(Nt(d),{message:{enumerable:!0},locations:{enumerable:d.locations!=null},path:{enumerable:d.path!=null},extensions:{enumerable:d.extensions!=null&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?(Object.defineProperty(Nt(d),"stack",{value:s.stack,writable:!0,configurable:!0}),rc(d)):(Error.captureStackTrace?Error.captureStackTrace(Nt(d),t):Object.defineProperty(Nt(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return Sp(t,[{key:"toString",value:function(){return _p(this)}},{key:xe,get:function(){return"Object"}}]),t}(Iu(Error));function ac(e){return e===void 0||e.length===0?void 0:e}function _p(e){var n=e.message;if(e.nodes)for(var t=0,r=e.nodes;t<r.length;t++){var i=r[t];i.loc&&(n+=`
1
+ import{PublicKey as vp,VersionedTransaction as pp}from"@solana/web3.js";function hp(e){if(!(!e||typeof e!="object"))return e}function gp(e,n){return e.replace(/\{([^}]+)\}/g,(t,r)=>{if(!n||!(r in n))throw new Error(`Missing path parameter: ${r}`);const i=n[r];if(i==null)throw new Error(`Missing path parameter: ${r}`);return encodeURIComponent(String(i))})}function Ep(e){if(!e)return;const n=[];for(const[t,r]of Object.entries(e))if(r!==void 0){if(typeof r!="string"&&typeof r!="number"&&typeof r!="boolean")throw new Error(`Unsupported query parameter value for ${t}`);n.push([t,r])}return n.length>0?Object.fromEntries(n):void 0}function yp(e){if(!e)return;const n=[];for(const[t,r]of Object.entries(e))if(r!==void 0){if(typeof r!="string"||r.length===0)throw new Error(`Unsupported header value for ${t}`);n.push([t,r])}return n.length>0?Object.fromEntries(n):void 0}function z(e,n,...[t]){const r=hp(t?.params),i=gp(e,r),u=Ep(t?.query),a=yp(t?.headers),o=t?.body;return{method:n,path:i,...o!==void 0?{body:o}:{},...u?{query:u}:{},...a?{headers:a}:{}}}class bp{client;constructor(n){this.client=n}requireIntegratorAuth(n){if(!this.client.usesIntegratorAuth)throw new Error(`connect.${n} requires integrator credentials (integrationKey and integratorSecret)`)}async createSession(n){return this.requireIntegratorAuth("createSession"),this.client.restApi(z("/v1/integrator/connect/sessions","post",{body:{redirectUri:n.redirectUri,...n.state?{state:n.state}:{},...n.email?{email:n.email}:{}}}))}async exchangeCode(n){return this.requireIntegratorAuth("exchangeCode"),this.client.restApi(z("/v1/integrator/connect/token","post",{body:{code:n}}))}}var Cu=(e=>(e.Sandbox="staging",e.Production="production",e))(Cu||{}),kp=Object.defineProperty,An=(e,n)=>{for(var t in n)kp(e,t,{get:n[t],enumerable:!0})};function gi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gi=function(t){return typeof t}:gi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gi(e)}function wn(e){return gi(e)=="object"&&e!==null}var ec=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",xe=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function $u(e,n){for(var t=/\r\n|[\n\r]/g,r=1,i=n+1,u;(u=t.exec(e.body))&&u.index<n;)r+=1,i=n+1-(u.index+u[0].length);return{line:r,column:i}}function Dp(e){return nc(e.source,$u(e.source,e.start))}function nc(e,n){var t=e.locationOffset.column-1,r=Ei(t)+e.body,i=n.line-1,u=e.locationOffset.line-1,a=n.line+u,o=n.line===1?t:0,s=n.column+o,c="".concat(e.name,":").concat(a,":").concat(s,`
2
+ `),l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){for(var m=Math.floor(s/80),d=s%80,v=[],h=0;h<f.length;h+=80)v.push(f.slice(h,h+80));return c+tc([["".concat(a),v[0]]].concat(v.slice(1,m+1).map(function(b){return["",b]}),[[" ",Ei(d-1)+"^"],["",v[m+1]]]))}return c+tc([["".concat(a-1),l[i-1]],["".concat(a),f],["",Ei(s-1)+"^"],["".concat(a+1),l[i+1]]])}function tc(e){var n=e.filter(function(r){r[0];var i=r[1];return i!==void 0}),t=Math.max.apply(Math,n.map(function(r){var i=r[0];return i.length}));return n.map(function(r){var i=r[0],u=r[1];return Sp(t,i)+(u?" | "+u:" |")}).join(`
3
+ `)}function Ei(e){return Array(e+1).join(" ")}function Sp(e,n){return Ei(e-n.length)+n}function yi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yi=function(t){return typeof t}:yi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function ic(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function Bp(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ic(Object(t),!0).forEach(function(r){Ap(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ic(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ap(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function wp(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _p(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cp(e,n,t){return n&&_p(e.prototype,n),e}function $p(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Tt(e,n)}function Ip(e){var n=uc();return function(){var r=Ot(e),i;if(n){var u=Ot(this).constructor;i=Reflect.construct(r,arguments,u)}else i=r.apply(this,arguments);return rc(this,i)}}function rc(e,n){return n&&(yi(n)==="object"||typeof n=="function")?n:Nt(e)}function Nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iu(e){var n=typeof Map=="function"?new Map:void 0;return Iu=function(r){if(r===null||!xp(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(r))return n.get(r);n.set(r,i)}function i(){return bi(r,arguments,Ot(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Tt(i,r)},Iu(e)}function bi(e,n,t){return uc()?bi=Reflect.construct:bi=function(i,u,a){var o=[null];o.push.apply(o,u);var s=Function.bind.apply(i,o),c=new s;return a&&Tt(c,a.prototype),c},bi.apply(null,arguments)}function uc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function xp(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Tt(e,n){return Tt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Tt(e,n)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ot(e)}var ne=function(e){$p(t,e);var n=Ip(t);function t(r,i,u,a,o,s,c){var l,f,m,d;wp(this,t),d=n.call(this,r),d.name="GraphQLError",d.originalError=s??void 0,d.nodes=ac(Array.isArray(i)?i:i?[i]:void 0);for(var v=[],h=0,b=(E=d.nodes)!==null&&E!==void 0?E:[];h<b.length;h++){var E,g=b[h],k=g.loc;k!=null&&v.push(k)}v=ac(v),d.source=u??((l=v)===null||l===void 0?void 0:l[0].source),d.positions=a??((f=v)===null||f===void 0?void 0:f.map(function(B){return B.start})),d.locations=a&&u?a.map(function(B){return $u(u,B)}):(m=v)===null||m===void 0?void 0:m.map(function(B){return $u(B.source,B.start)}),d.path=o??void 0;var _=s?.extensions;return c==null&&wn(_)?d.extensions=Bp({},_):d.extensions=c??{},Object.defineProperties(Nt(d),{message:{enumerable:!0},locations:{enumerable:d.locations!=null},path:{enumerable:d.path!=null},extensions:{enumerable:d.extensions!=null&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?(Object.defineProperty(Nt(d),"stack",{value:s.stack,writable:!0,configurable:!0}),rc(d)):(Error.captureStackTrace?Error.captureStackTrace(Nt(d),t):Object.defineProperty(Nt(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return Cp(t,[{key:"toString",value:function(){return Fp(this)}},{key:xe,get:function(){return"Object"}}]),t}(Iu(Error));function ac(e){return e===void 0||e.length===0?void 0:e}function Fp(e){var n=e.message;if(e.nodes)for(var t=0,r=e.nodes;t<r.length;t++){var i=r[t];i.loc&&(n+=`
4
4
 
5
- `+gp(i.loc))}else if(e.source&&e.locations)for(var u=0,a=e.locations;u<a.length;u++){var o=a[u];n+=`
5
+ `+Dp(i.loc))}else if(e.source&&e.locations)for(var u=0,a=e.locations;u<a.length;u++){var o=a[u];n+=`
6
6
 
7
- `+nc(e.source,o)}return n}var C=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function zt(e,n){var t=!!e;if(!t)throw new Error(n??"Unexpected invariant triggered.")}var Cp=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,xu=Cp;function Pe(e){var n=e.prototype.toJSON;typeof n=="function"||zt(0),e.prototype.inspect=n,xu&&(e.prototype[xu]=n)}var $p=function(){function e(t,r,i){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=i}var n=e.prototype;return n.toJSON=function(){return{start:this.start,end:this.end}},e}();Pe($p);var Ip=function(){function e(t,r,i,u,a,o,s){this.kind=t,this.start=r,this.end=i,this.line=u,this.column=a,this.value=s,this.prev=o,this.next=null}var n=e.prototype;return n.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();Pe(Ip);function Fu(e){return e!=null&&typeof e.kind=="string"}function ki(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ki=function(t){return typeof t}:ki=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}var xp=10,oc=2;function H(e){return Di(e,[])}function Di(e,n){switch(ki(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":Fp(e,n);default:return String(e)}}function Fp(e,n){if(n.indexOf(e)!==-1)return"[Circular]";var t=[].concat(n,[e]),r=Op(e);if(r!==void 0){var i=r.call(e);if(i!==e)return typeof i=="string"?i:Di(i,t)}else if(Array.isArray(e))return Tp(e,t);return Np(e,t)}function Np(e,n){var t=Object.keys(e);if(t.length===0)return"{}";if(n.length>oc)return"["+zp(e)+"]";var r=t.map(function(i){var u=Di(e[i],n);return i+": "+u});return"{ "+r.join(", ")+" }"}function Tp(e,n){if(e.length===0)return"[]";if(n.length>oc)return"[Array]";for(var t=Math.min(xp,e.length),r=e.length-t,i=[],u=0;u<t;++u)i.push(Di(e[u],n));return r===1?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function Op(e){var n=e[String(xu)];if(typeof n=="function")return n;if(typeof e.inspect=="function")return e.inspect}function zp(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(n==="Object"&&typeof e.constructor=="function"){var t=e.constructor.name;if(typeof t=="string"&&t!=="")return t}return n}function M(e,n){var t=!!e;if(!t)throw new Error(n)}function Si(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Si=function(t){return typeof t}:Si=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}var Ke=function(n,t){if(n instanceof t)return!0;if(Si(n)==="object"&&n!==null){var r,i=t.prototype[Symbol.toStringTag],u=Symbol.toStringTag in n?n[Symbol.toStringTag]:(r=n.constructor)===null||r===void 0?void 0:r.name;if(i===u){var a=H(n);throw new Error("Cannot use ".concat(i,' "').concat(a,`" from another module or realm.
7
+ `+nc(e.source,o)}return n}var C=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function zt(e,n){var t=!!e;if(!t)throw new Error(n??"Unexpected invariant triggered.")}var Np=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,xu=Np;function Pe(e){var n=e.prototype.toJSON;typeof n=="function"||zt(0),e.prototype.inspect=n,xu&&(e.prototype[xu]=n)}var Tp=function(){function e(t,r,i){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=i}var n=e.prototype;return n.toJSON=function(){return{start:this.start,end:this.end}},e}();Pe(Tp);var Op=function(){function e(t,r,i,u,a,o,s){this.kind=t,this.start=r,this.end=i,this.line=u,this.column=a,this.value=s,this.prev=o,this.next=null}var n=e.prototype;return n.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();Pe(Op);function Fu(e){return e!=null&&typeof e.kind=="string"}function ki(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ki=function(t){return typeof t}:ki=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}var zp=10,oc=2;function H(e){return Di(e,[])}function Di(e,n){switch(ki(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":Up(e,n);default:return String(e)}}function Up(e,n){if(n.indexOf(e)!==-1)return"[Circular]";var t=[].concat(n,[e]),r=jp(e);if(r!==void 0){var i=r.call(e);if(i!==e)return typeof i=="string"?i:Di(i,t)}else if(Array.isArray(e))return Rp(e,t);return Pp(e,t)}function Pp(e,n){var t=Object.keys(e);if(t.length===0)return"{}";if(n.length>oc)return"["+Lp(e)+"]";var r=t.map(function(i){var u=Di(e[i],n);return i+": "+u});return"{ "+r.join(", ")+" }"}function Rp(e,n){if(e.length===0)return"[]";if(n.length>oc)return"[Array]";for(var t=Math.min(zp,e.length),r=e.length-t,i=[],u=0;u<t;++u)i.push(Di(e[u],n));return r===1?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function jp(e){var n=e[String(xu)];if(typeof n=="function")return n;if(typeof e.inspect=="function")return e.inspect}function Lp(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(n==="Object"&&typeof e.constructor=="function"){var t=e.constructor.name;if(typeof t=="string"&&t!=="")return t}return n}function M(e,n){var t=!!e;if(!t)throw new Error(n)}function Si(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Si=function(t){return typeof t}:Si=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}var Ke=function(n,t){if(n instanceof t)return!0;if(Si(n)==="object"&&n!==null){var r,i=t.prototype[Symbol.toStringTag],u=Symbol.toStringTag in n?n[Symbol.toStringTag]:(r=n.constructor)===null||r===void 0?void 0:r.name;if(i===u){var a=H(n);throw new Error("Cannot use ".concat(i,' "').concat(a,`" from another module or realm.
8
8
 
9
9
  Ensure that there is only one instance of "graphql" in the node_modules
10
10
  directory. If different versions of "graphql" are the dependencies of other
@@ -15,17 +15,17 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
15
15
  Duplicate "graphql" modules cannot be used at the same time since different
16
16
  versions may have different capabilities and behavior. The data from one
17
17
  version used in the function from another could produce confusing and
18
- spurious results.`))}}return!1};function Up(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pp(e,n,t){return n&&Up(e.prototype,n),e}(function(){function e(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof n=="string"||M(0,"Body must be a string. Received: ".concat(H(n),".")),this.body=n,this.name=t,this.locationOffset=r,this.locationOffset.line>0||M(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||M(0,"column in locationOffset is 1-indexed and must be positive.")}return Pp(e,[{key:xe,get:function(){return"Source"}}]),e})();var K=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Rp(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.indexOf(`
18
+ spurious results.`))}}return!1};function Zp(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vp(e,n,t){return n&&Zp(e.prototype,n),e}(function(){function e(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof n=="string"||M(0,"Body must be a string. Received: ".concat(H(n),".")),this.body=n,this.name=t,this.locationOffset=r,this.locationOffset.line>0||M(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||M(0,"column in locationOffset is 1-indexed and must be positive.")}return Vp(e,[{key:xe,get:function(){return"Source"}}]),e})();var K=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function qp(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.indexOf(`
19
19
  `)===-1,i=e[0]===" "||e[0]===" ",u=e[e.length-1]==='"',a=e[e.length-1]==="\\",o=!r||u||a||t,s="";return o&&!(r&&i)&&(s+=`
20
20
  `+n),s+=n?e.replace(/\n/g,`
21
21
  `+n):e,o&&(s+=`
22
- `),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var jp={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Lp=Object.freeze({});function sc(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jp,r=void 0,i=Array.isArray(e),u=[e],a=-1,o=[],s=void 0,c=void 0,l=void 0,f=[],m=[],d=e;do{a++;var v=a===u.length,h=v&&o.length!==0;if(v){if(c=m.length===0?void 0:f[f.length-1],s=l,l=m.pop(),h){if(i)s=s.slice();else{for(var b={},E=0,g=Object.keys(s);E<g.length;E++){var k=g[E];b[k]=s[k]}s=b}for(var _=0,B=0;B<o.length;B++){var J=o[B][0],q=o[B][1];i&&(J-=_),i&&q===null?(s.splice(J,1),_++):s[J]=q}}a=r.index,u=r.keys,o=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:u[a]:void 0,s=l?l[c]:d,s==null)continue;l&&f.push(c)}var F=void 0;if(!Array.isArray(s)){if(!Fu(s))throw new Error("Invalid AST Node: ".concat(H(s),"."));var y=Nu(n,s.kind,v);if(y){if(F=y.call(n,s,c,l,f,m),F===Lp)break;if(F===!1){if(!v){f.pop();continue}}else if(F!==void 0&&(o.push([c,F]),!v))if(Fu(F))s=F;else{f.pop();continue}}}if(F===void 0&&h&&o.push([c,s]),v)f.pop();else{var $;r={inArray:i,index:a,keys:u,edits:o,prev:r},i=Array.isArray(s),u=i?s:($=t[s.kind])!==null&&$!==void 0?$:[],a=-1,o=[],l&&m.push(l),l=s}}while(r!==void 0);return o.length!==0&&(d=o[o.length-1][1]),d}function Nu(e,n,t){var r=e[n];if(r){if(!t&&typeof r=="function")return r;var i=t?r.leave:r.enter;if(typeof i=="function")return i}else{var u=t?e.leave:e.enter;if(u){if(typeof u=="function")return u;var a=u[n];if(typeof a=="function")return a}}}var Zp=Array.prototype.find?function(e,n){return Array.prototype.find.call(e,n)}:function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r))return r}},cc=Zp,Vp=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},_n=Vp,qp=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})},Ut=qp;function lc(e,n){return e.reduce(function(t,r){return t[n(r)]=r,t},Object.create(null))}function Bi(e,n){for(var t=Object.create(null),r=0,i=Ut(e);r<i.length;r++){var u=i[r],a=u[0],o=u[1];t[a]=n(o,a)}return t}function $e(e){if(Object.getPrototypeOf(e)===null)return e;for(var n=Object.create(null),t=0,r=Ut(e);t<r.length;t++){var i=r[t],u=i[0],a=i[1];n[u]=a}return n}function Tu(e,n,t){return e.reduce(function(r,i){return r[n(i)]=t(i),r},Object.create(null))}var Mp=5;function Gp(e,n){var t=[e,n],r=t[0],i=t[1],u=" Did you mean ";u+=r+" ";var a=i.map(function(c){return'"'.concat(c,'"')});switch(a.length){case 0:return"";case 1:return u+a[0]+"?";case 2:return u+a[0]+" or "+a[1]+"?"}var o=a.slice(0,Mp),s=o.pop();return u+o.join(", ")+", or "+s+"?"}function dc(e){return e}function Jp(e,n){for(var t=0,r=0;t<e.length&&r<n.length;){var i=e.charCodeAt(t),u=n.charCodeAt(r);if(Ai(i)&&Ai(u)){var a=0;do++t,a=a*10+i-Ou,i=e.charCodeAt(t);while(Ai(i)&&a>0);var o=0;do++r,o=o*10+u-Ou,u=n.charCodeAt(r);while(Ai(u)&&o>0);if(a<o)return-1;if(a>o)return 1}else{if(i<u)return-1;if(i>u)return 1;++t,++r}}return e.length-n.length}var Ou=48,Hp=57;function Ai(e){return!isNaN(e)&&Ou<=e&&e<=Hp}function Qp(e,n){for(var t=Object.create(null),r=new Kp(e),i=Math.floor(e.length*.4)+1,u=0;u<n.length;u++){var a=n[u],o=r.measure(a,i);o!==void 0&&(t[a]=o)}return Object.keys(t).sort(function(s,c){var l=t[s]-t[c];return l!==0?l:Jp(s,c)})}var Kp=function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=fc(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}var n=e.prototype;return n.measure=function(r,i){if(this._input===r)return 0;var u=r.toLowerCase();if(this._inputLowerCase===u)return 1;var a=fc(u),o=this._inputArray;if(a.length<o.length){var s=a;a=o,o=s}var c=a.length,l=o.length;if(!(c-l>i)){for(var f=this._rows,m=0;m<=l;m++)f[0][m]=m;for(var d=1;d<=c;d++){for(var v=f[(d-1)%3],h=f[d%3],b=h[0]=d,E=1;E<=l;E++){var g=a[d-1]===o[E-1]?0:1,k=Math.min(v[E]+1,h[E-1]+1,v[E-1]+g);if(d>1&&E>1&&a[d-1]===o[E-2]&&a[d-2]===o[E-1]){var _=f[(d-2)%3][E-2];k=Math.min(k,_+1)}k<b&&(b=k),h[E]=k}if(b>i)return}var B=f[c%3][l];return B<=i?B:void 0}},e}();function fc(e){for(var n=e.length,t=new Array(n),r=0;r<n;++r)t[r]=e.charCodeAt(r);return t}function We(e){return sc(e,{leave:Yp})}var Wp=80,Yp={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return I(n.definitions,`
22
+ `),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var Mp={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Gp=Object.freeze({});function sc(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mp,r=void 0,i=Array.isArray(e),u=[e],a=-1,o=[],s=void 0,c=void 0,l=void 0,f=[],m=[],d=e;do{a++;var v=a===u.length,h=v&&o.length!==0;if(v){if(c=m.length===0?void 0:f[f.length-1],s=l,l=m.pop(),h){if(i)s=s.slice();else{for(var b={},E=0,g=Object.keys(s);E<g.length;E++){var k=g[E];b[k]=s[k]}s=b}for(var _=0,B=0;B<o.length;B++){var J=o[B][0],q=o[B][1];i&&(J-=_),i&&q===null?(s.splice(J,1),_++):s[J]=q}}a=r.index,u=r.keys,o=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:u[a]:void 0,s=l?l[c]:d,s==null)continue;l&&f.push(c)}var F=void 0;if(!Array.isArray(s)){if(!Fu(s))throw new Error("Invalid AST Node: ".concat(H(s),"."));var y=Nu(n,s.kind,v);if(y){if(F=y.call(n,s,c,l,f,m),F===Gp)break;if(F===!1){if(!v){f.pop();continue}}else if(F!==void 0&&(o.push([c,F]),!v))if(Fu(F))s=F;else{f.pop();continue}}}if(F===void 0&&h&&o.push([c,s]),v)f.pop();else{var $;r={inArray:i,index:a,keys:u,edits:o,prev:r},i=Array.isArray(s),u=i?s:($=t[s.kind])!==null&&$!==void 0?$:[],a=-1,o=[],l&&m.push(l),l=s}}while(r!==void 0);return o.length!==0&&(d=o[o.length-1][1]),d}function Nu(e,n,t){var r=e[n];if(r){if(!t&&typeof r=="function")return r;var i=t?r.leave:r.enter;if(typeof i=="function")return i}else{var u=t?e.leave:e.enter;if(u){if(typeof u=="function")return u;var a=u[n];if(typeof a=="function")return a}}}var Jp=Array.prototype.find?function(e,n){return Array.prototype.find.call(e,n)}:function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r))return r}},cc=Jp,Hp=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},_n=Hp,Qp=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})},Ut=Qp;function lc(e,n){return e.reduce(function(t,r){return t[n(r)]=r,t},Object.create(null))}function Bi(e,n){for(var t=Object.create(null),r=0,i=Ut(e);r<i.length;r++){var u=i[r],a=u[0],o=u[1];t[a]=n(o,a)}return t}function $e(e){if(Object.getPrototypeOf(e)===null)return e;for(var n=Object.create(null),t=0,r=Ut(e);t<r.length;t++){var i=r[t],u=i[0],a=i[1];n[u]=a}return n}function Tu(e,n,t){return e.reduce(function(r,i){return r[n(i)]=t(i),r},Object.create(null))}var Kp=5;function Wp(e,n){var t=[e,n],r=t[0],i=t[1],u=" Did you mean ";u+=r+" ";var a=i.map(function(c){return'"'.concat(c,'"')});switch(a.length){case 0:return"";case 1:return u+a[0]+"?";case 2:return u+a[0]+" or "+a[1]+"?"}var o=a.slice(0,Kp),s=o.pop();return u+o.join(", ")+", or "+s+"?"}function dc(e){return e}function Yp(e,n){for(var t=0,r=0;t<e.length&&r<n.length;){var i=e.charCodeAt(t),u=n.charCodeAt(r);if(Ai(i)&&Ai(u)){var a=0;do++t,a=a*10+i-Ou,i=e.charCodeAt(t);while(Ai(i)&&a>0);var o=0;do++r,o=o*10+u-Ou,u=n.charCodeAt(r);while(Ai(u)&&o>0);if(a<o)return-1;if(a>o)return 1}else{if(i<u)return-1;if(i>u)return 1;++t,++r}}return e.length-n.length}var Ou=48,Xp=57;function Ai(e){return!isNaN(e)&&Ou<=e&&e<=Xp}function eh(e,n){for(var t=Object.create(null),r=new nh(e),i=Math.floor(e.length*.4)+1,u=0;u<n.length;u++){var a=n[u],o=r.measure(a,i);o!==void 0&&(t[a]=o)}return Object.keys(t).sort(function(s,c){var l=t[s]-t[c];return l!==0?l:Yp(s,c)})}var nh=function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=fc(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}var n=e.prototype;return n.measure=function(r,i){if(this._input===r)return 0;var u=r.toLowerCase();if(this._inputLowerCase===u)return 1;var a=fc(u),o=this._inputArray;if(a.length<o.length){var s=a;a=o,o=s}var c=a.length,l=o.length;if(!(c-l>i)){for(var f=this._rows,m=0;m<=l;m++)f[0][m]=m;for(var d=1;d<=c;d++){for(var v=f[(d-1)%3],h=f[d%3],b=h[0]=d,E=1;E<=l;E++){var g=a[d-1]===o[E-1]?0:1,k=Math.min(v[E]+1,h[E-1]+1,v[E-1]+g);if(d>1&&E>1&&a[d-1]===o[E-2]&&a[d-2]===o[E-1]){var _=f[(d-2)%3][E-2];k=Math.min(k,_+1)}k<b&&(b=k),h[E]=k}if(b>i)return}var B=f[c%3][l];return B<=i?B:void 0}},e}();function fc(e){for(var n=e.length,t=new Array(n),r=0;r<n;++r)t[r]=e.charCodeAt(r);return t}function We(e){return sc(e,{leave:ih})}var th=80,ih={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return I(n.definitions,`
23
23
 
24
24
  `)+`
25
- `},OperationDefinition:function(n){var t=n.operation,r=n.name,i=te("(",I(n.variableDefinitions,", "),")"),u=I(n.directives," "),a=n.selectionSet;return!r&&!u&&!i&&t==="query"?a:I([t,I([r,i]),u,a]," ")},VariableDefinition:function(n){var t=n.variable,r=n.type,i=n.defaultValue,u=n.directives;return t+": "+r+te(" = ",i)+te(" ",I(u," "))},SelectionSet:function(n){var t=n.selections;return je(t)},Field:function(n){var t=n.alias,r=n.name,i=n.arguments,u=n.directives,a=n.selectionSet,o=te("",t,": ")+r,s=o+te("(",I(i,", "),")");return s.length>Wp&&(s=o+te(`(
25
+ `},OperationDefinition:function(n){var t=n.operation,r=n.name,i=te("(",I(n.variableDefinitions,", "),")"),u=I(n.directives," "),a=n.selectionSet;return!r&&!u&&!i&&t==="query"?a:I([t,I([r,i]),u,a]," ")},VariableDefinition:function(n){var t=n.variable,r=n.type,i=n.defaultValue,u=n.directives;return t+": "+r+te(" = ",i)+te(" ",I(u," "))},SelectionSet:function(n){var t=n.selections;return je(t)},Field:function(n){var t=n.alias,r=n.name,i=n.arguments,u=n.directives,a=n.selectionSet,o=te("",t,": ")+r,s=o+te("(",I(i,", "),")");return s.length>th&&(s=o+te(`(
26
26
  `,wi(I(i,`
27
27
  `)),`
28
- )`)),I([s,I(u," "),a]," ")},Argument:function(n){var t=n.name,r=n.value;return t+": "+r},FragmentSpread:function(n){var t=n.name,r=n.directives;return"..."+t+te(" ",I(r," "))},InlineFragment:function(n){var t=n.typeCondition,r=n.directives,i=n.selectionSet;return I(["...",te("on ",t),I(r," "),i]," ")},FragmentDefinition:function(n){var t=n.name,r=n.typeCondition,i=n.variableDefinitions,u=n.directives,a=n.selectionSet;return"fragment ".concat(t).concat(te("(",I(i,", "),")")," ")+"on ".concat(r," ").concat(te("",I(u," ")," "))+a},IntValue:function(n){var t=n.value;return t},FloatValue:function(n){var t=n.value;return t},StringValue:function(n,t){var r=n.value,i=n.block;return i?Rp(r,t==="description"?"":" "):JSON.stringify(r)},BooleanValue:function(n){var t=n.value;return t?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){var t=n.value;return t},ListValue:function(n){var t=n.values;return"["+I(t,", ")+"]"},ObjectValue:function(n){var t=n.fields;return"{"+I(t,", ")+"}"},ObjectField:function(n){var t=n.name,r=n.value;return t+": "+r},Directive:function(n){var t=n.name,r=n.arguments;return"@"+t+te("(",I(r,", "),")")},NamedType:function(n){var t=n.name;return t},ListType:function(n){var t=n.type;return"["+t+"]"},NonNullType:function(n){var t=n.type;return t+"!"},SchemaDefinition:Re(function(e){var n=e.directives,t=e.operationTypes;return I(["schema",I(n," "),je(t)]," ")}),OperationTypeDefinition:function(n){var t=n.operation,r=n.type;return t+": "+r},ScalarTypeDefinition:Re(function(e){var n=e.name,t=e.directives;return I(["scalar",n,I(t," ")]," ")}),ObjectTypeDefinition:Re(function(e){var n=e.name,t=e.interfaces,r=e.directives,i=e.fields;return I(["type",n,te("implements ",I(t," & ")),I(r," "),je(i)]," ")}),FieldDefinition:Re(function(e){var n=e.name,t=e.arguments,r=e.type,i=e.directives;return n+(mc(t)?te(`(
28
+ )`)),I([s,I(u," "),a]," ")},Argument:function(n){var t=n.name,r=n.value;return t+": "+r},FragmentSpread:function(n){var t=n.name,r=n.directives;return"..."+t+te(" ",I(r," "))},InlineFragment:function(n){var t=n.typeCondition,r=n.directives,i=n.selectionSet;return I(["...",te("on ",t),I(r," "),i]," ")},FragmentDefinition:function(n){var t=n.name,r=n.typeCondition,i=n.variableDefinitions,u=n.directives,a=n.selectionSet;return"fragment ".concat(t).concat(te("(",I(i,", "),")")," ")+"on ".concat(r," ").concat(te("",I(u," ")," "))+a},IntValue:function(n){var t=n.value;return t},FloatValue:function(n){var t=n.value;return t},StringValue:function(n,t){var r=n.value,i=n.block;return i?qp(r,t==="description"?"":" "):JSON.stringify(r)},BooleanValue:function(n){var t=n.value;return t?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){var t=n.value;return t},ListValue:function(n){var t=n.values;return"["+I(t,", ")+"]"},ObjectValue:function(n){var t=n.fields;return"{"+I(t,", ")+"}"},ObjectField:function(n){var t=n.name,r=n.value;return t+": "+r},Directive:function(n){var t=n.name,r=n.arguments;return"@"+t+te("(",I(r,", "),")")},NamedType:function(n){var t=n.name;return t},ListType:function(n){var t=n.type;return"["+t+"]"},NonNullType:function(n){var t=n.type;return t+"!"},SchemaDefinition:Re(function(e){var n=e.directives,t=e.operationTypes;return I(["schema",I(n," "),je(t)]," ")}),OperationTypeDefinition:function(n){var t=n.operation,r=n.type;return t+": "+r},ScalarTypeDefinition:Re(function(e){var n=e.name,t=e.directives;return I(["scalar",n,I(t," ")]," ")}),ObjectTypeDefinition:Re(function(e){var n=e.name,t=e.interfaces,r=e.directives,i=e.fields;return I(["type",n,te("implements ",I(t," & ")),I(r," "),je(i)]," ")}),FieldDefinition:Re(function(e){var n=e.name,t=e.arguments,r=e.type,i=e.directives;return n+(mc(t)?te(`(
29
29
  `,wi(I(t,`
30
30
  `)),`
31
31
  )`):te("(",I(t,", "),")"))+": "+r+te(" ",I(i," "))}),InputValueDefinition:Re(function(e){var n=e.name,t=e.type,r=e.defaultValue,i=e.directives;return I([n+": "+t,te("= ",r),I(i," ")]," ")}),InterfaceTypeDefinition:Re(function(e){var n=e.name,t=e.interfaces,r=e.directives,i=e.fields;return I(["interface",n,te("implements ",I(t," & ")),I(r," "),je(i)]," ")}),UnionTypeDefinition:Re(function(e){var n=e.name,t=e.directives,r=e.types;return I(["union",n,I(t," "),r&&r.length!==0?"= "+I(r," | "):""]," ")}),EnumTypeDefinition:Re(function(e){var n=e.name,t=e.directives,r=e.values;return I(["enum",n,I(t," "),je(r)]," ")}),EnumValueDefinition:Re(function(e){var n=e.name,t=e.directives;return I([n,I(t," ")]," ")}),InputObjectTypeDefinition:Re(function(e){var n=e.name,t=e.directives,r=e.fields;return I(["input",n,I(t," "),je(r)]," ")}),DirectiveDefinition:Re(function(e){var n=e.name,t=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+n+(mc(t)?te(`(
@@ -36,10 +36,10 @@ spurious results.`))}}return!1};function Up(e,n){for(var t=0;t<n.length;t++){var
36
36
  `,wi(I(e,`
37
37
  `)),`
38
38
  }`)}function te(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return n!=null&&n!==""?e+n+t:""}function wi(e){return te(" ",e.replace(/\n/g,`
39
- `))}function Xp(e){return e.indexOf(`
40
- `)!==-1}function mc(e){return e!=null&&e.some(Xp)}function zu(e,n){switch(e.kind){case C.NULL:return null;case C.INT:return parseInt(e.value,10);case C.FLOAT:return parseFloat(e.value);case C.STRING:case C.ENUM:case C.BOOLEAN:return e.value;case C.LIST:return e.values.map(function(t){return zu(t,n)});case C.OBJECT:return Tu(e.fields,function(t){return t.name.value},function(t){return zu(t.value,n)});case C.VARIABLE:return n?.[e.name.value]}zt(0,"Unexpected value node: "+H(e))}function eh(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vn(e,n,t){return n&&eh(e.prototype,n),e}function vc(e){return Pt(e)||Me(e)||Fe(e)||sn(e)||cn(e)||Cn(e)||Rt(e)||qn(e)}function nh(e){if(!vc(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL type."));return e}function Pt(e){return Ke(e,$n)}function Me(e){return Ke(e,ln)}function Fe(e){return Ke(e,yc)}function sn(e){return Ke(e,bc)}function cn(e){return Ke(e,$i)}function Cn(e){return Ke(e,kc)}function Rt(e){return Ke(e,ce)}function qn(e){return Ke(e,L)}function Mn(e){return Pt(e)||cn(e)||Cn(e)||Pu(e)&&Mn(e.ofType)}function _i(e){return Pt(e)||Me(e)||Fe(e)||sn(e)||cn(e)||Pu(e)&&_i(e.ofType)}function th(e){return Pt(e)||cn(e)}function Uu(e){return Me(e)||Fe(e)||sn(e)}function ih(e){return Fe(e)||sn(e)}function ce(e){if(this instanceof ce)this.ofType=nh(e);else return new ce(e)}ce.prototype.toString=function(){return"["+String(this.ofType)+"]"},ce.prototype.toJSON=function(){return this.toString()},Object.defineProperty(ce.prototype,xe,{get:function(){return"GraphQLList"}}),Pe(ce);function L(e){if(this instanceof L)this.ofType=uh(e);else return new L(e)}L.prototype.toString=function(){return String(this.ofType)+"!"},L.prototype.toJSON=function(){return this.toString()},Object.defineProperty(L.prototype,xe,{get:function(){return"GraphQLNonNull"}}),Pe(L);function Pu(e){return Rt(e)||qn(e)}function rh(e){return vc(e)&&!qn(e)}function uh(e){if(!rh(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL nullable type."));return e}function ah(e){if(e)return qn(e)?e.ofType:e}function jt(e){if(e){for(var n=e;Pu(n);)n=n.ofType;return n}}function Ci(e){return typeof e=="function"?e():e}function Gn(e){return e&&e.length>0?e:void 0}var $n=function(){function e(t){var r,i,u,a=(r=t.parseValue)!==null&&r!==void 0?r:dc;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:dc,this.parseValue=a,this.parseLiteral=(u=t.parseLiteral)!==null&&u!==void 0?u:function(o,s){return a(zu(o,s))},this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),typeof t.name=="string"||M(0,"Must provide name."),t.specifiedByUrl==null||typeof t.specifiedByUrl=="string"||M(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(H(t.specifiedByUrl),".")),t.serialize==null||typeof t.serialize=="function"||M(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||M(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var r;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLScalarType"}}]),e}();Pe($n);var ln=function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._fields=hc.bind(void 0,t),this._interfaces=pc.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.isTypeOf==null||typeof t.isTypeOf=="function"||M(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(H(t.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:gc(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLObjectType"}}]),e}();Pe(ln);function pc(e){var n,t=(n=Ci(e.interfaces))!==null&&n!==void 0?n:[];return Array.isArray(t)||M(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function hc(e){var n=Ci(e.fields);return Jn(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Bi(n,function(t,r){var i;Jn(t)||M(0,"".concat(e.name,".").concat(r," field config must be an object.")),!("isDeprecated"in t)||M(0,"".concat(e.name,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),t.resolve==null||typeof t.resolve=="function"||M(0,"".concat(e.name,".").concat(r," field resolver must be a function if ")+"provided, but got: ".concat(H(t.resolve),"."));var u=(i=t.args)!==null&&i!==void 0?i:{};Jn(u)||M(0,"".concat(e.name,".").concat(r," args must be an object with argument names as keys."));var a=Ut(u).map(function(o){var s=o[0],c=o[1];return{name:s,description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&$e(c.extensions),astNode:c.astNode}});return{name:r,description:t.description,type:t.type,args:a,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:t.deprecationReason!=null,deprecationReason:t.deprecationReason,extensions:t.extensions&&$e(t.extensions),astNode:t.astNode}})}function Jn(e){return wn(e)&&!Array.isArray(e)}function gc(e){return Bi(e,function(n){return{description:n.description,type:n.type,args:Ec(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function Ec(e){return Tu(e,function(n){return n.name},function(n){return{description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}var yc=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._fields=hc.bind(void 0,t),this._interfaces=pc.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||M(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(t.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){var r;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:gc(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLInterfaceType"}}]),e}();Pe(yc);var bc=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._types=oh.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||M(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(t.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},n.toConfig=function(){var r;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLUnionType"}}]),e}();Pe(bc);function oh(e){var n=Ci(e.types);return Array.isArray(n)||M(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}var $i=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._values=sh(this.name,t.values),this._valueLookup=new Map(this._values.map(function(r){return[r.value,r]})),this._nameLookup=lc(this._values,function(r){return r.name}),typeof t.name=="string"||M(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(r){return this._nameLookup[r]},n.serialize=function(r){var i=this._valueLookup.get(r);if(i===void 0)throw new ne('Enum "'.concat(this.name,'" cannot represent value: ').concat(H(r)));return i.name},n.parseValue=function(r){if(typeof r!="string"){var i=H(r);throw new ne('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Ii(this,i))}var u=this.getValue(r);if(u==null)throw new ne('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+Ii(this,r));return u.value},n.parseLiteral=function(r,i){if(r.kind!==C.ENUM){var u=We(r);throw new ne('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(u,".")+Ii(this,u),r)}var a=this.getValue(r.value);if(a==null){var o=We(r);throw new ne('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+Ii(this,o),r)}return a.value},n.toConfig=function(){var r,i=Tu(this.getValues(),function(u){return u.name},function(u){return{description:u.description,value:u.value,deprecationReason:u.deprecationReason,extensions:u.extensions,astNode:u.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLEnumType"}}]),e}();Pe($i);function Ii(e,n){var t=e.getValues().map(function(i){return i.name}),r=Qp(n,t);return Gp("the enum value",r)}function sh(e,n){return Jn(n)||M(0,"".concat(e," values must be an object with value names as keys.")),Ut(n).map(function(t){var r=t[0],i=t[1];return Jn(i)||M(0,"".concat(e,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(H(i),".")),!("isDeprecated"in i)||M(0,"".concat(e,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:i.description,value:i.value!==void 0?i.value:r,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&$e(i.extensions),astNode:i.astNode}})}var kc=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._fields=ch.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var r,i=Bi(this.getFields(),function(u){return{description:u.description,type:u.type,defaultValue:u.defaultValue,deprecationReason:u.deprecationReason,extensions:u.extensions,astNode:u.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLInputObjectType"}}]),e}();Pe(kc);function ch(e){var n=Ci(e.fields);return Jn(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Bi(n,function(t,r){return!("resolve"in t)||M(0,"".concat(e.name,".").concat(r," field has a resolve property, but Input Types cannot define resolvers.")),{name:r,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&$e(t.extensions),astNode:t.astNode}})}var lh=Array.from||function(e,n,t){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[ec];if(typeof r=="function"){for(var i=r.call(e),u=[],a,o=0;!(a=i.next()).done;++o)if(u.push(n.call(t,a.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return u}var s=e.length;if(typeof s=="number"&&s>=0&&s%1===0){for(var c=[],l=0;l<s;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(n.call(t,e[l],l));return c}return[]},dh=lh,fh=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Lt=fh;function xi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xi=function(t){return typeof t}:xi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function mh(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(e==null||xi(e)!=="object")return null;if(Array.isArray(e))return e.map(n);var t=e[ec];if(typeof t=="function"){for(var r=t.call(e),i=[],u,a=0;!(u=r.next()).done;++a)i.push(n(u.value,a));return i}var o=e.length;if(typeof o=="number"&&o>=0&&o%1===0){for(var s=[],c=0;c<o;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;s.push(n(e[String(c)],c))}return s}return null}var vh=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Fi=vh,Ru=2147483647,ju=-2147483648;function ph(e){var n=Zt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Fi(t))throw new ne("Int cannot represent non-integer value: ".concat(H(n)));if(t>Ru||t<ju)throw new ne("Int cannot represent non 32-bit signed integer value: "+H(n));return t}function hh(e){if(!Fi(e))throw new ne("Int cannot represent non-integer value: ".concat(H(e)));if(e>Ru||e<ju)throw new ne("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var gh=new $n({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:ph,parseValue:hh,parseLiteral:function(n){if(n.kind!==C.INT)throw new ne("Int cannot represent non-integer value: ".concat(We(n)),n);var t=parseInt(n.value,10);if(t>Ru||t<ju)throw new ne("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}});function Eh(e){var n=Zt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Lt(t))throw new ne("Float cannot represent non numeric value: ".concat(H(n)));return t}function yh(e){if(!Lt(e))throw new ne("Float cannot represent non numeric value: ".concat(H(e)));return e}var bh=new $n({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:Eh,parseValue:yh,parseLiteral:function(n){if(n.kind!==C.FLOAT&&n.kind!==C.INT)throw new ne("Float cannot represent non numeric value: ".concat(We(n)),n);return parseFloat(n.value)}});function Zt(e){if(wn(e)){if(typeof e.valueOf=="function"){var n=e.valueOf();if(!wn(n))return n}if(typeof e.toJSON=="function")return e.toJSON()}return e}function kh(e){var n=Zt(e);if(typeof n=="string")return n;if(typeof n=="boolean")return n?"true":"false";if(Lt(n))return n.toString();throw new ne("String cannot represent value: ".concat(H(e)))}function Dh(e){if(typeof e!="string")throw new ne("String cannot represent a non string value: ".concat(H(e)));return e}var ie=new $n({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:kh,parseValue:Dh,parseLiteral:function(n){if(n.kind!==C.STRING)throw new ne("String cannot represent a non string value: ".concat(We(n)),n);return n.value}});function Sh(e){var n=Zt(e);if(typeof n=="boolean")return n;if(Lt(n))return n!==0;throw new ne("Boolean cannot represent a non boolean value: ".concat(H(n)))}function Bh(e){if(typeof e!="boolean")throw new ne("Boolean cannot represent a non boolean value: ".concat(H(e)));return e}var Ne=new $n({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Sh,parseValue:Bh,parseLiteral:function(n){if(n.kind!==C.BOOLEAN)throw new ne("Boolean cannot represent a non boolean value: ".concat(We(n)),n);return n.value}});function Ah(e){var n=Zt(e);if(typeof n=="string")return n;if(Fi(n))return String(n);throw new ne("ID cannot represent value: ".concat(H(e)))}function wh(e){if(typeof e=="string")return e;if(Fi(e))return e.toString();throw new ne("ID cannot represent value: ".concat(H(e)))}var Dc=new $n({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:Ah,parseValue:wh,parseLiteral:function(n){if(n.kind!==C.STRING&&n.kind!==C.INT)throw new ne("ID cannot represent a non-string and non-integer value: "+We(n),n);return n.value}}),Sc=Object.freeze([ie,gh,bh,Ne,Dc]);function Vt(e,n){if(qn(n)){var t=Vt(e,n.ofType);return t?.kind===C.NULL?null:t}if(e===null)return{kind:C.NULL};if(e===void 0)return null;if(Rt(n)){var r=n.ofType,i=mh(e);if(i!=null){for(var u=[],a=0;a<i.length;a++){var o=i[a],s=Vt(o,r);s!=null&&u.push(s)}return{kind:C.LIST,values:u}}return Vt(e,r)}if(Cn(n)){if(!wn(e))return null;for(var c=[],l=0,f=_n(n.getFields());l<f.length;l++){var m=f[l],d=Vt(e[m.name],m.type);d&&c.push({kind:C.OBJECT_FIELD,name:{kind:C.NAME,value:m.name},value:d})}return{kind:C.OBJECT,fields:c}}if(th(n)){var v=n.serialize(e);if(v==null)return null;if(typeof v=="boolean")return{kind:C.BOOLEAN,value:v};if(typeof v=="number"&&Lt(v)){var h=String(v);return Bc.test(h)?{kind:C.INT,value:h}:{kind:C.FLOAT,value:h}}if(typeof v=="string")return cn(n)?{kind:C.ENUM,value:v}:n===Dc&&Bc.test(v)?{kind:C.INT,value:v}:{kind:C.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat(H(v),"."))}zt(0,"Unexpected input type: "+H(n))}var Bc=/^-?(?:0|[1-9][0-9]*)$/,Lu=new ln({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:ie,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new L(new ce(new L(Le))),resolve:function(t){return _n(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new L(Le),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Le,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Le,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new L(new ce(new L(Ac))),resolve:function(t){return t.getDirectives()}}}}}),Ac=new ln({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
39
+ `))}function rh(e){return e.indexOf(`
40
+ `)!==-1}function mc(e){return e!=null&&e.some(rh)}function zu(e,n){switch(e.kind){case C.NULL:return null;case C.INT:return parseInt(e.value,10);case C.FLOAT:return parseFloat(e.value);case C.STRING:case C.ENUM:case C.BOOLEAN:return e.value;case C.LIST:return e.values.map(function(t){return zu(t,n)});case C.OBJECT:return Tu(e.fields,function(t){return t.name.value},function(t){return zu(t.value,n)});case C.VARIABLE:return n?.[e.name.value]}zt(0,"Unexpected value node: "+H(e))}function uh(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vn(e,n,t){return n&&uh(e.prototype,n),e}function vc(e){return Pt(e)||Me(e)||Fe(e)||sn(e)||cn(e)||Cn(e)||Rt(e)||qn(e)}function ah(e){if(!vc(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL type."));return e}function Pt(e){return Ke(e,$n)}function Me(e){return Ke(e,ln)}function Fe(e){return Ke(e,yc)}function sn(e){return Ke(e,bc)}function cn(e){return Ke(e,$i)}function Cn(e){return Ke(e,kc)}function Rt(e){return Ke(e,ce)}function qn(e){return Ke(e,L)}function Mn(e){return Pt(e)||cn(e)||Cn(e)||Pu(e)&&Mn(e.ofType)}function _i(e){return Pt(e)||Me(e)||Fe(e)||sn(e)||cn(e)||Pu(e)&&_i(e.ofType)}function oh(e){return Pt(e)||cn(e)}function Uu(e){return Me(e)||Fe(e)||sn(e)}function sh(e){return Fe(e)||sn(e)}function ce(e){if(this instanceof ce)this.ofType=ah(e);else return new ce(e)}ce.prototype.toString=function(){return"["+String(this.ofType)+"]"},ce.prototype.toJSON=function(){return this.toString()},Object.defineProperty(ce.prototype,xe,{get:function(){return"GraphQLList"}}),Pe(ce);function L(e){if(this instanceof L)this.ofType=lh(e);else return new L(e)}L.prototype.toString=function(){return String(this.ofType)+"!"},L.prototype.toJSON=function(){return this.toString()},Object.defineProperty(L.prototype,xe,{get:function(){return"GraphQLNonNull"}}),Pe(L);function Pu(e){return Rt(e)||qn(e)}function ch(e){return vc(e)&&!qn(e)}function lh(e){if(!ch(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL nullable type."));return e}function dh(e){if(e)return qn(e)?e.ofType:e}function jt(e){if(e){for(var n=e;Pu(n);)n=n.ofType;return n}}function Ci(e){return typeof e=="function"?e():e}function Gn(e){return e&&e.length>0?e:void 0}var $n=function(){function e(t){var r,i,u,a=(r=t.parseValue)!==null&&r!==void 0?r:dc;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:dc,this.parseValue=a,this.parseLiteral=(u=t.parseLiteral)!==null&&u!==void 0?u:function(o,s){return a(zu(o,s))},this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),typeof t.name=="string"||M(0,"Must provide name."),t.specifiedByUrl==null||typeof t.specifiedByUrl=="string"||M(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(H(t.specifiedByUrl),".")),t.serialize==null||typeof t.serialize=="function"||M(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||M(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var r;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLScalarType"}}]),e}();Pe($n);var ln=function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._fields=hc.bind(void 0,t),this._interfaces=pc.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.isTypeOf==null||typeof t.isTypeOf=="function"||M(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(H(t.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:gc(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLObjectType"}}]),e}();Pe(ln);function pc(e){var n,t=(n=Ci(e.interfaces))!==null&&n!==void 0?n:[];return Array.isArray(t)||M(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function hc(e){var n=Ci(e.fields);return Jn(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Bi(n,function(t,r){var i;Jn(t)||M(0,"".concat(e.name,".").concat(r," field config must be an object.")),!("isDeprecated"in t)||M(0,"".concat(e.name,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),t.resolve==null||typeof t.resolve=="function"||M(0,"".concat(e.name,".").concat(r," field resolver must be a function if ")+"provided, but got: ".concat(H(t.resolve),"."));var u=(i=t.args)!==null&&i!==void 0?i:{};Jn(u)||M(0,"".concat(e.name,".").concat(r," args must be an object with argument names as keys."));var a=Ut(u).map(function(o){var s=o[0],c=o[1];return{name:s,description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&$e(c.extensions),astNode:c.astNode}});return{name:r,description:t.description,type:t.type,args:a,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:t.deprecationReason!=null,deprecationReason:t.deprecationReason,extensions:t.extensions&&$e(t.extensions),astNode:t.astNode}})}function Jn(e){return wn(e)&&!Array.isArray(e)}function gc(e){return Bi(e,function(n){return{description:n.description,type:n.type,args:Ec(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function Ec(e){return Tu(e,function(n){return n.name},function(n){return{description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}var yc=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._fields=hc.bind(void 0,t),this._interfaces=pc.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||M(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(t.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){var r;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:gc(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLInterfaceType"}}]),e}();Pe(yc);var bc=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._types=fh.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||M(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(t.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},n.toConfig=function(){var r;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLUnionType"}}]),e}();Pe(bc);function fh(e){var n=Ci(e.types);return Array.isArray(n)||M(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}var $i=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._values=mh(this.name,t.values),this._valueLookup=new Map(this._values.map(function(r){return[r.value,r]})),this._nameLookup=lc(this._values,function(r){return r.name}),typeof t.name=="string"||M(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(r){return this._nameLookup[r]},n.serialize=function(r){var i=this._valueLookup.get(r);if(i===void 0)throw new ne('Enum "'.concat(this.name,'" cannot represent value: ').concat(H(r)));return i.name},n.parseValue=function(r){if(typeof r!="string"){var i=H(r);throw new ne('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Ii(this,i))}var u=this.getValue(r);if(u==null)throw new ne('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+Ii(this,r));return u.value},n.parseLiteral=function(r,i){if(r.kind!==C.ENUM){var u=We(r);throw new ne('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(u,".")+Ii(this,u),r)}var a=this.getValue(r.value);if(a==null){var o=We(r);throw new ne('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+Ii(this,o),r)}return a.value},n.toConfig=function(){var r,i=Tu(this.getValues(),function(u){return u.name},function(u){return{description:u.description,value:u.value,deprecationReason:u.deprecationReason,extensions:u.extensions,astNode:u.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLEnumType"}}]),e}();Pe($i);function Ii(e,n){var t=e.getValues().map(function(i){return i.name}),r=eh(n,t);return Wp("the enum value",r)}function mh(e,n){return Jn(n)||M(0,"".concat(e," values must be an object with value names as keys.")),Ut(n).map(function(t){var r=t[0],i=t[1];return Jn(i)||M(0,"".concat(e,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(H(i),".")),!("isDeprecated"in i)||M(0,"".concat(e,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:i.description,value:i.value!==void 0?i.value:r,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&$e(i.extensions),astNode:i.astNode}})}var kc=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Gn(t.extensionASTNodes),this._fields=vh.bind(void 0,t),typeof t.name=="string"||M(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var r,i=Bi(this.getFields(),function(u){return{description:u.description,type:u.type,defaultValue:u.defaultValue,deprecationReason:u.deprecationReason,extensions:u.extensions,astNode:u.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Vn(e,[{key:xe,get:function(){return"GraphQLInputObjectType"}}]),e}();Pe(kc);function vh(e){var n=Ci(e.fields);return Jn(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Bi(n,function(t,r){return!("resolve"in t)||M(0,"".concat(e.name,".").concat(r," field has a resolve property, but Input Types cannot define resolvers.")),{name:r,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&$e(t.extensions),astNode:t.astNode}})}var ph=Array.from||function(e,n,t){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[ec];if(typeof r=="function"){for(var i=r.call(e),u=[],a,o=0;!(a=i.next()).done;++o)if(u.push(n.call(t,a.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return u}var s=e.length;if(typeof s=="number"&&s>=0&&s%1===0){for(var c=[],l=0;l<s;++l)Object.prototype.hasOwnProperty.call(e,l)&&c.push(n.call(t,e[l],l));return c}return[]},hh=ph,gh=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Lt=gh;function xi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xi=function(t){return typeof t}:xi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function Eh(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(e==null||xi(e)!=="object")return null;if(Array.isArray(e))return e.map(n);var t=e[ec];if(typeof t=="function"){for(var r=t.call(e),i=[],u,a=0;!(u=r.next()).done;++a)i.push(n(u.value,a));return i}var o=e.length;if(typeof o=="number"&&o>=0&&o%1===0){for(var s=[],c=0;c<o;++c){if(!Object.prototype.hasOwnProperty.call(e,c))return null;s.push(n(e[String(c)],c))}return s}return null}var yh=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Fi=yh,Ru=2147483647,ju=-2147483648;function bh(e){var n=Zt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Fi(t))throw new ne("Int cannot represent non-integer value: ".concat(H(n)));if(t>Ru||t<ju)throw new ne("Int cannot represent non 32-bit signed integer value: "+H(n));return t}function kh(e){if(!Fi(e))throw new ne("Int cannot represent non-integer value: ".concat(H(e)));if(e>Ru||e<ju)throw new ne("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var Dh=new $n({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:bh,parseValue:kh,parseLiteral:function(n){if(n.kind!==C.INT)throw new ne("Int cannot represent non-integer value: ".concat(We(n)),n);var t=parseInt(n.value,10);if(t>Ru||t<ju)throw new ne("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}});function Sh(e){var n=Zt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Lt(t))throw new ne("Float cannot represent non numeric value: ".concat(H(n)));return t}function Bh(e){if(!Lt(e))throw new ne("Float cannot represent non numeric value: ".concat(H(e)));return e}var Ah=new $n({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:Sh,parseValue:Bh,parseLiteral:function(n){if(n.kind!==C.FLOAT&&n.kind!==C.INT)throw new ne("Float cannot represent non numeric value: ".concat(We(n)),n);return parseFloat(n.value)}});function Zt(e){if(wn(e)){if(typeof e.valueOf=="function"){var n=e.valueOf();if(!wn(n))return n}if(typeof e.toJSON=="function")return e.toJSON()}return e}function wh(e){var n=Zt(e);if(typeof n=="string")return n;if(typeof n=="boolean")return n?"true":"false";if(Lt(n))return n.toString();throw new ne("String cannot represent value: ".concat(H(e)))}function _h(e){if(typeof e!="string")throw new ne("String cannot represent a non string value: ".concat(H(e)));return e}var ie=new $n({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:wh,parseValue:_h,parseLiteral:function(n){if(n.kind!==C.STRING)throw new ne("String cannot represent a non string value: ".concat(We(n)),n);return n.value}});function Ch(e){var n=Zt(e);if(typeof n=="boolean")return n;if(Lt(n))return n!==0;throw new ne("Boolean cannot represent a non boolean value: ".concat(H(n)))}function $h(e){if(typeof e!="boolean")throw new ne("Boolean cannot represent a non boolean value: ".concat(H(e)));return e}var Ne=new $n({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Ch,parseValue:$h,parseLiteral:function(n){if(n.kind!==C.BOOLEAN)throw new ne("Boolean cannot represent a non boolean value: ".concat(We(n)),n);return n.value}});function Ih(e){var n=Zt(e);if(typeof n=="string")return n;if(Fi(n))return String(n);throw new ne("ID cannot represent value: ".concat(H(e)))}function xh(e){if(typeof e=="string")return e;if(Fi(e))return e.toString();throw new ne("ID cannot represent value: ".concat(H(e)))}var Dc=new $n({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:Ih,parseValue:xh,parseLiteral:function(n){if(n.kind!==C.STRING&&n.kind!==C.INT)throw new ne("ID cannot represent a non-string and non-integer value: "+We(n),n);return n.value}}),Sc=Object.freeze([ie,Dh,Ah,Ne,Dc]);function Vt(e,n){if(qn(n)){var t=Vt(e,n.ofType);return t?.kind===C.NULL?null:t}if(e===null)return{kind:C.NULL};if(e===void 0)return null;if(Rt(n)){var r=n.ofType,i=Eh(e);if(i!=null){for(var u=[],a=0;a<i.length;a++){var o=i[a],s=Vt(o,r);s!=null&&u.push(s)}return{kind:C.LIST,values:u}}return Vt(e,r)}if(Cn(n)){if(!wn(e))return null;for(var c=[],l=0,f=_n(n.getFields());l<f.length;l++){var m=f[l],d=Vt(e[m.name],m.type);d&&c.push({kind:C.OBJECT_FIELD,name:{kind:C.NAME,value:m.name},value:d})}return{kind:C.OBJECT,fields:c}}if(oh(n)){var v=n.serialize(e);if(v==null)return null;if(typeof v=="boolean")return{kind:C.BOOLEAN,value:v};if(typeof v=="number"&&Lt(v)){var h=String(v);return Bc.test(h)?{kind:C.INT,value:h}:{kind:C.FLOAT,value:h}}if(typeof v=="string")return cn(n)?{kind:C.ENUM,value:v}:n===Dc&&Bc.test(v)?{kind:C.INT,value:v}:{kind:C.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat(H(v),"."))}zt(0,"Unexpected input type: "+H(n))}var Bc=/^-?(?:0|[1-9][0-9]*)$/,Lu=new ln({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:ie,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new L(new ce(new L(Le))),resolve:function(t){return _n(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new L(Le),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Le,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Le,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new L(new ce(new L(Ac))),resolve:function(t){return t.getDirectives()}}}}}),Ac=new ln({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
41
41
 
42
- In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},isRepeatable:{type:new L(Ne),resolve:function(t){return t.isRepeatable}},locations:{type:new L(new ce(new L(wc))),resolve:function(t){return t.locations}},args:{type:new L(new ce(new L(Ni))),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;return i?t.args:t.args.filter(function(u){return u.deprecationReason==null})}}}}}),wc=new $i({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:K.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:K.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:K.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:K.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:K.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:K.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:K.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:K.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:K.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:K.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:K.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:K.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:K.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:K.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:K.UNION,description:"Location adjacent to a union definition."},ENUM:{value:K.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:K.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:K.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:K.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Le=new ln({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new L($c),resolve:function(t){if(Pt(t))return me.SCALAR;if(Me(t))return me.OBJECT;if(Fe(t))return me.INTERFACE;if(sn(t))return me.UNION;if(cn(t))return me.ENUM;if(Cn(t))return me.INPUT_OBJECT;if(Rt(t))return me.LIST;if(qn(t))return me.NON_NULL;zt(0,'Unexpected type: "'.concat(H(t),'".'))}},name:{type:ie,resolve:function(t){return t.name!==void 0?t.name:void 0}},description:{type:ie,resolve:function(t){return t.description!==void 0?t.description:void 0}},specifiedByUrl:{type:ie,resolve:function(t){return t.specifiedByUrl!==void 0?t.specifiedByUrl:void 0}},fields:{type:new ce(new L(_c)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Me(t)||Fe(t)){var u=_n(t.getFields());return i?u:u.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new ce(new L(Le)),resolve:function(t){if(Me(t)||Fe(t))return t.getInterfaces()}},possibleTypes:{type:new ce(new L(Le)),resolve:function(t,r,i,u){var a=u.schema;if(ih(t))return a.getPossibleTypes(t)}},enumValues:{type:new ce(new L(Cc)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(cn(t)){var u=t.getValues();return i?u:u.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new ce(new L(Ni)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Cn(t)){var u=_n(t.getFields());return i?u:u.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Le,resolve:function(t){return t.ofType!==void 0?t.ofType:void 0}}}}}),_c=new ln({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},args:{type:new L(new ce(new L(Ni))),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;return i?t.args:t.args.filter(function(u){return u.deprecationReason==null})}},type:{type:new L(Le),resolve:function(t){return t.type}},isDeprecated:{type:new L(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),Ni=new ln({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},type:{type:new L(Le),resolve:function(t){return t.type}},defaultValue:{type:ie,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var r=t.type,i=t.defaultValue,u=Vt(i,r);return u?We(u):null}},isDeprecated:{type:new L(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),Cc=new ln({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},isDeprecated:{type:new L(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),me=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),$c=new $i({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:me.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:me.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:me.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:me.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:me.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:me.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:me.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:me.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Ic={name:"__schema",type:new L(Lu),description:"Access the current type schema of this server.",args:[],resolve:function(n,t,r,i){var u=i.schema;return u},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},xc={name:"__type",type:Le,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new L(ie),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(n,t,r,i){var u=t.name,a=i.schema;return a.getType(u)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Fc={name:"__typename",type:new L(ie),description:"The name of the current Object type at runtime.",args:[],resolve:function(n,t,r,i){var u=i.parentType;return u.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Nc=Object.freeze([Lu,Ac,wc,Le,_c,Ni,Cc,$c]);function _h(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ch(e,n,t){return n&&_h(e.prototype,n),e}function $h(e){return Ke(e,Hn)}var Hn=function(){function e(t){var r,i;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,t.name||M(0,"Directive must be named."),Array.isArray(t.locations)||M(0,"@".concat(t.name," locations must be an Array."));var u=(i=t.args)!==null&&i!==void 0?i:{};wn(u)&&!Array.isArray(u)||M(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Ut(u).map(function(a){var o=a[0],s=a[1];return{name:o,description:s.description,type:s.type,defaultValue:s.defaultValue,deprecationReason:s.deprecationReason,extensions:s.extensions&&$e(s.extensions),astNode:s.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Ec(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},Ch(e,[{key:xe,get:function(){return"GraphQLDirective"}}]),e}();Pe(Hn);var Ih=new Hn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new L(Ne),description:"Included when true."}}}),xh=new Hn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new L(Ne),description:"Skipped when true."}}}),Fh="No longer supported",Nh=new Hn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[K.FIELD_DEFINITION,K.ARGUMENT_DEFINITION,K.INPUT_FIELD_DEFINITION,K.ENUM_VALUE],args:{reason:{type:ie,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Fh}}}),Th=new Hn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[K.SCALAR],args:{url:{type:new L(ie),description:"The URL that specifies the behaviour of this scalar."}}}),Oh=Object.freeze([Ih,xh,Nh,Th]);function zh(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uh(e,n,t){return n&&zh(e.prototype,n),e}(function(){function e(t){var r;this.__validationErrors=t.assumeValid===!0?[]:void 0,wn(t)||M(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||M(0,'"types" must be Array if provided but got: '.concat(H(t.types),".")),!t.directives||Array.isArray(t.directives)||M(0,'"directives" must be Array if provided but got: '+"".concat(H(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Oh;var i=new Set(t.types);if(t.types!=null)for(var u=0,a=t.types;u<a.length;u++){var o=a[u];i.delete(o),Ze(o,i)}this._queryType!=null&&Ze(this._queryType,i),this._mutationType!=null&&Ze(this._mutationType,i),this._subscriptionType!=null&&Ze(this._subscriptionType,i);for(var s=0,c=this._directives;s<c.length;s++){var l=c[s];if($h(l))for(var f=0,m=l.args;f<m.length;f++){var d=m[f];Ze(d.type,i)}}Ze(Lu,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var v=0,h=dh(i);v<h.length;v++){var b=h[v];if(b!=null){var E=b.name;if(E||M(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[E]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(E,'".'));if(this._typeMap[E]=b,Fe(b))for(var g=0,k=b.getInterfaces();g<k.length;g++){var _=k[g];if(Fe(_)){var B=this._implementationsMap[_.name];B===void 0&&(B=this._implementationsMap[_.name]={objects:[],interfaces:[]}),B.interfaces.push(b)}}else if(Me(b))for(var J=0,q=b.getInterfaces();J<q.length;J++){var F=q[J];if(Fe(F)){var y=this._implementationsMap[F.name];y===void 0&&(y=this._implementationsMap[F.name]={objects:[],interfaces:[]}),y.objects.push(b)}}}}}var n=e.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(r){return this.getTypeMap()[r]},n.getPossibleTypes=function(r){return sn(r)?r.getTypes():this.getImplementations(r).objects},n.getImplementations=function(r){var i=this._implementationsMap[r.name];return i??{objects:[],interfaces:[]}},n.isPossibleType=function(r,i){return this.isSubType(r,i)},n.isSubType=function(r,i){var u=this._subTypeMap[r.name];if(u===void 0){if(u=Object.create(null),sn(r))for(var a=0,o=r.getTypes();a<o.length;a++){var s=o[a];u[s.name]=!0}else{for(var c=this.getImplementations(r),l=0,f=c.objects;l<f.length;l++){var m=f[l];u[m.name]=!0}for(var d=0,v=c.interfaces;d<v.length;d++){var h=v[d];u[h.name]=!0}}this._subTypeMap[r.name]=u}return u[i.name]!==void 0},n.getDirectives=function(){return this._directives},n.getDirective=function(r){return cc(this.getDirectives(),function(i){return i.name===r})},n.toConfig=function(){var r;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:_n(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[],assumeValid:this.__validationErrors!==void 0}},Uh(e,[{key:xe,get:function(){return"GraphQLSchema"}}]),e})();function Ze(e,n){var t=jt(e);if(!n.has(t)){if(n.add(t),sn(t))for(var r=0,i=t.getTypes();r<i.length;r++){var u=i[r];Ze(u,n)}else if(Me(t)||Fe(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++){var s=o[a];Ze(s,n)}for(var c=0,l=_n(t.getFields());c<l.length;c++){var f=l[c];Ze(f.type,n);for(var m=0,d=f.args;m<d.length;m++){var v=d[m];Ze(v.type,n)}}}else if(Cn(t))for(var h=0,b=_n(t.getFields());h<b.length;h++){var E=b[h];Ze(E.type,n)}}return n}function Ti(e,n){var t;if(n.kind===C.LIST_TYPE)return t=Ti(e,n.type),t&&new ce(t);if(n.kind===C.NON_NULL_TYPE)return t=Ti(e,n.type),t&&new L(t);if(n.kind===C.NAMED_TYPE)return e.getType(n.name.value);zt(0,"Unexpected type node: "+H(n))}var Ph=function(){function e(t,r,i){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??Rh,i&&(Mn(i)&&this._inputTypeStack.push(i),Uu(i)&&this._parentTypeStack.push(i),_i(i)&&this._typeStack.push(i))}var n=e.prototype;return n.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},n.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},n.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},n.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},n.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},n.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},n.getDirective=function(){return this._directive},n.getArgument=function(){return this._argument},n.getEnumValue=function(){return this._enumValue},n.enter=function(r){var i=this._schema;switch(r.kind){case C.SELECTION_SET:{var u=jt(this.getType());this._parentTypeStack.push(Uu(u)?u:void 0);break}case C.FIELD:{var a=this.getParentType(),o,s;a&&(o=this._getFieldDef(i,a,r),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(_i(s)?s:void 0);break}case C.DIRECTIVE:this._directive=i.getDirective(r.name.value);break;case C.OPERATION_DEFINITION:{var c;switch(r.operation){case"query":c=i.getQueryType();break;case"mutation":c=i.getMutationType();break;case"subscription":c=i.getSubscriptionType();break}this._typeStack.push(Me(c)?c:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{var l=r.typeCondition,f=l?Ti(i,l):jt(this.getType());this._typeStack.push(_i(f)?f:void 0);break}case C.VARIABLE_DEFINITION:{var m=Ti(i,r.type);this._inputTypeStack.push(Mn(m)?m:void 0);break}case C.ARGUMENT:{var d,v,h,b=(d=this.getDirective())!==null&&d!==void 0?d:this.getFieldDef();b&&(v=cc(b.args,function(F){return F.name===r.name.value}),v&&(h=v.type)),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(Mn(h)?h:void 0);break}case C.LIST:{var E=ah(this.getInputType()),g=Rt(E)?E.ofType:E;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Mn(g)?g:void 0);break}case C.OBJECT_FIELD:{var k=jt(this.getInputType()),_,B;Cn(k)&&(B=k.getFields()[r.name.value],B&&(_=B.type)),this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push(Mn(_)?_:void 0);break}case C.ENUM:{var J=jt(this.getInputType()),q;cn(J)&&(q=J.getValue(r.value)),this._enumValue=q;break}}},n.leave=function(r){switch(r.kind){case C.SELECTION_SET:this._parentTypeStack.pop();break;case C.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case C.DIRECTIVE:this._directive=null;break;case C.OPERATION_DEFINITION:case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:this._typeStack.pop();break;case C.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case C.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.LIST:case C.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.ENUM:this._enumValue=null;break}},e}();function Rh(e,n,t){var r=t.name.value;if(r===Ic.name&&e.getQueryType()===n)return Ic;if(r===xc.name&&e.getQueryType()===n)return xc;if(r===Fc.name&&Uu(n))return Fc;if(Me(n)||Fe(n))return n.getFields()[r]}function jh(e,n){return{enter:function(r){e.enter(r);var i=Nu(n,r.kind,!1);if(i){var u=i.apply(n,arguments);return u!==void 0&&(e.leave(r),Fu(u)&&e.enter(u)),u}},leave:function(r){var i=Nu(n,r.kind,!0),u;return i&&(u=i.apply(n,arguments)),e.leave(r),u}}}[].concat(Sc,Nc).map(function(e){return e.name});var dn;function Qn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}dn={},Qn(dn,C.SCALAR_TYPE_DEFINITION,C.SCALAR_TYPE_EXTENSION),Qn(dn,C.OBJECT_TYPE_DEFINITION,C.OBJECT_TYPE_EXTENSION),Qn(dn,C.INTERFACE_TYPE_DEFINITION,C.INTERFACE_TYPE_EXTENSION),Qn(dn,C.UNION_TYPE_DEFINITION,C.UNION_TYPE_EXTENSION),Qn(dn,C.ENUM_TYPE_DEFINITION,C.ENUM_TYPE_EXTENSION),Qn(dn,C.INPUT_OBJECT_TYPE_DEFINITION,C.INPUT_OBJECT_TYPE_EXTENSION);function Tc(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var Oc=function(){function e(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}var n=e.prototype;return n.reportError=function(r){this._onError(r)},n.getDocument=function(){return this._ast},n.getFragment=function(r){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(u,a){return a.kind===C.FRAGMENT_DEFINITION&&(u[a.name.value]=a),u},Object.create(null))),i[r]},n.getFragmentSpreads=function(r){var i=this._fragmentSpreads.get(r);if(!i){i=[];for(var u=[r];u.length!==0;)for(var a=u.pop(),o=0,s=a.selections;o<s.length;o++){var c=s[o];c.kind===C.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&u.push(c.selectionSet)}this._fragmentSpreads.set(r,i)}return i},n.getRecursivelyReferencedFragments=function(r){var i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];for(var u=Object.create(null),a=[r.selectionSet];a.length!==0;)for(var o=a.pop(),s=0,c=this.getFragmentSpreads(o);s<c.length;s++){var l=c[s],f=l.name.value;if(u[f]!==!0){u[f]=!0;var m=this.getFragment(f);m&&(i.push(m),a.push(m.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i},e}();(function(e){Tc(n,e);function n(r,i,u){var a;return a=e.call(this,r,u)||this,a._schema=i,a}var t=n.prototype;return t.getSchema=function(){return this._schema},n})(Oc),function(e){Tc(n,e);function n(r,i,u,a){var o;return o=e.call(this,i,a)||this,o._schema=r,o._typeInfo=u,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}var t=n.prototype;return t.getSchema=function(){return this._schema},t.getVariableUsages=function(i){var u=this._variableUsages.get(i);if(!u){var a=[],o=new Ph(this._schema);sc(i,jh(o,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),u=a,this._variableUsages.set(i,u)}return u},t.getRecursiveVariableUsages=function(i){var u=this._recursiveVariableUsages.get(i);if(!u){u=this.getVariableUsages(i);for(var a=0,o=this.getRecursivelyReferencedFragments(i);a<o.length;a++){var s=o[a];u=u.concat(this.getVariableUsages(s))}this._recursiveVariableUsages.set(i,u)}return u},t.getType=function(){return this._typeInfo.getType()},t.getParentType=function(){return this._typeInfo.getParentType()},t.getInputType=function(){return this._typeInfo.getInputType()},t.getParentInputType=function(){return this._typeInfo.getParentInputType()},t.getFieldDef=function(){return this._typeInfo.getFieldDef()},t.getDirective=function(){return this._typeInfo.getDirective()},t.getArgument=function(){return this._typeInfo.getArgument()},t.getEnumValue=function(){return this._typeInfo.getEnumValue()},n}(Oc),lc(Sc.concat(Nc),function(e){return e.name});const zc=e=>e instanceof Error?e:typeof e=="string"?new Error(e):new Error(String(e)),Lh=()=>typeof globalThis.window<"u"&&typeof globalThis.window.document<"u"&&typeof globalThis.navigator<"u",Zu={staging:{baseEndpoint:"https://api-staging.spritz.finance",graphEndpoint:"https://api-staging.spritz.finance/router/graph",restEndpoint:"https://sandbox.spritz.finance"},production:{baseEndpoint:"https://api.spritz.finance",graphEndpoint:"https://api.spritz.finance/router/graph",restEndpoint:"https://platform.spritz.finance"}},Zh=(e,n)=>{if(typeof n!="number"||!Number.isInteger(n))throw new Error(`${e} must be an integer`);if(n<0)throw new Error(`${e} must be a positive integer`);return n};function Uc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function we(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="string"?t:void 0}function Pc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="number"&&Number.isFinite(t)?t:void 0}function Rc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="boolean"?t:void 0}function jc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return t===null?null:typeof t=="string"?t:void 0}function Vh(e,n){const t=Object.hasOwn(e,n)?e[n]:void 0;if(!Array.isArray(t))return;const r=[];for(const i of t){if(!Uc(i))continue;const u=we(i,"field"),a=we(i,"message");if(u===void 0||a===void 0)continue;const o=we(i,"code");r.push({field:u,message:a,...o!==void 0?{code:o}:{}})}return r.length>0?r:void 0}function le(e,n,t){t!==void 0&&(e[n]=t)}function qh(e){if(!Uc(e))return;const n={};return le(n,"type",we(e,"type")),le(n,"title",we(e,"title")),le(n,"status",Pc(e,"status")),le(n,"detail",we(e,"detail")),le(n,"instance",we(e,"instance")),le(n,"code",we(e,"code")),le(n,"field",we(e,"field")),le(n,"errors",Vh(e,"errors")),le(n,"retryable",Rc(e,"retryable")),le(n,"retryAfter",Pc(e,"retryAfter")),le(n,"suggestedAction",we(e,"suggestedAction")),le(n,"clearsAt",jc(e,"clearsAt")),le(n,"availableAt",jc(e,"availableAt")),le(n,"permanent",Rc(e,"permanent")),le(n,"realm",we(e,"realm")),le(n,"scope",we(e,"scope")),le(n,"resourceType",we(e,"resourceType")),le(n,"resourceId",we(e,"resourceId")),Object.keys(n).length>0?n:void 0}function Mh(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Vu(e,n){if(!e||typeof e!="object"||!(n in e))return;const t=e[n];if(typeof t=="string"&&t.length>0)return t}class Lc extends Error{timestamp;headers;constructor(n,t){super(n),this.name="SpritzApiError",this.message=n,this.headers=t??{},this.timestamp=new Date().toISOString()}}class be extends Error{status;error;problem;headers;requestId;traceId;timestamp;constructor(n,t,r,i){super(be.makeMessage(t,r)),this.status=n,this.error=t,this.headers=i,this.timestamp=new Date().toISOString();const u=qh(t);u&&(this.problem=u);const a=i?.requestId;a&&(this.requestId=a);const o=i?.traceId;o&&(this.traceId=o)}static makeMessage(n,t){const r=Vu(n,"detail");if(r)return r;const i=Vu(n,"title");return i||Vu(n,"message")||(n!==void 0?Mh(n):t||"Unknown error occurred")}static generate(n,t,r,i){return n?n===400?new Vc(n,t,r,i):n===401?new qc(n,t,r,i):n===403?new Mc(n,t,r,i):n===404?new Gc(n,t,r,i):n===409?new Jc(n,t,r,i):n===422?new Hc(n,t,r,i):n===429?new Qc(n,t,r,i):n>=500?new Kc(n,t,r,i):new be(n,t,r,i):new Oi({cause:zc(t)})}}class Gh extends be{status=void 0;constructor({message:n}={}){super(void 0,void 0,n||"Request was aborted.",void 0)}}class Oi extends be{status=void 0;constructor({message:n,cause:t}){super(void 0,void 0,n||"Connection error.",void 0),t&&(this.cause=t)}}class Zc extends Oi{constructor(){super({message:"Request timed out."})}}class Vc extends be{name="BadRequestError";status=400}class qc extends be{name="AuthenticationError";status=401}class Mc extends be{name="PermissionDeniedError";status=403}class Gc extends be{name="NotFoundError";status=404}class Jc extends be{name="ConflictError";status=409}class Hc extends be{name="UnprocessableEntityError";status=422}class Qc extends be{name="RateLimitError";status=429}class Kc extends be{name="InternalServerError"}function qu(e){return e instanceof be}function Jh(e,n){return qu(e)&&e.problem?.type===n}function Hh(e,n){return qu(e)&&e.problem?.code===n}const Qh=e=>{try{return JSON.parse(e)}catch{return}},Wc=10,Yc=100;function Kh(e){if(!e||!e.definitions)throw new Error("Invalid GraphQL query: missing definitions");const n=e.definitions.filter(u=>u.kind==="OperationDefinition");if(n.length>1)throw new Error("Invalid GraphQL query: multiple operations not allowed");if(n.length===0)throw new Error("Invalid GraphQL query: no operation definition found");const t=n[0],r=Wh(t);if(r>Wc)throw new Error(`GraphQL query too deep: ${r} levels (max: ${Wc})`);const i=Yh(t);if(i>Yc)throw new Error(`GraphQL query too complex: ${i} fields (max: ${Yc})`);if(t.operation!=="query"&&t.operation!=="mutation")throw new Error(`Invalid GraphQL operation type: ${t.operation}`)}function Wh(e){function n(t){let r=0;for(const i of t.selections)if(i.kind==="Field"&&i.selectionSet){const u=1+n(i.selectionSet);r=Math.max(r,u)}else if(i.kind==="InlineFragment"&&i.selectionSet){const u=n(i.selectionSet);r=Math.max(r,u)}else i.kind==="FragmentSpread"&&(r=Math.max(r,1));return r}return n(e.selectionSet)}function Yh(e){function n(t){let r=0;for(const i of t.selections)r+=1,i.kind==="Field"&&i.selectionSet||i.kind==="InlineFragment"&&i.selectionSet?r+=n(i.selectionSet):i.kind==="FragmentSpread"&&(r+=5);return r}return n(e.selectionSet)}function Xh(e){if(!e)return;const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(!eg(t))throw new Error(`Invalid GraphQL variable name: ${t}`);if(t==="__proto__"||t==="constructor"||t==="prototype")throw new Error(`Invalid property name: ${t}`);n[t]=Mu(r)}return n}function eg(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function Xc(e){return Array.from(e).filter(n=>{const t=n.charCodeAt(0);return t>31&&t!==127}).join("")}function Mu(e){if(e==null)return e;if(typeof e=="string")return Xc(e);if(typeof e=="number"||typeof e=="boolean")return e;if(Array.isArray(e))return e.map(Mu);if(typeof e=="object"){const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(t.includes("__proto__")||t.includes("constructor"))throw new Error(`Invalid property name: ${t}`);n[t]=Mu(r)}return n}return Xc(String(e))}const ng="sha256=";function e0(e){return Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join("")}async function tg(e){const n=new TextEncoder().encode(e),t=await crypto.subtle.digest("SHA-256",n);return e0(t)}async function ig(e,n){const t=new TextEncoder,r=await crypto.subtle.importKey("raw",t.encode(e),{name:"HMAC",hash:"SHA-256"},!1,["sign"]),i=await crypto.subtle.sign("HMAC",r,t.encode(n));return e0(i)}const rg=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g,ug="\uFFFD";function ag(e){return e.replace(rg,n=>n.length===2?n:ug)}function n0(e){return encodeURIComponent(ag(e)).replace(/'/g,"%27")}function t0(e){const n=[...e];return n.length===0?"":n.sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>`${n0(t)}=${n0(r)}`).join("&")}function og(e){return t0(e.searchParams)}function sg(e){const n=og(e);return n===""?e.pathname:`${e.pathname}?${n}`}async function cg(e,n,t){const r=t.body?await tg(t.body):"",i=`${n}.${t.method.toUpperCase()}.${t.path}.${r}`,u=await ig(e,i);return`${ng}${u}`}async function lg(e,n,t,r,i){const u=new URL(r),a=sg(u),o=Date.now(),s=await cg(n,o,{method:t,path:a,body:i});return{"X-Integrator-Key":e,"X-Signature":s,"X-Timestamp":String(o)}}async function Gu(e){const{response:n}=e;return n.headers.get("content-type")?.includes("application/json")?{response:await n.json(),headers:e.headers}:{response:await n.text(),headers:e.headers}}class dg{baseGraphURL;baseRestURL;baseRestApiURL;timeout;apiKey;integrationKey;integratorSecret;constructor({environment:n,timeout:t=3e5,apiKey:r,integrationKey:i,integratorSecret:u}){this.apiKey=r,this.integrationKey=i,this.integratorSecret=u,this.baseGraphURL=Zu[n].graphEndpoint,this.baseRestURL=Zu[n].baseEndpoint,this.baseRestApiURL=Zu[n].restEndpoint,this.timeout=Zh("timeout",t)}async query({query:n,variables:t}){Kh(n);const r=Xh(t);return this.sendQuery({query:n,variables:r}).then(i=>Gu(i)).then(({response:i,headers:u})=>{if(i.data)return i.data;if(i.errors){const a=i.errors[0]??{message:"Unknown error"};throw new Lc(a.message,u)}else throw new Error("Unknown error")})}async request({method:n,path:t,body:r=void 0}){return this.sendRequest({method:n,path:t,body:r}).then(i=>Gu(i)).then(({response:i})=>i)}get usesIntegratorAuth(){return!!(this.integrationKey&&this.integratorSecret)}async restApi({method:n,path:t,body:r=void 0,query:i,headers:u}){return this.sendRestApiRequest({method:n,path:t,body:r,...i?{query:i}:{},...u?{headers:u}:{}}).then(a=>Gu(a)).then(({response:a})=>a)}async sendQuery({query:n,variables:t}){const{url:r,req:i,timeout:u}=this.buildGraphRequest({query:n,variables:t});return this.sendHTTPRequest({url:r,req:i,timeout:u})}async sendRequest({method:n,path:t,body:r}){const{url:i,req:u,timeout:a}=this.buildRestRequest(n,t,r);return this.sendHTTPRequest({url:i,req:u,timeout:a})}async sendRestApiRequest({method:n,path:t,body:r,query:i,headers:u}){const{url:a,req:o,timeout:s}=this.buildRestRequest(n,t,r,this.baseRestApiURL,i,u);if(this.integrationKey&&this.integratorSecret){const c=await lg(this.integrationKey,this.integratorSecret,n,a,o.body??null),{"X-INTEGRATION-KEY":l,...f}=o.headers;o.headers={...f,...c}}return this.sendHTTPRequest({url:a,req:o,timeout:s})}async sendHTTPRequest({url:n,req:t,timeout:r}){const i=new AbortController,u=await this.fetchWithTimeout(n,t,r,i).catch(zc);if(u instanceof Error)throw u.name==="AbortError"?new Zc:new Oi({cause:u});const a=this.getResponseHeaders(u.headers);if(!u.ok){const o=await u.text().catch(()=>"Unknown error"),s=Qh(o);throw this.makeStatusError(u.status,s,s?void 0:o,a)}return{response:u,controller:i,headers:a}}getResponseHeaders(n){const t=n.get("x-amzn-trace-id"),r=n.get("x-amzn-requestid");return{traceId:t,requestId:r}}async fetchWithTimeout(n,t,r,i){const{signal:u,...a}=t||{},o=AbortSignal.timeout(r),s=u?AbortSignal.any([u,o,i.signal]):AbortSignal.any([o,i.signal]);return fetch(n,{...a,signal:s})}buildGraphRequest({query:n,variables:t}){const r={query:We(n),variables:t,operationName:n?.definitions?.[0]?.name?.value},i=r?JSON.stringify(r,null,2):null,u=this.calculateContentLength(i),a=this.timeout,o={...u&&{"Content-Length":u},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:"POST",...i?{body:i}:{},headers:s};return{url:this.baseGraphURL,req:c,timeout:a}}buildRestRequest(n,t,r,i,u,a){const o=r?JSON.stringify(r):null,s=this.calculateContentLength(o),c=this.timeout,l={...s&&{"Content-Length":s},...this.defaultHeaders(),...a??{}},f=Object.fromEntries(Object.entries(l).filter(([b,E])=>E!==null)),m={method:n,...o?{body:o}:{},headers:f},d=i??this.baseRestURL,v=t.startsWith("/")?t:"/"+t,h=new URL(v,d);if(u){const b=Object.entries(u).filter(g=>g[1]!==void 0).map(([g,k])=>[g,String(k)]),E=t0(b);E&&(h.search=`?${E}`)}return{url:h.toString(),req:m,timeout:c}}defaultHeaders(){return{Accept:"application/json","Content-Type":"application/json",...this.authHeaders()}}calculateContentLength(n){if(typeof n=="string"){if(typeof Buffer<"u")return Buffer.byteLength(n,"utf8").toString();if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length.toString()}return null}authHeaders(){return{Authorization:"Bearer "+this.apiKey,...this.integrationKey?{"X-INTEGRATION-KEY":this.integrationKey}:{}}}makeStatusError(n,t,r,i){return be.generate(n,t,r,i)}}function fg(e){if(!(!e||typeof e!="object"))return e}function mg(e,n){return e.replace(/\{([^}]+)\}/g,(t,r)=>{if(!n||!(r in n))throw new Error(`Missing path parameter: ${r}`);const i=n[r];if(i==null)throw new Error(`Missing path parameter: ${r}`);return encodeURIComponent(String(i))})}function vg(e){if(!e)return;const n=[];for(const[t,r]of Object.entries(e))if(r!==void 0){if(typeof r!="string"&&typeof r!="number"&&typeof r!="boolean")throw new Error(`Unsupported query parameter value for ${t}`);n.push([t,r])}return n.length>0?Object.fromEntries(n):void 0}function pg(e){if(!e)return;const n=[];for(const[t,r]of Object.entries(e))if(r!==void 0){if(typeof r!="string"||r.length===0)throw new Error(`Unsupported header value for ${t}`);n.push([t,r])}return n.length>0?Object.fromEntries(n):void 0}function z(e,n,...[t]){const r=fg(t?.params),i=mg(e,r),u=vg(t?.query),a=pg(t?.headers),o=t?.body;return{method:n,path:i,...o!==void 0?{body:o}:{},...u?{query:u}:{},...a?{headers:a}:{}}}class hg{client;constructor(n){this.client=n}async checkEligibility(n){return this.client.restApi(z("/v1/ach-debit/eligibility","post",{body:n}))}}class gg{client;constructor(n){this.client=n}async list(n){return this.client.restApi(z("/v1/integrator/ach-debit/returns","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(z("/v1/integrator/ach-debit/returns/{returnId}","get",{params:{returnId:n}}))}}class Eg{client;constructor(n){this.client=n}async list(){return this.client.restApi(z("/v1/bank-accounts/","get"))}async get(n){return this.client.restApi(z("/v1/bank-accounts/{accountId}","get",{params:{accountId:n}}))}async create(n){return this.client.restApi(z("/v1/bank-accounts/","post",{body:n}))}async delete(n){return this.client.restApi(z("/v1/bank-accounts/{accountId}","delete",{params:{accountId:n}}))}async createLinkToken(n){return this.client.restApi(z("/v1/bank-accounts/link-token","post",n?{body:n}:void 0))}async completeLinking(n){return this.client.restApi(z("/v1/bank-accounts/link-complete","post",{body:n}))}}var qt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BillFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:588}};qt.loc.source={body:`fragment BillFragment on Bill {
42
+ In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},isRepeatable:{type:new L(Ne),resolve:function(t){return t.isRepeatable}},locations:{type:new L(new ce(new L(wc))),resolve:function(t){return t.locations}},args:{type:new L(new ce(new L(Ni))),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;return i?t.args:t.args.filter(function(u){return u.deprecationReason==null})}}}}}),wc=new $i({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:K.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:K.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:K.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:K.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:K.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:K.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:K.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:K.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:K.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:K.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:K.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:K.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:K.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:K.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:K.UNION,description:"Location adjacent to a union definition."},ENUM:{value:K.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:K.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:K.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:K.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Le=new ln({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new L($c),resolve:function(t){if(Pt(t))return me.SCALAR;if(Me(t))return me.OBJECT;if(Fe(t))return me.INTERFACE;if(sn(t))return me.UNION;if(cn(t))return me.ENUM;if(Cn(t))return me.INPUT_OBJECT;if(Rt(t))return me.LIST;if(qn(t))return me.NON_NULL;zt(0,'Unexpected type: "'.concat(H(t),'".'))}},name:{type:ie,resolve:function(t){return t.name!==void 0?t.name:void 0}},description:{type:ie,resolve:function(t){return t.description!==void 0?t.description:void 0}},specifiedByUrl:{type:ie,resolve:function(t){return t.specifiedByUrl!==void 0?t.specifiedByUrl:void 0}},fields:{type:new ce(new L(_c)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Me(t)||Fe(t)){var u=_n(t.getFields());return i?u:u.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new ce(new L(Le)),resolve:function(t){if(Me(t)||Fe(t))return t.getInterfaces()}},possibleTypes:{type:new ce(new L(Le)),resolve:function(t,r,i,u){var a=u.schema;if(sh(t))return a.getPossibleTypes(t)}},enumValues:{type:new ce(new L(Cc)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(cn(t)){var u=t.getValues();return i?u:u.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new ce(new L(Ni)),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;if(Cn(t)){var u=_n(t.getFields());return i?u:u.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Le,resolve:function(t){return t.ofType!==void 0?t.ofType:void 0}}}}}),_c=new ln({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},args:{type:new L(new ce(new L(Ni))),args:{includeDeprecated:{type:Ne,defaultValue:!1}},resolve:function(t,r){var i=r.includeDeprecated;return i?t.args:t.args.filter(function(u){return u.deprecationReason==null})}},type:{type:new L(Le),resolve:function(t){return t.type}},isDeprecated:{type:new L(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),Ni=new ln({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},type:{type:new L(Le),resolve:function(t){return t.type}},defaultValue:{type:ie,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var r=t.type,i=t.defaultValue,u=Vt(i,r);return u?We(u):null}},isDeprecated:{type:new L(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),Cc=new ln({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new L(ie),resolve:function(t){return t.name}},description:{type:ie,resolve:function(t){return t.description}},isDeprecated:{type:new L(Ne),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:ie,resolve:function(t){return t.deprecationReason}}}}}),me=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),$c=new $i({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:me.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:me.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:me.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:me.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:me.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:me.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:me.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:me.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Ic={name:"__schema",type:new L(Lu),description:"Access the current type schema of this server.",args:[],resolve:function(n,t,r,i){var u=i.schema;return u},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},xc={name:"__type",type:Le,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new L(ie),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(n,t,r,i){var u=t.name,a=i.schema;return a.getType(u)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Fc={name:"__typename",type:new L(ie),description:"The name of the current Object type at runtime.",args:[],resolve:function(n,t,r,i){var u=i.parentType;return u.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Nc=Object.freeze([Lu,Ac,wc,Le,_c,Ni,Cc,$c]);function Fh(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nh(e,n,t){return n&&Fh(e.prototype,n),e}function Th(e){return Ke(e,Hn)}var Hn=function(){function e(t){var r,i;this.name=t.name,this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,t.name||M(0,"Directive must be named."),Array.isArray(t.locations)||M(0,"@".concat(t.name," locations must be an Array."));var u=(i=t.args)!==null&&i!==void 0?i:{};wn(u)&&!Array.isArray(u)||M(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Ut(u).map(function(a){var o=a[0],s=a[1];return{name:o,description:s.description,type:s.type,defaultValue:s.defaultValue,deprecationReason:s.deprecationReason,extensions:s.extensions&&$e(s.extensions),astNode:s.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Ec(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},Nh(e,[{key:xe,get:function(){return"GraphQLDirective"}}]),e}();Pe(Hn);var Oh=new Hn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new L(Ne),description:"Included when true."}}}),zh=new Hn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[K.FIELD,K.FRAGMENT_SPREAD,K.INLINE_FRAGMENT],args:{if:{type:new L(Ne),description:"Skipped when true."}}}),Uh="No longer supported",Ph=new Hn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[K.FIELD_DEFINITION,K.ARGUMENT_DEFINITION,K.INPUT_FIELD_DEFINITION,K.ENUM_VALUE],args:{reason:{type:ie,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Uh}}}),Rh=new Hn({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[K.SCALAR],args:{url:{type:new L(ie),description:"The URL that specifies the behaviour of this scalar."}}}),jh=Object.freeze([Oh,zh,Ph,Rh]);function Lh(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zh(e,n,t){return n&&Lh(e.prototype,n),e}(function(){function e(t){var r;this.__validationErrors=t.assumeValid===!0?[]:void 0,wn(t)||M(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||M(0,'"types" must be Array if provided but got: '.concat(H(t.types),".")),!t.directives||Array.isArray(t.directives)||M(0,'"directives" must be Array if provided but got: '+"".concat(H(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&$e(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=t.extensionASTNodes,this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:jh;var i=new Set(t.types);if(t.types!=null)for(var u=0,a=t.types;u<a.length;u++){var o=a[u];i.delete(o),Ze(o,i)}this._queryType!=null&&Ze(this._queryType,i),this._mutationType!=null&&Ze(this._mutationType,i),this._subscriptionType!=null&&Ze(this._subscriptionType,i);for(var s=0,c=this._directives;s<c.length;s++){var l=c[s];if(Th(l))for(var f=0,m=l.args;f<m.length;f++){var d=m[f];Ze(d.type,i)}}Ze(Lu,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var v=0,h=hh(i);v<h.length;v++){var b=h[v];if(b!=null){var E=b.name;if(E||M(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[E]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(E,'".'));if(this._typeMap[E]=b,Fe(b))for(var g=0,k=b.getInterfaces();g<k.length;g++){var _=k[g];if(Fe(_)){var B=this._implementationsMap[_.name];B===void 0&&(B=this._implementationsMap[_.name]={objects:[],interfaces:[]}),B.interfaces.push(b)}}else if(Me(b))for(var J=0,q=b.getInterfaces();J<q.length;J++){var F=q[J];if(Fe(F)){var y=this._implementationsMap[F.name];y===void 0&&(y=this._implementationsMap[F.name]={objects:[],interfaces:[]}),y.objects.push(b)}}}}}var n=e.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(r){return this.getTypeMap()[r]},n.getPossibleTypes=function(r){return sn(r)?r.getTypes():this.getImplementations(r).objects},n.getImplementations=function(r){var i=this._implementationsMap[r.name];return i??{objects:[],interfaces:[]}},n.isPossibleType=function(r,i){return this.isSubType(r,i)},n.isSubType=function(r,i){var u=this._subTypeMap[r.name];if(u===void 0){if(u=Object.create(null),sn(r))for(var a=0,o=r.getTypes();a<o.length;a++){var s=o[a];u[s.name]=!0}else{for(var c=this.getImplementations(r),l=0,f=c.objects;l<f.length;l++){var m=f[l];u[m.name]=!0}for(var d=0,v=c.interfaces;d<v.length;d++){var h=v[d];u[h.name]=!0}}this._subTypeMap[r.name]=u}return u[i.name]!==void 0},n.getDirectives=function(){return this._directives},n.getDirective=function(r){return cc(this.getDirectives(),function(i){return i.name===r})},n.toConfig=function(){var r;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:_n(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[],assumeValid:this.__validationErrors!==void 0}},Zh(e,[{key:xe,get:function(){return"GraphQLSchema"}}]),e})();function Ze(e,n){var t=jt(e);if(!n.has(t)){if(n.add(t),sn(t))for(var r=0,i=t.getTypes();r<i.length;r++){var u=i[r];Ze(u,n)}else if(Me(t)||Fe(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++){var s=o[a];Ze(s,n)}for(var c=0,l=_n(t.getFields());c<l.length;c++){var f=l[c];Ze(f.type,n);for(var m=0,d=f.args;m<d.length;m++){var v=d[m];Ze(v.type,n)}}}else if(Cn(t))for(var h=0,b=_n(t.getFields());h<b.length;h++){var E=b[h];Ze(E.type,n)}}return n}function Ti(e,n){var t;if(n.kind===C.LIST_TYPE)return t=Ti(e,n.type),t&&new ce(t);if(n.kind===C.NON_NULL_TYPE)return t=Ti(e,n.type),t&&new L(t);if(n.kind===C.NAMED_TYPE)return e.getType(n.name.value);zt(0,"Unexpected type node: "+H(n))}var Vh=function(){function e(t,r,i){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??qh,i&&(Mn(i)&&this._inputTypeStack.push(i),Uu(i)&&this._parentTypeStack.push(i),_i(i)&&this._typeStack.push(i))}var n=e.prototype;return n.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},n.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},n.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},n.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},n.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},n.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},n.getDirective=function(){return this._directive},n.getArgument=function(){return this._argument},n.getEnumValue=function(){return this._enumValue},n.enter=function(r){var i=this._schema;switch(r.kind){case C.SELECTION_SET:{var u=jt(this.getType());this._parentTypeStack.push(Uu(u)?u:void 0);break}case C.FIELD:{var a=this.getParentType(),o,s;a&&(o=this._getFieldDef(i,a,r),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(_i(s)?s:void 0);break}case C.DIRECTIVE:this._directive=i.getDirective(r.name.value);break;case C.OPERATION_DEFINITION:{var c;switch(r.operation){case"query":c=i.getQueryType();break;case"mutation":c=i.getMutationType();break;case"subscription":c=i.getSubscriptionType();break}this._typeStack.push(Me(c)?c:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{var l=r.typeCondition,f=l?Ti(i,l):jt(this.getType());this._typeStack.push(_i(f)?f:void 0);break}case C.VARIABLE_DEFINITION:{var m=Ti(i,r.type);this._inputTypeStack.push(Mn(m)?m:void 0);break}case C.ARGUMENT:{var d,v,h,b=(d=this.getDirective())!==null&&d!==void 0?d:this.getFieldDef();b&&(v=cc(b.args,function(F){return F.name===r.name.value}),v&&(h=v.type)),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push(Mn(h)?h:void 0);break}case C.LIST:{var E=dh(this.getInputType()),g=Rt(E)?E.ofType:E;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Mn(g)?g:void 0);break}case C.OBJECT_FIELD:{var k=jt(this.getInputType()),_,B;Cn(k)&&(B=k.getFields()[r.name.value],B&&(_=B.type)),this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push(Mn(_)?_:void 0);break}case C.ENUM:{var J=jt(this.getInputType()),q;cn(J)&&(q=J.getValue(r.value)),this._enumValue=q;break}}},n.leave=function(r){switch(r.kind){case C.SELECTION_SET:this._parentTypeStack.pop();break;case C.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case C.DIRECTIVE:this._directive=null;break;case C.OPERATION_DEFINITION:case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:this._typeStack.pop();break;case C.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case C.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.LIST:case C.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case C.ENUM:this._enumValue=null;break}},e}();function qh(e,n,t){var r=t.name.value;if(r===Ic.name&&e.getQueryType()===n)return Ic;if(r===xc.name&&e.getQueryType()===n)return xc;if(r===Fc.name&&Uu(n))return Fc;if(Me(n)||Fe(n))return n.getFields()[r]}function Mh(e,n){return{enter:function(r){e.enter(r);var i=Nu(n,r.kind,!1);if(i){var u=i.apply(n,arguments);return u!==void 0&&(e.leave(r),Fu(u)&&e.enter(u)),u}},leave:function(r){var i=Nu(n,r.kind,!0),u;return i&&(u=i.apply(n,arguments)),e.leave(r),u}}}[].concat(Sc,Nc).map(function(e){return e.name});var dn;function Qn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}dn={},Qn(dn,C.SCALAR_TYPE_DEFINITION,C.SCALAR_TYPE_EXTENSION),Qn(dn,C.OBJECT_TYPE_DEFINITION,C.OBJECT_TYPE_EXTENSION),Qn(dn,C.INTERFACE_TYPE_DEFINITION,C.INTERFACE_TYPE_EXTENSION),Qn(dn,C.UNION_TYPE_DEFINITION,C.UNION_TYPE_EXTENSION),Qn(dn,C.ENUM_TYPE_DEFINITION,C.ENUM_TYPE_EXTENSION),Qn(dn,C.INPUT_OBJECT_TYPE_DEFINITION,C.INPUT_OBJECT_TYPE_EXTENSION);function Tc(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var Oc=function(){function e(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}var n=e.prototype;return n.reportError=function(r){this._onError(r)},n.getDocument=function(){return this._ast},n.getFragment=function(r){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(u,a){return a.kind===C.FRAGMENT_DEFINITION&&(u[a.name.value]=a),u},Object.create(null))),i[r]},n.getFragmentSpreads=function(r){var i=this._fragmentSpreads.get(r);if(!i){i=[];for(var u=[r];u.length!==0;)for(var a=u.pop(),o=0,s=a.selections;o<s.length;o++){var c=s[o];c.kind===C.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&u.push(c.selectionSet)}this._fragmentSpreads.set(r,i)}return i},n.getRecursivelyReferencedFragments=function(r){var i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];for(var u=Object.create(null),a=[r.selectionSet];a.length!==0;)for(var o=a.pop(),s=0,c=this.getFragmentSpreads(o);s<c.length;s++){var l=c[s],f=l.name.value;if(u[f]!==!0){u[f]=!0;var m=this.getFragment(f);m&&(i.push(m),a.push(m.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i},e}();(function(e){Tc(n,e);function n(r,i,u){var a;return a=e.call(this,r,u)||this,a._schema=i,a}var t=n.prototype;return t.getSchema=function(){return this._schema},n})(Oc),function(e){Tc(n,e);function n(r,i,u,a){var o;return o=e.call(this,i,a)||this,o._schema=r,o._typeInfo=u,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}var t=n.prototype;return t.getSchema=function(){return this._schema},t.getVariableUsages=function(i){var u=this._variableUsages.get(i);if(!u){var a=[],o=new Vh(this._schema);sc(i,Mh(o,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),u=a,this._variableUsages.set(i,u)}return u},t.getRecursiveVariableUsages=function(i){var u=this._recursiveVariableUsages.get(i);if(!u){u=this.getVariableUsages(i);for(var a=0,o=this.getRecursivelyReferencedFragments(i);a<o.length;a++){var s=o[a];u=u.concat(this.getVariableUsages(s))}this._recursiveVariableUsages.set(i,u)}return u},t.getType=function(){return this._typeInfo.getType()},t.getParentType=function(){return this._typeInfo.getParentType()},t.getInputType=function(){return this._typeInfo.getInputType()},t.getParentInputType=function(){return this._typeInfo.getParentInputType()},t.getFieldDef=function(){return this._typeInfo.getFieldDef()},t.getDirective=function(){return this._typeInfo.getDirective()},t.getArgument=function(){return this._typeInfo.getArgument()},t.getEnumValue=function(){return this._typeInfo.getEnumValue()},n}(Oc),lc(Sc.concat(Nc),function(e){return e.name});const zc=e=>e instanceof Error?e:typeof e=="string"?new Error(e):new Error(String(e)),Gh=()=>typeof globalThis.window<"u"&&typeof globalThis.window.document<"u"&&typeof globalThis.navigator<"u",Zu={staging:{baseEndpoint:"https://api-staging.spritz.finance",graphEndpoint:"https://api-staging.spritz.finance/router/graph",restEndpoint:"https://sandbox.spritz.finance"},production:{baseEndpoint:"https://api.spritz.finance",graphEndpoint:"https://api.spritz.finance/router/graph",restEndpoint:"https://platform.spritz.finance"}},Jh=(e,n)=>{if(typeof n!="number"||!Number.isInteger(n))throw new Error(`${e} must be an integer`);if(n<0)throw new Error(`${e} must be a positive integer`);return n};function Uc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function we(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="string"?t:void 0}function Pc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="number"&&Number.isFinite(t)?t:void 0}function Rc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return typeof t=="boolean"?t:void 0}function jc(e,n){if(!Object.hasOwn(e,n))return;const t=e[n];return t===null?null:typeof t=="string"?t:void 0}function Hh(e,n){const t=Object.hasOwn(e,n)?e[n]:void 0;if(!Array.isArray(t))return;const r=[];for(const i of t){if(!Uc(i))continue;const u=we(i,"field"),a=we(i,"message");if(u===void 0||a===void 0)continue;const o=we(i,"code");r.push({field:u,message:a,...o!==void 0?{code:o}:{}})}return r.length>0?r:void 0}function le(e,n,t){t!==void 0&&(e[n]=t)}function Qh(e){if(!Uc(e))return;const n={};return le(n,"type",we(e,"type")),le(n,"title",we(e,"title")),le(n,"status",Pc(e,"status")),le(n,"detail",we(e,"detail")),le(n,"instance",we(e,"instance")),le(n,"code",we(e,"code")),le(n,"field",we(e,"field")),le(n,"errors",Hh(e,"errors")),le(n,"retryable",Rc(e,"retryable")),le(n,"retryAfter",Pc(e,"retryAfter")),le(n,"suggestedAction",we(e,"suggestedAction")),le(n,"clearsAt",jc(e,"clearsAt")),le(n,"availableAt",jc(e,"availableAt")),le(n,"permanent",Rc(e,"permanent")),le(n,"realm",we(e,"realm")),le(n,"scope",we(e,"scope")),le(n,"resourceType",we(e,"resourceType")),le(n,"resourceId",we(e,"resourceId")),Object.keys(n).length>0?n:void 0}function Kh(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Vu(e,n){if(!e||typeof e!="object"||!(n in e))return;const t=e[n];if(typeof t=="string"&&t.length>0)return t}class Lc extends Error{timestamp;headers;constructor(n,t){super(n),this.name="SpritzApiError",this.message=n,this.headers=t??{},this.timestamp=new Date().toISOString()}}class be extends Error{status;error;problem;headers;requestId;traceId;timestamp;constructor(n,t,r,i){super(be.makeMessage(t,r)),this.status=n,this.error=t,this.headers=i,this.timestamp=new Date().toISOString();const u=Qh(t);u&&(this.problem=u);const a=i?.requestId;a&&(this.requestId=a);const o=i?.traceId;o&&(this.traceId=o)}static makeMessage(n,t){const r=Vu(n,"detail");if(r)return r;const i=Vu(n,"title");return i||Vu(n,"message")||(n!==void 0?Kh(n):t||"Unknown error occurred")}static generate(n,t,r,i){return n?n===400?new Vc(n,t,r,i):n===401?new qc(n,t,r,i):n===403?new Mc(n,t,r,i):n===404?new Gc(n,t,r,i):n===409?new Jc(n,t,r,i):n===422?new Hc(n,t,r,i):n===429?new Qc(n,t,r,i):n>=500?new Kc(n,t,r,i):new be(n,t,r,i):new Oi({cause:zc(t)})}}class Wh extends be{status=void 0;constructor({message:n}={}){super(void 0,void 0,n||"Request was aborted.",void 0)}}class Oi extends be{status=void 0;constructor({message:n,cause:t}){super(void 0,void 0,n||"Connection error.",void 0),t&&(this.cause=t)}}class Zc extends Oi{constructor(){super({message:"Request timed out."})}}class Vc extends be{name="BadRequestError";status=400}class qc extends be{name="AuthenticationError";status=401}class Mc extends be{name="PermissionDeniedError";status=403}class Gc extends be{name="NotFoundError";status=404}class Jc extends be{name="ConflictError";status=409}class Hc extends be{name="UnprocessableEntityError";status=422}class Qc extends be{name="RateLimitError";status=429}class Kc extends be{name="InternalServerError"}function qu(e){return e instanceof be}function Yh(e,n){return qu(e)&&e.problem?.type===n}function Xh(e,n){return qu(e)&&e.problem?.code===n}const eg=e=>{try{return JSON.parse(e)}catch{return}},Wc=10,Yc=100;function ng(e){if(!e||!e.definitions)throw new Error("Invalid GraphQL query: missing definitions");const n=e.definitions.filter(u=>u.kind==="OperationDefinition");if(n.length>1)throw new Error("Invalid GraphQL query: multiple operations not allowed");if(n.length===0)throw new Error("Invalid GraphQL query: no operation definition found");const t=n[0],r=tg(t);if(r>Wc)throw new Error(`GraphQL query too deep: ${r} levels (max: ${Wc})`);const i=ig(t);if(i>Yc)throw new Error(`GraphQL query too complex: ${i} fields (max: ${Yc})`);if(t.operation!=="query"&&t.operation!=="mutation")throw new Error(`Invalid GraphQL operation type: ${t.operation}`)}function tg(e){function n(t){let r=0;for(const i of t.selections)if(i.kind==="Field"&&i.selectionSet){const u=1+n(i.selectionSet);r=Math.max(r,u)}else if(i.kind==="InlineFragment"&&i.selectionSet){const u=n(i.selectionSet);r=Math.max(r,u)}else i.kind==="FragmentSpread"&&(r=Math.max(r,1));return r}return n(e.selectionSet)}function ig(e){function n(t){let r=0;for(const i of t.selections)r+=1,i.kind==="Field"&&i.selectionSet||i.kind==="InlineFragment"&&i.selectionSet?r+=n(i.selectionSet):i.kind==="FragmentSpread"&&(r+=5);return r}return n(e.selectionSet)}function rg(e){if(!e)return;const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(!ug(t))throw new Error(`Invalid GraphQL variable name: ${t}`);if(t==="__proto__"||t==="constructor"||t==="prototype")throw new Error(`Invalid property name: ${t}`);n[t]=Mu(r)}return n}function ug(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function Xc(e){return Array.from(e).filter(n=>{const t=n.charCodeAt(0);return t>31&&t!==127}).join("")}function Mu(e){if(e==null)return e;if(typeof e=="string")return Xc(e);if(typeof e=="number"||typeof e=="boolean")return e;if(Array.isArray(e))return e.map(Mu);if(typeof e=="object"){const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(t.includes("__proto__")||t.includes("constructor"))throw new Error(`Invalid property name: ${t}`);n[t]=Mu(r)}return n}return Xc(String(e))}const ag="sha256=";function e0(e){return Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join("")}async function og(e){const n=new TextEncoder().encode(e),t=await crypto.subtle.digest("SHA-256",n);return e0(t)}async function sg(e,n){const t=new TextEncoder,r=await crypto.subtle.importKey("raw",t.encode(e),{name:"HMAC",hash:"SHA-256"},!1,["sign"]),i=await crypto.subtle.sign("HMAC",r,t.encode(n));return e0(i)}const cg=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g,lg="\uFFFD";function dg(e){return e.replace(cg,n=>n.length===2?n:lg)}function n0(e){return encodeURIComponent(dg(e)).replace(/'/g,"%27")}function t0(e){const n=[...e];return n.length===0?"":n.sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>`${n0(t)}=${n0(r)}`).join("&")}function fg(e){return t0(e.searchParams)}function mg(e){const n=fg(e);return n===""?e.pathname:`${e.pathname}?${n}`}async function vg(e,n,t){const r=t.body?await og(t.body):"",i=`${n}.${t.method.toUpperCase()}.${t.path}.${r}`,u=await sg(e,i);return`${ag}${u}`}async function pg(e,n,t,r,i){const u=new URL(r),a=mg(u),o=Date.now(),s=await vg(n,o,{method:t,path:a,body:i});return{"X-Integrator-Key":e,"X-Signature":s,"X-Timestamp":String(o)}}async function Gu(e){const{response:n}=e;return n.headers.get("content-type")?.includes("application/json")?{response:await n.json(),headers:e.headers}:{response:await n.text(),headers:e.headers}}class hg{baseGraphURL;baseRestURL;baseRestApiURL;timeout;apiKey;integrationKey;integratorSecret;constructor({environment:n,timeout:t=3e5,apiKey:r,integrationKey:i,integratorSecret:u}){this.apiKey=r,this.integrationKey=i,this.integratorSecret=u,this.baseGraphURL=Zu[n].graphEndpoint,this.baseRestURL=Zu[n].baseEndpoint,this.baseRestApiURL=Zu[n].restEndpoint,this.timeout=Jh("timeout",t)}async query({query:n,variables:t}){ng(n);const r=rg(t);return this.sendQuery({query:n,variables:r}).then(i=>Gu(i)).then(({response:i,headers:u})=>{if(i.data)return i.data;if(i.errors){const a=i.errors[0]??{message:"Unknown error"};throw new Lc(a.message,u)}else throw new Error("Unknown error")})}async request({method:n,path:t,body:r=void 0}){return this.sendRequest({method:n,path:t,body:r}).then(i=>Gu(i)).then(({response:i})=>i)}get usesIntegratorAuth(){return!!(this.integrationKey&&this.integratorSecret)}async restApi({method:n,path:t,body:r=void 0,query:i,headers:u}){return this.sendRestApiRequest({method:n,path:t,body:r,...i?{query:i}:{},...u?{headers:u}:{}}).then(a=>Gu(a)).then(({response:a})=>a)}async sendQuery({query:n,variables:t}){const{url:r,req:i,timeout:u}=this.buildGraphRequest({query:n,variables:t});return this.sendHTTPRequest({url:r,req:i,timeout:u})}async sendRequest({method:n,path:t,body:r}){const{url:i,req:u,timeout:a}=this.buildRestRequest(n,t,r);return this.sendHTTPRequest({url:i,req:u,timeout:a})}async sendRestApiRequest({method:n,path:t,body:r,query:i,headers:u}){const{url:a,req:o,timeout:s}=this.buildRestRequest(n,t,r,this.baseRestApiURL,i,u);if(this.integrationKey&&this.integratorSecret){const c=await pg(this.integrationKey,this.integratorSecret,n,a,o.body??null),{"X-INTEGRATION-KEY":l,...f}=o.headers;o.headers={...f,...c}}return this.sendHTTPRequest({url:a,req:o,timeout:s})}async sendHTTPRequest({url:n,req:t,timeout:r}){const i=new AbortController,u=await this.fetchWithTimeout(n,t,r,i).catch(zc);if(u instanceof Error)throw u.name==="AbortError"?new Zc:new Oi({cause:u});const a=this.getResponseHeaders(u.headers);if(!u.ok){const o=await u.text().catch(()=>"Unknown error"),s=eg(o);throw this.makeStatusError(u.status,s,s?void 0:o,a)}return{response:u,controller:i,headers:a}}getResponseHeaders(n){const t=n.get("x-amzn-trace-id"),r=n.get("x-amzn-requestid");return{traceId:t,requestId:r}}async fetchWithTimeout(n,t,r,i){const{signal:u,...a}=t||{},o=AbortSignal.timeout(r),s=u?AbortSignal.any([u,o,i.signal]):AbortSignal.any([o,i.signal]);return fetch(n,{...a,signal:s})}buildGraphRequest({query:n,variables:t}){const r={query:We(n),variables:t,operationName:n?.definitions?.[0]?.name?.value},i=r?JSON.stringify(r,null,2):null,u=this.calculateContentLength(i),a=this.timeout,o={...u&&{"Content-Length":u},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:"POST",...i?{body:i}:{},headers:s};return{url:this.baseGraphURL,req:c,timeout:a}}buildRestRequest(n,t,r,i,u,a){const o=r?JSON.stringify(r):null,s=this.calculateContentLength(o),c=this.timeout,l={...s&&{"Content-Length":s},...this.defaultHeaders(),...a??{}},f=Object.fromEntries(Object.entries(l).filter(([b,E])=>E!==null)),m={method:n,...o?{body:o}:{},headers:f},d=i??this.baseRestURL,v=t.startsWith("/")?t:"/"+t,h=new URL(v,d);if(u){const b=Object.entries(u).filter(g=>g[1]!==void 0).map(([g,k])=>[g,String(k)]),E=t0(b);E&&(h.search=`?${E}`)}return{url:h.toString(),req:m,timeout:c}}defaultHeaders(){return{Accept:"application/json","Content-Type":"application/json",...this.authHeaders()}}calculateContentLength(n){if(typeof n=="string"){if(typeof Buffer<"u")return Buffer.byteLength(n,"utf8").toString();if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length.toString()}return null}authHeaders(){return{Authorization:"Bearer "+this.apiKey,...this.integrationKey?{"X-INTEGRATION-KEY":this.integrationKey}:{}}}makeStatusError(n,t,r,i){return be.generate(n,t,r,i)}}class gg{client;constructor(n){this.client=n}async checkEligibility(n){return this.client.restApi(z("/v1/ach-debit/eligibility","post",{body:n}))}}class Eg{client;constructor(n){this.client=n}async list(n){return this.client.restApi(z("/v1/integrator/ach-debit/returns","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(z("/v1/integrator/ach-debit/returns/{returnId}","get",{params:{returnId:n}}))}}class yg{client;constructor(n){this.client=n}async list(){return this.client.restApi(z("/v1/bank-accounts/","get"))}async get(n){return this.client.restApi(z("/v1/bank-accounts/{accountId}","get",{params:{accountId:n}}))}async create(n){return this.client.restApi(z("/v1/bank-accounts/","post",{body:n}))}async delete(n){return this.client.restApi(z("/v1/bank-accounts/{accountId}","delete",{params:{accountId:n}}))}async createLinkToken(n){return this.client.restApi(z("/v1/bank-accounts/link-token","post",n?{body:n}:void 0))}async completeLinking(n){return this.client.restApi(z("/v1/bank-accounts/link-complete","post",{body:n}))}}var qt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BillFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:588}};qt.loc.source={body:`fragment BillFragment on Bill {
43
43
  id
44
44
  name
45
45
  userId
@@ -75,14 +75,14 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
75
75
  address
76
76
  }
77
77
  }
78
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function zi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){zi(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){zi(r,n)}),e.definitions&&e.definitions.forEach(function(r){zi(r,n)})}var Ju={};(function(){qt.definitions.forEach(function(n){if(n.name){var t=new Set;zi(n,t),Ju[n.name.value]=t}})})();function i0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function yg(e,n){var t={kind:e.kind,definitions:[i0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ju[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ju[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=i0(e,o);s&&t.definitions.push(s)}),t}yg(qt,"BillFragment");var Kn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateUSBill"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"institutionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addUSBill"},arguments:[{kind:"Argument",name:{kind:"Name",value:"institutionId"},value:{kind:"Variable",name:{kind:"Name",value:"institutionId"}}},{kind:"Argument",name:{kind:"Name",value:"accountNumber"},value:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BillFragment"},directives:[]}]}}]}}],loc:{start:0,end:257}};Kn.loc.source={body:`#import "../queries/billFragment.graphql"
78
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function zi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){zi(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){zi(r,n)}),e.definitions&&e.definitions.forEach(function(r){zi(r,n)})}var Ju={};(function(){qt.definitions.forEach(function(n){if(n.name){var t=new Set;zi(n,t),Ju[n.name.value]=t}})})();function i0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function bg(e,n){var t={kind:e.kind,definitions:[i0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ju[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ju[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=i0(e,o);s&&t.definitions.push(s)}),t}bg(qt,"BillFragment");var Kn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateUSBill"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"institutionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addUSBill"},arguments:[{kind:"Argument",name:{kind:"Name",value:"institutionId"},value:{kind:"Variable",name:{kind:"Name",value:"institutionId"}}},{kind:"Argument",name:{kind:"Name",value:"accountNumber"},value:{kind:"Variable",name:{kind:"Name",value:"accountNumber"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BillFragment"},directives:[]}]}}]}}],loc:{start:0,end:257}};Kn.loc.source={body:`#import "../queries/billFragment.graphql"
79
79
 
80
80
  mutation CreateUSBill($institutionId: String!, $accountNumber: String!, $type: BillType) {
81
81
  addUSBill(institutionId: $institutionId, accountNumber: $accountNumber, type: $type) {
82
82
  ...BillFragment
83
83
  }
84
84
  }
85
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var r0={};function bg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return r0[t]?!1:(r0[t]=!0,!0)})}Kn.definitions=Kn.definitions.concat(bg(qt.definitions));function Ui(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ui(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ui(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ui(r,n)})}var Hu={};(function(){Kn.definitions.forEach(function(n){if(n.name){var t=new Set;Ui(n,t),Hu[n.name.value]=t}})})();function u0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function kg(e,n){var t={kind:e.kind,definitions:[u0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Hu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Hu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=u0(e,o);s&&t.definitions.push(s)}),t}kg(Kn,"CreateUSBill");var Mt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BankAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountSubType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownedByUser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"USBankAccountDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"routingNumber"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1289}};Mt.loc.source={body:`fragment PayableAccountFragment on PayableAccount {
85
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var r0={};function kg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return r0[t]?!1:(r0[t]=!0,!0)})}Kn.definitions=Kn.definitions.concat(kg(qt.definitions));function Ui(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ui(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ui(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ui(r,n)})}var Hu={};(function(){Kn.definitions.forEach(function(n){if(n.name){var t=new Set;Ui(n,t),Hu[n.name.value]=t}})})();function u0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Dg(e,n){var t={kind:e.kind,definitions:[u0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Hu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Hu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=u0(e,o);s&&t.definitions.push(s)}),t}Dg(Kn,"CreateUSBill");var Mt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originator"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BankAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountSubType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ownedByUser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"USBankAccountDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"routingNumber"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bill"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"billType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verifying"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billAccountDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPaymentDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentDueDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextPaymentMinimumAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastStatementBalance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"remainingStatementBalance"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dataSync"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastSync"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"syncStatus"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"institution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1289}};Mt.loc.source={body:`fragment PayableAccountFragment on PayableAccount {
86
86
  id
87
87
  name
88
88
  userId
@@ -149,29 +149,29 @@ mutation CreateUSBill($institutionId: String!, $accountNumber: String!, $type: B
149
149
  logo
150
150
  }
151
151
  }
152
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Pi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Pi(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Pi(r,n)}),e.definitions&&e.definitions.forEach(function(r){Pi(r,n)})}var Qu={};(function(){Mt.definitions.forEach(function(n){if(n.name){var t=new Set;Pi(n,t),Qu[n.name.value]=t}})})();function a0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Dg(e,n){var t={kind:e.kind,definitions:[a0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=a0(e,o);s&&t.definitions.push(s)}),t}Dg(Mt,"PayableAccountFragment");var In={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeletePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};In.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
152
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Pi(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Pi(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Pi(r,n)}),e.definitions&&e.definitions.forEach(function(r){Pi(r,n)})}var Qu={};(function(){Mt.definitions.forEach(function(n){if(n.name){var t=new Set;Pi(n,t),Qu[n.name.value]=t}})})();function a0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Sg(e,n){var t={kind:e.kind,definitions:[a0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=a0(e,o);s&&t.definitions.push(s)}),t}Sg(Mt,"PayableAccountFragment");var In={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeletePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};In.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
153
153
 
154
154
  mutation DeletePayableAccount($accountId: String!) {
155
155
  deletePayableAccount(accountId: $accountId) {
156
156
  ...PayableAccountFragment
157
157
  }
158
158
  }
159
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var o0={};function Sg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return o0[t]?!1:(o0[t]=!0,!0)})}In.definitions=In.definitions.concat(Sg(Mt.definitions));function Ri(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ri(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ri(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ri(r,n)})}var Ku={};(function(){In.definitions.forEach(function(n){if(n.name){var t=new Set;Ri(n,t),Ku[n.name.value]=t}})})();function s0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Bg(e,n){var t={kind:e.kind,definitions:[s0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ku[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ku[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=s0(e,o);s&&t.definitions.push(s)}),t}Bg(In,"DeletePayableAccount");var Wn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenamePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:227}};Wn.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
159
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var o0={};function Bg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return o0[t]?!1:(o0[t]=!0,!0)})}In.definitions=In.definitions.concat(Bg(Mt.definitions));function Ri(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ri(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ri(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ri(r,n)})}var Ku={};(function(){In.definitions.forEach(function(n){if(n.name){var t=new Set;Ri(n,t),Ku[n.name.value]=t}})})();function s0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Ag(e,n){var t={kind:e.kind,definitions:[s0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ku[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ku[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=s0(e,o);s&&t.definitions.push(s)}),t}Ag(In,"DeletePayableAccount");var Wn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenamePayableAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:227}};Wn.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
160
160
 
161
161
  mutation RenamePayableAccount($accountId: String!, $name: String!) {
162
162
  renamePayableAccount(accountId: $accountId, name: $name) {
163
163
  ...PayableAccountFragment
164
164
  }
165
165
  }
166
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var c0={};function Ag(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return c0[t]?!1:(c0[t]=!0,!0)})}Wn.definitions=Wn.definitions.concat(Ag(Mt.definitions));function ji(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){ji(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){ji(r,n)}),e.definitions&&e.definitions.forEach(function(r){ji(r,n)})}var Wu={};(function(){Wn.definitions.forEach(function(n){if(n.name){var t=new Set;ji(n,t),Wu[n.name.value]=t}})})();function l0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function wg(e,n){var t={kind:e.kind,definitions:[l0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Wu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Wu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=l0(e,o);s&&t.definitions.push(s)}),t}wg(Wn,"RenamePayableAccount");var Yn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserBills"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bills"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BillFragment"},directives:[]}]}}]}}],loc:{start:0,end:96}};Yn.loc.source={body:`#import "./billFragment.graphql"
166
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var c0={};function wg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return c0[t]?!1:(c0[t]=!0,!0)})}Wn.definitions=Wn.definitions.concat(wg(Mt.definitions));function ji(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){ji(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){ji(r,n)}),e.definitions&&e.definitions.forEach(function(r){ji(r,n)})}var Wu={};(function(){Wn.definitions.forEach(function(n){if(n.name){var t=new Set;ji(n,t),Wu[n.name.value]=t}})})();function l0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function _g(e,n){var t={kind:e.kind,definitions:[l0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Wu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Wu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=l0(e,o);s&&t.definitions.push(s)}),t}_g(Wn,"RenamePayableAccount");var Yn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserBills"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bills"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BillFragment"},directives:[]}]}}]}}],loc:{start:0,end:96}};Yn.loc.source={body:`#import "./billFragment.graphql"
167
167
 
168
168
  query UserBills {
169
169
  bills {
170
170
  ...BillFragment
171
171
  }
172
172
  }
173
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var d0={};function _g(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return d0[t]?!1:(d0[t]=!0,!0)})}Yn.definitions=Yn.definitions.concat(_g(qt.definitions));function Li(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Li(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Li(r,n)}),e.definitions&&e.definitions.forEach(function(r){Li(r,n)})}var Yu={};(function(){Yn.definitions.forEach(function(n){if(n.name){var t=new Set;Li(n,t),Yu[n.name.value]=t}})})();function f0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Cg(e,n){var t={kind:e.kind,definitions:[f0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Yu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Yu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=f0(e,o);s&&t.definitions.push(s)}),t}Cg(Yn,"UserBills");class $g{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:Yn}))?.bills??[]}async rename(n,t){return(await this.client.query({query:Wn,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:In,variables:{accountId:n}}))?.deletePayableAccount??null}async add(n,t,r){return(await this.client.query({query:Kn,variables:{institutionId:n,accountNumber:t,type:r??null}}))?.addUSBill??null}}class Ig{client;constructor(n){this.client=n}async getRequirements(){return this.client.restApi(z("/v1/users/me/compliance/requirements","get"))}async submit(n){return this.client.restApi(z("/v1/users/me/compliance","post",{body:n}))}}var Xn={};An(Xn,{$brand:()=>p0,$input:()=>Jd,$output:()=>Gd,NEVER:()=>v0,TimePrecision:()=>Kd,ZodAny:()=>nm,ZodArray:()=>um,ZodBase64:()=>Co,ZodBase64URL:()=>$o,ZodBigInt:()=>or,ZodBigIntFormat:()=>No,ZodBoolean:()=>ar,ZodCIDRv4:()=>wo,ZodCIDRv6:()=>_o,ZodCUID:()=>yo,ZodCUID2:()=>bo,ZodCatch:()=>Bm,ZodCustom:()=>pr,ZodCustomStringFormat:()=>Hf,ZodDate:()=>To,ZodDefault:()=>Em,ZodDiscriminatedUnion:()=>am,ZodE164:()=>Io,ZodEmail:()=>po,ZodEmoji:()=>go,ZodEnum:()=>ni,ZodError:()=>e3,ZodFile:()=>hm,ZodFirstPartyTypeKind:()=>Vo,ZodGUID:()=>rr,ZodIPv4:()=>Bo,ZodIPv6:()=>Ao,ZodISODate:()=>co,ZodISODateTime:()=>so,ZodISODuration:()=>fo,ZodISOTime:()=>lo,ZodIntersection:()=>om,ZodIssueCode:()=>iE,ZodJWT:()=>xo,ZodKSUID:()=>So,ZodLazy:()=>Im,ZodLiteral:()=>vm,ZodMap:()=>dm,ZodNaN:()=>wm,ZodNanoID:()=>Eo,ZodNever:()=>im,ZodNonOptional:()=>Lo,ZodNull:()=>Xf,ZodNullable:()=>gm,ZodNumber:()=>ur,ZodNumberFormat:()=>ut,ZodObject:()=>lr,ZodOptional:()=>jo,ZodPipe:()=>Zo,ZodPrefault:()=>bm,ZodPromise:()=>Fm,ZodReadonly:()=>_m,ZodRealError:()=>ei,ZodRecord:()=>Uo,ZodSet:()=>fm,ZodString:()=>ir,ZodStringFormat:()=>ee,ZodSuccess:()=>Sm,ZodSymbol:()=>Wf,ZodTemplateLiteral:()=>$m,ZodTransform:()=>Po,ZodTuple:()=>cm,ZodType:()=>V,ZodULID:()=>ko,ZodURL:()=>ho,ZodUUID:()=>Ye,ZodUndefined:()=>Yf,ZodUnion:()=>zo,ZodUnknown:()=>tm,ZodVoid:()=>rm,ZodXID:()=>Do,_ZodString:()=>mo,_default:()=>ym,any:()=>N3,array:()=>Oo,base64:()=>y3,base64url:()=>b3,bigint:()=>C3,boolean:()=>Kf,catch:()=>Am,check:()=>Nm,cidrv4:()=>g3,cidrv6:()=>E3,clone:()=>Ge,coerce:()=>zm,config:()=>De,core:()=>m0,cuid:()=>l3,cuid2:()=>d3,custom:()=>Y3,date:()=>O3,discriminatedUnion:()=>j3,e164:()=>k3,email:()=>n3,emoji:()=>s3,endsWith:()=>eo,enum:()=>mm,file:()=>G3,flattenError:()=>ia,float32:()=>B3,float64:()=>A3,formatError:()=>ra,function:()=>zf,getErrorMap:()=>uE,globalRegistry:()=>Nn,gt:()=>On,gte:()=>Ie,guid:()=>t3,includes:()=>Ya,instanceof:()=>X3,int:()=>Fo,int32:()=>w3,int64:()=>$3,intersection:()=>sm,ipv4:()=>p3,ipv6:()=>h3,iso:()=>Pf,json:()=>nE,jwt:()=>D3,keyof:()=>z3,ksuid:()=>v3,lazy:()=>xm,length:()=>tr,literal:()=>pm,locales:()=>Ba,looseObject:()=>R3,lowercase:()=>Ka,lt:()=>Tn,lte:()=>qe,map:()=>V3,maxLength:()=>nr,maxSize:()=>er,mime:()=>no,minLength:()=>rt,minSize:()=>Xt,multipleOf:()=>Yt,nan:()=>Q3,nanoid:()=>c3,nativeEnum:()=>M3,negative:()=>Af,never:()=>cr,nonnegative:()=>_f,nonoptional:()=>Dm,nonpositive:()=>wf,normalize:()=>to,null:()=>em,nullable:()=>mr,nullish:()=>J3,number:()=>Qf,object:()=>U3,optional:()=>fr,overwrite:()=>zn,parse:()=>qf,parseAsync:()=>Mf,partialRecord:()=>Z3,pipe:()=>vr,positive:()=>Bf,prefault:()=>km,preprocess:()=>tE,prettifyError:()=>_0,promise:()=>W3,property:()=>Cf,readonly:()=>Cm,record:()=>lm,refine:()=>Tm,regex:()=>Qa,regexes:()=>da,registry:()=>wa,safeParse:()=>Gf,safeParseAsync:()=>Jf,set:()=>q3,setErrorMap:()=>rE,size:()=>Ha,startsWith:()=>Xa,strictObject:()=>P3,string:()=>vo,stringFormat:()=>S3,stringbool:()=>eE,success:()=>H3,superRefine:()=>Om,symbol:()=>x3,templateLiteral:()=>K3,toJSONSchema:()=>Uf,toLowerCase:()=>ro,toUpperCase:()=>uo,transform:()=>Ro,treeifyError:()=>A0,trim:()=>io,tuple:()=>L3,uint32:()=>_3,uint64:()=>I3,ulid:()=>f3,undefined:()=>F3,union:()=>dr,unknown:()=>sr,uppercase:()=>Wa,url:()=>o3,uuid:()=>i3,uuidv4:()=>r3,uuidv6:()=>u3,uuidv7:()=>a3,void:()=>T3,xid:()=>m3});var m0={};An(m0,{$ZodAny:()=>ad,$ZodArray:()=>ya,$ZodAsyncError:()=>et,$ZodBase64:()=>Hl,$ZodBase64URL:()=>Kl,$ZodBigInt:()=>Ea,$ZodBigIntFormat:()=>td,$ZodBoolean:()=>ga,$ZodCIDRv4:()=>Gl,$ZodCIDRv6:()=>Jl,$ZodCUID:()=>Ol,$ZodCUID2:()=>zl,$ZodCatch:()=>Nd,$ZodCheck:()=>re,$ZodCheckBigIntFormat:()=>ll,$ZodCheckEndsWith:()=>Dl,$ZodCheckGreaterThan:()=>va,$ZodCheckIncludes:()=>bl,$ZodCheckLengthEquals:()=>hl,$ZodCheckLessThan:()=>ma,$ZodCheckLowerCase:()=>El,$ZodCheckMaxLength:()=>vl,$ZodCheckMaxSize:()=>dl,$ZodCheckMimeType:()=>Al,$ZodCheckMinLength:()=>pl,$ZodCheckMinSize:()=>fl,$ZodCheckMultipleOf:()=>sl,$ZodCheckNumberFormat:()=>cl,$ZodCheckOverwrite:()=>wl,$ZodCheckProperty:()=>Bl,$ZodCheckRegex:()=>gl,$ZodCheckSizeEquals:()=>ml,$ZodCheckStartsWith:()=>kl,$ZodCheckStringFormat:()=>Kt,$ZodCheckUpperCase:()=>yl,$ZodCustom:()=>Ld,$ZodCustomStringFormat:()=>ed,$ZodDate:()=>cd,$ZodDefault:()=>_d,$ZodDiscriminatedUnion:()=>vd,$ZodE164:()=>Wl,$ZodEmail:()=>xl,$ZodEmoji:()=>Nl,$ZodEnum:()=>Dd,$ZodError:()=>ta,$ZodFile:()=>Bd,$ZodFunction:()=>Of,$ZodGUID:()=>$l,$ZodIPv4:()=>ql,$ZodIPv6:()=>Ml,$ZodISODate:()=>Ll,$ZodISODateTime:()=>jl,$ZodISODuration:()=>Vl,$ZodISOTime:()=>Zl,$ZodIntersection:()=>pd,$ZodJWT:()=>Xl,$ZodKSUID:()=>Rl,$ZodLazy:()=>jd,$ZodLiteral:()=>Sd,$ZodMap:()=>Ed,$ZodNaN:()=>Td,$ZodNanoID:()=>Tl,$ZodNever:()=>od,$ZodNonOptional:()=>Id,$ZodNull:()=>ud,$ZodNullable:()=>wd,$ZodNumber:()=>ha,$ZodNumberFormat:()=>nd,$ZodObject:()=>fd,$ZodOptional:()=>Ad,$ZodPipe:()=>Sa,$ZodPrefault:()=>$d,$ZodPromise:()=>Rd,$ZodReadonly:()=>zd,$ZodRealError:()=>Qt,$ZodRecord:()=>gd,$ZodRegistry:()=>Aa,$ZodSet:()=>bd,$ZodString:()=>Wt,$ZodStringFormat:()=>Y,$ZodSuccess:()=>Fd,$ZodSymbol:()=>id,$ZodTemplateLiteral:()=>Pd,$ZodTransform:()=>Da,$ZodTuple:()=>Ki,$ZodType:()=>P,$ZodULID:()=>Ul,$ZodURL:()=>Fl,$ZodUUID:()=>Il,$ZodUndefined:()=>rd,$ZodUnion:()=>ba,$ZodUnknown:()=>Hi,$ZodVoid:()=>sd,$ZodXID:()=>Pl,$brand:()=>p0,$constructor:()=>p,$input:()=>Jd,$output:()=>Gd,Doc:()=>_l,JSONSchema:()=>X1,JSONSchemaGenerator:()=>oo,NEVER:()=>v0,TimePrecision:()=>Kd,_any:()=>Ef,_array:()=>ao,_base64:()=>qa,_base64url:()=>Ma,_bigint:()=>df,_boolean:()=>cf,_catch:()=>J1,_cidrv4:()=>Za,_cidrv6:()=>Va,_coercedBigint:()=>ff,_coercedBoolean:()=>lf,_coercedDate:()=>Df,_coercedNumber:()=>tf,_coercedString:()=>Qd,_cuid:()=>Oa,_cuid2:()=>za,_custom:()=>xf,_date:()=>kf,_default:()=>q1,_discriminatedUnion:()=>N1,_e164:()=>Ga,_email:()=>_a,_emoji:()=>Na,_endsWith:()=>eo,_enum:()=>P1,_file:()=>If,_float32:()=>uf,_float64:()=>af,_gt:()=>On,_gte:()=>Ie,_guid:()=>Yi,_includes:()=>Ya,_int:()=>rf,_int32:()=>of,_int64:()=>mf,_intersection:()=>T1,_ipv4:()=>ja,_ipv6:()=>La,_isoDate:()=>Yd,_isoDateTime:()=>Wd,_isoDuration:()=>ef,_isoTime:()=>Xd,_jwt:()=>Ja,_ksuid:()=>Ra,_lazy:()=>W1,_length:()=>tr,_literal:()=>j1,_lowercase:()=>Ka,_lt:()=>Tn,_lte:()=>qe,_map:()=>z1,_max:()=>qe,_maxLength:()=>nr,_maxSize:()=>er,_mime:()=>no,_min:()=>Ie,_minLength:()=>rt,_minSize:()=>Xt,_multipleOf:()=>Yt,_nan:()=>Sf,_nanoid:()=>Ta,_nativeEnum:()=>R1,_negative:()=>Af,_never:()=>yf,_nonnegative:()=>_f,_nonoptional:()=>M1,_nonpositive:()=>wf,_normalize:()=>to,_null:()=>gf,_nullable:()=>V1,_number:()=>nf,_optional:()=>Z1,_overwrite:()=>zn,_parse:()=>ua,_parseAsync:()=>oa,_pipe:()=>H1,_positive:()=>Bf,_promise:()=>Y1,_property:()=>Cf,_readonly:()=>Q1,_record:()=>O1,_refine:()=>Ff,_regex:()=>Qa,_safeParse:()=>ca,_safeParseAsync:()=>la,_set:()=>U1,_size:()=>Ha,_startsWith:()=>Xa,_string:()=>Hd,_stringFormat:()=>Tf,_stringbool:()=>Nf,_success:()=>G1,_symbol:()=>pf,_templateLiteral:()=>K1,_toLowerCase:()=>ro,_toUpperCase:()=>uo,_transform:()=>L1,_trim:()=>io,_tuple:()=>$f,_uint32:()=>sf,_uint64:()=>vf,_ulid:()=>Ua,_undefined:()=>hf,_union:()=>F1,_unknown:()=>Xi,_uppercase:()=>Wa,_url:()=>Fa,_uuid:()=>Ca,_uuidv4:()=>$a,_uuidv6:()=>Ia,_uuidv7:()=>xa,_void:()=>bf,_xid:()=>Pa,clone:()=>Ge,config:()=>De,flattenError:()=>ia,formatError:()=>ra,function:()=>zf,globalConfig:()=>Zi,globalRegistry:()=>Nn,isValidBase64:()=>pa,isValidBase64URL:()=>Ql,isValidJWT:()=>Yl,locales:()=>Ba,parse:()=>aa,parseAsync:()=>sa,prettifyError:()=>_0,regexes:()=>da,registry:()=>wa,safeParse:()=>C0,safeParseAsync:()=>$0,toDotPath:()=>w0,toJSONSchema:()=>Uf,treeifyError:()=>A0,util:()=>G,version:()=>Cl});var v0=Object.freeze({status:"aborted"});function p(e,n,t){function r(o,s){var c;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(c=o._zod).traits??(c.traits=new Set),o._zod.traits.add(e),n(o,s);for(const l in a.prototype)l in o||Object.defineProperty(o,l,{value:a.prototype[l].bind(o)});o._zod.constr=a,o._zod.def=s}const i=t?.Parent??Object;class u extends i{}Object.defineProperty(u,"name",{value:e});function a(o){var s;const c=t?.Parent?new u:this;r(c,o),(s=c._zod).deferred??(s.deferred=[]);for(const l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:o=>t?.Parent&&o instanceof t.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var p0=Symbol("zod_brand"),et=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Zi={};function De(e){return e&&Object.assign(Zi,e),Zi}var G={};An(G,{BIGINT_FORMAT_RANGES:()=>D0,Class:()=>Qg,NUMBER_FORMAT_RANGES:()=>k0,aborted:()=>tt,allowsEval:()=>E0,assert:()=>Og,assertEqual:()=>xg,assertIs:()=>Ng,assertNever:()=>Tg,assertNotEqual:()=>Fg,assignProp:()=>ea,cached:()=>Vi,captureStackTrace:()=>na,cleanEnum:()=>Hg,cleanRegex:()=>qi,clone:()=>Ge,createTransparentProxy:()=>Lg,defineLazy:()=>Q,esc:()=>nt,escapeRegex:()=>Fn,extend:()=>qg,finalizeIssue:()=>Ve,floatSafeRemainder:()=>g0,getElementAtPath:()=>zg,getEnumValues:()=>Xu,getLengthableOrigin:()=>Ji,getParsedType:()=>jg,getSizableOrigin:()=>Gi,isObject:()=>Gt,isPlainObject:()=>Jt,issue:()=>S0,joinValues:()=>w,jsonStringifyReplacer:()=>h0,merge:()=>Mg,normalizeParams:()=>S,nullish:()=>xn,numKeys:()=>Rg,omit:()=>Vg,optionalKeys:()=>b0,partial:()=>Gg,pick:()=>Zg,prefixIssues:()=>Te,primitiveTypes:()=>y0,promiseAllObject:()=>Ug,propertyKeyTypes:()=>Mi,randomString:()=>Pg,required:()=>Jg,stringifyPrimitive:()=>Z,unwrapMessage:()=>Ht});function xg(e){return e}function Fg(e){return e}function Ng(e){}function Tg(e){throw new Error}function Og(e){}function Xu(e){const n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>n.indexOf(+r)===-1).map(([r,i])=>i)}function w(e,n="|"){return e.map(t=>Z(t)).join(n)}function h0(e,n){return typeof n=="bigint"?n.toString():n}function Vi(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function xn(e){return e==null}function qi(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function g0(e,n){const t=(e.toString().split(".")[1]||"").length,r=(n.toString().split(".")[1]||"").length,i=t>r?t:r,u=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(n.toFixed(i).replace(".",""));return u%a/10**i}function Q(e,n,t){Object.defineProperty(e,n,{get(){{const r=t();return e[n]=r,r}},set(r){Object.defineProperty(e,n,{value:r})},configurable:!0})}function ea(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function zg(e,n){return n?n.reduce((t,r)=>t?.[r],e):e}function Ug(e){const n=Object.keys(e),t=n.map(r=>e[r]);return Promise.all(t).then(r=>{const i={};for(let u=0;u<n.length;u++)i[n[u]]=r[u];return i})}function Pg(e=10){const n="abcdefghijklmnopqrstuvwxyz";let t="";for(let r=0;r<e;r++)t+=n[Math.floor(Math.random()*n.length)];return t}function nt(e){return JSON.stringify(e)}var na=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Gt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var E0=Vi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Jt(e){if(Gt(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(Gt(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Rg(e){let n=0;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n++;return n}var jg=e=>{const n=typeof e;switch(n){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 new Error(`Unknown data type: ${n}`)}},Mi=new Set(["string","number","symbol"]),y0=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Fn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ge(e,n,t){const r=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(r._zod.parent=e),r}function S(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function Lg(e){let n;return new Proxy({},{get(t,r,i){return n??(n=e()),Reflect.get(n,r,i)},set(t,r,i,u){return n??(n=e()),Reflect.set(n,r,i,u)},has(t,r){return n??(n=e()),Reflect.has(n,r)},deleteProperty(t,r){return n??(n=e()),Reflect.deleteProperty(n,r)},ownKeys(t){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(t,r){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,r)},defineProperty(t,r,i){return n??(n=e()),Reflect.defineProperty(n,r,i)}})}function Z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function b0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var k0={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},D0={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Zg(e,n){const t={},r=e._zod.def;for(const i in n){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=r.shape[i])}return Ge(e,{...e._zod.def,shape:t,checks:[]})}function Vg(e,n){const t={...e._zod.def.shape},r=e._zod.def;for(const i in n){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&delete t[i]}return Ge(e,{...e._zod.def,shape:t,checks:[]})}function qg(e,n){if(!Jt(n))throw new Error("Invalid input to extend: expected a plain object");const t={...e._zod.def,get shape(){const r={...e._zod.def.shape,...n};return ea(this,"shape",r),r},checks:[]};return Ge(e,t)}function Mg(e,n){return Ge(e,{...e._zod.def,get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return ea(this,"shape",t),t},catchall:n._zod.def.catchall,checks:[]})}function Gg(e,n,t){const r=n._zod.def.shape,i={...r};if(t)for(const u in t){if(!(u in r))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(i[u]=e?new e({type:"optional",innerType:r[u]}):r[u])}else for(const u in r)i[u]=e?new e({type:"optional",innerType:r[u]}):r[u];return Ge(n,{...n._zod.def,shape:i,checks:[]})}function Jg(e,n,t){const r=n._zod.def.shape,i={...r};if(t)for(const u in t){if(!(u in i))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(i[u]=new e({type:"nonoptional",innerType:r[u]}))}else for(const u in r)i[u]=new e({type:"nonoptional",innerType:r[u]});return Ge(n,{...n._zod.def,shape:i,checks:[]})}function tt(e,n=0){for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Te(e,n){return n.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function Ht(e){return typeof e=="string"?e:e?.message}function Ve(e,n,t){const r={...e,path:e.path??[]};if(!e.message){const i=Ht(e.inst?._zod.def?.error?.(e))??Ht(n?.error?.(e))??Ht(t.customError?.(e))??Ht(t.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,n?.reportInput||delete r.input,r}function Gi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ji(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function S0(...e){const[n,t,r]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:r}:{...n}}function Hg(e){return Object.entries(e).filter(([n,t])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}var Qg=class{constructor(...e){}},B0=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,h0,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ta=p("$ZodError",B0),Qt=p("$ZodError",B0,{Parent:Error});function ia(e,n=t=>t.message){const t={},r=[];for(const i of e.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(n(i))):r.push(n(i));return{formErrors:r,fieldErrors:t}}function ra(e,n){const t=n||function(u){return u.message},r={_errors:[]},i=u=>{for(const a of u.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>i({issues:o}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let o=r,s=0;for(;s<a.path.length;){const c=a.path[s];s===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(t(a))):o[c]=o[c]||{_errors:[]},o=o[c],s++}}};return i(e),r}function A0(e,n){const t=n||function(u){return u.message},r={errors:[]},i=(u,a=[])=>{var o,s;for(const c of u.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{const l=[...a,...c.path];if(l.length===0){r.errors.push(t(c));continue}let f=r,m=0;for(;m<l.length;){const d=l[m],v=m===l.length-1;typeof d=="string"?(f.properties??(f.properties={}),(o=f.properties)[d]??(o[d]={errors:[]}),f=f.properties[d]):(f.items??(f.items=[]),(s=f.items)[d]??(s[d]={errors:[]}),f=f.items[d]),v&&f.errors.push(t(c)),m++}}};return i(e),r}function w0(e){const n=[];for(const t of e)typeof t=="number"?n.push(`[${t}]`):typeof t=="symbol"?n.push(`[${JSON.stringify(String(t))}]`):/[^\w$]/.test(t)?n.push(`[${JSON.stringify(t)}]`):(n.length&&n.push("."),n.push(t));return n.join("")}function _0(e){const n=[],t=[...e.issues].sort((r,i)=>r.path.length-i.path.length);for(const r of t)n.push(`\u2716 ${r.message}`),r.path?.length&&n.push(` \u2192 at ${w0(r.path)}`);return n.join(`
174
- `)}var ua=e=>(n,t,r,i)=>{const u=r?Object.assign(r,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},u);if(a instanceof Promise)throw new et;if(a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Ve(s,u,De())));throw na(o,i?.callee),o}return a.value},aa=ua(Qt),oa=e=>async(n,t,r,i)=>{const u=r?Object.assign(r,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},u);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Ve(s,u,De())));throw na(o,i?.callee),o}return a.value},sa=oa(Qt),ca=e=>(n,t,r)=>{const i=r?{...r,async:!1}:{async:!1},u=n._zod.run({value:t,issues:[]},i);if(u instanceof Promise)throw new et;return u.issues.length?{success:!1,error:new(e??ta)(u.issues.map(a=>Ve(a,i,De())))}:{success:!0,data:u.value}},C0=ca(Qt),la=e=>async(n,t,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let u=n._zod.run({value:t,issues:[]},i);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(a=>Ve(a,i,De())))}:{success:!0,data:u.value}},$0=la(Qt),da={};An(da,{base64:()=>q0,base64url:()=>fa,bigint:()=>X0,boolean:()=>tl,browserEmail:()=>i6,cidrv4:()=>Z0,cidrv6:()=>V0,cuid:()=>I0,cuid2:()=>x0,date:()=>H0,datetime:()=>W0,domain:()=>u6,duration:()=>z0,e164:()=>G0,email:()=>P0,emoji:()=>R0,extendedDuration:()=>Kg,guid:()=>U0,hostname:()=>M0,html5Email:()=>e6,integer:()=>el,ipv4:()=>j0,ipv6:()=>L0,ksuid:()=>T0,lowercase:()=>ul,nanoid:()=>O0,null:()=>il,number:()=>nl,rfc5322Email:()=>n6,string:()=>Y0,time:()=>K0,ulid:()=>F0,undefined:()=>rl,unicodeEmail:()=>t6,uppercase:()=>al,uuid:()=>it,uuid4:()=>Wg,uuid6:()=>Yg,uuid7:()=>Xg,xid:()=>N0});var I0=/^[cC][^\s-]{8,}$/,x0=/^[0-9a-z]+$/,F0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,N0=/^[0-9a-vA-V]{20}$/,T0=/^[A-Za-z0-9]{27}$/,O0=/^[a-zA-Z0-9_-]{21}$/,z0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Kg=/^[-+]?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)?)??$/,U0=/^([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})$/,it=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([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)$/,Wg=it(4),Yg=it(6),Xg=it(7),P0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,e6=/^[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])?)*$/,n6=/^(([^<>()\[\]\\.,;:\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,}))$/,t6=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,i6=/^[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])?)*$/,r6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function R0(){return new RegExp(r6,"u")}var j0=/^(?:(?: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])$/,L0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Z0=/^((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])$/,V0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,q0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fa=/^[A-Za-z0-9_-]*$/,M0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,u6=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,G0=/^\+(?:[0-9]){6,14}[0-9]$/,J0="(?:(?:\\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])))",H0=new RegExp(`^${J0}$`);function Q0(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function K0(e){return new RegExp(`^${Q0(e)}$`)}function W0(e){const n=Q0({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-]\\d{2}:\\d{2})");const r=`${n}(?:${t.join("|")})`;return new RegExp(`^${J0}T(?:${r})$`)}var Y0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},X0=/^\d+n?$/,el=/^\d+$/,nl=/^-?\d+(?:\.\d+)?/i,tl=/true|false/i,il=/null/i,rl=/undefined/i,ul=/^[^A-Z]*$/,al=/^[^a-z]*$/,re=p("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),ol={number:"number",bigint:"bigint",object:"date"},ma=p("$ZodCheckLessThan",(e,n)=>{re.init(e,n);const t=ol[typeof n.value];e._zod.onattach.push(r=>{const i=r._zod.bag,u=(n.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<u&&(n.inclusive?i.maximum=n.value:i.exclusiveMaximum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value<=n.value:r.value<n.value)||r.issues.push({origin:t,code:"too_big",maximum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),va=p("$ZodCheckGreaterThan",(e,n)=>{re.init(e,n);const t=ol[typeof n.value];e._zod.onattach.push(r=>{const i=r._zod.bag,u=(n.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>u&&(n.inclusive?i.minimum=n.value:i.exclusiveMinimum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value>=n.value:r.value>n.value)||r.issues.push({origin:t,code:"too_small",minimum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),sl=p("$ZodCheckMultipleOf",(e,n)=>{re.init(e,n),e._zod.onattach.push(t=>{var r;(r=t._zod.bag).multipleOf??(r.multipleOf=n.value)}),e._zod.check=t=>{if(typeof t.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%n.value===BigInt(0):g0(t.value,n.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:n.value,input:t.value,inst:e,continue:!n.abort})}}),cl=p("$ZodCheckNumberFormat",(e,n)=>{re.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),r=t?"int":"number",[i,u]=k0[n.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=n.format,o.minimum=i,o.maximum=u,t&&(o.pattern=el)}),e._zod.check=a=>{const o=a.value;if(t){if(!Number.isInteger(o)){a.issues.push({expected:r,format:n.format,code:"invalid_type",input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?a.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!n.abort}):a.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!n.abort});return}}o<i&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!n.abort}),o>u&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:u,inst:e})}}),ll=p("$ZodCheckBigIntFormat",(e,n)=>{re.init(e,n);const[t,r]=D0[n.format];e._zod.onattach.push(i=>{const u=i._zod.bag;u.format=n.format,u.minimum=t,u.maximum=r}),e._zod.check=i=>{const u=i.value;u<t&&i.issues.push({origin:"bigint",input:u,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),u>r&&i.issues.push({origin:"bigint",input:u,code:"too_big",maximum:r,inst:e})}}),dl=p("$ZodCheckMaxSize",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const i=r.value;i.size<=n.maximum||r.issues.push({origin:Gi(i),code:"too_big",maximum:n.maximum,input:i,inst:e,continue:!n.abort})}}),fl=p("$ZodCheckMinSize",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const i=r.value;i.size>=n.minimum||r.issues.push({origin:Gi(i),code:"too_small",minimum:n.minimum,input:i,inst:e,continue:!n.abort})}}),ml=p("$ZodCheckSizeEquals",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=n.size,i.maximum=n.size,i.size=n.size}),e._zod.check=r=>{const i=r.value,u=i.size;if(u===n.size)return;const a=u>n.size;r.issues.push({origin:Gi(i),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),vl=p("$ZodCheckMaxLength",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=n.maximum)return;const a=Ji(i);r.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),pl=p("$ZodCheckMinLength",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=n.minimum)return;const a=Ji(i);r.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),hl=p("$ZodCheckLengthEquals",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=n.length,i.maximum=n.length,i.length=n.length}),e._zod.check=r=>{const i=r.value,u=i.length;if(u===n.length)return;const a=Ji(i),o=u>n.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),Kt=p("$ZodCheckStringFormat",(e,n)=>{var t,r;re.init(e,n),e._zod.onattach.push(i=>{const u=i._zod.bag;u.format=n.format,n.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(n.pattern))}),n.pattern?(t=e._zod).check??(t.check=i=>{n.pattern.lastIndex=0,!n.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:n.format,input:i.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(r=e._zod).check??(r.check=()=>{})}),gl=p("$ZodCheckRegex",(e,n)=>{Kt.init(e,n),e._zod.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),El=p("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=ul),Kt.init(e,n)}),yl=p("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=al),Kt.init(e,n)}),bl=p("$ZodCheckIncludes",(e,n)=>{re.init(e,n);const t=Fn(n.includes),r=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=r,e._zod.onattach.push(i=>{const u=i._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(r)}),e._zod.check=i=>{i.value.includes(n.includes,n.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:i.value,inst:e,continue:!n.abort})}}),kl=p("$ZodCheckStartsWith",(e,n)=>{re.init(e,n);const t=new RegExp(`^${Fn(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=r=>{r.value.startsWith(n.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:r.value,inst:e,continue:!n.abort})}}),Dl=p("$ZodCheckEndsWith",(e,n)=>{re.init(e,n);const t=new RegExp(`.*${Fn(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=r=>{r.value.endsWith(n.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:r.value,inst:e,continue:!n.abort})}});function Sl(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues))}var Bl=p("$ZodCheckProperty",(e,n)=>{re.init(e,n),e._zod.check=t=>{const r=n.schema._zod.run({value:t.value[n.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>Sl(i,t,n.property));Sl(r,t,n.property)}}),Al=p("$ZodCheckMimeType",(e,n)=>{re.init(e,n);const t=new Set(n.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=n.mime}),e._zod.check=r=>{t.has(r.value.type)||r.issues.push({code:"invalid_value",values:n.mime,input:r.value.type,inst:e})}}),wl=p("$ZodCheckOverwrite",(e,n)=>{re.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}}),_l=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
173
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var d0={};function Cg(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return d0[t]?!1:(d0[t]=!0,!0)})}Yn.definitions=Yn.definitions.concat(Cg(qt.definitions));function Li(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Li(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Li(r,n)}),e.definitions&&e.definitions.forEach(function(r){Li(r,n)})}var Yu={};(function(){Yn.definitions.forEach(function(n){if(n.name){var t=new Set;Li(n,t),Yu[n.name.value]=t}})})();function f0(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function $g(e,n){var t={kind:e.kind,definitions:[f0(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Yu[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Yu[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=f0(e,o);s&&t.definitions.push(s)}),t}$g(Yn,"UserBills");class Ig{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:Yn}))?.bills??[]}async rename(n,t){return(await this.client.query({query:Wn,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:In,variables:{accountId:n}}))?.deletePayableAccount??null}async add(n,t,r){return(await this.client.query({query:Kn,variables:{institutionId:n,accountNumber:t,type:r??null}}))?.addUSBill??null}}class xg{client;constructor(n){this.client=n}async getRequirements(){return this.client.restApi(z("/v1/users/me/compliance/requirements","get"))}async submit(n){return this.client.restApi(z("/v1/users/me/compliance","post",{body:n}))}}var Xn={};An(Xn,{$brand:()=>p0,$input:()=>Jd,$output:()=>Gd,NEVER:()=>v0,TimePrecision:()=>Kd,ZodAny:()=>nm,ZodArray:()=>um,ZodBase64:()=>Co,ZodBase64URL:()=>$o,ZodBigInt:()=>or,ZodBigIntFormat:()=>No,ZodBoolean:()=>ar,ZodCIDRv4:()=>wo,ZodCIDRv6:()=>_o,ZodCUID:()=>yo,ZodCUID2:()=>bo,ZodCatch:()=>Bm,ZodCustom:()=>pr,ZodCustomStringFormat:()=>Hf,ZodDate:()=>To,ZodDefault:()=>Em,ZodDiscriminatedUnion:()=>am,ZodE164:()=>Io,ZodEmail:()=>po,ZodEmoji:()=>go,ZodEnum:()=>ni,ZodError:()=>n3,ZodFile:()=>hm,ZodFirstPartyTypeKind:()=>Vo,ZodGUID:()=>rr,ZodIPv4:()=>Bo,ZodIPv6:()=>Ao,ZodISODate:()=>co,ZodISODateTime:()=>so,ZodISODuration:()=>fo,ZodISOTime:()=>lo,ZodIntersection:()=>om,ZodIssueCode:()=>rE,ZodJWT:()=>xo,ZodKSUID:()=>So,ZodLazy:()=>Im,ZodLiteral:()=>vm,ZodMap:()=>dm,ZodNaN:()=>wm,ZodNanoID:()=>Eo,ZodNever:()=>im,ZodNonOptional:()=>Lo,ZodNull:()=>Xf,ZodNullable:()=>gm,ZodNumber:()=>ur,ZodNumberFormat:()=>ut,ZodObject:()=>lr,ZodOptional:()=>jo,ZodPipe:()=>Zo,ZodPrefault:()=>bm,ZodPromise:()=>Fm,ZodReadonly:()=>_m,ZodRealError:()=>ei,ZodRecord:()=>Uo,ZodSet:()=>fm,ZodString:()=>ir,ZodStringFormat:()=>ee,ZodSuccess:()=>Sm,ZodSymbol:()=>Wf,ZodTemplateLiteral:()=>$m,ZodTransform:()=>Po,ZodTuple:()=>cm,ZodType:()=>V,ZodULID:()=>ko,ZodURL:()=>ho,ZodUUID:()=>Ye,ZodUndefined:()=>Yf,ZodUnion:()=>zo,ZodUnknown:()=>tm,ZodVoid:()=>rm,ZodXID:()=>Do,_ZodString:()=>mo,_default:()=>ym,any:()=>T3,array:()=>Oo,base64:()=>b3,base64url:()=>k3,bigint:()=>$3,boolean:()=>Kf,catch:()=>Am,check:()=>Nm,cidrv4:()=>E3,cidrv6:()=>y3,clone:()=>Ge,coerce:()=>zm,config:()=>De,core:()=>m0,cuid:()=>d3,cuid2:()=>f3,custom:()=>X3,date:()=>z3,discriminatedUnion:()=>L3,e164:()=>D3,email:()=>t3,emoji:()=>c3,endsWith:()=>eo,enum:()=>mm,file:()=>J3,flattenError:()=>ia,float32:()=>A3,float64:()=>w3,formatError:()=>ra,function:()=>zf,getErrorMap:()=>aE,globalRegistry:()=>Nn,gt:()=>On,gte:()=>Ie,guid:()=>i3,includes:()=>Ya,instanceof:()=>eE,int:()=>Fo,int32:()=>_3,int64:()=>I3,intersection:()=>sm,ipv4:()=>h3,ipv6:()=>g3,iso:()=>Pf,json:()=>tE,jwt:()=>S3,keyof:()=>U3,ksuid:()=>p3,lazy:()=>xm,length:()=>tr,literal:()=>pm,locales:()=>Ba,looseObject:()=>j3,lowercase:()=>Ka,lt:()=>Tn,lte:()=>qe,map:()=>q3,maxLength:()=>nr,maxSize:()=>er,mime:()=>no,minLength:()=>rt,minSize:()=>Xt,multipleOf:()=>Yt,nan:()=>K3,nanoid:()=>l3,nativeEnum:()=>G3,negative:()=>Af,never:()=>cr,nonnegative:()=>_f,nonoptional:()=>Dm,nonpositive:()=>wf,normalize:()=>to,null:()=>em,nullable:()=>mr,nullish:()=>H3,number:()=>Qf,object:()=>P3,optional:()=>fr,overwrite:()=>zn,parse:()=>qf,parseAsync:()=>Mf,partialRecord:()=>V3,pipe:()=>vr,positive:()=>Bf,prefault:()=>km,preprocess:()=>iE,prettifyError:()=>_0,promise:()=>Y3,property:()=>Cf,readonly:()=>Cm,record:()=>lm,refine:()=>Tm,regex:()=>Qa,regexes:()=>da,registry:()=>wa,safeParse:()=>Gf,safeParseAsync:()=>Jf,set:()=>M3,setErrorMap:()=>uE,size:()=>Ha,startsWith:()=>Xa,strictObject:()=>R3,string:()=>vo,stringFormat:()=>B3,stringbool:()=>nE,success:()=>Q3,superRefine:()=>Om,symbol:()=>F3,templateLiteral:()=>W3,toJSONSchema:()=>Uf,toLowerCase:()=>ro,toUpperCase:()=>uo,transform:()=>Ro,treeifyError:()=>A0,trim:()=>io,tuple:()=>Z3,uint32:()=>C3,uint64:()=>x3,ulid:()=>m3,undefined:()=>N3,union:()=>dr,unknown:()=>sr,uppercase:()=>Wa,url:()=>s3,uuid:()=>r3,uuidv4:()=>u3,uuidv6:()=>a3,uuidv7:()=>o3,void:()=>O3,xid:()=>v3});var m0={};An(m0,{$ZodAny:()=>ad,$ZodArray:()=>ya,$ZodAsyncError:()=>et,$ZodBase64:()=>Hl,$ZodBase64URL:()=>Kl,$ZodBigInt:()=>Ea,$ZodBigIntFormat:()=>td,$ZodBoolean:()=>ga,$ZodCIDRv4:()=>Gl,$ZodCIDRv6:()=>Jl,$ZodCUID:()=>Ol,$ZodCUID2:()=>zl,$ZodCatch:()=>Nd,$ZodCheck:()=>re,$ZodCheckBigIntFormat:()=>ll,$ZodCheckEndsWith:()=>Dl,$ZodCheckGreaterThan:()=>va,$ZodCheckIncludes:()=>bl,$ZodCheckLengthEquals:()=>hl,$ZodCheckLessThan:()=>ma,$ZodCheckLowerCase:()=>El,$ZodCheckMaxLength:()=>vl,$ZodCheckMaxSize:()=>dl,$ZodCheckMimeType:()=>Al,$ZodCheckMinLength:()=>pl,$ZodCheckMinSize:()=>fl,$ZodCheckMultipleOf:()=>sl,$ZodCheckNumberFormat:()=>cl,$ZodCheckOverwrite:()=>wl,$ZodCheckProperty:()=>Bl,$ZodCheckRegex:()=>gl,$ZodCheckSizeEquals:()=>ml,$ZodCheckStartsWith:()=>kl,$ZodCheckStringFormat:()=>Kt,$ZodCheckUpperCase:()=>yl,$ZodCustom:()=>Ld,$ZodCustomStringFormat:()=>ed,$ZodDate:()=>cd,$ZodDefault:()=>_d,$ZodDiscriminatedUnion:()=>vd,$ZodE164:()=>Wl,$ZodEmail:()=>xl,$ZodEmoji:()=>Nl,$ZodEnum:()=>Dd,$ZodError:()=>ta,$ZodFile:()=>Bd,$ZodFunction:()=>Of,$ZodGUID:()=>$l,$ZodIPv4:()=>ql,$ZodIPv6:()=>Ml,$ZodISODate:()=>Ll,$ZodISODateTime:()=>jl,$ZodISODuration:()=>Vl,$ZodISOTime:()=>Zl,$ZodIntersection:()=>pd,$ZodJWT:()=>Xl,$ZodKSUID:()=>Rl,$ZodLazy:()=>jd,$ZodLiteral:()=>Sd,$ZodMap:()=>Ed,$ZodNaN:()=>Td,$ZodNanoID:()=>Tl,$ZodNever:()=>od,$ZodNonOptional:()=>Id,$ZodNull:()=>ud,$ZodNullable:()=>wd,$ZodNumber:()=>ha,$ZodNumberFormat:()=>nd,$ZodObject:()=>fd,$ZodOptional:()=>Ad,$ZodPipe:()=>Sa,$ZodPrefault:()=>$d,$ZodPromise:()=>Rd,$ZodReadonly:()=>zd,$ZodRealError:()=>Qt,$ZodRecord:()=>gd,$ZodRegistry:()=>Aa,$ZodSet:()=>bd,$ZodString:()=>Wt,$ZodStringFormat:()=>Y,$ZodSuccess:()=>Fd,$ZodSymbol:()=>id,$ZodTemplateLiteral:()=>Pd,$ZodTransform:()=>Da,$ZodTuple:()=>Ki,$ZodType:()=>P,$ZodULID:()=>Ul,$ZodURL:()=>Fl,$ZodUUID:()=>Il,$ZodUndefined:()=>rd,$ZodUnion:()=>ba,$ZodUnknown:()=>Hi,$ZodVoid:()=>sd,$ZodXID:()=>Pl,$brand:()=>p0,$constructor:()=>p,$input:()=>Jd,$output:()=>Gd,Doc:()=>_l,JSONSchema:()=>e3,JSONSchemaGenerator:()=>oo,NEVER:()=>v0,TimePrecision:()=>Kd,_any:()=>Ef,_array:()=>ao,_base64:()=>qa,_base64url:()=>Ma,_bigint:()=>df,_boolean:()=>cf,_catch:()=>H1,_cidrv4:()=>Za,_cidrv6:()=>Va,_coercedBigint:()=>ff,_coercedBoolean:()=>lf,_coercedDate:()=>Df,_coercedNumber:()=>tf,_coercedString:()=>Qd,_cuid:()=>Oa,_cuid2:()=>za,_custom:()=>xf,_date:()=>kf,_default:()=>M1,_discriminatedUnion:()=>T1,_e164:()=>Ga,_email:()=>_a,_emoji:()=>Na,_endsWith:()=>eo,_enum:()=>R1,_file:()=>If,_float32:()=>uf,_float64:()=>af,_gt:()=>On,_gte:()=>Ie,_guid:()=>Yi,_includes:()=>Ya,_int:()=>rf,_int32:()=>of,_int64:()=>mf,_intersection:()=>O1,_ipv4:()=>ja,_ipv6:()=>La,_isoDate:()=>Yd,_isoDateTime:()=>Wd,_isoDuration:()=>ef,_isoTime:()=>Xd,_jwt:()=>Ja,_ksuid:()=>Ra,_lazy:()=>Y1,_length:()=>tr,_literal:()=>L1,_lowercase:()=>Ka,_lt:()=>Tn,_lte:()=>qe,_map:()=>U1,_max:()=>qe,_maxLength:()=>nr,_maxSize:()=>er,_mime:()=>no,_min:()=>Ie,_minLength:()=>rt,_minSize:()=>Xt,_multipleOf:()=>Yt,_nan:()=>Sf,_nanoid:()=>Ta,_nativeEnum:()=>j1,_negative:()=>Af,_never:()=>yf,_nonnegative:()=>_f,_nonoptional:()=>G1,_nonpositive:()=>wf,_normalize:()=>to,_null:()=>gf,_nullable:()=>q1,_number:()=>nf,_optional:()=>V1,_overwrite:()=>zn,_parse:()=>ua,_parseAsync:()=>oa,_pipe:()=>Q1,_positive:()=>Bf,_promise:()=>X1,_property:()=>Cf,_readonly:()=>K1,_record:()=>z1,_refine:()=>Ff,_regex:()=>Qa,_safeParse:()=>ca,_safeParseAsync:()=>la,_set:()=>P1,_size:()=>Ha,_startsWith:()=>Xa,_string:()=>Hd,_stringFormat:()=>Tf,_stringbool:()=>Nf,_success:()=>J1,_symbol:()=>pf,_templateLiteral:()=>W1,_toLowerCase:()=>ro,_toUpperCase:()=>uo,_transform:()=>Z1,_trim:()=>io,_tuple:()=>$f,_uint32:()=>sf,_uint64:()=>vf,_ulid:()=>Ua,_undefined:()=>hf,_union:()=>N1,_unknown:()=>Xi,_uppercase:()=>Wa,_url:()=>Fa,_uuid:()=>Ca,_uuidv4:()=>$a,_uuidv6:()=>Ia,_uuidv7:()=>xa,_void:()=>bf,_xid:()=>Pa,clone:()=>Ge,config:()=>De,flattenError:()=>ia,formatError:()=>ra,function:()=>zf,globalConfig:()=>Zi,globalRegistry:()=>Nn,isValidBase64:()=>pa,isValidBase64URL:()=>Ql,isValidJWT:()=>Yl,locales:()=>Ba,parse:()=>aa,parseAsync:()=>sa,prettifyError:()=>_0,regexes:()=>da,registry:()=>wa,safeParse:()=>C0,safeParseAsync:()=>$0,toDotPath:()=>w0,toJSONSchema:()=>Uf,treeifyError:()=>A0,util:()=>G,version:()=>Cl});var v0=Object.freeze({status:"aborted"});function p(e,n,t){function r(o,s){var c;Object.defineProperty(o,"_zod",{value:o._zod??{},enumerable:!1}),(c=o._zod).traits??(c.traits=new Set),o._zod.traits.add(e),n(o,s);for(const l in a.prototype)l in o||Object.defineProperty(o,l,{value:a.prototype[l].bind(o)});o._zod.constr=a,o._zod.def=s}const i=t?.Parent??Object;class u extends i{}Object.defineProperty(u,"name",{value:e});function a(o){var s;const c=t?.Parent?new u:this;r(c,o),(s=c._zod).deferred??(s.deferred=[]);for(const l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:o=>t?.Parent&&o instanceof t.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var p0=Symbol("zod_brand"),et=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Zi={};function De(e){return e&&Object.assign(Zi,e),Zi}var G={};An(G,{BIGINT_FORMAT_RANGES:()=>D0,Class:()=>Kg,NUMBER_FORMAT_RANGES:()=>k0,aborted:()=>tt,allowsEval:()=>E0,assert:()=>zg,assertEqual:()=>Fg,assertIs:()=>Tg,assertNever:()=>Og,assertNotEqual:()=>Ng,assignProp:()=>ea,cached:()=>Vi,captureStackTrace:()=>na,cleanEnum:()=>Qg,cleanRegex:()=>qi,clone:()=>Ge,createTransparentProxy:()=>Zg,defineLazy:()=>Q,esc:()=>nt,escapeRegex:()=>Fn,extend:()=>Mg,finalizeIssue:()=>Ve,floatSafeRemainder:()=>g0,getElementAtPath:()=>Ug,getEnumValues:()=>Xu,getLengthableOrigin:()=>Ji,getParsedType:()=>Lg,getSizableOrigin:()=>Gi,isObject:()=>Gt,isPlainObject:()=>Jt,issue:()=>S0,joinValues:()=>w,jsonStringifyReplacer:()=>h0,merge:()=>Gg,normalizeParams:()=>S,nullish:()=>xn,numKeys:()=>jg,omit:()=>qg,optionalKeys:()=>b0,partial:()=>Jg,pick:()=>Vg,prefixIssues:()=>Te,primitiveTypes:()=>y0,promiseAllObject:()=>Pg,propertyKeyTypes:()=>Mi,randomString:()=>Rg,required:()=>Hg,stringifyPrimitive:()=>Z,unwrapMessage:()=>Ht});function Fg(e){return e}function Ng(e){return e}function Tg(e){}function Og(e){throw new Error}function zg(e){}function Xu(e){const n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>n.indexOf(+r)===-1).map(([r,i])=>i)}function w(e,n="|"){return e.map(t=>Z(t)).join(n)}function h0(e,n){return typeof n=="bigint"?n.toString():n}function Vi(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function xn(e){return e==null}function qi(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function g0(e,n){const t=(e.toString().split(".")[1]||"").length,r=(n.toString().split(".")[1]||"").length,i=t>r?t:r,u=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(n.toFixed(i).replace(".",""));return u%a/10**i}function Q(e,n,t){Object.defineProperty(e,n,{get(){{const r=t();return e[n]=r,r}},set(r){Object.defineProperty(e,n,{value:r})},configurable:!0})}function ea(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Ug(e,n){return n?n.reduce((t,r)=>t?.[r],e):e}function Pg(e){const n=Object.keys(e),t=n.map(r=>e[r]);return Promise.all(t).then(r=>{const i={};for(let u=0;u<n.length;u++)i[n[u]]=r[u];return i})}function Rg(e=10){const n="abcdefghijklmnopqrstuvwxyz";let t="";for(let r=0;r<e;r++)t+=n[Math.floor(Math.random()*n.length)];return t}function nt(e){return JSON.stringify(e)}var na=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Gt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var E0=Vi(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Jt(e){if(Gt(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(Gt(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function jg(e){let n=0;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n++;return n}var Lg=e=>{const n=typeof e;switch(n){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 new Error(`Unknown data type: ${n}`)}},Mi=new Set(["string","number","symbol"]),y0=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Fn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ge(e,n,t){const r=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(r._zod.parent=e),r}function S(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function Zg(e){let n;return new Proxy({},{get(t,r,i){return n??(n=e()),Reflect.get(n,r,i)},set(t,r,i,u){return n??(n=e()),Reflect.set(n,r,i,u)},has(t,r){return n??(n=e()),Reflect.has(n,r)},deleteProperty(t,r){return n??(n=e()),Reflect.deleteProperty(n,r)},ownKeys(t){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(t,r){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,r)},defineProperty(t,r,i){return n??(n=e()),Reflect.defineProperty(n,r,i)}})}function Z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function b0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var k0={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},D0={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Vg(e,n){const t={},r=e._zod.def;for(const i in n){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(t[i]=r.shape[i])}return Ge(e,{...e._zod.def,shape:t,checks:[]})}function qg(e,n){const t={...e._zod.def.shape},r=e._zod.def;for(const i in n){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&delete t[i]}return Ge(e,{...e._zod.def,shape:t,checks:[]})}function Mg(e,n){if(!Jt(n))throw new Error("Invalid input to extend: expected a plain object");const t={...e._zod.def,get shape(){const r={...e._zod.def.shape,...n};return ea(this,"shape",r),r},checks:[]};return Ge(e,t)}function Gg(e,n){return Ge(e,{...e._zod.def,get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return ea(this,"shape",t),t},catchall:n._zod.def.catchall,checks:[]})}function Jg(e,n,t){const r=n._zod.def.shape,i={...r};if(t)for(const u in t){if(!(u in r))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(i[u]=e?new e({type:"optional",innerType:r[u]}):r[u])}else for(const u in r)i[u]=e?new e({type:"optional",innerType:r[u]}):r[u];return Ge(n,{...n._zod.def,shape:i,checks:[]})}function Hg(e,n,t){const r=n._zod.def.shape,i={...r};if(t)for(const u in t){if(!(u in i))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(i[u]=new e({type:"nonoptional",innerType:r[u]}))}else for(const u in r)i[u]=new e({type:"nonoptional",innerType:r[u]});return Ge(n,{...n._zod.def,shape:i,checks:[]})}function tt(e,n=0){for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Te(e,n){return n.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function Ht(e){return typeof e=="string"?e:e?.message}function Ve(e,n,t){const r={...e,path:e.path??[]};if(!e.message){const i=Ht(e.inst?._zod.def?.error?.(e))??Ht(n?.error?.(e))??Ht(t.customError?.(e))??Ht(t.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,n?.reportInput||delete r.input,r}function Gi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ji(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function S0(...e){const[n,t,r]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:r}:{...n}}function Qg(e){return Object.entries(e).filter(([n,t])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}var Kg=class{constructor(...e){}},B0=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(n,h0,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ta=p("$ZodError",B0),Qt=p("$ZodError",B0,{Parent:Error});function ia(e,n=t=>t.message){const t={},r=[];for(const i of e.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(n(i))):r.push(n(i));return{formErrors:r,fieldErrors:t}}function ra(e,n){const t=n||function(u){return u.message},r={_errors:[]},i=u=>{for(const a of u.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>i({issues:o}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let o=r,s=0;for(;s<a.path.length;){const c=a.path[s];s===a.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(t(a))):o[c]=o[c]||{_errors:[]},o=o[c],s++}}};return i(e),r}function A0(e,n){const t=n||function(u){return u.message},r={errors:[]},i=(u,a=[])=>{var o,s;for(const c of u.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>i({issues:l},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{const l=[...a,...c.path];if(l.length===0){r.errors.push(t(c));continue}let f=r,m=0;for(;m<l.length;){const d=l[m],v=m===l.length-1;typeof d=="string"?(f.properties??(f.properties={}),(o=f.properties)[d]??(o[d]={errors:[]}),f=f.properties[d]):(f.items??(f.items=[]),(s=f.items)[d]??(s[d]={errors:[]}),f=f.items[d]),v&&f.errors.push(t(c)),m++}}};return i(e),r}function w0(e){const n=[];for(const t of e)typeof t=="number"?n.push(`[${t}]`):typeof t=="symbol"?n.push(`[${JSON.stringify(String(t))}]`):/[^\w$]/.test(t)?n.push(`[${JSON.stringify(t)}]`):(n.length&&n.push("."),n.push(t));return n.join("")}function _0(e){const n=[],t=[...e.issues].sort((r,i)=>r.path.length-i.path.length);for(const r of t)n.push(`\u2716 ${r.message}`),r.path?.length&&n.push(` \u2192 at ${w0(r.path)}`);return n.join(`
174
+ `)}var ua=e=>(n,t,r,i)=>{const u=r?Object.assign(r,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},u);if(a instanceof Promise)throw new et;if(a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Ve(s,u,De())));throw na(o,i?.callee),o}return a.value},aa=ua(Qt),oa=e=>async(n,t,r,i)=>{const u=r?Object.assign(r,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},u);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(i?.Err??e)(a.issues.map(s=>Ve(s,u,De())));throw na(o,i?.callee),o}return a.value},sa=oa(Qt),ca=e=>(n,t,r)=>{const i=r?{...r,async:!1}:{async:!1},u=n._zod.run({value:t,issues:[]},i);if(u instanceof Promise)throw new et;return u.issues.length?{success:!1,error:new(e??ta)(u.issues.map(a=>Ve(a,i,De())))}:{success:!0,data:u.value}},C0=ca(Qt),la=e=>async(n,t,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let u=n._zod.run({value:t,issues:[]},i);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(a=>Ve(a,i,De())))}:{success:!0,data:u.value}},$0=la(Qt),da={};An(da,{base64:()=>q0,base64url:()=>fa,bigint:()=>X0,boolean:()=>tl,browserEmail:()=>r6,cidrv4:()=>Z0,cidrv6:()=>V0,cuid:()=>I0,cuid2:()=>x0,date:()=>H0,datetime:()=>W0,domain:()=>a6,duration:()=>z0,e164:()=>G0,email:()=>P0,emoji:()=>R0,extendedDuration:()=>Wg,guid:()=>U0,hostname:()=>M0,html5Email:()=>n6,integer:()=>el,ipv4:()=>j0,ipv6:()=>L0,ksuid:()=>T0,lowercase:()=>ul,nanoid:()=>O0,null:()=>il,number:()=>nl,rfc5322Email:()=>t6,string:()=>Y0,time:()=>K0,ulid:()=>F0,undefined:()=>rl,unicodeEmail:()=>i6,uppercase:()=>al,uuid:()=>it,uuid4:()=>Yg,uuid6:()=>Xg,uuid7:()=>e6,xid:()=>N0});var I0=/^[cC][^\s-]{8,}$/,x0=/^[0-9a-z]+$/,F0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,N0=/^[0-9a-vA-V]{20}$/,T0=/^[A-Za-z0-9]{27}$/,O0=/^[a-zA-Z0-9_-]{21}$/,z0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Wg=/^[-+]?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)?)??$/,U0=/^([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})$/,it=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([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)$/,Yg=it(4),Xg=it(6),e6=it(7),P0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,n6=/^[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])?)*$/,t6=/^(([^<>()\[\]\\.,;:\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,}))$/,i6=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,r6=/^[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])?)*$/,u6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function R0(){return new RegExp(u6,"u")}var j0=/^(?:(?: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])$/,L0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Z0=/^((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])$/,V0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,q0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fa=/^[A-Za-z0-9_-]*$/,M0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,a6=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,G0=/^\+(?:[0-9]){6,14}[0-9]$/,J0="(?:(?:\\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])))",H0=new RegExp(`^${J0}$`);function Q0(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function K0(e){return new RegExp(`^${Q0(e)}$`)}function W0(e){const n=Q0({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-]\\d{2}:\\d{2})");const r=`${n}(?:${t.join("|")})`;return new RegExp(`^${J0}T(?:${r})$`)}var Y0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},X0=/^\d+n?$/,el=/^\d+$/,nl=/^-?\d+(?:\.\d+)?/i,tl=/true|false/i,il=/null/i,rl=/undefined/i,ul=/^[^A-Z]*$/,al=/^[^a-z]*$/,re=p("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),ol={number:"number",bigint:"bigint",object:"date"},ma=p("$ZodCheckLessThan",(e,n)=>{re.init(e,n);const t=ol[typeof n.value];e._zod.onattach.push(r=>{const i=r._zod.bag,u=(n.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<u&&(n.inclusive?i.maximum=n.value:i.exclusiveMaximum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value<=n.value:r.value<n.value)||r.issues.push({origin:t,code:"too_big",maximum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),va=p("$ZodCheckGreaterThan",(e,n)=>{re.init(e,n);const t=ol[typeof n.value];e._zod.onattach.push(r=>{const i=r._zod.bag,u=(n.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>u&&(n.inclusive?i.minimum=n.value:i.exclusiveMinimum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value>=n.value:r.value>n.value)||r.issues.push({origin:t,code:"too_small",minimum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),sl=p("$ZodCheckMultipleOf",(e,n)=>{re.init(e,n),e._zod.onattach.push(t=>{var r;(r=t._zod.bag).multipleOf??(r.multipleOf=n.value)}),e._zod.check=t=>{if(typeof t.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%n.value===BigInt(0):g0(t.value,n.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:n.value,input:t.value,inst:e,continue:!n.abort})}}),cl=p("$ZodCheckNumberFormat",(e,n)=>{re.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),r=t?"int":"number",[i,u]=k0[n.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=n.format,o.minimum=i,o.maximum=u,t&&(o.pattern=el)}),e._zod.check=a=>{const o=a.value;if(t){if(!Number.isInteger(o)){a.issues.push({expected:r,format:n.format,code:"invalid_type",input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?a.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!n.abort}):a.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!n.abort});return}}o<i&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!n.abort}),o>u&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:u,inst:e})}}),ll=p("$ZodCheckBigIntFormat",(e,n)=>{re.init(e,n);const[t,r]=D0[n.format];e._zod.onattach.push(i=>{const u=i._zod.bag;u.format=n.format,u.minimum=t,u.maximum=r}),e._zod.check=i=>{const u=i.value;u<t&&i.issues.push({origin:"bigint",input:u,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),u>r&&i.issues.push({origin:"bigint",input:u,code:"too_big",maximum:r,inst:e})}}),dl=p("$ZodCheckMaxSize",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const i=r.value;i.size<=n.maximum||r.issues.push({origin:Gi(i),code:"too_big",maximum:n.maximum,input:i,inst:e,continue:!n.abort})}}),fl=p("$ZodCheckMinSize",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const i=r.value;i.size>=n.minimum||r.issues.push({origin:Gi(i),code:"too_small",minimum:n.minimum,input:i,inst:e,continue:!n.abort})}}),ml=p("$ZodCheckSizeEquals",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=n.size,i.maximum=n.size,i.size=n.size}),e._zod.check=r=>{const i=r.value,u=i.size;if(u===n.size)return;const a=u>n.size;r.issues.push({origin:Gi(i),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),vl=p("$ZodCheckMaxLength",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<i&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=n.maximum)return;const a=Ji(i);r.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),pl=p("$ZodCheckMinLength",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>i&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=n.minimum)return;const a=Ji(i);r.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:i,inst:e,continue:!n.abort})}}),hl=p("$ZodCheckLengthEquals",(e,n)=>{var t;re.init(e,n),(t=e._zod.def).when??(t.when=r=>{const i=r.value;return!xn(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=n.length,i.maximum=n.length,i.length=n.length}),e._zod.check=r=>{const i=r.value,u=i.length;if(u===n.length)return;const a=Ji(i),o=u>n.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),Kt=p("$ZodCheckStringFormat",(e,n)=>{var t,r;re.init(e,n),e._zod.onattach.push(i=>{const u=i._zod.bag;u.format=n.format,n.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(n.pattern))}),n.pattern?(t=e._zod).check??(t.check=i=>{n.pattern.lastIndex=0,!n.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:n.format,input:i.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(r=e._zod).check??(r.check=()=>{})}),gl=p("$ZodCheckRegex",(e,n)=>{Kt.init(e,n),e._zod.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),El=p("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=ul),Kt.init(e,n)}),yl=p("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=al),Kt.init(e,n)}),bl=p("$ZodCheckIncludes",(e,n)=>{re.init(e,n);const t=Fn(n.includes),r=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=r,e._zod.onattach.push(i=>{const u=i._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(r)}),e._zod.check=i=>{i.value.includes(n.includes,n.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:i.value,inst:e,continue:!n.abort})}}),kl=p("$ZodCheckStartsWith",(e,n)=>{re.init(e,n);const t=new RegExp(`^${Fn(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=r=>{r.value.startsWith(n.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:r.value,inst:e,continue:!n.abort})}}),Dl=p("$ZodCheckEndsWith",(e,n)=>{re.init(e,n);const t=new RegExp(`.*${Fn(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(t)}),e._zod.check=r=>{r.value.endsWith(n.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:r.value,inst:e,continue:!n.abort})}});function Sl(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues))}var Bl=p("$ZodCheckProperty",(e,n)=>{re.init(e,n),e._zod.check=t=>{const r=n.schema._zod.run({value:t.value[n.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>Sl(i,t,n.property));Sl(r,t,n.property)}}),Al=p("$ZodCheckMimeType",(e,n)=>{re.init(e,n);const t=new Set(n.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=n.mime}),e._zod.check=r=>{t.has(r.value.type)||r.issues.push({code:"invalid_value",values:n.mime,input:r.value.type,inst:e})}}),wl=p("$ZodCheckOverwrite",(e,n)=>{re.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}}),_l=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
175
175
  `).filter(u=>u),r=Math.min(...t.map(u=>u.length-u.trimStart().length)),i=t.map(u=>u.slice(r)).map(u=>" ".repeat(this.indent*2)+u);for(const u of i)this.content.push(u)}compile(){const e=Function,n=this?.args,r=[...(this?.content??[""]).map(i=>` ${i}`)];return new e(...n,r.join(`
176
176
  `))}},Cl={major:4,minor:0,patch:5},P=p("$ZodType",(e,n)=>{var t;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=Cl;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const u of i._zod.onattach)u(e);if(r.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(u,a,o)=>{let s=tt(u),c;for(const l of a){if(l._zod.def.when){if(!l._zod.def.when(u))continue}else if(s)continue;const f=u.issues.length,m=l._zod.check(u);if(m instanceof Promise&&o?.async===!1)throw new et;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,u.issues.length!==f&&(s||(s=tt(u,f)))});else{if(u.issues.length===f)continue;s||(s=tt(u,f))}}return c?c.then(()=>u):u};e._zod.run=(u,a)=>{const o=e._zod.parse(u,a);if(o instanceof Promise){if(a.async===!1)throw new et;return o.then(s=>i(s,r,a))}return i(o,r,a)}}e["~standard"]={validate:i=>{try{const u=C0(e,i);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return $0(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Wt=p("$ZodString",(e,n)=>{P.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Y0(e._zod.bag),e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=String(t.value)}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t}}),Y=p("$ZodStringFormat",(e,n)=>{Kt.init(e,n),Wt.init(e,n)}),$l=p("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=U0),Y.init(e,n)}),Il=p("$ZodUUID",(e,n)=>{if(n.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(r===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=it(r))}else n.pattern??(n.pattern=it());Y.init(e,n)}),xl=p("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=P0),Y.init(e,n)}),Fl=p("$ZodURL",(e,n)=>{Y.init(e,n),e._zod.check=t=>{try{const r=t.value,i=new URL(r),u=i.href;n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(i.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:M0.source,input:t.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:t.value,inst:e,continue:!n.abort})),!r.endsWith("/")&&u.endsWith("/")?t.value=u.slice(0,-1):t.value=u;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!n.abort})}}}),Nl=p("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=R0()),Y.init(e,n)}),Tl=p("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=O0),Y.init(e,n)}),Ol=p("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=I0),Y.init(e,n)}),zl=p("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=x0),Y.init(e,n)}),Ul=p("$ZodULID",(e,n)=>{n.pattern??(n.pattern=F0),Y.init(e,n)}),Pl=p("$ZodXID",(e,n)=>{n.pattern??(n.pattern=N0),Y.init(e,n)}),Rl=p("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=T0),Y.init(e,n)}),jl=p("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=W0(n)),Y.init(e,n)}),Ll=p("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=H0),Y.init(e,n)}),Zl=p("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=K0(n)),Y.init(e,n)}),Vl=p("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=z0),Y.init(e,n)}),ql=p("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=j0),Y.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format="ipv4"})}),Ml=p("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=L0),Y.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format="ipv6"}),e._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!n.abort})}}}),Gl=p("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=Z0),Y.init(e,n)}),Jl=p("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=V0),Y.init(e,n),e._zod.check=t=>{const[r,i]=t.value.split("/");try{if(!i)throw new Error;const u=Number(i);if(`${u}`!==i)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${r}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!n.abort})}}});function pa(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Hl=p("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=q0),Y.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{pa(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!n.abort})}});function Ql(e){if(!fa.test(e))return!1;const n=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),t=n.padEnd(Math.ceil(n.length/4)*4,"=");return pa(t)}var Kl=p("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=fa),Y.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{Ql(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!n.abort})}}),Wl=p("$ZodE164",(e,n)=>{n.pattern??(n.pattern=G0),Y.init(e,n)});function Yl(e,n=null){try{const t=e.split(".");if(t.length!==3)return!1;const[r]=t;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||n&&(!("alg"in i)||i.alg!==n))}catch{return!1}}var Xl=p("$ZodJWT",(e,n)=>{Y.init(e,n),e._zod.check=t=>{Yl(t.value,n.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!n.abort})}}),ed=p("$ZodCustomStringFormat",(e,n)=>{Y.init(e,n),e._zod.check=t=>{n.fn(t.value)||t.issues.push({code:"invalid_format",format:n.format,input:t.value,inst:e,continue:!n.abort})}}),ha=p("$ZodNumber",(e,n)=>{P.init(e,n),e._zod.pattern=e._zod.bag.pattern??nl,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=Number(t.value)}catch{}const i=t.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return t;const u=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...u?{received:u}:{}}),t}}),nd=p("$ZodNumber",(e,n)=>{cl.init(e,n),ha.init(e,n)}),ga=p("$ZodBoolean",(e,n)=>{P.init(e,n),e._zod.pattern=tl,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=!!t.value}catch{}const i=t.value;return typeof i=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),t}}),Ea=p("$ZodBigInt",(e,n)=>{P.init(e,n),e._zod.pattern=X0,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=BigInt(t.value)}catch{}return typeof t.value=="bigint"||t.issues.push({expected:"bigint",code:"invalid_type",input:t.value,inst:e}),t}}),td=p("$ZodBigInt",(e,n)=>{ll.init(e,n),Ea.init(e,n)}),id=p("$ZodSymbol",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return typeof i=="symbol"||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),t}}),rd=p("$ZodUndefined",(e,n)=>{P.init(e,n),e._zod.pattern=rl,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),t}}),ud=p("$ZodNull",(e,n)=>{P.init(e,n),e._zod.pattern=il,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{const i=t.value;return i===null||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),t}}),ad=p("$ZodAny",(e,n)=>{P.init(e,n),e._zod.parse=t=>t}),Hi=p("$ZodUnknown",(e,n)=>{P.init(e,n),e._zod.parse=t=>t}),od=p("$ZodNever",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),sd=p("$ZodVoid",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return typeof i>"u"||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),t}}),cd=p("$ZodDate",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=new Date(t.value)}catch{}const i=t.value,u=i instanceof Date;return u&&!Number.isNaN(i.getTime())||t.issues.push({expected:"date",code:"invalid_type",input:i,...u?{received:"Invalid Date"}:{},inst:e}),t}});function ld(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}var ya=p("$ZodArray",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!Array.isArray(i))return t.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),t;t.value=Array(i.length);const u=[];for(let a=0;a<i.length;a++){const o=i[a],s=n.element._zod.run({value:o,issues:[]},r);s instanceof Promise?u.push(s.then(c=>ld(c,t,a))):ld(s,t,a)}return u.length?Promise.all(u).then(()=>t):t}});function Qi(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}function dd(e,n,t,r){e.issues.length?r[t]===void 0?t in r?n.value[t]=void 0:n.value[t]=e.value:n.issues.push(...Te(t,e.issues)):e.value===void 0?t in r&&(n.value[t]=void 0):n.value[t]=e.value}var fd=p("$ZodObject",(e,n)=>{P.init(e,n);const t=Vi(()=>{const f=Object.keys(n.shape);for(const d of f)if(!(n.shape[d]instanceof P))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const m=b0(n.shape);return{shape:n.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(m)}});Q(e._zod,"propValues",()=>{const f=n.shape,m={};for(const d in f){const v=f[d]._zod;if(v.values){m[d]??(m[d]=new Set);for(const h of v.values)m[d].add(h)}}return m});const r=f=>{const m=new _l(["shape","payload","ctx"]),d=t.value,v=g=>{const k=nt(g);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};m.write("const input = payload.value;");const h=Object.create(null);let b=0;for(const g of d.keys)h[g]=`key_${b++}`;m.write("const newResult = {}");for(const g of d.keys)if(d.optionalKeys.has(g)){const k=h[g];m.write(`const ${k} = ${v(g)};`);const _=nt(g);m.write(`
177
177
  if (${k}.issues.length) {
@@ -196,9 +196,9 @@ query UserBills {
196
196
  if (${k}.issues.length) payload.issues = payload.issues.concat(${k}.issues.map(iss => ({
197
197
  ...iss,
198
198
  path: iss.path ? [${nt(g)}, ...iss.path] : [${nt(g)}]
199
- })));`),m.write(`newResult[${nt(g)}] = ${k}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");const E=m.compile();return(g,k)=>E(f,g,k)};let i;const u=Gt,a=!Zi.jitless,s=a&&E0.value,c=n.catchall;let l;e._zod.parse=(f,m)=>{l??(l=t.value);const d=f.value;if(!u(d))return f.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),f;const v=[];if(a&&s&&m?.async===!1&&m.jitless!==!0)i||(i=r(n.shape)),f=i(f,m);else{f.value={};const k=l.shape;for(const _ of l.keys){const B=k[_],J=B._zod.run({value:d[_],issues:[]},m),q=B._zod.optin==="optional"&&B._zod.optout==="optional";J instanceof Promise?v.push(J.then(F=>q?dd(F,f,_,d):Qi(F,f,_))):q?dd(J,f,_,d):Qi(J,f,_)}}if(!c)return v.length?Promise.all(v).then(()=>f):f;const h=[],b=l.keySet,E=c._zod,g=E.def.type;for(const k of Object.keys(d)){if(b.has(k))continue;if(g==="never"){h.push(k);continue}const _=E.run({value:d[k],issues:[]},m);_ instanceof Promise?v.push(_.then(B=>Qi(B,f,k))):Qi(_,f,k)}return h.length&&f.issues.push({code:"unrecognized_keys",keys:h,input:d,inst:e}),v.length?Promise.all(v).then(()=>f):f}});function md(e,n,t,r){for(const i of e)if(i.issues.length===0)return n.value=i.value,n;return n.issues.push({code:"invalid_union",input:n.value,inst:t,errors:e.map(i=>i.issues.map(u=>Ve(u,r,De())))}),n}var ba=p("$ZodUnion",(e,n)=>{P.init(e,n),Q(e._zod,"optin",()=>n.options.some(t=>t._zod.optin==="optional")?"optional":void 0),Q(e._zod,"optout",()=>n.options.some(t=>t._zod.optout==="optional")?"optional":void 0),Q(e._zod,"values",()=>{if(n.options.every(t=>t._zod.values))return new Set(n.options.flatMap(t=>Array.from(t._zod.values)))}),Q(e._zod,"pattern",()=>{if(n.options.every(t=>t._zod.pattern)){const t=n.options.map(r=>r._zod.pattern);return new RegExp(`^(${t.map(r=>qi(r.source)).join("|")})$`)}}),e._zod.parse=(t,r)=>{let i=!1;const u=[];for(const a of n.options){const o=a._zod.run({value:t.value,issues:[]},r);if(o instanceof Promise)u.push(o),i=!0;else{if(o.issues.length===0)return o;u.push(o)}}return i?Promise.all(u).then(a=>md(a,t,e,r)):md(u,t,e,r)}}),vd=p("$ZodDiscriminatedUnion",(e,n)=>{ba.init(e,n);const t=e._zod.parse;Q(e._zod,"propValues",()=>{const i={};for(const u of n.options){const a=u._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(u)}"`);for(const[o,s]of Object.entries(a)){i[o]||(i[o]=new Set);for(const c of s)i[o].add(c)}}return i});const r=Vi(()=>{const i=n.options,u=new Map;for(const a of i){const o=a._zod.propValues?.[n.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(a)}"`);for(const s of o){if(u.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);u.set(s,a)}}return u});e._zod.parse=(i,u)=>{const a=i.value;if(!Gt(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const o=r.value.get(a?.[n.discriminator]);return o?o._zod.run(i,u):n.unionFallback?t(i,u):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[n.discriminator],inst:e}),i)}}),pd=p("$ZodIntersection",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value,u=n.left._zod.run({value:i,issues:[]},r),a=n.right._zod.run({value:i,issues:[]},r);return u instanceof Promise||a instanceof Promise?Promise.all([u,a]).then(([s,c])=>hd(t,s,c)):hd(t,u,a)}});function ka(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Jt(e)&&Jt(n)){const t=Object.keys(n),r=Object.keys(e).filter(u=>t.indexOf(u)!==-1),i={...e,...n};for(const u of r){const a=ka(e[u],n[u]);if(!a.valid)return{valid:!1,mergeErrorPath:[u,...a.mergeErrorPath]};i[u]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let r=0;r<e.length;r++){const i=e[r],u=n[r],a=ka(i,u);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function hd(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),tt(e))return e;const r=ka(n.value,t.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var Ki=p("$ZodTuple",(e,n)=>{P.init(e,n);const t=n.items,r=t.length-[...t].reverse().findIndex(i=>i._zod.optin!=="optional");e._zod.parse=(i,u)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const o=[];if(!n.rest){const c=a.length>t.length,l=a.length<r-1;if(c||l)return i.issues.push({input:a,inst:e,origin:"array",...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}}),i}let s=-1;for(const c of t){if(s++,s>=a.length&&s>=r)continue;const l=c._zod.run({value:a[s],issues:[]},u);l instanceof Promise?o.push(l.then(f=>Wi(f,i,s))):Wi(l,i,s)}if(n.rest){const c=a.slice(t.length);for(const l of c){s++;const f=n.rest._zod.run({value:l,issues:[]},u);f instanceof Promise?o.push(f.then(m=>Wi(m,i,s))):Wi(f,i,s)}}return o.length?Promise.all(o).then(()=>i):i}});function Wi(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}var gd=p("$ZodRecord",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!Jt(i))return t.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),t;const u=[];if(n.keyType._zod.values){const a=n.keyType._zod.values;t.value={};for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){const c=n.valueType._zod.run({value:i[s],issues:[]},r);c instanceof Promise?u.push(c.then(l=>{l.issues.length&&t.issues.push(...Te(s,l.issues)),t.value[s]=l.value})):(c.issues.length&&t.issues.push(...Te(s,c.issues)),t.value[s]=c.value)}let o;for(const s in i)a.has(s)||(o=o??[],o.push(s));o&&o.length>0&&t.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:o})}else{t.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const o=n.keyType._zod.run({value:a,issues:[]},r);if(o instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(o.issues.length){t.issues.push({origin:"record",code:"invalid_key",issues:o.issues.map(c=>Ve(c,r,De())),input:a,path:[a],inst:e}),t.value[o.value]=o.value;continue}const s=n.valueType._zod.run({value:i[a],issues:[]},r);s instanceof Promise?u.push(s.then(c=>{c.issues.length&&t.issues.push(...Te(a,c.issues)),t.value[o.value]=c.value})):(s.issues.length&&t.issues.push(...Te(a,s.issues)),t.value[o.value]=s.value)}}return u.length?Promise.all(u).then(()=>t):t}}),Ed=p("$ZodMap",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),t;const u=[];t.value=new Map;for(const[a,o]of i){const s=n.keyType._zod.run({value:a,issues:[]},r),c=n.valueType._zod.run({value:o,issues:[]},r);s instanceof Promise||c instanceof Promise?u.push(Promise.all([s,c]).then(([l,f])=>{yd(l,f,t,a,i,e,r)})):yd(s,c,t,a,i,e,r)}return u.length?Promise.all(u).then(()=>t):t}});function yd(e,n,t,r,i,u,a){e.issues.length&&(Mi.has(typeof r)?t.issues.push(...Te(r,e.issues)):t.issues.push({origin:"map",code:"invalid_key",input:i,inst:u,issues:e.issues.map(o=>Ve(o,a,De()))})),n.issues.length&&(Mi.has(typeof r)?t.issues.push(...Te(r,n.issues)):t.issues.push({origin:"map",code:"invalid_element",input:i,inst:u,key:r,issues:n.issues.map(o=>Ve(o,a,De()))})),t.value.set(e.value,n.value)}var bd=p("$ZodSet",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Set))return t.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),t;const u=[];t.value=new Set;for(const a of i){const o=n.valueType._zod.run({value:a,issues:[]},r);o instanceof Promise?u.push(o.then(s=>kd(s,t))):kd(o,t)}return u.length?Promise.all(u).then(()=>t):t}});function kd(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var Dd=p("$ZodEnum",(e,n)=>{P.init(e,n);const t=Xu(n.entries);e._zod.values=new Set(t),e._zod.pattern=new RegExp(`^(${t.filter(r=>Mi.has(typeof r)).map(r=>typeof r=="string"?Fn(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const u=r.value;return e._zod.values.has(u)||r.issues.push({code:"invalid_value",values:t,input:u,inst:e}),r}}),Sd=p("$ZodLiteral",(e,n)=>{P.init(e,n),e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?Fn(t):t?t.toString():String(t)).join("|")})$`),e._zod.parse=(t,r)=>{const i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n.values,input:i,inst:e}),t}}),Bd=p("$ZodFile",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),Da=p("$ZodTransform",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=n.transform(t.value,t);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(t.value=a,t));if(i instanceof Promise)throw new et;return t.value=i,t}}),Ad=p("$ZodOptional",(e,n)=>{P.init(e,n),e._zod.optin="optional",e._zod.optout="optional",Q(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),Q(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${qi(t.source)})?$`):void 0}),e._zod.parse=(t,r)=>n.innerType._zod.optin==="optional"?n.innerType._zod.run(t,r):t.value===void 0?t:n.innerType._zod.run(t,r)}),wd=p("$ZodNullable",(e,n)=>{P.init(e,n),Q(e._zod,"optin",()=>n.innerType._zod.optin),Q(e._zod,"optout",()=>n.innerType._zod.optout),Q(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${qi(t.source)}|null)$`):void 0}),Q(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(t,r)=>t.value===null?t:n.innerType._zod.run(t,r)}),_d=p("$ZodDefault",(e,n)=>{P.init(e,n),e._zod.optin="optional",Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{if(t.value===void 0)return t.value=n.defaultValue,t;const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>Cd(u,n)):Cd(i,n)}});function Cd(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var $d=p("$ZodPrefault",(e,n)=>{P.init(e,n),e._zod.optin="optional",Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>(t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,r))}),Id=p("$ZodNonOptional",(e,n)=>{P.init(e,n),Q(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(r=>r!==void 0)):void 0}),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>xd(u,e)):xd(i,e)}});function xd(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}var Fd=p("$ZodSuccess",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>(t.value=u.issues.length===0,t)):(t.value=i.issues.length===0,t)}}),Nd=p("$ZodCatch",(e,n)=>{P.init(e,n),e._zod.optin="optional",Q(e._zod,"optout",()=>n.innerType._zod.optout),Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>(t.value=u.value,u.issues.length&&(t.value=n.catchValue({...t,error:{issues:u.issues.map(a=>Ve(a,r,De()))},input:t.value}),t.issues=[]),t)):(t.value=i.value,i.issues.length&&(t.value=n.catchValue({...t,error:{issues:i.issues.map(u=>Ve(u,r,De()))},input:t.value}),t.issues=[]),t)}}),Td=p("$ZodNaN",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>((typeof t.value!="number"||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),Sa=p("$ZodPipe",(e,n)=>{P.init(e,n),Q(e._zod,"values",()=>n.in._zod.values),Q(e._zod,"optin",()=>n.in._zod.optin),Q(e._zod,"optout",()=>n.out._zod.optout),Q(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,r)=>{const i=n.in._zod.run(t,r);return i instanceof Promise?i.then(u=>Od(u,n,r)):Od(i,n,r)}});function Od(e,n,t){return tt(e)?e:n.out._zod.run({value:e.value,issues:e.issues},t)}var zd=p("$ZodReadonly",(e,n)=>{P.init(e,n),Q(e._zod,"propValues",()=>n.innerType._zod.propValues),Q(e._zod,"values",()=>n.innerType._zod.values),Q(e._zod,"optin",()=>n.innerType._zod.optin),Q(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(Ud):Ud(i)}});function Ud(e){return e.value=Object.freeze(e.value),e}var Pd=p("$ZodTemplateLiteral",(e,n)=>{P.init(e,n);const t=[];for(const r of n.parts)if(r instanceof P){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const u=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;t.push(i.slice(u,a))}else if(r===null||y0.has(typeof r))t.push(Fn(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${t.join("")}$`),e._zod.parse=(r,i)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"template_literal",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),r)}),Rd=p("$ZodPromise",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>Promise.resolve(t.value).then(i=>n.innerType._zod.run({value:i,issues:[]},r))}),jd=p("$ZodLazy",(e,n)=>{P.init(e,n),Q(e._zod,"innerType",()=>n.getter()),Q(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Q(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Q(e._zod,"optin",()=>e._zod.innerType._zod.optin),Q(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),Ld=p("$ZodCustom",(e,n)=>{re.init(e,n),P.init(e,n),e._zod.parse=(t,r)=>t,e._zod.check=t=>{const r=t.value,i=n.fn(r);if(i instanceof Promise)return i.then(u=>Zd(u,t,r,e));Zd(i,t,r,e)}});function Zd(e,n,t,r){if(!e){const i={code:"custom",input:t,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),n.issues.push(S0(i))}}var Ba={};An(Ba,{ar:()=>o6,az:()=>c6,be:()=>d6,ca:()=>m6,cs:()=>p6,de:()=>g6,en:()=>qd,eo:()=>D6,es:()=>B6,fa:()=>w6,fi:()=>C6,fr:()=>I6,frCA:()=>F6,he:()=>T6,hu:()=>z6,id:()=>P6,it:()=>j6,ja:()=>Z6,kh:()=>q6,ko:()=>G6,mk:()=>H6,ms:()=>K6,nl:()=>Y6,no:()=>e1,ota:()=>t1,pl:()=>a1,ps:()=>r1,pt:()=>s1,ru:()=>l1,sl:()=>f1,sv:()=>v1,ta:()=>h1,th:()=>E1,tr:()=>k1,ua:()=>S1,ur:()=>A1,vi:()=>_1,zhCN:()=>$1,zhTW:()=>x1});var a6=()=>{const e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return i=>{switch(i.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${Z(i.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${u} ${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${u} ${i.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${i.prefix}"`:u.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${u.suffix}"`:u.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${u.includes}"`:u.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${u.pattern}`:`${r[u.format]??i.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function o6(){return{localeError:a6()}}var s6=()=>{const e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i.expected}, daxil olan ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${Z(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${u}${i.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${u}${i.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${u.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:u.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${u.suffix}" il\u0259 bitm\u0259lidir`:u.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${u.includes}" daxil olmal\u0131d\u0131r`:u.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${u.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[u.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function c6(){return{localeError:s6()}}function Vd(e,n,t,r){const i=Math.abs(e),u=i%10,a=i%100;return a>=11&&a<=19?r:u===1?n:u>=2&&u<=4?t:r}var l6=()=>{const e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0456\u045E";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${Z(i.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=Vd(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${u}${i.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=Vd(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${u}${i.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${u.prefix}"`:u.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${u.suffix}"`:u.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${u.includes}"`:u.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${u.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[u.format]??i.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function d6(){return{localeError:l6()}}var f6=()=>{const e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${i.expected}, s'ha rebut ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${Z(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${w(i.values," o ")}`;case"too_big":{const u=i.inclusive?"com a m\xE0xim":"menys de",a=n(i.origin);return a?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${u} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${u} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${u.prefix}"`:u.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${u.suffix}"`:u.format==="includes"?`Format inv\xE0lid: ha d'incloure "${u.includes}"`:u.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${u.pattern}`:`Format inv\xE0lid per a ${r[u.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}};function m6(){return{localeError:f6()}}var v6=()=>{const e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(i))return"pole";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return i=>{switch(i.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i.expected}, obdr\u017Eeno ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${Z(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${u}${i.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${u}${i.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${u.prefix}"`:u.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${u.suffix}"`:u.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${u.includes}"`:u.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${u.pattern}`:`Neplatn\xFD form\xE1t ${r[u.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${w(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}};function p6(){return{localeError:v6()}}var h6=()=>{const 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"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"Zahl";case"object":{if(Array.isArray(i))return"Array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return i=>{switch(i.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${i.expected}, erhalten ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${Z(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${u}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${u}${i.maximum.toString()} ist`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${u}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${u}${i.minimum.toString()} ist`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ung\xFCltiger String: muss mit "${u.prefix}" beginnen`:u.format==="ends_with"?`Ung\xFCltiger String: muss mit "${u.suffix}" enden`:u.format==="includes"?`Ung\xFCltiger String: muss "${u.includes}" enthalten`:u.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${u.pattern} entsprechen`:`Ung\xFCltig: ${r[u.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}};function g6(){return{localeError:h6()}}var E6=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},y6=()=>{const 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"}};function n(r){return e[r]??null}const t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Invalid input: expected ${r.expected}, received ${E6(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${Z(r.values[0])}`:`Invalid option: expected one of ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${u.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${t[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function qd(){return{localeError:y6()}}var b6=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},k6=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(r){return e[r]??null}const t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-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",jwt:"JWT",template_literal:"enigo"};return r=>{switch(r.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${r.expected}, ricevi\u011Dis ${b6(r.input)}`;case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${Z(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${u.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${u.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${t[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function D6(){return{localeError:k6()}}var S6=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(i))return"arreglo";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype)return i.constructor.name}}return u},r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${i.expected}, recibido ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${Z(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Demasiado grande: se esperaba que ${i.origin??"valor"} tuviera ${u}${i.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${i.origin??"valor"} fuera ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Demasiado peque\xF1o: se esperaba que ${i.origin} tuviera ${u}${i.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${i.origin} fuera ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${u.prefix}"`:u.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${u.suffix}"`:u.format==="includes"?`Cadena inv\xE1lida: debe incluir "${u.includes}"`:u.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${u.pattern}`:`Inv\xE1lido ${r[u.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i.origin}`;default:return"Entrada inv\xE1lida"}}};function B6(){return{localeError:S6()}}var A6=()=>{const e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0622\u0631\u0627\u06CC\u0647";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return i=>{switch(i.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${t(i.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${Z(i.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${w(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${u}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${u}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${u.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:u.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${u.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:u.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${u.includes}" \u0628\u0627\u0634\u062F`:u.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${u.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[u.format]??i.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${w(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function w6(){return{localeError:A6()}}var _6=()=>{const e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return i=>{switch(i.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${i.expected}, oli ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${Z(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${u}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${u}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${u.prefix}"`:u.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${u.suffix}"`:u.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${u.includes}"`:u.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${u.pattern}`:`Virheellinen ${r[u.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w(i.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\xF6te"}}};function C6(){return{localeError:_6()}}var $6=()=>{const e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"nombre";case"object":{if(Array.isArray(i))return"tableau";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : ${i.expected} attendu, ${t(i.input)} re\xE7u`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${Z(i.values[0])} attendu`:`Option invalide : une valeur parmi ${w(i.values,"|")} attendue`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Trop grand : ${i.origin??"valeur"} doit ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i.origin??"valeur"} doit \xEAtre ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Trop petit : ${i.origin} doit ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Cha\xEEne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${u.pattern}`:`${r[u.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function I6(){return{localeError:$6()}}var x6=()=>{const e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${i.expected}, re\xE7u ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${Z(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"\u2264":"<",a=n(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${u}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"\u2265":">",a=n(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${u}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Cha\xEEne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${u.pattern}`:`${r[u.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function F6(){return{localeError:x6()}}var N6=()=>{const e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return i=>{switch(i.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${i.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${Z(i.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${i.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${i.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${u.prefix}"`:u.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`:u.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`:u.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${u.pattern}`:`${r[u.format]??i.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${i.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${i.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${i.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function T6(){return{localeError:N6()}}var O6=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(i))return"t\xF6mb";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return i=>{switch(i.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i.expected}, a kapott \xE9rt\xE9k ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${Z(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${u}${i.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${u}${i.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\xC9rv\xE9nytelen string: "${u.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:u.format==="ends_with"?`\xC9rv\xE9nytelen string: "${u.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:u.format==="includes"?`\xC9rv\xE9nytelen string: "${u.includes}" \xE9rt\xE9ket kell tartalmaznia`:u.format==="regex"?`\xC9rv\xE9nytelen string: ${u.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[u.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function z6(){return{localeError:O6()}}var U6=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",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",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak valid: diharapkan ${i.expected}, diterima ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${Z(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${u}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${u}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`String tidak valid: harus dimulai dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak valid: harus berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak valid: harus menyertakan "${u.includes}"`:u.format==="regex"?`String tidak valid: harus sesuai pola ${u.pattern}`:`${r[u.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function P6(){return{localeError:U6()}}var R6=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"numero";case"object":{if(Array.isArray(i))return"vettore";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input non valido: atteso ${i.expected}, ricevuto ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input non valido: atteso ${Z(i.values[0])}`:`Opzione non valida: atteso uno tra ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${u}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${u}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Stringa non valida: deve iniziare con "${u.prefix}"`:u.format==="ends_with"?`Stringa non valida: deve terminare con "${u.suffix}"`:u.format==="includes"?`Stringa non valida: deve includere "${u.includes}"`:u.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${u.pattern}`:`Invalid ${r[u.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${w(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function j6(){return{localeError:R6()}}var L6=()=>{const e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(i))return"\u914D\u5217";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${t(i.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${Z(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${w(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const u=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=n(i.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${a.unit??"\u8981\u7D20"}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const u=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=n(i.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${a.unit}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${u.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[u.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${i.keys.length>1?"\u7FA4":""}: ${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Z6(){return{localeError:L6()}}var V6=()=>{const e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(i))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(i===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return i=>{switch(i.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${Z(i.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${u} ${i.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${u} ${i.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${u.prefix}"`:u.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${u.suffix}"`:u.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${u.includes}"`:u.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${u.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${w(i.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function q6(){return{localeError:V6()}}var M6=()=>{const e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return i=>{switch(i.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${t(i.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${Z(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${w(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const u=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=u==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(i.origin),s=o?.unit??"\uC694\uC18C";return o?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${s} ${u}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${u}${a}`}case"too_small":{const u=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=u==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(i.origin),s=o?.unit??"\uC694\uC18C";return o?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${s} ${u}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${u}${a}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:u.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:u.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:u.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${u.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[u.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${w(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function G6(){return{localeError:M6()}}var J6=()=>{const e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(i))return"\u043D\u0438\u0437\u0430";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return i=>{switch(i.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${Z(i.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${u}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${u}${i.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${u.prefix}"`:u.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${u.suffix}"`:u.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${u.includes}"`:u.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${u.pattern}`:`Invalid ${r[u.format]??i.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function H6(){return{localeError:J6()}}var Q6=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"nombor";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak sah: dijangka ${i.expected}, diterima ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${Z(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`String tidak sah: mesti bermula dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak sah: mesti mengandungi "${u.includes}"`:u.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${u.pattern}`:`${r[u.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function K6(){return{localeError:Q6()}}var W6=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"getal";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return i=>{switch(i.code){case"invalid_type":return`Ongeldige invoer: verwacht ${i.expected}, ontving ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${Z(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Te lang: verwacht dat ${i.origin??"waarde"} ${u}${i.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${i.origin??"waarde"} ${u}${i.maximum.toString()} is`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Te kort: verwacht dat ${i.origin} ${u}${i.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${i.origin} ${u}${i.minimum.toString()} is`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ongeldige tekst: moet met "${u.prefix}" beginnen`:u.format==="ends_with"?`Ongeldige tekst: moet op "${u.suffix}" eindigen`:u.format==="includes"?`Ongeldige tekst: moet "${u.includes}" bevatten`:u.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${u.pattern}`:`Ongeldig: ${r[u.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function Y6(){return{localeError:W6()}}var X6=()=>{const e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"tall";case"object":{if(Array.isArray(i))return"liste";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Ugyldig input: forventet ${i.expected}, fikk ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${Z(i.values[0])}`:`Ugyldig valg: forventet en av ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${u}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`For lite(n): forventet ${i.origin} til \xE5 ha ${u}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${u.pattern}`:`Ugyldig ${r[u.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function e1(){return{localeError:X6()}}var n1=()=>{const e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"numara";case"object":{if(Array.isArray(i))return"saf";if(i===null)return"gayb";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return i=>{switch(i.code){case"invalid_type":return`F\xE2sit giren: umulan ${i.expected}, al\u0131nan ${t(i.input)}`;case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${Z(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${u}${i.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${u}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${u}${i.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${u}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const u=i;return u.format==="starts_with"?`F\xE2sit metin: "${u.prefix}" ile ba\u015Flamal\u0131.`:u.format==="ends_with"?`F\xE2sit metin: "${u.suffix}" ile bitmeli.`:u.format==="includes"?`F\xE2sit metin: "${u.includes}" ihtiv\xE2 etmeli.`:u.format==="regex"?`F\xE2sit metin: ${u.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[u.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function t1(){return{localeError:n1()}}var i1=()=>{const e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0627\u0631\u06D0";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return i=>{switch(i.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${t(i.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${Z(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${w(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${u}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${u}${i.maximum.toString()} \u0648\u064A`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${u.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:u.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${u.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:u.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${u.includes}" \u0648\u0644\u0631\u064A`:u.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${u.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[u.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function r1(){return{localeError:i1()}}var u1=()=>{const e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"liczba";case"object":{if(Array.isArray(i))return"tablica";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"wyra\u017Cenie",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",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return i=>{switch(i.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i.expected}, otrzymano ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${Z(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${u}${i.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${u}${i.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${u.prefix}"`:u.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${u.suffix}"`:u.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${u.includes}"`:u.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${u.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[u.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function a1(){return{localeError:u1()}}var o1=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(i))return"array";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"padr\xE3o",email:"endere\xE7o de 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:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${i.expected}, recebido ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${Z(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${u}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${u}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${u.prefix}"`:u.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${u.suffix}"`:u.format==="includes"?`Texto inv\xE1lido: deve incluir "${u.includes}"`:u.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${u.pattern}`:`${r[u.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}};function s1(){return{localeError:o1()}}function Md(e,n,t,r){const i=Math.abs(e),u=i%10,a=i%100;return a>=11&&a<=19?r:u===1?n:u>=2&&u<=4?t:r}var c1=()=>{const e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${Z(i.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=Md(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${u}${i.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=Md(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${u}${i.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${u.prefix}"`:u.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${u.suffix}"`:u.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${u.includes}"`:u.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${u.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function l1(){return{localeError:c1()}}var d1=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(i))return"tabela";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return i=>{switch(i.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${i.expected}, prejeto ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${Z(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${u}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${u}${i.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${u.prefix}"`:u.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${u.suffix}"`:u.format==="includes"?`Neveljaven niz: mora vsebovati "${u.includes}"`:u.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${u.pattern}`:`Neveljaven ${r[u.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${w(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function f1(){return{localeError:d1()}}var m1=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"antal";case"object":{if(Array.isArray(i))return"lista";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"regulj\xE4rt 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-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return i=>{switch(i.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${i.expected}, fick ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${Z(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${u.prefix}"`:u.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${u.suffix}"`:u.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${u.includes}"`:u.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${u.pattern}"`:`Ogiltig(t) ${r[u.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function v1(){return{localeError:m1()}}var p1=()=>{const e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(i))return"\u0B85\u0BA3\u0BBF";if(i===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${Z(i.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${w(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${u}${i.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${u}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${u}${i.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${u}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${u.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function h1(){return{localeError:p1()}}var g1=()=>{const e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(i))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(i===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return i=>{switch(i.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${Z(i.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=n(i.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${u} ${i.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=n(i.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${u} ${i.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${u.prefix}"`:u.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${u.suffix}"`:u.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${u.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:u.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${u.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[u.format]??i.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${i.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${w(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function E1(){return{localeError:g1()}}var y1=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},b1=()=>{const e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function n(r){return e[r]??null}const t={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return r=>{switch(r.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${r.expected}, al\u0131nan ${y1(r.input)}`;case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Z(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${u.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${u.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${t[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${w(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function k1(){return{localeError:b1()}}var D1=()=>{const e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${Z(i.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} \u0431\u0443\u0434\u0435 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${u.prefix}"`:u.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${u.suffix}"`:u.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${u.includes}"`:u.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${u.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${i.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function S1(){return{localeError:D1()}}var B1=()=>{const e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(i))return"\u0622\u0631\u06D2";if(i===null)return"\u0646\u0644";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return i=>{switch(i.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${t(i.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${Z(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${w(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${u}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${u}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${u}${i.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${u}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${u.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${i.keys.length>1?"\u0632":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function A1(){return{localeError:B1()}}var w1=()=>{const e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(i))return"m\u1EA3ng";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return i=>{switch(i.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${Z(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${u.prefix}"`:u.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${u.suffix}"`:u.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${u.includes}"`:u.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${u.pattern}`:`${r[u.format]??i.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${w(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function _1(){return{localeError:w1()}}var C1=()=>{const e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(i))return"\u6570\u7EC4";if(i===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return i=>{switch(i.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${Z(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${u}${i.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${u}${i.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${u.prefix}" \u5F00\u5934`:u.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${u.suffix}" \u7ED3\u5C3E`:u.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${u.includes}"`:u.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${u.pattern}`:`\u65E0\u6548${r[u.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function $1(){return{localeError:C1()}}var I1=()=>{const e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i.expected}\uFF0C\u4F46\u6536\u5230 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${Z(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${u}${i.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${u}${i.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${u.prefix}" \u958B\u982D`:u.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${u.suffix}" \u7D50\u5C3E`:u.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${u.includes}"`:u.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${u.pattern}`:`\u7121\u6548\u7684 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function x1(){return{localeError:I1()}}var Gd=Symbol("ZodOutput"),Jd=Symbol("ZodInput"),Aa=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...n){const t=n[0];if(this._map.set(e,t),t&&typeof t=="object"&&"id"in t){if(this._idmap.has(t.id))throw new Error(`ID ${t.id} already exists in the registry`);this._idmap.set(t.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const t={...this.get(n)??{}};return delete t.id,{...t,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function wa(){return new Aa}var Nn=wa();function Hd(e,n){return new e({type:"string",...S(n)})}function Qd(e,n){return new e({type:"string",coerce:!0,...S(n)})}function _a(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...S(n)})}function Yi(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...S(n)})}function Ca(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...S(n)})}function $a(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...S(n)})}function Ia(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...S(n)})}function xa(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...S(n)})}function Fa(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...S(n)})}function Na(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...S(n)})}function Ta(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...S(n)})}function Oa(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...S(n)})}function za(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...S(n)})}function Ua(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...S(n)})}function Pa(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...S(n)})}function Ra(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...S(n)})}function ja(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...S(n)})}function La(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...S(n)})}function Za(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...S(n)})}function Va(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...S(n)})}function qa(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...S(n)})}function Ma(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...S(n)})}function Ga(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...S(n)})}function Ja(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...S(n)})}var Kd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Wd(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...S(n)})}function Yd(e,n){return new e({type:"string",format:"date",check:"string_format",...S(n)})}function Xd(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...S(n)})}function ef(e,n){return new e({type:"string",format:"duration",check:"string_format",...S(n)})}function nf(e,n){return new e({type:"number",checks:[],...S(n)})}function tf(e,n){return new e({type:"number",coerce:!0,checks:[],...S(n)})}function rf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...S(n)})}function uf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...S(n)})}function af(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...S(n)})}function of(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...S(n)})}function sf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...S(n)})}function cf(e,n){return new e({type:"boolean",...S(n)})}function lf(e,n){return new e({type:"boolean",coerce:!0,...S(n)})}function df(e,n){return new e({type:"bigint",...S(n)})}function ff(e,n){return new e({type:"bigint",coerce:!0,...S(n)})}function mf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...S(n)})}function vf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...S(n)})}function pf(e,n){return new e({type:"symbol",...S(n)})}function hf(e,n){return new e({type:"undefined",...S(n)})}function gf(e,n){return new e({type:"null",...S(n)})}function Ef(e){return new e({type:"any"})}function Xi(e){return new e({type:"unknown"})}function yf(e,n){return new e({type:"never",...S(n)})}function bf(e,n){return new e({type:"void",...S(n)})}function kf(e,n){return new e({type:"date",...S(n)})}function Df(e,n){return new e({type:"date",coerce:!0,...S(n)})}function Sf(e,n){return new e({type:"nan",...S(n)})}function Tn(e,n){return new ma({check:"less_than",...S(n),value:e,inclusive:!1})}function qe(e,n){return new ma({check:"less_than",...S(n),value:e,inclusive:!0})}function On(e,n){return new va({check:"greater_than",...S(n),value:e,inclusive:!1})}function Ie(e,n){return new va({check:"greater_than",...S(n),value:e,inclusive:!0})}function Bf(e){return On(0,e)}function Af(e){return Tn(0,e)}function wf(e){return qe(0,e)}function _f(e){return Ie(0,e)}function Yt(e,n){return new sl({check:"multiple_of",...S(n),value:e})}function er(e,n){return new dl({check:"max_size",...S(n),maximum:e})}function Xt(e,n){return new fl({check:"min_size",...S(n),minimum:e})}function Ha(e,n){return new ml({check:"size_equals",...S(n),size:e})}function nr(e,n){return new vl({check:"max_length",...S(n),maximum:e})}function rt(e,n){return new pl({check:"min_length",...S(n),minimum:e})}function tr(e,n){return new hl({check:"length_equals",...S(n),length:e})}function Qa(e,n){return new gl({check:"string_format",format:"regex",...S(n),pattern:e})}function Ka(e){return new El({check:"string_format",format:"lowercase",...S(e)})}function Wa(e){return new yl({check:"string_format",format:"uppercase",...S(e)})}function Ya(e,n){return new bl({check:"string_format",format:"includes",...S(n),includes:e})}function Xa(e,n){return new kl({check:"string_format",format:"starts_with",...S(n),prefix:e})}function eo(e,n){return new Dl({check:"string_format",format:"ends_with",...S(n),suffix:e})}function Cf(e,n,t){return new Bl({check:"property",property:e,schema:n,...S(t)})}function no(e,n){return new Al({check:"mime_type",mime:e,...S(n)})}function zn(e){return new wl({check:"overwrite",tx:e})}function to(e){return zn(n=>n.normalize(e))}function io(){return zn(e=>e.trim())}function ro(){return zn(e=>e.toLowerCase())}function uo(){return zn(e=>e.toUpperCase())}function ao(e,n,t){return new e({type:"array",element:n,...S(t)})}function F1(e,n,t){return new e({type:"union",options:n,...S(t)})}function N1(e,n,t,r){return new e({type:"union",options:t,discriminator:n,...S(r)})}function T1(e,n,t){return new e({type:"intersection",left:n,right:t})}function $f(e,n,t,r){const i=t instanceof P,u=i?r:t,a=i?t:null;return new e({type:"tuple",items:n,rest:a,...S(u)})}function O1(e,n,t,r){return new e({type:"record",keyType:n,valueType:t,...S(r)})}function z1(e,n,t,r){return new e({type:"map",keyType:n,valueType:t,...S(r)})}function U1(e,n,t){return new e({type:"set",valueType:n,...S(t)})}function P1(e,n,t){const r=Array.isArray(n)?Object.fromEntries(n.map(i=>[i,i])):n;return new e({type:"enum",entries:r,...S(t)})}function R1(e,n,t){return new e({type:"enum",entries:n,...S(t)})}function j1(e,n,t){return new e({type:"literal",values:Array.isArray(n)?n:[n],...S(t)})}function If(e,n){return new e({type:"file",...S(n)})}function L1(e,n){return new e({type:"transform",transform:n})}function Z1(e,n){return new e({type:"optional",innerType:n})}function V1(e,n){return new e({type:"nullable",innerType:n})}function q1(e,n,t){return new e({type:"default",innerType:n,get defaultValue(){return typeof t=="function"?t():t}})}function M1(e,n,t){return new e({type:"nonoptional",innerType:n,...S(t)})}function G1(e,n){return new e({type:"success",innerType:n})}function J1(e,n,t){return new e({type:"catch",innerType:n,catchValue:typeof t=="function"?t:()=>t})}function H1(e,n,t){return new e({type:"pipe",in:n,out:t})}function Q1(e,n){return new e({type:"readonly",innerType:n})}function K1(e,n,t){return new e({type:"template_literal",parts:n,...S(t)})}function W1(e,n){return new e({type:"lazy",getter:n})}function Y1(e,n){return new e({type:"promise",innerType:n})}function xf(e,n,t){const r=S(t);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:n,...r})}function Ff(e,n,t){return new e({type:"custom",check:"custom",fn:n,...S(t)})}function Nf(e,n){const t=S(n);let r=t.truthy??["true","1","yes","on","y","enabled"],i=t.falsy??["false","0","no","off","n","disabled"];t.case!=="sensitive"&&(r=r.map(v=>typeof v=="string"?v.toLowerCase():v),i=i.map(v=>typeof v=="string"?v.toLowerCase():v));const u=new Set(r),a=new Set(i),o=e.Pipe??Sa,s=e.Boolean??ga,c=e.String??Wt,l=e.Transform??Da,f=new l({type:"transform",transform:(v,h)=>{let b=v;return t.case!=="sensitive"&&(b=b.toLowerCase()),u.has(b)?!0:a.has(b)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...u,...a],input:h.value,inst:f}),{})},error:t.error}),m=new o({type:"pipe",in:new c({type:"string",error:t.error}),out:f,error:t.error});return new o({type:"pipe",in:m,out:new s({type:"boolean",error:t.error}),error:t.error})}function Tf(e,n,t,r={}){const i=S(r),u={...S(r),check:"string_format",type:"string",format:n,fn:typeof t=="function"?t:o=>t.test(o),...i};return t instanceof RegExp&&(u.pattern=t),new e(u)}var Of=class{constructor(e){this._def=e,this.def=e}implement(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=(...t)=>{const r=this._def.input?aa(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...r);return this._def.output?aa(this._def.output,i,void 0,{callee:n}):i};return n}implementAsync(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=async(...t)=>{const r=this._def.input?await sa(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...r);return this._def.output?sa(this._def.output,i,void 0,{callee:n}):i};return n}input(...e){const n=this.constructor;return Array.isArray(e[0])?new n({type:"function",input:new Ki({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new n({type:"function",input:e[0],output:this._def.output})}output(e){const n=this.constructor;return new n({type:"function",input:this._def.input,output:e})}};function zf(e){return new Of({type:"function",input:Array.isArray(e?.input)?$f(Ki,e?.input):e?.input??ao(ya,Xi(Hi)),output:e?.output??Xi(Hi)})}var oo=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??Nn,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,n={path:[],schemaPath:[]}){var t;const r=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u=this.seen.get(e);if(u)return u.count++,n.schemaPath.includes(e)&&(u.cycle=n.path),u.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(e,a);const o=e._zod.toJSONSchema?.();if(o)a.schema=o;else{const l={...n,schemaPath:[...n.schemaPath,e],path:n.path},f=e._zod.parent;if(f)a.ref=f,this.process(f,l),this.seen.get(f).isParent=!0;else{const m=a.schema;switch(r.type){case"string":{const d=m;d.type="string";const{minimum:v,maximum:h,format:b,patterns:E,contentEncoding:g}=e._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof h=="number"&&(d.maxLength=h),b&&(d.format=i[b]??b,d.format===""&&delete d.format),g&&(d.contentEncoding=g),E&&E.size>0){const k=[...E];k.length===1?d.pattern=k[0].source:k.length>1&&(a.schema.allOf=[...k.map(_=>({...this.target==="draft-7"?{type:"string"}:{},pattern:_.source}))])}break}case"number":{const d=m,{minimum:v,maximum:h,format:b,multipleOf:E,exclusiveMaximum:g,exclusiveMinimum:k}=e._zod.bag;typeof b=="string"&&b.includes("int")?d.type="integer":d.type="number",typeof k=="number"&&(d.exclusiveMinimum=k),typeof v=="number"&&(d.minimum=v,typeof k=="number"&&(k>=v?delete d.minimum:delete d.exclusiveMinimum)),typeof g=="number"&&(d.exclusiveMaximum=g),typeof h=="number"&&(d.maximum=h,typeof g=="number"&&(g<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof E=="number"&&(d.multipleOf=E);break}case"boolean":{const d=m;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const d=m,{minimum:v,maximum:h}=e._zod.bag;typeof v=="number"&&(d.minItems=v),typeof h=="number"&&(d.maxItems=h),d.type="array",d.items=this.process(r.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=m;d.type="object",d.properties={};const v=r.shape;for(const E in v)d.properties[E]=this.process(v[E],{...l,path:[...l.path,"properties",E]});const h=new Set(Object.keys(v)),b=new Set([...h].filter(E=>{const g=r.shape[E]._zod;return this.io==="input"?g.optin===void 0:g.optout===void 0}));b.size>0&&(d.required=Array.from(b)),r.catchall?._zod.def.type==="never"?d.additionalProperties=!1:r.catchall?r.catchall&&(d.additionalProperties=this.process(r.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=m;d.anyOf=r.options.map((v,h)=>this.process(v,{...l,path:[...l.path,"anyOf",h]}));break}case"intersection":{const d=m,v=this.process(r.left,{...l,path:[...l.path,"allOf",0]}),h=this.process(r.right,{...l,path:[...l.path,"allOf",1]}),b=g=>"allOf"in g&&Object.keys(g).length===1,E=[...b(v)?v.allOf:[v],...b(h)?h.allOf:[h]];d.allOf=E;break}case"tuple":{const d=m;d.type="array";const v=r.items.map((E,g)=>this.process(E,{...l,path:[...l.path,"prefixItems",g]}));if(this.target==="draft-2020-12"?d.prefixItems=v:d.items=v,r.rest){const E=this.process(r.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=E:d.additionalItems=E}r.rest&&(d.items=this.process(r.rest,{...l,path:[...l.path,"items"]}));const{minimum:h,maximum:b}=e._zod.bag;typeof h=="number"&&(d.minItems=h),typeof b=="number"&&(d.maxItems=b);break}case"record":{const d=m;d.type="object",d.propertyNames=this.process(r.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(r.valueType,{...l,path:[...l.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const d=m,v=Xu(r.entries);v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),d.enum=v;break}case"literal":{const d=m,v=[];for(const h of r.values)if(h===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");v.push(Number(h))}else v.push(h);if(v.length!==0)if(v.length===1){const h=v[0];d.type=h===null?"null":typeof h,d.const=h}else v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),v.every(h=>typeof h=="boolean")&&(d.type="string"),v.every(h=>h===null)&&(d.type="null"),d.enum=v;break}case"file":{const d=m,v={type:"string",format:"binary",contentEncoding:"binary"},{minimum:h,maximum:b,mime:E}=e._zod.bag;h!==void 0&&(v.minLength=h),b!==void 0&&(v.maxLength=b),E?E.length===1?(v.contentMediaType=E[0],Object.assign(d,v)):d.anyOf=E.map(g=>({...v,contentMediaType:g})):Object.assign(d,v);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const d=this.process(r.innerType,l);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,l),a.ref=r.innerType;break}case"success":{const d=m;d.type="boolean";break}case"default":{this.process(r.innerType,l),a.ref=r.innerType,m.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,l),a.ref=r.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,l),a.ref=r.innerType;let d;try{d=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const d=m,v=e._zod.pattern;if(!v)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=v.source;break}case"pipe":{const d=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(d,l),a.ref=d;break}case"readonly":{this.process(r.innerType,l),a.ref=r.innerType,m.readOnly=!0;break}case"promise":{this.process(r.innerType,l),a.ref=r.innerType;break}case"optional":{this.process(r.innerType,l),a.ref=r.innerType;break}case"lazy":{const d=e._zod.innerType;this.process(d,l),a.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const s=this.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),this.io==="input"&&ae(e)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((t=a.schema).default??(t.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,n){const t={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},r=this.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=c=>{const l=this.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const v=t.external.registry.get(c[0])?.id,h=t.external.uri??(E=>E);if(v)return{ref:h(v)};const b=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=b,{defId:b,ref:`${h("__shared")}#/${l}/${b}`}}if(c[1]===r)return{ref:"#"};const m=`#/${l}/`,d=c[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},u=c=>{if(c[1].schema.$ref)return;const l=c[1],{ref:f,defId:m}=i(c);l.def={...l.schema},m&&(l.defId=m);const d=l.schema;for(const v in d)delete d[v];d.$ref=f};if(t.cycles==="throw")for(const c of this.seen.entries()){const l=c[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
199
+ })));`),m.write(`newResult[${nt(g)}] = ${k}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");const E=m.compile();return(g,k)=>E(f,g,k)};let i;const u=Gt,a=!Zi.jitless,s=a&&E0.value,c=n.catchall;let l;e._zod.parse=(f,m)=>{l??(l=t.value);const d=f.value;if(!u(d))return f.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),f;const v=[];if(a&&s&&m?.async===!1&&m.jitless!==!0)i||(i=r(n.shape)),f=i(f,m);else{f.value={};const k=l.shape;for(const _ of l.keys){const B=k[_],J=B._zod.run({value:d[_],issues:[]},m),q=B._zod.optin==="optional"&&B._zod.optout==="optional";J instanceof Promise?v.push(J.then(F=>q?dd(F,f,_,d):Qi(F,f,_))):q?dd(J,f,_,d):Qi(J,f,_)}}if(!c)return v.length?Promise.all(v).then(()=>f):f;const h=[],b=l.keySet,E=c._zod,g=E.def.type;for(const k of Object.keys(d)){if(b.has(k))continue;if(g==="never"){h.push(k);continue}const _=E.run({value:d[k],issues:[]},m);_ instanceof Promise?v.push(_.then(B=>Qi(B,f,k))):Qi(_,f,k)}return h.length&&f.issues.push({code:"unrecognized_keys",keys:h,input:d,inst:e}),v.length?Promise.all(v).then(()=>f):f}});function md(e,n,t,r){for(const i of e)if(i.issues.length===0)return n.value=i.value,n;return n.issues.push({code:"invalid_union",input:n.value,inst:t,errors:e.map(i=>i.issues.map(u=>Ve(u,r,De())))}),n}var ba=p("$ZodUnion",(e,n)=>{P.init(e,n),Q(e._zod,"optin",()=>n.options.some(t=>t._zod.optin==="optional")?"optional":void 0),Q(e._zod,"optout",()=>n.options.some(t=>t._zod.optout==="optional")?"optional":void 0),Q(e._zod,"values",()=>{if(n.options.every(t=>t._zod.values))return new Set(n.options.flatMap(t=>Array.from(t._zod.values)))}),Q(e._zod,"pattern",()=>{if(n.options.every(t=>t._zod.pattern)){const t=n.options.map(r=>r._zod.pattern);return new RegExp(`^(${t.map(r=>qi(r.source)).join("|")})$`)}}),e._zod.parse=(t,r)=>{let i=!1;const u=[];for(const a of n.options){const o=a._zod.run({value:t.value,issues:[]},r);if(o instanceof Promise)u.push(o),i=!0;else{if(o.issues.length===0)return o;u.push(o)}}return i?Promise.all(u).then(a=>md(a,t,e,r)):md(u,t,e,r)}}),vd=p("$ZodDiscriminatedUnion",(e,n)=>{ba.init(e,n);const t=e._zod.parse;Q(e._zod,"propValues",()=>{const i={};for(const u of n.options){const a=u._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(u)}"`);for(const[o,s]of Object.entries(a)){i[o]||(i[o]=new Set);for(const c of s)i[o].add(c)}}return i});const r=Vi(()=>{const i=n.options,u=new Map;for(const a of i){const o=a._zod.propValues?.[n.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(a)}"`);for(const s of o){if(u.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);u.set(s,a)}}return u});e._zod.parse=(i,u)=>{const a=i.value;if(!Gt(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const o=r.value.get(a?.[n.discriminator]);return o?o._zod.run(i,u):n.unionFallback?t(i,u):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[n.discriminator],inst:e}),i)}}),pd=p("$ZodIntersection",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value,u=n.left._zod.run({value:i,issues:[]},r),a=n.right._zod.run({value:i,issues:[]},r);return u instanceof Promise||a instanceof Promise?Promise.all([u,a]).then(([s,c])=>hd(t,s,c)):hd(t,u,a)}});function ka(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Jt(e)&&Jt(n)){const t=Object.keys(n),r=Object.keys(e).filter(u=>t.indexOf(u)!==-1),i={...e,...n};for(const u of r){const a=ka(e[u],n[u]);if(!a.valid)return{valid:!1,mergeErrorPath:[u,...a.mergeErrorPath]};i[u]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let r=0;r<e.length;r++){const i=e[r],u=n[r],a=ka(i,u);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function hd(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),tt(e))return e;const r=ka(n.value,t.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var Ki=p("$ZodTuple",(e,n)=>{P.init(e,n);const t=n.items,r=t.length-[...t].reverse().findIndex(i=>i._zod.optin!=="optional");e._zod.parse=(i,u)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const o=[];if(!n.rest){const c=a.length>t.length,l=a.length<r-1;if(c||l)return i.issues.push({input:a,inst:e,origin:"array",...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}}),i}let s=-1;for(const c of t){if(s++,s>=a.length&&s>=r)continue;const l=c._zod.run({value:a[s],issues:[]},u);l instanceof Promise?o.push(l.then(f=>Wi(f,i,s))):Wi(l,i,s)}if(n.rest){const c=a.slice(t.length);for(const l of c){s++;const f=n.rest._zod.run({value:l,issues:[]},u);f instanceof Promise?o.push(f.then(m=>Wi(m,i,s))):Wi(f,i,s)}}return o.length?Promise.all(o).then(()=>i):i}});function Wi(e,n,t){e.issues.length&&n.issues.push(...Te(t,e.issues)),n.value[t]=e.value}var gd=p("$ZodRecord",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!Jt(i))return t.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),t;const u=[];if(n.keyType._zod.values){const a=n.keyType._zod.values;t.value={};for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){const c=n.valueType._zod.run({value:i[s],issues:[]},r);c instanceof Promise?u.push(c.then(l=>{l.issues.length&&t.issues.push(...Te(s,l.issues)),t.value[s]=l.value})):(c.issues.length&&t.issues.push(...Te(s,c.issues)),t.value[s]=c.value)}let o;for(const s in i)a.has(s)||(o=o??[],o.push(s));o&&o.length>0&&t.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:o})}else{t.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const o=n.keyType._zod.run({value:a,issues:[]},r);if(o instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(o.issues.length){t.issues.push({origin:"record",code:"invalid_key",issues:o.issues.map(c=>Ve(c,r,De())),input:a,path:[a],inst:e}),t.value[o.value]=o.value;continue}const s=n.valueType._zod.run({value:i[a],issues:[]},r);s instanceof Promise?u.push(s.then(c=>{c.issues.length&&t.issues.push(...Te(a,c.issues)),t.value[o.value]=c.value})):(s.issues.length&&t.issues.push(...Te(a,s.issues)),t.value[o.value]=s.value)}}return u.length?Promise.all(u).then(()=>t):t}}),Ed=p("$ZodMap",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),t;const u=[];t.value=new Map;for(const[a,o]of i){const s=n.keyType._zod.run({value:a,issues:[]},r),c=n.valueType._zod.run({value:o,issues:[]},r);s instanceof Promise||c instanceof Promise?u.push(Promise.all([s,c]).then(([l,f])=>{yd(l,f,t,a,i,e,r)})):yd(s,c,t,a,i,e,r)}return u.length?Promise.all(u).then(()=>t):t}});function yd(e,n,t,r,i,u,a){e.issues.length&&(Mi.has(typeof r)?t.issues.push(...Te(r,e.issues)):t.issues.push({origin:"map",code:"invalid_key",input:i,inst:u,issues:e.issues.map(o=>Ve(o,a,De()))})),n.issues.length&&(Mi.has(typeof r)?t.issues.push(...Te(r,n.issues)):t.issues.push({origin:"map",code:"invalid_element",input:i,inst:u,key:r,issues:n.issues.map(o=>Ve(o,a,De()))})),t.value.set(e.value,n.value)}var bd=p("$ZodSet",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Set))return t.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),t;const u=[];t.value=new Set;for(const a of i){const o=n.valueType._zod.run({value:a,issues:[]},r);o instanceof Promise?u.push(o.then(s=>kd(s,t))):kd(o,t)}return u.length?Promise.all(u).then(()=>t):t}});function kd(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var Dd=p("$ZodEnum",(e,n)=>{P.init(e,n);const t=Xu(n.entries);e._zod.values=new Set(t),e._zod.pattern=new RegExp(`^(${t.filter(r=>Mi.has(typeof r)).map(r=>typeof r=="string"?Fn(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const u=r.value;return e._zod.values.has(u)||r.issues.push({code:"invalid_value",values:t,input:u,inst:e}),r}}),Sd=p("$ZodLiteral",(e,n)=>{P.init(e,n),e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?Fn(t):t?t.toString():String(t)).join("|")})$`),e._zod.parse=(t,r)=>{const i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n.values,input:i,inst:e}),t}}),Bd=p("$ZodFile",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),Da=p("$ZodTransform",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=n.transform(t.value,t);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(t.value=a,t));if(i instanceof Promise)throw new et;return t.value=i,t}}),Ad=p("$ZodOptional",(e,n)=>{P.init(e,n),e._zod.optin="optional",e._zod.optout="optional",Q(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),Q(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${qi(t.source)})?$`):void 0}),e._zod.parse=(t,r)=>n.innerType._zod.optin==="optional"?n.innerType._zod.run(t,r):t.value===void 0?t:n.innerType._zod.run(t,r)}),wd=p("$ZodNullable",(e,n)=>{P.init(e,n),Q(e._zod,"optin",()=>n.innerType._zod.optin),Q(e._zod,"optout",()=>n.innerType._zod.optout),Q(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${qi(t.source)}|null)$`):void 0}),Q(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(t,r)=>t.value===null?t:n.innerType._zod.run(t,r)}),_d=p("$ZodDefault",(e,n)=>{P.init(e,n),e._zod.optin="optional",Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{if(t.value===void 0)return t.value=n.defaultValue,t;const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>Cd(u,n)):Cd(i,n)}});function Cd(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var $d=p("$ZodPrefault",(e,n)=>{P.init(e,n),e._zod.optin="optional",Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>(t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,r))}),Id=p("$ZodNonOptional",(e,n)=>{P.init(e,n),Q(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(r=>r!==void 0)):void 0}),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>xd(u,e)):xd(i,e)}});function xd(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}var Fd=p("$ZodSuccess",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>(t.value=u.issues.length===0,t)):(t.value=i.issues.length===0,t)}}),Nd=p("$ZodCatch",(e,n)=>{P.init(e,n),e._zod.optin="optional",Q(e._zod,"optout",()=>n.innerType._zod.optout),Q(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(u=>(t.value=u.value,u.issues.length&&(t.value=n.catchValue({...t,error:{issues:u.issues.map(a=>Ve(a,r,De()))},input:t.value}),t.issues=[]),t)):(t.value=i.value,i.issues.length&&(t.value=n.catchValue({...t,error:{issues:i.issues.map(u=>Ve(u,r,De()))},input:t.value}),t.issues=[]),t)}}),Td=p("$ZodNaN",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>((typeof t.value!="number"||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),Sa=p("$ZodPipe",(e,n)=>{P.init(e,n),Q(e._zod,"values",()=>n.in._zod.values),Q(e._zod,"optin",()=>n.in._zod.optin),Q(e._zod,"optout",()=>n.out._zod.optout),Q(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,r)=>{const i=n.in._zod.run(t,r);return i instanceof Promise?i.then(u=>Od(u,n,r)):Od(i,n,r)}});function Od(e,n,t){return tt(e)?e:n.out._zod.run({value:e.value,issues:e.issues},t)}var zd=p("$ZodReadonly",(e,n)=>{P.init(e,n),Q(e._zod,"propValues",()=>n.innerType._zod.propValues),Q(e._zod,"values",()=>n.innerType._zod.values),Q(e._zod,"optin",()=>n.innerType._zod.optin),Q(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(Ud):Ud(i)}});function Ud(e){return e.value=Object.freeze(e.value),e}var Pd=p("$ZodTemplateLiteral",(e,n)=>{P.init(e,n);const t=[];for(const r of n.parts)if(r instanceof P){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const u=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;t.push(i.slice(u,a))}else if(r===null||y0.has(typeof r))t.push(Fn(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${t.join("")}$`),e._zod.parse=(r,i)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"template_literal",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),r)}),Rd=p("$ZodPromise",(e,n)=>{P.init(e,n),e._zod.parse=(t,r)=>Promise.resolve(t.value).then(i=>n.innerType._zod.run({value:i,issues:[]},r))}),jd=p("$ZodLazy",(e,n)=>{P.init(e,n),Q(e._zod,"innerType",()=>n.getter()),Q(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Q(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Q(e._zod,"optin",()=>e._zod.innerType._zod.optin),Q(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),Ld=p("$ZodCustom",(e,n)=>{re.init(e,n),P.init(e,n),e._zod.parse=(t,r)=>t,e._zod.check=t=>{const r=t.value,i=n.fn(r);if(i instanceof Promise)return i.then(u=>Zd(u,t,r,e));Zd(i,t,r,e)}});function Zd(e,n,t,r){if(!e){const i={code:"custom",input:t,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),n.issues.push(S0(i))}}var Ba={};An(Ba,{ar:()=>s6,az:()=>l6,be:()=>f6,ca:()=>v6,cs:()=>h6,de:()=>E6,en:()=>qd,eo:()=>S6,es:()=>A6,fa:()=>_6,fi:()=>$6,fr:()=>x6,frCA:()=>N6,he:()=>O6,hu:()=>U6,id:()=>R6,it:()=>L6,ja:()=>V6,kh:()=>M6,ko:()=>J6,mk:()=>Q6,ms:()=>W6,nl:()=>X6,no:()=>n1,ota:()=>i1,pl:()=>o1,ps:()=>u1,pt:()=>c1,ru:()=>d1,sl:()=>m1,sv:()=>p1,ta:()=>g1,th:()=>y1,tr:()=>D1,ua:()=>B1,ur:()=>w1,vi:()=>C1,zhCN:()=>I1,zhTW:()=>F1});var o6=()=>{const e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return i=>{switch(i.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${Z(i.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${u} ${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${u} ${i.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${i.prefix}"`:u.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${u.suffix}"`:u.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${u.includes}"`:u.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${u.pattern}`:`${r[u.format]??i.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function s6(){return{localeError:o6()}}var c6=()=>{const e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i.expected}, daxil olan ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${Z(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${u}${i.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${u}${i.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${u.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:u.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${u.suffix}" il\u0259 bitm\u0259lidir`:u.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${u.includes}" daxil olmal\u0131d\u0131r`:u.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${u.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[u.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function l6(){return{localeError:c6()}}function Vd(e,n,t,r){const i=Math.abs(e),u=i%10,a=i%100;return a>=11&&a<=19?r:u===1?n:u>=2&&u<=4?t:r}var d6=()=>{const e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0456\u045E";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${Z(i.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=Vd(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${u}${i.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=Vd(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${u}${i.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${u.prefix}"`:u.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${u.suffix}"`:u.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${u.includes}"`:u.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${u.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[u.format]??i.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function f6(){return{localeError:d6()}}var m6=()=>{const e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${i.expected}, s'ha rebut ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${Z(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${w(i.values," o ")}`;case"too_big":{const u=i.inclusive?"com a m\xE0xim":"menys de",a=n(i.origin);return a?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${u} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${u} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${u.prefix}"`:u.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${u.suffix}"`:u.format==="includes"?`Format inv\xE0lid: ha d'incloure "${u.includes}"`:u.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${u.pattern}`:`Format inv\xE0lid per a ${r[u.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}};function v6(){return{localeError:m6()}}var p6=()=>{const e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(i))return"pole";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return i=>{switch(i.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i.expected}, obdr\u017Eeno ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${Z(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${u}${i.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${u}${i.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${u.prefix}"`:u.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${u.suffix}"`:u.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${u.includes}"`:u.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${u.pattern}`:`Neplatn\xFD form\xE1t ${r[u.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${w(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}};function h6(){return{localeError:p6()}}var g6=()=>{const 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"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"Zahl";case"object":{if(Array.isArray(i))return"Array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return i=>{switch(i.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${i.expected}, erhalten ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${Z(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${u}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${u}${i.maximum.toString()} ist`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${u}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${u}${i.minimum.toString()} ist`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ung\xFCltiger String: muss mit "${u.prefix}" beginnen`:u.format==="ends_with"?`Ung\xFCltiger String: muss mit "${u.suffix}" enden`:u.format==="includes"?`Ung\xFCltiger String: muss "${u.includes}" enthalten`:u.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${u.pattern} entsprechen`:`Ung\xFCltig: ${r[u.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}};function E6(){return{localeError:g6()}}var y6=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},b6=()=>{const 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"}};function n(r){return e[r]??null}const t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{switch(r.code){case"invalid_type":return`Invalid input: expected ${r.expected}, received ${y6(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${Z(r.values[0])}`:`Invalid option: expected one of ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`Too big: expected ${r.origin??"value"} to have ${i}${r.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`Too small: expected ${r.origin} to have ${i}${r.minimum.toString()} ${u.unit}`:`Too small: expected ${r.origin} to be ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${t[i.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function qd(){return{localeError:b6()}}var k6=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},D6=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(r){return e[r]??null}const t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-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",jwt:"JWT",template_literal:"enigo"};return r=>{switch(r.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${r.expected}, ricevi\u011Dis ${k6(r.input)}`;case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${Z(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${u.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${u.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${t[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${w(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function S6(){return{localeError:D6()}}var B6=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(i))return"arreglo";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype)return i.constructor.name}}return u},r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${i.expected}, recibido ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${Z(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Demasiado grande: se esperaba que ${i.origin??"valor"} tuviera ${u}${i.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${i.origin??"valor"} fuera ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Demasiado peque\xF1o: se esperaba que ${i.origin} tuviera ${u}${i.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${i.origin} fuera ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${u.prefix}"`:u.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${u.suffix}"`:u.format==="includes"?`Cadena inv\xE1lida: debe incluir "${u.includes}"`:u.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${u.pattern}`:`Inv\xE1lido ${r[u.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i.origin}`;default:return"Entrada inv\xE1lida"}}};function A6(){return{localeError:B6()}}var w6=()=>{const e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0622\u0631\u0627\u06CC\u0647";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return i=>{switch(i.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${t(i.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${Z(i.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${w(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${u}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${u}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${u.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:u.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${u.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:u.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${u.includes}" \u0628\u0627\u0634\u062F`:u.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${u.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[u.format]??i.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${w(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function _6(){return{localeError:w6()}}var C6=()=>{const e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return i=>{switch(i.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${i.expected}, oli ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${Z(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${u}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${u}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${u.prefix}"`:u.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${u.suffix}"`:u.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${u.includes}"`:u.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${u.pattern}`:`Virheellinen ${r[u.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w(i.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\xF6te"}}};function $6(){return{localeError:C6()}}var I6=()=>{const e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"nombre";case"object":{if(Array.isArray(i))return"tableau";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : ${i.expected} attendu, ${t(i.input)} re\xE7u`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${Z(i.values[0])} attendu`:`Option invalide : une valeur parmi ${w(i.values,"|")} attendue`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Trop grand : ${i.origin??"valeur"} doit ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i.origin??"valeur"} doit \xEAtre ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Trop petit : ${i.origin} doit ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Cha\xEEne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${u.pattern}`:`${r[u.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function x6(){return{localeError:I6()}}var F6=()=>{const e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${i.expected}, re\xE7u ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${Z(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"\u2264":"<",a=n(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${u}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"\u2265":">",a=n(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${u}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Cha\xEEne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${u.pattern}`:`${r[u.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${w(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function N6(){return{localeError:F6()}}var T6=()=>{const e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return i=>{switch(i.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${i.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${Z(i.values[0])}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${i.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${i.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${i.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"${u.prefix}"`:u.format==="ends_with"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`:u.format==="includes"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`:u.format==="regex"?`\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${u.pattern}`:`${r[u.format]??i.format} \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${i.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${i.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${i.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i.origin}`;case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function O6(){return{localeError:T6()}}var z6=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(i))return"t\xF6mb";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return i=>{switch(i.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i.expected}, a kapott \xE9rt\xE9k ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${Z(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${u}${i.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${u}${i.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\xC9rv\xE9nytelen string: "${u.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:u.format==="ends_with"?`\xC9rv\xE9nytelen string: "${u.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:u.format==="includes"?`\xC9rv\xE9nytelen string: "${u.includes}" \xE9rt\xE9ket kell tartalmaznia`:u.format==="regex"?`\xC9rv\xE9nytelen string: ${u.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[u.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function U6(){return{localeError:z6()}}var P6=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",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",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak valid: diharapkan ${i.expected}, diterima ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${Z(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${u}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${u}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`String tidak valid: harus dimulai dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak valid: harus berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak valid: harus menyertakan "${u.includes}"`:u.format==="regex"?`String tidak valid: harus sesuai pola ${u.pattern}`:`${r[u.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function R6(){return{localeError:P6()}}var j6=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"numero";case"object":{if(Array.isArray(i))return"vettore";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input non valido: atteso ${i.expected}, ricevuto ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input non valido: atteso ${Z(i.values[0])}`:`Opzione non valida: atteso uno tra ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${u}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${u}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Stringa non valida: deve iniziare con "${u.prefix}"`:u.format==="ends_with"?`Stringa non valida: deve terminare con "${u.suffix}"`:u.format==="includes"?`Stringa non valida: deve includere "${u.includes}"`:u.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${u.pattern}`:`Invalid ${r[u.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${w(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function L6(){return{localeError:j6()}}var Z6=()=>{const e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(i))return"\u914D\u5217";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${t(i.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${Z(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${w(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const u=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=n(i.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${a.unit??"\u8981\u7D20"}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const u=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=n(i.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${a.unit}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${u}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${u.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:u.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${u.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[u.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${i.keys.length>1?"\u7FA4":""}: ${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function V6(){return{localeError:Z6()}}var q6=()=>{const e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(i))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(i===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return i=>{switch(i.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${Z(i.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${u} ${i.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${u} ${i.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${u.prefix}"`:u.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${u.suffix}"`:u.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${u.includes}"`:u.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${u.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${w(i.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function M6(){return{localeError:q6()}}var G6=()=>{const e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return i=>{switch(i.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${t(i.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${Z(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${w(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const u=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=u==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(i.origin),s=o?.unit??"\uC694\uC18C";return o?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${s} ${u}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${u}${a}`}case"too_small":{const u=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=u==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(i.origin),s=o?.unit??"\uC694\uC18C";return o?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${s} ${u}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${u}${a}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:u.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:u.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${u.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:u.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${u.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[u.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${w(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function J6(){return{localeError:G6()}}var H6=()=>{const e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(i))return"\u043D\u0438\u0437\u0430";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return i=>{switch(i.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${Z(i.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${u}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${u}${i.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${u.prefix}"`:u.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${u.suffix}"`:u.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${u.includes}"`:u.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${u.pattern}`:`Invalid ${r[u.format]??i.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Q6(){return{localeError:H6()}}var K6=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"nombor";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak sah: dijangka ${i.expected}, diterima ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${Z(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`String tidak sah: mesti bermula dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak sah: mesti mengandungi "${u.includes}"`:u.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${u.pattern}`:`${r[u.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function W6(){return{localeError:K6()}}var Y6=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"getal";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return i=>{switch(i.code){case"invalid_type":return`Ongeldige invoer: verwacht ${i.expected}, ontving ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${Z(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Te lang: verwacht dat ${i.origin??"waarde"} ${u}${i.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${i.origin??"waarde"} ${u}${i.maximum.toString()} is`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Te kort: verwacht dat ${i.origin} ${u}${i.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${i.origin} ${u}${i.minimum.toString()} is`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ongeldige tekst: moet met "${u.prefix}" beginnen`:u.format==="ends_with"?`Ongeldige tekst: moet op "${u.suffix}" eindigen`:u.format==="includes"?`Ongeldige tekst: moet "${u.includes}" bevatten`:u.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${u.pattern}`:`Ongeldig: ${r[u.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function X6(){return{localeError:Y6()}}var e1=()=>{const e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"tall";case"object":{if(Array.isArray(i))return"liste";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={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-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Ugyldig input: forventet ${i.expected}, fikk ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${Z(i.values[0])}`:`Ugyldig valg: forventet en av ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${u}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`For lite(n): forventet ${i.origin} til \xE5 ha ${u}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${u.pattern}`:`Ugyldig ${r[u.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function n1(){return{localeError:e1()}}var t1=()=>{const e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"numara";case"object":{if(Array.isArray(i))return"saf";if(i===null)return"gayb";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return i=>{switch(i.code){case"invalid_type":return`F\xE2sit giren: umulan ${i.expected}, al\u0131nan ${t(i.input)}`;case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${Z(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${u}${i.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${u}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${u}${i.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${u}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const u=i;return u.format==="starts_with"?`F\xE2sit metin: "${u.prefix}" ile ba\u015Flamal\u0131.`:u.format==="ends_with"?`F\xE2sit metin: "${u.suffix}" ile bitmeli.`:u.format==="includes"?`F\xE2sit metin: "${u.includes}" ihtiv\xE2 etmeli.`:u.format==="regex"?`F\xE2sit metin: ${u.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[u.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function i1(){return{localeError:t1()}}var r1=()=>{const e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0627\u0631\u06D0";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return i=>{switch(i.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${t(i.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${Z(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${w(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${u}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${u}${i.maximum.toString()} \u0648\u064A`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${u}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${u.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:u.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${u.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:u.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${u.includes}" \u0648\u0644\u0631\u064A`:u.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${u.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[u.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${w(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function u1(){return{localeError:r1()}}var a1=()=>{const e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"liczba";case"object":{if(Array.isArray(i))return"tablica";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"wyra\u017Cenie",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",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return i=>{switch(i.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i.expected}, otrzymano ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${Z(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${u}${i.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${u}${i.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${u.prefix}"`:u.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${u.suffix}"`:u.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${u.includes}"`:u.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${u.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[u.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function o1(){return{localeError:a1()}}var s1=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(i))return"array";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"padr\xE3o",email:"endere\xE7o de 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:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${i.expected}, recebido ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${Z(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${u}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${u}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${u.prefix}"`:u.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${u.suffix}"`:u.format==="includes"?`Texto inv\xE1lido: deve incluir "${u.includes}"`:u.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${u.pattern}`:`${r[u.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${w(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}};function c1(){return{localeError:s1()}}function Md(e,n,t,r){const i=Math.abs(e),u=i%10,a=i%100;return a>=11&&a<=19?r:u===1?n:u>=2&&u<=4?t:r}var l1=()=>{const e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${Z(i.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);if(a){const o=Number(i.maximum),s=Md(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${u}${i.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);if(a){const o=Number(i.minimum),s=Md(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${u}${i.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${u.prefix}"`:u.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${u.suffix}"`:u.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${u.includes}"`:u.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${u.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function d1(){return{localeError:l1()}}var f1=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(i))return"tabela";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return i=>{switch(i.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${i.expected}, prejeto ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${Z(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${u}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${u}${i.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${u.prefix}"`:u.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${u.suffix}"`:u.format==="includes"?`Neveljaven niz: mora vsebovati "${u.includes}"`:u.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${u.pattern}`:`Neveljaven ${r[u.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${w(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function m1(){return{localeError:f1()}}var v1=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"antal";case"object":{if(Array.isArray(i))return"lista";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"regulj\xE4rt 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-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return i=>{switch(i.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${i.expected}, fick ${t(i.input)}`;case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${Z(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${u.prefix}"`:u.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${u.suffix}"`:u.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${u.includes}"`:u.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${u.pattern}"`:`Ogiltig(t) ${r[u.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${w(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function p1(){return{localeError:v1()}}var h1=()=>{const e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(i))return"\u0B85\u0BA3\u0BBF";if(i===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${Z(i.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${w(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${u}${i.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${u}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${u}${i.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${u}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${u.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:u.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${u.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function g1(){return{localeError:h1()}}var E1=()=>{const e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(i))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(i===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return i=>{switch(i.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${Z(i.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=n(i.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${u} ${i.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${u} ${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=n(i.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${u} ${i.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${u} ${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${u.prefix}"`:u.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${u.suffix}"`:u.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${u.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:u.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${u.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[u.format]??i.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${i.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${w(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function y1(){return{localeError:E1()}}var b1=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},k1=()=>{const e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function n(r){return e[r]??null}const t={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return r=>{switch(r.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${r.expected}, al\u0131nan ${b1(r.input)}`;case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Z(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(r.values,"|")}`;case"too_big":{const i=r.inclusive?"<=":"<",u=n(r.origin);return u?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()} ${u.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{const i=r.inclusive?">=":">",u=n(r.origin);return u?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${u.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{const i=r;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${t[i.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${w(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function D1(){return{localeError:k1()}}var S1=()=>{const e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${Z(i.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} \u0431\u0443\u0434\u0435 ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${u.prefix}"`:u.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${u.suffix}"`:u.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${u.includes}"`:u.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${u.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${w(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${i.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function B1(){return{localeError:S1()}}var A1=()=>{const e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(i))return"\u0622\u0631\u06D2";if(i===null)return"\u0646\u0644";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return i=>{switch(i.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${t(i.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${Z(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${w(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${u}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${u}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${u}${i.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${u}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${u.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:u.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${u.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${i.keys.length>1?"\u0632":""}: ${w(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function w1(){return{localeError:A1()}}var _1=()=>{const e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(i))return"m\u1EA3ng";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return i=>{switch(i.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${Z(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${u}${i.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a.verb} ${u}${i.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${u.prefix}"`:u.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${u.suffix}"`:u.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${u.includes}"`:u.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${u.pattern}`:`${r[u.format]??i.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${w(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function C1(){return{localeError:_1()}}var $1=()=>{const e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(i))return"\u6570\u7EC4";if(i===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return i=>{switch(i.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${Z(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${u}${i.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${u}${i.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${u.prefix}" \u5F00\u5934`:u.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${u.suffix}" \u7ED3\u5C3E`:u.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${u.includes}"`:u.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${u.pattern}`:`\u65E0\u6548${r[u.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${w(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function I1(){return{localeError:$1()}}var x1=()=>{const e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function n(i){return e[i]??null}const t=i=>{const u=typeof i;switch(u){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return u},r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i.expected}\uFF0C\u4F46\u6536\u5230 ${t(i.input)}`;case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${Z(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${w(i.values,"|")}`;case"too_big":{const u=i.inclusive?"<=":"<",a=n(i.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${u}${i.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${u}${i.maximum.toString()}`}case"too_small":{const u=i.inclusive?">=":">",a=n(i.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${u}${i.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${u}${i.minimum.toString()}`}case"invalid_format":{const u=i;return u.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${u.prefix}" \u958B\u982D`:u.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${u.suffix}" \u7D50\u5C3E`:u.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${u.includes}"`:u.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${u.pattern}`:`\u7121\u6548\u7684 ${r[u.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${w(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function F1(){return{localeError:x1()}}var Gd=Symbol("ZodOutput"),Jd=Symbol("ZodInput"),Aa=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...n){const t=n[0];if(this._map.set(e,t),t&&typeof t=="object"&&"id"in t){if(this._idmap.has(t.id))throw new Error(`ID ${t.id} already exists in the registry`);this._idmap.set(t.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const t={...this.get(n)??{}};return delete t.id,{...t,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function wa(){return new Aa}var Nn=wa();function Hd(e,n){return new e({type:"string",...S(n)})}function Qd(e,n){return new e({type:"string",coerce:!0,...S(n)})}function _a(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...S(n)})}function Yi(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...S(n)})}function Ca(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...S(n)})}function $a(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...S(n)})}function Ia(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...S(n)})}function xa(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...S(n)})}function Fa(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...S(n)})}function Na(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...S(n)})}function Ta(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...S(n)})}function Oa(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...S(n)})}function za(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...S(n)})}function Ua(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...S(n)})}function Pa(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...S(n)})}function Ra(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...S(n)})}function ja(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...S(n)})}function La(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...S(n)})}function Za(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...S(n)})}function Va(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...S(n)})}function qa(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...S(n)})}function Ma(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...S(n)})}function Ga(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...S(n)})}function Ja(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...S(n)})}var Kd={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Wd(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...S(n)})}function Yd(e,n){return new e({type:"string",format:"date",check:"string_format",...S(n)})}function Xd(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...S(n)})}function ef(e,n){return new e({type:"string",format:"duration",check:"string_format",...S(n)})}function nf(e,n){return new e({type:"number",checks:[],...S(n)})}function tf(e,n){return new e({type:"number",coerce:!0,checks:[],...S(n)})}function rf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...S(n)})}function uf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...S(n)})}function af(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...S(n)})}function of(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...S(n)})}function sf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...S(n)})}function cf(e,n){return new e({type:"boolean",...S(n)})}function lf(e,n){return new e({type:"boolean",coerce:!0,...S(n)})}function df(e,n){return new e({type:"bigint",...S(n)})}function ff(e,n){return new e({type:"bigint",coerce:!0,...S(n)})}function mf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...S(n)})}function vf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...S(n)})}function pf(e,n){return new e({type:"symbol",...S(n)})}function hf(e,n){return new e({type:"undefined",...S(n)})}function gf(e,n){return new e({type:"null",...S(n)})}function Ef(e){return new e({type:"any"})}function Xi(e){return new e({type:"unknown"})}function yf(e,n){return new e({type:"never",...S(n)})}function bf(e,n){return new e({type:"void",...S(n)})}function kf(e,n){return new e({type:"date",...S(n)})}function Df(e,n){return new e({type:"date",coerce:!0,...S(n)})}function Sf(e,n){return new e({type:"nan",...S(n)})}function Tn(e,n){return new ma({check:"less_than",...S(n),value:e,inclusive:!1})}function qe(e,n){return new ma({check:"less_than",...S(n),value:e,inclusive:!0})}function On(e,n){return new va({check:"greater_than",...S(n),value:e,inclusive:!1})}function Ie(e,n){return new va({check:"greater_than",...S(n),value:e,inclusive:!0})}function Bf(e){return On(0,e)}function Af(e){return Tn(0,e)}function wf(e){return qe(0,e)}function _f(e){return Ie(0,e)}function Yt(e,n){return new sl({check:"multiple_of",...S(n),value:e})}function er(e,n){return new dl({check:"max_size",...S(n),maximum:e})}function Xt(e,n){return new fl({check:"min_size",...S(n),minimum:e})}function Ha(e,n){return new ml({check:"size_equals",...S(n),size:e})}function nr(e,n){return new vl({check:"max_length",...S(n),maximum:e})}function rt(e,n){return new pl({check:"min_length",...S(n),minimum:e})}function tr(e,n){return new hl({check:"length_equals",...S(n),length:e})}function Qa(e,n){return new gl({check:"string_format",format:"regex",...S(n),pattern:e})}function Ka(e){return new El({check:"string_format",format:"lowercase",...S(e)})}function Wa(e){return new yl({check:"string_format",format:"uppercase",...S(e)})}function Ya(e,n){return new bl({check:"string_format",format:"includes",...S(n),includes:e})}function Xa(e,n){return new kl({check:"string_format",format:"starts_with",...S(n),prefix:e})}function eo(e,n){return new Dl({check:"string_format",format:"ends_with",...S(n),suffix:e})}function Cf(e,n,t){return new Bl({check:"property",property:e,schema:n,...S(t)})}function no(e,n){return new Al({check:"mime_type",mime:e,...S(n)})}function zn(e){return new wl({check:"overwrite",tx:e})}function to(e){return zn(n=>n.normalize(e))}function io(){return zn(e=>e.trim())}function ro(){return zn(e=>e.toLowerCase())}function uo(){return zn(e=>e.toUpperCase())}function ao(e,n,t){return new e({type:"array",element:n,...S(t)})}function N1(e,n,t){return new e({type:"union",options:n,...S(t)})}function T1(e,n,t,r){return new e({type:"union",options:t,discriminator:n,...S(r)})}function O1(e,n,t){return new e({type:"intersection",left:n,right:t})}function $f(e,n,t,r){const i=t instanceof P,u=i?r:t,a=i?t:null;return new e({type:"tuple",items:n,rest:a,...S(u)})}function z1(e,n,t,r){return new e({type:"record",keyType:n,valueType:t,...S(r)})}function U1(e,n,t,r){return new e({type:"map",keyType:n,valueType:t,...S(r)})}function P1(e,n,t){return new e({type:"set",valueType:n,...S(t)})}function R1(e,n,t){const r=Array.isArray(n)?Object.fromEntries(n.map(i=>[i,i])):n;return new e({type:"enum",entries:r,...S(t)})}function j1(e,n,t){return new e({type:"enum",entries:n,...S(t)})}function L1(e,n,t){return new e({type:"literal",values:Array.isArray(n)?n:[n],...S(t)})}function If(e,n){return new e({type:"file",...S(n)})}function Z1(e,n){return new e({type:"transform",transform:n})}function V1(e,n){return new e({type:"optional",innerType:n})}function q1(e,n){return new e({type:"nullable",innerType:n})}function M1(e,n,t){return new e({type:"default",innerType:n,get defaultValue(){return typeof t=="function"?t():t}})}function G1(e,n,t){return new e({type:"nonoptional",innerType:n,...S(t)})}function J1(e,n){return new e({type:"success",innerType:n})}function H1(e,n,t){return new e({type:"catch",innerType:n,catchValue:typeof t=="function"?t:()=>t})}function Q1(e,n,t){return new e({type:"pipe",in:n,out:t})}function K1(e,n){return new e({type:"readonly",innerType:n})}function W1(e,n,t){return new e({type:"template_literal",parts:n,...S(t)})}function Y1(e,n){return new e({type:"lazy",getter:n})}function X1(e,n){return new e({type:"promise",innerType:n})}function xf(e,n,t){const r=S(t);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:n,...r})}function Ff(e,n,t){return new e({type:"custom",check:"custom",fn:n,...S(t)})}function Nf(e,n){const t=S(n);let r=t.truthy??["true","1","yes","on","y","enabled"],i=t.falsy??["false","0","no","off","n","disabled"];t.case!=="sensitive"&&(r=r.map(v=>typeof v=="string"?v.toLowerCase():v),i=i.map(v=>typeof v=="string"?v.toLowerCase():v));const u=new Set(r),a=new Set(i),o=e.Pipe??Sa,s=e.Boolean??ga,c=e.String??Wt,l=e.Transform??Da,f=new l({type:"transform",transform:(v,h)=>{let b=v;return t.case!=="sensitive"&&(b=b.toLowerCase()),u.has(b)?!0:a.has(b)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...u,...a],input:h.value,inst:f}),{})},error:t.error}),m=new o({type:"pipe",in:new c({type:"string",error:t.error}),out:f,error:t.error});return new o({type:"pipe",in:m,out:new s({type:"boolean",error:t.error}),error:t.error})}function Tf(e,n,t,r={}){const i=S(r),u={...S(r),check:"string_format",type:"string",format:n,fn:typeof t=="function"?t:o=>t.test(o),...i};return t instanceof RegExp&&(u.pattern=t),new e(u)}var Of=class{constructor(e){this._def=e,this.def=e}implement(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=(...t)=>{const r=this._def.input?aa(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...r);return this._def.output?aa(this._def.output,i,void 0,{callee:n}):i};return n}implementAsync(e){if(typeof e!="function")throw new Error("implement() must be called with a function");const n=async(...t)=>{const r=this._def.input?await sa(this._def.input,t,void 0,{callee:n}):t;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...r);return this._def.output?sa(this._def.output,i,void 0,{callee:n}):i};return n}input(...e){const n=this.constructor;return Array.isArray(e[0])?new n({type:"function",input:new Ki({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new n({type:"function",input:e[0],output:this._def.output})}output(e){const n=this.constructor;return new n({type:"function",input:this._def.input,output:e})}};function zf(e){return new Of({type:"function",input:Array.isArray(e?.input)?$f(Ki,e?.input):e?.input??ao(ya,Xi(Hi)),output:e?.output??Xi(Hi)})}var oo=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??Nn,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,n={path:[],schemaPath:[]}){var t;const r=e._zod.def,i={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u=this.seen.get(e);if(u)return u.count++,n.schemaPath.includes(e)&&(u.cycle=n.path),u.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(e,a);const o=e._zod.toJSONSchema?.();if(o)a.schema=o;else{const l={...n,schemaPath:[...n.schemaPath,e],path:n.path},f=e._zod.parent;if(f)a.ref=f,this.process(f,l),this.seen.get(f).isParent=!0;else{const m=a.schema;switch(r.type){case"string":{const d=m;d.type="string";const{minimum:v,maximum:h,format:b,patterns:E,contentEncoding:g}=e._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof h=="number"&&(d.maxLength=h),b&&(d.format=i[b]??b,d.format===""&&delete d.format),g&&(d.contentEncoding=g),E&&E.size>0){const k=[...E];k.length===1?d.pattern=k[0].source:k.length>1&&(a.schema.allOf=[...k.map(_=>({...this.target==="draft-7"?{type:"string"}:{},pattern:_.source}))])}break}case"number":{const d=m,{minimum:v,maximum:h,format:b,multipleOf:E,exclusiveMaximum:g,exclusiveMinimum:k}=e._zod.bag;typeof b=="string"&&b.includes("int")?d.type="integer":d.type="number",typeof k=="number"&&(d.exclusiveMinimum=k),typeof v=="number"&&(d.minimum=v,typeof k=="number"&&(k>=v?delete d.minimum:delete d.exclusiveMinimum)),typeof g=="number"&&(d.exclusiveMaximum=g),typeof h=="number"&&(d.maximum=h,typeof g=="number"&&(g<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof E=="number"&&(d.multipleOf=E);break}case"boolean":{const d=m;d.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{m.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{m.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const d=m,{minimum:v,maximum:h}=e._zod.bag;typeof v=="number"&&(d.minItems=v),typeof h=="number"&&(d.maxItems=h),d.type="array",d.items=this.process(r.element,{...l,path:[...l.path,"items"]});break}case"object":{const d=m;d.type="object",d.properties={};const v=r.shape;for(const E in v)d.properties[E]=this.process(v[E],{...l,path:[...l.path,"properties",E]});const h=new Set(Object.keys(v)),b=new Set([...h].filter(E=>{const g=r.shape[E]._zod;return this.io==="input"?g.optin===void 0:g.optout===void 0}));b.size>0&&(d.required=Array.from(b)),r.catchall?._zod.def.type==="never"?d.additionalProperties=!1:r.catchall?r.catchall&&(d.additionalProperties=this.process(r.catchall,{...l,path:[...l.path,"additionalProperties"]})):this.io==="output"&&(d.additionalProperties=!1);break}case"union":{const d=m;d.anyOf=r.options.map((v,h)=>this.process(v,{...l,path:[...l.path,"anyOf",h]}));break}case"intersection":{const d=m,v=this.process(r.left,{...l,path:[...l.path,"allOf",0]}),h=this.process(r.right,{...l,path:[...l.path,"allOf",1]}),b=g=>"allOf"in g&&Object.keys(g).length===1,E=[...b(v)?v.allOf:[v],...b(h)?h.allOf:[h]];d.allOf=E;break}case"tuple":{const d=m;d.type="array";const v=r.items.map((E,g)=>this.process(E,{...l,path:[...l.path,"prefixItems",g]}));if(this.target==="draft-2020-12"?d.prefixItems=v:d.items=v,r.rest){const E=this.process(r.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=E:d.additionalItems=E}r.rest&&(d.items=this.process(r.rest,{...l,path:[...l.path,"items"]}));const{minimum:h,maximum:b}=e._zod.bag;typeof h=="number"&&(d.minItems=h),typeof b=="number"&&(d.maxItems=b);break}case"record":{const d=m;d.type="object",d.propertyNames=this.process(r.keyType,{...l,path:[...l.path,"propertyNames"]}),d.additionalProperties=this.process(r.valueType,{...l,path:[...l.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const d=m,v=Xu(r.entries);v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),d.enum=v;break}case"literal":{const d=m,v=[];for(const h of r.values)if(h===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof h=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");v.push(Number(h))}else v.push(h);if(v.length!==0)if(v.length===1){const h=v[0];d.type=h===null?"null":typeof h,d.const=h}else v.every(h=>typeof h=="number")&&(d.type="number"),v.every(h=>typeof h=="string")&&(d.type="string"),v.every(h=>typeof h=="boolean")&&(d.type="string"),v.every(h=>h===null)&&(d.type="null"),d.enum=v;break}case"file":{const d=m,v={type:"string",format:"binary",contentEncoding:"binary"},{minimum:h,maximum:b,mime:E}=e._zod.bag;h!==void 0&&(v.minLength=h),b!==void 0&&(v.maxLength=b),E?E.length===1?(v.contentMediaType=E[0],Object.assign(d,v)):d.anyOf=E.map(g=>({...v,contentMediaType:g})):Object.assign(d,v);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const d=this.process(r.innerType,l);m.anyOf=[d,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,l),a.ref=r.innerType;break}case"success":{const d=m;d.type="boolean";break}case"default":{this.process(r.innerType,l),a.ref=r.innerType,m.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,l),a.ref=r.innerType,this.io==="input"&&(m._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,l),a.ref=r.innerType;let d;try{d=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}m.default=d;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const d=m,v=e._zod.pattern;if(!v)throw new Error("Pattern not found in template literal");d.type="string",d.pattern=v.source;break}case"pipe":{const d=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(d,l),a.ref=d;break}case"readonly":{this.process(r.innerType,l),a.ref=r.innerType,m.readOnly=!0;break}case"promise":{this.process(r.innerType,l),a.ref=r.innerType;break}case"optional":{this.process(r.innerType,l),a.ref=r.innerType;break}case"lazy":{const d=e._zod.innerType;this.process(d,l),a.ref=d;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const s=this.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),this.io==="input"&&ae(e)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((t=a.schema).default??(t.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,n){const t={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},r=this.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=c=>{const l=this.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const v=t.external.registry.get(c[0])?.id,h=t.external.uri??(E=>E);if(v)return{ref:h(v)};const b=c[1].defId??c[1].schema.id??`schema${this.counter++}`;return c[1].defId=b,{defId:b,ref:`${h("__shared")}#/${l}/${b}`}}if(c[1]===r)return{ref:"#"};const m=`#/${l}/`,d=c[1].schema.id??`__schema${this.counter++}`;return{defId:d,ref:m+d}},u=c=>{if(c[1].schema.$ref)return;const l=c[1],{ref:f,defId:m}=i(c);l.def={...l.schema},m&&(l.defId=m);const d=l.schema;for(const v in d)delete d[v];d.$ref=f};if(t.cycles==="throw")for(const c of this.seen.entries()){const l=c[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
200
200
 
201
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of this.seen.entries()){const l=c[1];if(e===c[0]){u(c);continue}if(t.external){const m=t.external.registry.get(c[0])?.id;if(e!==c[0]&&m){u(c);continue}}if(this.metadataRegistry.get(c[0])?.id){u(c);continue}if(l.cycle){u(c);continue}if(l.count>1&&t.reused==="ref"){u(c);continue}}const a=(c,l)=>{const f=this.seen.get(c),m=f.def??f.schema,d={...m};if(f.ref===null)return;const v=f.ref;if(f.ref=null,v){a(v,l);const h=this.seen.get(v).schema;h.$ref&&l.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(h)):(Object.assign(m,h),Object.assign(m,d))}f.isParent||this.override({zodSchema:c,jsonSchema:m,path:f.path??[]})};for(const c of[...this.seen.entries()].reverse())a(c[0],{target:this.target});const o={};if(this.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?o.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),t.external?.uri){const c=t.external.registry.get(e)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=t.external.uri(c)}Object.assign(o,r.def);const s=t.external?.defs??{};for(const c of this.seen.entries()){const l=c[1];l.def&&l.defId&&(s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(this.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{return JSON.parse(JSON.stringify(o))}catch{throw new Error("Error converting schema to JSON.")}}};function Uf(e,n){if(e instanceof Aa){const r=new oo(n),i={};for(const o of e._idmap.entries()){const[s,c]=o;r.process(c)}const u={},a={registry:e,uri:n?.uri,defs:i};for(const o of e._idmap.entries()){const[s,c]=o;u[s]=r.emit(c,{...n,external:a})}if(Object.keys(i).length>0){const o=r.target==="draft-2020-12"?"$defs":"definitions";u.__shared={[o]:i}}return{schemas:u}}const t=new oo(n);return t.process(e),t.emit(e,n)}function ae(e,n){const t=n??{seen:new Set};if(t.seen.has(e))return!1;t.seen.add(e);const i=e._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return ae(i.element,t);case"object":{for(const u in i.shape)if(ae(i.shape[u],t))return!0;return!1}case"union":{for(const u of i.options)if(ae(u,t))return!0;return!1}case"intersection":return ae(i.left,t)||ae(i.right,t);case"tuple":{for(const u of i.items)if(ae(u,t))return!0;return!!(i.rest&&ae(i.rest,t))}case"record":return ae(i.keyType,t)||ae(i.valueType,t);case"map":return ae(i.keyType,t)||ae(i.valueType,t);case"set":return ae(i.valueType,t);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return ae(i.innerType,t);case"lazy":return ae(i.getter(),t);case"default":return ae(i.innerType,t);case"prefault":return ae(i.innerType,t);case"custom":return!1;case"transform":return!0;case"pipe":return ae(i.in,t)||ae(i.out,t);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${i.type}`)}var X1={},Pf={};An(Pf,{ZodISODate:()=>co,ZodISODateTime:()=>so,ZodISODuration:()=>fo,ZodISOTime:()=>lo,date:()=>jf,datetime:()=>Rf,duration:()=>Zf,time:()=>Lf});var so=p("ZodISODateTime",(e,n)=>{jl.init(e,n),ee.init(e,n)});function Rf(e){return Wd(so,e)}var co=p("ZodISODate",(e,n)=>{Ll.init(e,n),ee.init(e,n)});function jf(e){return Yd(co,e)}var lo=p("ZodISOTime",(e,n)=>{Zl.init(e,n),ee.init(e,n)});function Lf(e){return Xd(lo,e)}var fo=p("ZodISODuration",(e,n)=>{Vl.init(e,n),ee.init(e,n)});function Zf(e){return ef(fo,e)}var Vf=(e,n)=>{ta.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ra(e,t)},flatten:{value:t=>ia(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})},e3=p("ZodError",Vf),ei=p("ZodError",Vf,{Parent:Error}),qf=ua(ei),Mf=oa(ei),Gf=ca(ei),Jf=la(ei),V=p("ZodType",(e,n)=>(P.init(e,n),e.def=n,Object.defineProperty(e,"_def",{value:n}),e.check=(...t)=>e.clone({...n,checks:[...n.checks??[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(t,r)=>Ge(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>qf(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>Gf(e,t,r),e.parseAsync=async(t,r)=>Mf(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>Jf(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(Tm(t,r)),e.superRefine=t=>e.check(Om(t)),e.overwrite=t=>e.check(zn(t)),e.optional=()=>fr(e),e.nullable=()=>mr(e),e.nullish=()=>fr(mr(e)),e.nonoptional=t=>Dm(e,t),e.array=()=>Oo(e),e.or=t=>dr([e,t]),e.and=t=>sm(e,t),e.transform=t=>vr(e,Ro(t)),e.default=t=>ym(e,t),e.prefault=t=>km(e,t),e.catch=t=>Am(e,t),e.pipe=t=>vr(e,t),e.readonly=()=>Cm(e),e.describe=t=>{const r=e.clone();return Nn.add(r,{description:t}),r},Object.defineProperty(e,"description",{get(){return Nn.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Nn.get(e);const r=e.clone();return Nn.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),mo=p("_ZodString",(e,n)=>{Wt.init(e,n),V.init(e,n);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...r)=>e.check(Qa(...r)),e.includes=(...r)=>e.check(Ya(...r)),e.startsWith=(...r)=>e.check(Xa(...r)),e.endsWith=(...r)=>e.check(eo(...r)),e.min=(...r)=>e.check(rt(...r)),e.max=(...r)=>e.check(nr(...r)),e.length=(...r)=>e.check(tr(...r)),e.nonempty=(...r)=>e.check(rt(1,...r)),e.lowercase=r=>e.check(Ka(r)),e.uppercase=r=>e.check(Wa(r)),e.trim=()=>e.check(io()),e.normalize=(...r)=>e.check(to(...r)),e.toLowerCase=()=>e.check(ro()),e.toUpperCase=()=>e.check(uo())}),ir=p("ZodString",(e,n)=>{Wt.init(e,n),mo.init(e,n),e.email=t=>e.check(_a(po,t)),e.url=t=>e.check(Fa(ho,t)),e.jwt=t=>e.check(Ja(xo,t)),e.emoji=t=>e.check(Na(go,t)),e.guid=t=>e.check(Yi(rr,t)),e.uuid=t=>e.check(Ca(Ye,t)),e.uuidv4=t=>e.check($a(Ye,t)),e.uuidv6=t=>e.check(Ia(Ye,t)),e.uuidv7=t=>e.check(xa(Ye,t)),e.nanoid=t=>e.check(Ta(Eo,t)),e.guid=t=>e.check(Yi(rr,t)),e.cuid=t=>e.check(Oa(yo,t)),e.cuid2=t=>e.check(za(bo,t)),e.ulid=t=>e.check(Ua(ko,t)),e.base64=t=>e.check(qa(Co,t)),e.base64url=t=>e.check(Ma($o,t)),e.xid=t=>e.check(Pa(Do,t)),e.ksuid=t=>e.check(Ra(So,t)),e.ipv4=t=>e.check(ja(Bo,t)),e.ipv6=t=>e.check(La(Ao,t)),e.cidrv4=t=>e.check(Za(wo,t)),e.cidrv6=t=>e.check(Va(_o,t)),e.e164=t=>e.check(Ga(Io,t)),e.datetime=t=>e.check(Rf(t)),e.date=t=>e.check(jf(t)),e.time=t=>e.check(Lf(t)),e.duration=t=>e.check(Zf(t))});function vo(e){return Hd(ir,e)}var ee=p("ZodStringFormat",(e,n)=>{Y.init(e,n),mo.init(e,n)}),po=p("ZodEmail",(e,n)=>{xl.init(e,n),ee.init(e,n)});function n3(e){return _a(po,e)}var rr=p("ZodGUID",(e,n)=>{$l.init(e,n),ee.init(e,n)});function t3(e){return Yi(rr,e)}var Ye=p("ZodUUID",(e,n)=>{Il.init(e,n),ee.init(e,n)});function i3(e){return Ca(Ye,e)}function r3(e){return $a(Ye,e)}function u3(e){return Ia(Ye,e)}function a3(e){return xa(Ye,e)}var ho=p("ZodURL",(e,n)=>{Fl.init(e,n),ee.init(e,n)});function o3(e){return Fa(ho,e)}var go=p("ZodEmoji",(e,n)=>{Nl.init(e,n),ee.init(e,n)});function s3(e){return Na(go,e)}var Eo=p("ZodNanoID",(e,n)=>{Tl.init(e,n),ee.init(e,n)});function c3(e){return Ta(Eo,e)}var yo=p("ZodCUID",(e,n)=>{Ol.init(e,n),ee.init(e,n)});function l3(e){return Oa(yo,e)}var bo=p("ZodCUID2",(e,n)=>{zl.init(e,n),ee.init(e,n)});function d3(e){return za(bo,e)}var ko=p("ZodULID",(e,n)=>{Ul.init(e,n),ee.init(e,n)});function f3(e){return Ua(ko,e)}var Do=p("ZodXID",(e,n)=>{Pl.init(e,n),ee.init(e,n)});function m3(e){return Pa(Do,e)}var So=p("ZodKSUID",(e,n)=>{Rl.init(e,n),ee.init(e,n)});function v3(e){return Ra(So,e)}var Bo=p("ZodIPv4",(e,n)=>{ql.init(e,n),ee.init(e,n)});function p3(e){return ja(Bo,e)}var Ao=p("ZodIPv6",(e,n)=>{Ml.init(e,n),ee.init(e,n)});function h3(e){return La(Ao,e)}var wo=p("ZodCIDRv4",(e,n)=>{Gl.init(e,n),ee.init(e,n)});function g3(e){return Za(wo,e)}var _o=p("ZodCIDRv6",(e,n)=>{Jl.init(e,n),ee.init(e,n)});function E3(e){return Va(_o,e)}var Co=p("ZodBase64",(e,n)=>{Hl.init(e,n),ee.init(e,n)});function y3(e){return qa(Co,e)}var $o=p("ZodBase64URL",(e,n)=>{Kl.init(e,n),ee.init(e,n)});function b3(e){return Ma($o,e)}var Io=p("ZodE164",(e,n)=>{Wl.init(e,n),ee.init(e,n)});function k3(e){return Ga(Io,e)}var xo=p("ZodJWT",(e,n)=>{Xl.init(e,n),ee.init(e,n)});function D3(e){return Ja(xo,e)}var Hf=p("ZodCustomStringFormat",(e,n)=>{ed.init(e,n),ee.init(e,n)});function S3(e,n,t={}){return Tf(Hf,e,n,t)}var ur=p("ZodNumber",(e,n)=>{ha.init(e,n),V.init(e,n),e.gt=(r,i)=>e.check(On(r,i)),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.lt=(r,i)=>e.check(Tn(r,i)),e.lte=(r,i)=>e.check(qe(r,i)),e.max=(r,i)=>e.check(qe(r,i)),e.int=r=>e.check(Fo(r)),e.safe=r=>e.check(Fo(r)),e.positive=r=>e.check(On(0,r)),e.nonnegative=r=>e.check(Ie(0,r)),e.negative=r=>e.check(Tn(0,r)),e.nonpositive=r=>e.check(qe(0,r)),e.multipleOf=(r,i)=>e.check(Yt(r,i)),e.step=(r,i)=>e.check(Yt(r,i)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function Qf(e){return nf(ur,e)}var ut=p("ZodNumberFormat",(e,n)=>{nd.init(e,n),ur.init(e,n)});function Fo(e){return rf(ut,e)}function B3(e){return uf(ut,e)}function A3(e){return af(ut,e)}function w3(e){return of(ut,e)}function _3(e){return sf(ut,e)}var ar=p("ZodBoolean",(e,n)=>{ga.init(e,n),V.init(e,n)});function Kf(e){return cf(ar,e)}var or=p("ZodBigInt",(e,n)=>{Ea.init(e,n),V.init(e,n),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.gt=(r,i)=>e.check(On(r,i)),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.lt=(r,i)=>e.check(Tn(r,i)),e.lte=(r,i)=>e.check(qe(r,i)),e.max=(r,i)=>e.check(qe(r,i)),e.positive=r=>e.check(On(BigInt(0),r)),e.negative=r=>e.check(Tn(BigInt(0),r)),e.nonpositive=r=>e.check(qe(BigInt(0),r)),e.nonnegative=r=>e.check(Ie(BigInt(0),r)),e.multipleOf=(r,i)=>e.check(Yt(r,i));const t=e._zod.bag;e.minValue=t.minimum??null,e.maxValue=t.maximum??null,e.format=t.format??null});function C3(e){return df(or,e)}var No=p("ZodBigIntFormat",(e,n)=>{td.init(e,n),or.init(e,n)});function $3(e){return mf(No,e)}function I3(e){return vf(No,e)}var Wf=p("ZodSymbol",(e,n)=>{id.init(e,n),V.init(e,n)});function x3(e){return pf(Wf,e)}var Yf=p("ZodUndefined",(e,n)=>{rd.init(e,n),V.init(e,n)});function F3(e){return hf(Yf,e)}var Xf=p("ZodNull",(e,n)=>{ud.init(e,n),V.init(e,n)});function em(e){return gf(Xf,e)}var nm=p("ZodAny",(e,n)=>{ad.init(e,n),V.init(e,n)});function N3(){return Ef(nm)}var tm=p("ZodUnknown",(e,n)=>{Hi.init(e,n),V.init(e,n)});function sr(){return Xi(tm)}var im=p("ZodNever",(e,n)=>{od.init(e,n),V.init(e,n)});function cr(e){return yf(im,e)}var rm=p("ZodVoid",(e,n)=>{sd.init(e,n),V.init(e,n)});function T3(e){return bf(rm,e)}var To=p("ZodDate",(e,n)=>{cd.init(e,n),V.init(e,n),e.min=(r,i)=>e.check(Ie(r,i)),e.max=(r,i)=>e.check(qe(r,i));const t=e._zod.bag;e.minDate=t.minimum?new Date(t.minimum):null,e.maxDate=t.maximum?new Date(t.maximum):null});function O3(e){return kf(To,e)}var um=p("ZodArray",(e,n)=>{ya.init(e,n),V.init(e,n),e.element=n.element,e.min=(t,r)=>e.check(rt(t,r)),e.nonempty=t=>e.check(rt(1,t)),e.max=(t,r)=>e.check(nr(t,r)),e.length=(t,r)=>e.check(tr(t,r)),e.unwrap=()=>e.element});function Oo(e,n){return ao(um,e,n)}function z3(e){const n=e._zod.def.shape;return pm(Object.keys(n))}var lr=p("ZodObject",(e,n)=>{fd.init(e,n),V.init(e,n),G.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>mm(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:sr()}),e.loose=()=>e.clone({...e._zod.def,catchall:sr()}),e.strict=()=>e.clone({...e._zod.def,catchall:cr()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>G.extend(e,t),e.merge=t=>G.merge(e,t),e.pick=t=>G.pick(e,t),e.omit=t=>G.omit(e,t),e.partial=(...t)=>G.partial(jo,e,t[0]),e.required=(...t)=>G.required(Lo,e,t[0])});function U3(e,n){const t={type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},...G.normalizeParams(n)};return new lr(t)}function P3(e,n){return new lr({type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},catchall:cr(),...G.normalizeParams(n)})}function R3(e,n){return new lr({type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},catchall:sr(),...G.normalizeParams(n)})}var zo=p("ZodUnion",(e,n)=>{ba.init(e,n),V.init(e,n),e.options=n.options});function dr(e,n){return new zo({type:"union",options:e,...G.normalizeParams(n)})}var am=p("ZodDiscriminatedUnion",(e,n)=>{zo.init(e,n),vd.init(e,n)});function j3(e,n,t){return new am({type:"union",options:n,discriminator:e,...G.normalizeParams(t)})}var om=p("ZodIntersection",(e,n)=>{pd.init(e,n),V.init(e,n)});function sm(e,n){return new om({type:"intersection",left:e,right:n})}var cm=p("ZodTuple",(e,n)=>{Ki.init(e,n),V.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function L3(e,n,t){const r=n instanceof P,i=r?t:n,u=r?n:null;return new cm({type:"tuple",items:e,rest:u,...G.normalizeParams(i)})}var Uo=p("ZodRecord",(e,n)=>{gd.init(e,n),V.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function lm(e,n,t){return new Uo({type:"record",keyType:e,valueType:n,...G.normalizeParams(t)})}function Z3(e,n,t){return new Uo({type:"record",keyType:dr([e,cr()]),valueType:n,...G.normalizeParams(t)})}var dm=p("ZodMap",(e,n)=>{Ed.init(e,n),V.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function V3(e,n,t){return new dm({type:"map",keyType:e,valueType:n,...G.normalizeParams(t)})}var fm=p("ZodSet",(e,n)=>{bd.init(e,n),V.init(e,n),e.min=(...t)=>e.check(Xt(...t)),e.nonempty=t=>e.check(Xt(1,t)),e.max=(...t)=>e.check(er(...t)),e.size=(...t)=>e.check(Ha(...t))});function q3(e,n){return new fm({type:"set",valueType:e,...G.normalizeParams(n)})}var ni=p("ZodEnum",(e,n)=>{Dd.init(e,n),V.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(r,i)=>{const u={};for(const a of r)if(t.has(a))u[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...G.normalizeParams(i),entries:u})},e.exclude=(r,i)=>{const u={...n.entries};for(const a of r)if(t.has(a))delete u[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...G.normalizeParams(i),entries:u})}});function mm(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ni({type:"enum",entries:t,...G.normalizeParams(n)})}function M3(e,n){return new ni({type:"enum",entries:e,...G.normalizeParams(n)})}var vm=p("ZodLiteral",(e,n)=>{Sd.init(e,n),V.init(e,n),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function pm(e,n){return new vm({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(n)})}var hm=p("ZodFile",(e,n)=>{Bd.init(e,n),V.init(e,n),e.min=(t,r)=>e.check(Xt(t,r)),e.max=(t,r)=>e.check(er(t,r)),e.mime=(t,r)=>e.check(no(Array.isArray(t)?t:[t],r))});function G3(e){return If(hm,e)}var Po=p("ZodTransform",(e,n)=>{Da.init(e,n),V.init(e,n),e._zod.parse=(t,r)=>{t.addIssue=u=>{if(typeof u=="string")t.issues.push(G.issue(u,t.value,n));else{const a=u;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),t.issues.push(G.issue(a))}};const i=n.transform(t.value,t);return i instanceof Promise?i.then(u=>(t.value=u,t)):(t.value=i,t)}});function Ro(e){return new Po({type:"transform",transform:e})}var jo=p("ZodOptional",(e,n)=>{Ad.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function fr(e){return new jo({type:"optional",innerType:e})}var gm=p("ZodNullable",(e,n)=>{wd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function mr(e){return new gm({type:"nullable",innerType:e})}function J3(e){return fr(mr(e))}var Em=p("ZodDefault",(e,n)=>{_d.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ym(e,n){return new Em({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var bm=p("ZodPrefault",(e,n)=>{$d.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function km(e,n){return new bm({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var Lo=p("ZodNonOptional",(e,n)=>{Id.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Dm(e,n){return new Lo({type:"nonoptional",innerType:e,...G.normalizeParams(n)})}var Sm=p("ZodSuccess",(e,n)=>{Fd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function H3(e){return new Sm({type:"success",innerType:e})}var Bm=p("ZodCatch",(e,n)=>{Nd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Am(e,n){return new Bm({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var wm=p("ZodNaN",(e,n)=>{Td.init(e,n),V.init(e,n)});function Q3(e){return Sf(wm,e)}var Zo=p("ZodPipe",(e,n)=>{Sa.init(e,n),V.init(e,n),e.in=n.in,e.out=n.out});function vr(e,n){return new Zo({type:"pipe",in:e,out:n})}var _m=p("ZodReadonly",(e,n)=>{zd.init(e,n),V.init(e,n)});function Cm(e){return new _m({type:"readonly",innerType:e})}var $m=p("ZodTemplateLiteral",(e,n)=>{Pd.init(e,n),V.init(e,n)});function K3(e,n){return new $m({type:"template_literal",parts:e,...G.normalizeParams(n)})}var Im=p("ZodLazy",(e,n)=>{jd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.getter()});function xm(e){return new Im({type:"lazy",getter:e})}var Fm=p("ZodPromise",(e,n)=>{Rd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function W3(e){return new Fm({type:"promise",innerType:e})}var pr=p("ZodCustom",(e,n)=>{Ld.init(e,n),V.init(e,n)});function Nm(e){const n=new re({check:"custom"});return n._zod.check=e,n}function Y3(e,n){return xf(pr,e??(()=>!0),n)}function Tm(e,n={}){return Ff(pr,e,n)}function Om(e){const n=Nm(t=>(t.addIssue=r=>{if(typeof r=="string")t.issues.push(G.issue(r,t.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=t.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),t.issues.push(G.issue(i))}},e(t.value,t)));return n}function X3(e,n={error:`Input not instance of ${e.name}`}){const t=new pr({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...G.normalizeParams(n)});return t._zod.bag.Class=e,t}var eE=(...e)=>Nf({Pipe:Zo,Boolean:ar,String:ir,Transform:Po},...e);function nE(e){const n=xm(()=>dr([vo(e),Qf(),Kf(),em(),Oo(n),lm(vo(),n)]));return n}function tE(e,n){return vr(Ro(e),n)}var iE={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"};function rE(e){De({customError:e})}function uE(){return De().customError}var Vo;Vo||(Vo={});var zm={};An(zm,{bigint:()=>cE,boolean:()=>sE,date:()=>lE,number:()=>oE,string:()=>aE});function aE(e){return Qd(ir,e)}function oE(e){return tf(ur,e)}function sE(e){return lf(ar,e)}function cE(e){return ff(or,e)}function lE(e){return Df(To,e)}De(qd());var hr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDebitCard"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDebitCardInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DebitCardInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDebitCard"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDebitCardInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDebitCardInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:381}};hr.loc.source={body:`mutation CreateDebitCard($createDebitCardInput: DebitCardInput!) {
201
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of this.seen.entries()){const l=c[1];if(e===c[0]){u(c);continue}if(t.external){const m=t.external.registry.get(c[0])?.id;if(e!==c[0]&&m){u(c);continue}}if(this.metadataRegistry.get(c[0])?.id){u(c);continue}if(l.cycle){u(c);continue}if(l.count>1&&t.reused==="ref"){u(c);continue}}const a=(c,l)=>{const f=this.seen.get(c),m=f.def??f.schema,d={...m};if(f.ref===null)return;const v=f.ref;if(f.ref=null,v){a(v,l);const h=this.seen.get(v).schema;h.$ref&&l.target==="draft-7"?(m.allOf=m.allOf??[],m.allOf.push(h)):(Object.assign(m,h),Object.assign(m,d))}f.isParent||this.override({zodSchema:c,jsonSchema:m,path:f.path??[]})};for(const c of[...this.seen.entries()].reverse())a(c[0],{target:this.target});const o={};if(this.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?o.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),t.external?.uri){const c=t.external.registry.get(e)?.id;if(!c)throw new Error("Schema is missing an `id` property");o.$id=t.external.uri(c)}Object.assign(o,r.def);const s=t.external?.defs??{};for(const c of this.seen.entries()){const l=c[1];l.def&&l.defId&&(s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(this.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{return JSON.parse(JSON.stringify(o))}catch{throw new Error("Error converting schema to JSON.")}}};function Uf(e,n){if(e instanceof Aa){const r=new oo(n),i={};for(const o of e._idmap.entries()){const[s,c]=o;r.process(c)}const u={},a={registry:e,uri:n?.uri,defs:i};for(const o of e._idmap.entries()){const[s,c]=o;u[s]=r.emit(c,{...n,external:a})}if(Object.keys(i).length>0){const o=r.target==="draft-2020-12"?"$defs":"definitions";u.__shared={[o]:i}}return{schemas:u}}const t=new oo(n);return t.process(e),t.emit(e,n)}function ae(e,n){const t=n??{seen:new Set};if(t.seen.has(e))return!1;t.seen.add(e);const i=e._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return ae(i.element,t);case"object":{for(const u in i.shape)if(ae(i.shape[u],t))return!0;return!1}case"union":{for(const u of i.options)if(ae(u,t))return!0;return!1}case"intersection":return ae(i.left,t)||ae(i.right,t);case"tuple":{for(const u of i.items)if(ae(u,t))return!0;return!!(i.rest&&ae(i.rest,t))}case"record":return ae(i.keyType,t)||ae(i.valueType,t);case"map":return ae(i.keyType,t)||ae(i.valueType,t);case"set":return ae(i.valueType,t);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return ae(i.innerType,t);case"lazy":return ae(i.getter(),t);case"default":return ae(i.innerType,t);case"prefault":return ae(i.innerType,t);case"custom":return!1;case"transform":return!0;case"pipe":return ae(i.in,t)||ae(i.out,t);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${i.type}`)}var e3={},Pf={};An(Pf,{ZodISODate:()=>co,ZodISODateTime:()=>so,ZodISODuration:()=>fo,ZodISOTime:()=>lo,date:()=>jf,datetime:()=>Rf,duration:()=>Zf,time:()=>Lf});var so=p("ZodISODateTime",(e,n)=>{jl.init(e,n),ee.init(e,n)});function Rf(e){return Wd(so,e)}var co=p("ZodISODate",(e,n)=>{Ll.init(e,n),ee.init(e,n)});function jf(e){return Yd(co,e)}var lo=p("ZodISOTime",(e,n)=>{Zl.init(e,n),ee.init(e,n)});function Lf(e){return Xd(lo,e)}var fo=p("ZodISODuration",(e,n)=>{Vl.init(e,n),ee.init(e,n)});function Zf(e){return ef(fo,e)}var Vf=(e,n)=>{ta.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ra(e,t)},flatten:{value:t=>ia(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})},n3=p("ZodError",Vf),ei=p("ZodError",Vf,{Parent:Error}),qf=ua(ei),Mf=oa(ei),Gf=ca(ei),Jf=la(ei),V=p("ZodType",(e,n)=>(P.init(e,n),e.def=n,Object.defineProperty(e,"_def",{value:n}),e.check=(...t)=>e.clone({...n,checks:[...n.checks??[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(t,r)=>Ge(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>qf(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>Gf(e,t,r),e.parseAsync=async(t,r)=>Mf(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>Jf(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(Tm(t,r)),e.superRefine=t=>e.check(Om(t)),e.overwrite=t=>e.check(zn(t)),e.optional=()=>fr(e),e.nullable=()=>mr(e),e.nullish=()=>fr(mr(e)),e.nonoptional=t=>Dm(e,t),e.array=()=>Oo(e),e.or=t=>dr([e,t]),e.and=t=>sm(e,t),e.transform=t=>vr(e,Ro(t)),e.default=t=>ym(e,t),e.prefault=t=>km(e,t),e.catch=t=>Am(e,t),e.pipe=t=>vr(e,t),e.readonly=()=>Cm(e),e.describe=t=>{const r=e.clone();return Nn.add(r,{description:t}),r},Object.defineProperty(e,"description",{get(){return Nn.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Nn.get(e);const r=e.clone();return Nn.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),mo=p("_ZodString",(e,n)=>{Wt.init(e,n),V.init(e,n);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...r)=>e.check(Qa(...r)),e.includes=(...r)=>e.check(Ya(...r)),e.startsWith=(...r)=>e.check(Xa(...r)),e.endsWith=(...r)=>e.check(eo(...r)),e.min=(...r)=>e.check(rt(...r)),e.max=(...r)=>e.check(nr(...r)),e.length=(...r)=>e.check(tr(...r)),e.nonempty=(...r)=>e.check(rt(1,...r)),e.lowercase=r=>e.check(Ka(r)),e.uppercase=r=>e.check(Wa(r)),e.trim=()=>e.check(io()),e.normalize=(...r)=>e.check(to(...r)),e.toLowerCase=()=>e.check(ro()),e.toUpperCase=()=>e.check(uo())}),ir=p("ZodString",(e,n)=>{Wt.init(e,n),mo.init(e,n),e.email=t=>e.check(_a(po,t)),e.url=t=>e.check(Fa(ho,t)),e.jwt=t=>e.check(Ja(xo,t)),e.emoji=t=>e.check(Na(go,t)),e.guid=t=>e.check(Yi(rr,t)),e.uuid=t=>e.check(Ca(Ye,t)),e.uuidv4=t=>e.check($a(Ye,t)),e.uuidv6=t=>e.check(Ia(Ye,t)),e.uuidv7=t=>e.check(xa(Ye,t)),e.nanoid=t=>e.check(Ta(Eo,t)),e.guid=t=>e.check(Yi(rr,t)),e.cuid=t=>e.check(Oa(yo,t)),e.cuid2=t=>e.check(za(bo,t)),e.ulid=t=>e.check(Ua(ko,t)),e.base64=t=>e.check(qa(Co,t)),e.base64url=t=>e.check(Ma($o,t)),e.xid=t=>e.check(Pa(Do,t)),e.ksuid=t=>e.check(Ra(So,t)),e.ipv4=t=>e.check(ja(Bo,t)),e.ipv6=t=>e.check(La(Ao,t)),e.cidrv4=t=>e.check(Za(wo,t)),e.cidrv6=t=>e.check(Va(_o,t)),e.e164=t=>e.check(Ga(Io,t)),e.datetime=t=>e.check(Rf(t)),e.date=t=>e.check(jf(t)),e.time=t=>e.check(Lf(t)),e.duration=t=>e.check(Zf(t))});function vo(e){return Hd(ir,e)}var ee=p("ZodStringFormat",(e,n)=>{Y.init(e,n),mo.init(e,n)}),po=p("ZodEmail",(e,n)=>{xl.init(e,n),ee.init(e,n)});function t3(e){return _a(po,e)}var rr=p("ZodGUID",(e,n)=>{$l.init(e,n),ee.init(e,n)});function i3(e){return Yi(rr,e)}var Ye=p("ZodUUID",(e,n)=>{Il.init(e,n),ee.init(e,n)});function r3(e){return Ca(Ye,e)}function u3(e){return $a(Ye,e)}function a3(e){return Ia(Ye,e)}function o3(e){return xa(Ye,e)}var ho=p("ZodURL",(e,n)=>{Fl.init(e,n),ee.init(e,n)});function s3(e){return Fa(ho,e)}var go=p("ZodEmoji",(e,n)=>{Nl.init(e,n),ee.init(e,n)});function c3(e){return Na(go,e)}var Eo=p("ZodNanoID",(e,n)=>{Tl.init(e,n),ee.init(e,n)});function l3(e){return Ta(Eo,e)}var yo=p("ZodCUID",(e,n)=>{Ol.init(e,n),ee.init(e,n)});function d3(e){return Oa(yo,e)}var bo=p("ZodCUID2",(e,n)=>{zl.init(e,n),ee.init(e,n)});function f3(e){return za(bo,e)}var ko=p("ZodULID",(e,n)=>{Ul.init(e,n),ee.init(e,n)});function m3(e){return Ua(ko,e)}var Do=p("ZodXID",(e,n)=>{Pl.init(e,n),ee.init(e,n)});function v3(e){return Pa(Do,e)}var So=p("ZodKSUID",(e,n)=>{Rl.init(e,n),ee.init(e,n)});function p3(e){return Ra(So,e)}var Bo=p("ZodIPv4",(e,n)=>{ql.init(e,n),ee.init(e,n)});function h3(e){return ja(Bo,e)}var Ao=p("ZodIPv6",(e,n)=>{Ml.init(e,n),ee.init(e,n)});function g3(e){return La(Ao,e)}var wo=p("ZodCIDRv4",(e,n)=>{Gl.init(e,n),ee.init(e,n)});function E3(e){return Za(wo,e)}var _o=p("ZodCIDRv6",(e,n)=>{Jl.init(e,n),ee.init(e,n)});function y3(e){return Va(_o,e)}var Co=p("ZodBase64",(e,n)=>{Hl.init(e,n),ee.init(e,n)});function b3(e){return qa(Co,e)}var $o=p("ZodBase64URL",(e,n)=>{Kl.init(e,n),ee.init(e,n)});function k3(e){return Ma($o,e)}var Io=p("ZodE164",(e,n)=>{Wl.init(e,n),ee.init(e,n)});function D3(e){return Ga(Io,e)}var xo=p("ZodJWT",(e,n)=>{Xl.init(e,n),ee.init(e,n)});function S3(e){return Ja(xo,e)}var Hf=p("ZodCustomStringFormat",(e,n)=>{ed.init(e,n),ee.init(e,n)});function B3(e,n,t={}){return Tf(Hf,e,n,t)}var ur=p("ZodNumber",(e,n)=>{ha.init(e,n),V.init(e,n),e.gt=(r,i)=>e.check(On(r,i)),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.lt=(r,i)=>e.check(Tn(r,i)),e.lte=(r,i)=>e.check(qe(r,i)),e.max=(r,i)=>e.check(qe(r,i)),e.int=r=>e.check(Fo(r)),e.safe=r=>e.check(Fo(r)),e.positive=r=>e.check(On(0,r)),e.nonnegative=r=>e.check(Ie(0,r)),e.negative=r=>e.check(Tn(0,r)),e.nonpositive=r=>e.check(qe(0,r)),e.multipleOf=(r,i)=>e.check(Yt(r,i)),e.step=(r,i)=>e.check(Yt(r,i)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function Qf(e){return nf(ur,e)}var ut=p("ZodNumberFormat",(e,n)=>{nd.init(e,n),ur.init(e,n)});function Fo(e){return rf(ut,e)}function A3(e){return uf(ut,e)}function w3(e){return af(ut,e)}function _3(e){return of(ut,e)}function C3(e){return sf(ut,e)}var ar=p("ZodBoolean",(e,n)=>{ga.init(e,n),V.init(e,n)});function Kf(e){return cf(ar,e)}var or=p("ZodBigInt",(e,n)=>{Ea.init(e,n),V.init(e,n),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.gt=(r,i)=>e.check(On(r,i)),e.gte=(r,i)=>e.check(Ie(r,i)),e.min=(r,i)=>e.check(Ie(r,i)),e.lt=(r,i)=>e.check(Tn(r,i)),e.lte=(r,i)=>e.check(qe(r,i)),e.max=(r,i)=>e.check(qe(r,i)),e.positive=r=>e.check(On(BigInt(0),r)),e.negative=r=>e.check(Tn(BigInt(0),r)),e.nonpositive=r=>e.check(qe(BigInt(0),r)),e.nonnegative=r=>e.check(Ie(BigInt(0),r)),e.multipleOf=(r,i)=>e.check(Yt(r,i));const t=e._zod.bag;e.minValue=t.minimum??null,e.maxValue=t.maximum??null,e.format=t.format??null});function $3(e){return df(or,e)}var No=p("ZodBigIntFormat",(e,n)=>{td.init(e,n),or.init(e,n)});function I3(e){return mf(No,e)}function x3(e){return vf(No,e)}var Wf=p("ZodSymbol",(e,n)=>{id.init(e,n),V.init(e,n)});function F3(e){return pf(Wf,e)}var Yf=p("ZodUndefined",(e,n)=>{rd.init(e,n),V.init(e,n)});function N3(e){return hf(Yf,e)}var Xf=p("ZodNull",(e,n)=>{ud.init(e,n),V.init(e,n)});function em(e){return gf(Xf,e)}var nm=p("ZodAny",(e,n)=>{ad.init(e,n),V.init(e,n)});function T3(){return Ef(nm)}var tm=p("ZodUnknown",(e,n)=>{Hi.init(e,n),V.init(e,n)});function sr(){return Xi(tm)}var im=p("ZodNever",(e,n)=>{od.init(e,n),V.init(e,n)});function cr(e){return yf(im,e)}var rm=p("ZodVoid",(e,n)=>{sd.init(e,n),V.init(e,n)});function O3(e){return bf(rm,e)}var To=p("ZodDate",(e,n)=>{cd.init(e,n),V.init(e,n),e.min=(r,i)=>e.check(Ie(r,i)),e.max=(r,i)=>e.check(qe(r,i));const t=e._zod.bag;e.minDate=t.minimum?new Date(t.minimum):null,e.maxDate=t.maximum?new Date(t.maximum):null});function z3(e){return kf(To,e)}var um=p("ZodArray",(e,n)=>{ya.init(e,n),V.init(e,n),e.element=n.element,e.min=(t,r)=>e.check(rt(t,r)),e.nonempty=t=>e.check(rt(1,t)),e.max=(t,r)=>e.check(nr(t,r)),e.length=(t,r)=>e.check(tr(t,r)),e.unwrap=()=>e.element});function Oo(e,n){return ao(um,e,n)}function U3(e){const n=e._zod.def.shape;return pm(Object.keys(n))}var lr=p("ZodObject",(e,n)=>{fd.init(e,n),V.init(e,n),G.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>mm(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:sr()}),e.loose=()=>e.clone({...e._zod.def,catchall:sr()}),e.strict=()=>e.clone({...e._zod.def,catchall:cr()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>G.extend(e,t),e.merge=t=>G.merge(e,t),e.pick=t=>G.pick(e,t),e.omit=t=>G.omit(e,t),e.partial=(...t)=>G.partial(jo,e,t[0]),e.required=(...t)=>G.required(Lo,e,t[0])});function P3(e,n){const t={type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},...G.normalizeParams(n)};return new lr(t)}function R3(e,n){return new lr({type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},catchall:cr(),...G.normalizeParams(n)})}function j3(e,n){return new lr({type:"object",get shape(){return G.assignProp(this,"shape",{...e}),this.shape},catchall:sr(),...G.normalizeParams(n)})}var zo=p("ZodUnion",(e,n)=>{ba.init(e,n),V.init(e,n),e.options=n.options});function dr(e,n){return new zo({type:"union",options:e,...G.normalizeParams(n)})}var am=p("ZodDiscriminatedUnion",(e,n)=>{zo.init(e,n),vd.init(e,n)});function L3(e,n,t){return new am({type:"union",options:n,discriminator:e,...G.normalizeParams(t)})}var om=p("ZodIntersection",(e,n)=>{pd.init(e,n),V.init(e,n)});function sm(e,n){return new om({type:"intersection",left:e,right:n})}var cm=p("ZodTuple",(e,n)=>{Ki.init(e,n),V.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function Z3(e,n,t){const r=n instanceof P,i=r?t:n,u=r?n:null;return new cm({type:"tuple",items:e,rest:u,...G.normalizeParams(i)})}var Uo=p("ZodRecord",(e,n)=>{gd.init(e,n),V.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function lm(e,n,t){return new Uo({type:"record",keyType:e,valueType:n,...G.normalizeParams(t)})}function V3(e,n,t){return new Uo({type:"record",keyType:dr([e,cr()]),valueType:n,...G.normalizeParams(t)})}var dm=p("ZodMap",(e,n)=>{Ed.init(e,n),V.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function q3(e,n,t){return new dm({type:"map",keyType:e,valueType:n,...G.normalizeParams(t)})}var fm=p("ZodSet",(e,n)=>{bd.init(e,n),V.init(e,n),e.min=(...t)=>e.check(Xt(...t)),e.nonempty=t=>e.check(Xt(1,t)),e.max=(...t)=>e.check(er(...t)),e.size=(...t)=>e.check(Ha(...t))});function M3(e,n){return new fm({type:"set",valueType:e,...G.normalizeParams(n)})}var ni=p("ZodEnum",(e,n)=>{Dd.init(e,n),V.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(r,i)=>{const u={};for(const a of r)if(t.has(a))u[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...G.normalizeParams(i),entries:u})},e.exclude=(r,i)=>{const u={...n.entries};for(const a of r)if(t.has(a))delete u[a];else throw new Error(`Key ${a} not found in enum`);return new ni({...n,checks:[],...G.normalizeParams(i),entries:u})}});function mm(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ni({type:"enum",entries:t,...G.normalizeParams(n)})}function G3(e,n){return new ni({type:"enum",entries:e,...G.normalizeParams(n)})}var vm=p("ZodLiteral",(e,n)=>{Sd.init(e,n),V.init(e,n),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function pm(e,n){return new vm({type:"literal",values:Array.isArray(e)?e:[e],...G.normalizeParams(n)})}var hm=p("ZodFile",(e,n)=>{Bd.init(e,n),V.init(e,n),e.min=(t,r)=>e.check(Xt(t,r)),e.max=(t,r)=>e.check(er(t,r)),e.mime=(t,r)=>e.check(no(Array.isArray(t)?t:[t],r))});function J3(e){return If(hm,e)}var Po=p("ZodTransform",(e,n)=>{Da.init(e,n),V.init(e,n),e._zod.parse=(t,r)=>{t.addIssue=u=>{if(typeof u=="string")t.issues.push(G.issue(u,t.value,n));else{const a=u;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),t.issues.push(G.issue(a))}};const i=n.transform(t.value,t);return i instanceof Promise?i.then(u=>(t.value=u,t)):(t.value=i,t)}});function Ro(e){return new Po({type:"transform",transform:e})}var jo=p("ZodOptional",(e,n)=>{Ad.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function fr(e){return new jo({type:"optional",innerType:e})}var gm=p("ZodNullable",(e,n)=>{wd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function mr(e){return new gm({type:"nullable",innerType:e})}function H3(e){return fr(mr(e))}var Em=p("ZodDefault",(e,n)=>{_d.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ym(e,n){return new Em({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var bm=p("ZodPrefault",(e,n)=>{$d.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function km(e,n){return new bm({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var Lo=p("ZodNonOptional",(e,n)=>{Id.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Dm(e,n){return new Lo({type:"nonoptional",innerType:e,...G.normalizeParams(n)})}var Sm=p("ZodSuccess",(e,n)=>{Fd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Q3(e){return new Sm({type:"success",innerType:e})}var Bm=p("ZodCatch",(e,n)=>{Nd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Am(e,n){return new Bm({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var wm=p("ZodNaN",(e,n)=>{Td.init(e,n),V.init(e,n)});function K3(e){return Sf(wm,e)}var Zo=p("ZodPipe",(e,n)=>{Sa.init(e,n),V.init(e,n),e.in=n.in,e.out=n.out});function vr(e,n){return new Zo({type:"pipe",in:e,out:n})}var _m=p("ZodReadonly",(e,n)=>{zd.init(e,n),V.init(e,n)});function Cm(e){return new _m({type:"readonly",innerType:e})}var $m=p("ZodTemplateLiteral",(e,n)=>{Pd.init(e,n),V.init(e,n)});function W3(e,n){return new $m({type:"template_literal",parts:e,...G.normalizeParams(n)})}var Im=p("ZodLazy",(e,n)=>{jd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.getter()});function xm(e){return new Im({type:"lazy",getter:e})}var Fm=p("ZodPromise",(e,n)=>{Rd.init(e,n),V.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Y3(e){return new Fm({type:"promise",innerType:e})}var pr=p("ZodCustom",(e,n)=>{Ld.init(e,n),V.init(e,n)});function Nm(e){const n=new re({check:"custom"});return n._zod.check=e,n}function X3(e,n){return xf(pr,e??(()=>!0),n)}function Tm(e,n={}){return Ff(pr,e,n)}function Om(e){const n=Nm(t=>(t.addIssue=r=>{if(typeof r=="string")t.issues.push(G.issue(r,t.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=t.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),t.issues.push(G.issue(i))}},e(t.value,t)));return n}function eE(e,n={error:`Input not instance of ${e.name}`}){const t=new pr({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...G.normalizeParams(n)});return t._zod.bag.Class=e,t}var nE=(...e)=>Nf({Pipe:Zo,Boolean:ar,String:ir,Transform:Po},...e);function tE(e){const n=xm(()=>dr([vo(e),Qf(),Kf(),em(),Oo(n),lm(vo(),n)]));return n}function iE(e,n){return vr(Ro(e),n)}var rE={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"};function uE(e){De({customError:e})}function aE(){return De().customError}var Vo;Vo||(Vo={});var zm={};An(zm,{bigint:()=>lE,boolean:()=>cE,date:()=>dE,number:()=>sE,string:()=>oE});function oE(e){return Qd(ir,e)}function sE(e){return tf(ur,e)}function cE(e){return lf(ar,e)}function lE(e){return ff(or,e)}function dE(e){return Df(To,e)}De(qd());var hr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDebitCard"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDebitCardInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DebitCardInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDebitCard"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDebitCardInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDebitCardInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:381}};hr.loc.source={body:`mutation CreateDebitCard($createDebitCardInput: DebitCardInput!) {
202
202
  createDebitCard(createDebitCardInput: $createDebitCardInput) {
203
203
  id
204
204
  type
@@ -216,7 +216,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
216
216
  externalId
217
217
  }
218
218
  }
219
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function gr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){gr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gr(r,n)}),e.definitions&&e.definitions.forEach(function(r){gr(r,n)})}var qo={};(function(){hr.definitions.forEach(function(n){if(n.name){var t=new Set;gr(n,t),qo[n.name.value]=t}})})();function Um(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function dE(e,n){var t={kind:e.kind,definitions:[Um(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=qo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Um(e,o);s&&t.definitions.push(s)}),t}dE(hr,"CreateDebitCard");var Er={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenameDebitCard"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DebitCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:467}};Er.loc.source={body:`mutation RenameDebitCard($accountId: String!, $name: String!) {
219
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function gr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){gr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gr(r,n)}),e.definitions&&e.definitions.forEach(function(r){gr(r,n)})}var qo={};(function(){hr.definitions.forEach(function(n){if(n.name){var t=new Set;gr(n,t),qo[n.name.value]=t}})})();function Um(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function fE(e,n){var t={kind:e.kind,definitions:[Um(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=qo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Um(e,o);s&&t.definitions.push(s)}),t}fE(hr,"CreateDebitCard");var Er={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenameDebitCard"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"renamePayableAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DebitCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:467}};Er.loc.source={body:`mutation RenameDebitCard($accountId: String!, $name: String!) {
220
220
  renamePayableAccount(accountId: $accountId, name: $name) {
221
221
  ... on DebitCard {
222
222
  id
@@ -236,7 +236,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
236
236
  }
237
237
  }
238
238
  }
239
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function yr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){yr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){yr(r,n)}),e.definitions&&e.definitions.forEach(function(r){yr(r,n)})}var Mo={};(function(){Er.definitions.forEach(function(n){if(n.name){var t=new Set;yr(n,t),Mo[n.name.value]=t}})})();function Pm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function fE(e,n){var t={kind:e.kind,definitions:[Pm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Mo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Mo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Pm(e,o);s&&t.definitions.push(s)}),t}fE(Er,"RenameDebitCard");var br={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"DebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DebitCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}],loc:{start:0,end:227}};br.loc.source={body:`fragment DebitCardFragment on DebitCard {
239
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function yr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){yr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){yr(r,n)}),e.definitions&&e.definitions.forEach(function(r){yr(r,n)})}var Mo={};(function(){Er.definitions.forEach(function(n){if(n.name){var t=new Set;yr(n,t),Mo[n.name.value]=t}})})();function Pm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function mE(e,n){var t={kind:e.kind,definitions:[Pm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Mo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Mo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Pm(e,o);s&&t.definitions.push(s)}),t}mE(Er,"RenameDebitCard");var br={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"DebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DebitCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"debitCardNetwork"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expirationDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"cardNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalId"},arguments:[],directives:[]}]}}],loc:{start:0,end:227}};br.loc.source={body:`fragment DebitCardFragment on DebitCard {
240
240
  id
241
241
  type
242
242
  name
@@ -252,35 +252,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
252
252
  paymentCount
253
253
  externalId
254
254
  }
255
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function kr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){kr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){kr(r,n)}),e.definitions&&e.definitions.forEach(function(r){kr(r,n)})}var Go={};(function(){br.definitions.forEach(function(n){if(n.name){var t=new Set;kr(n,t),Go[n.name.value]=t}})})();function Rm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function mE(e,n){var t={kind:e.kind,definitions:[Rm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Go[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Go[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Rm(e,o);s&&t.definitions.push(s)}),t}mE(br,"DebitCardFragment");var at={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserDebitCards"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"debitCards"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:116}};at.loc.source={body:`#import "./debitCardFragment.graphql"
255
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function kr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){kr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){kr(r,n)}),e.definitions&&e.definitions.forEach(function(r){kr(r,n)})}var Go={};(function(){br.definitions.forEach(function(n){if(n.name){var t=new Set;kr(n,t),Go[n.name.value]=t}})})();function Rm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function vE(e,n){var t={kind:e.kind,definitions:[Rm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Go[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Go[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Rm(e,o);s&&t.definitions.push(s)}),t}vE(br,"DebitCardFragment");var at={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserDebitCards"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"debitCards"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:116}};at.loc.source={body:`#import "./debitCardFragment.graphql"
256
256
 
257
257
  query UserDebitCards {
258
258
  debitCards {
259
259
  ...DebitCardFragment
260
260
  }
261
261
  }
262
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var jm={};function vE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return jm[t]?!1:(jm[t]=!0,!0)})}at.definitions=at.definitions.concat(vE(br.definitions));function Dr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Dr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Dr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Dr(r,n)})}var Jo={};(function(){at.definitions.forEach(function(n){if(n.name){var t=new Set;Dr(n,t),Jo[n.name.value]=t}})})();function Lm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function pE(e,n){var t={kind:e.kind,definitions:[Lm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Jo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Jo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Lm(e,o);s&&t.definitions.push(s)}),t}pE(at,"UserDebitCards");const hE=/^4[0-9]{12}(?:[0-9]{3})?$/,gE=/^5[1-5][0-9]{14}$/,EE=Xn.object({name:Xn.string().min(1,"Name is required").nullable().optional(),cardNumber:Xn.string().min(1,"Card number is required").transform(e=>e.replace(/[^\d]/g,"")).refine(e=>(hE.test(e)||gE.test(e))&&e.length===16,"Card must be a valid 16-digit Visa or Mastercard number"),expirationDate:Xn.string().min(1,"Expiration date is required").regex(/^(0[1-9]|1[0-2])\/\d{2}$/,"Expiration date must be in MM/YY format")});class yE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:at}))?.debitCards??[]}async rename(n,t){return(await this.client.query({query:Er,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:In,variables:{accountId:n}}))?.deletePayableAccount??null}async create(n){try{const t=EE.parse(n);return(await this.client.query({query:hr,variables:{createDebitCardInput:{...n,cardNumber:t.cardNumber}}}))?.createDebitCard??null}catch(t){throw t instanceof Xn.ZodError?new Error(t.issues[0]?.message??"Input validation failure"):t}}}function bE(e,n){if(!e.usesIntegratorAuth)return;const t=n.clientIp;if(typeof t!="string"||t.length===0)throw new Error("clientIp is required to create a deposit with integrator HMAC credentials: pass the public address your edge observed for the authorizing client")}function Zm(e){const n=e?.idempotencyKey;if(typeof n!="string"||n.length===0)throw new Error("idempotencyKey is required to create a deposit");return{"idempotency-key":n}}class kE{client;constructor(n){this.client=n}async prepare(n){return this.client.restApi(z("/v1/deposits/direct/prepare","post",{body:n}))}async create(n,t){return bE(this.client,n),this.client.restApi(z("/v1/deposits/direct","post",{body:n,headers:Zm(t)}))}async list(n){return this.client.restApi(z("/v1/deposits/","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(z("/v1/deposits/{depositId}","get",{params:{depositId:n}}))}}class DE{client;constructor(n){this.client=n}async list(){return this.client.restApi(z("/v1/funding-sources/","get"))}async get(n){return this.client.restApi(z("/v1/funding-sources/{fundingSourceId}","get",{params:{fundingSourceId:n}}))}async getDepositLimits(n){return this.client.restApi(z("/v1/funding-sources/{fundingSourceId}/deposit-limits","get",{params:{fundingSourceId:n}}))}}var ti={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccountInstitution"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}],loc:{start:0,end:126}};ti.loc.source={body:`fragment PayableAccountInstitutionFragment on PayableAccountInstitution {
262
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var jm={};function pE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return jm[t]?!1:(jm[t]=!0,!0)})}at.definitions=at.definitions.concat(pE(br.definitions));function Dr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Dr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Dr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Dr(r,n)})}var Jo={};(function(){at.definitions.forEach(function(n){if(n.name){var t=new Set;Dr(n,t),Jo[n.name.value]=t}})})();function Lm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function hE(e,n){var t={kind:e.kind,definitions:[Lm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Jo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Jo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Lm(e,o);s&&t.definitions.push(s)}),t}hE(at,"UserDebitCards");const gE=/^4[0-9]{12}(?:[0-9]{3})?$/,EE=/^5[1-5][0-9]{14}$/,yE=Xn.object({name:Xn.string().min(1,"Name is required").nullable().optional(),cardNumber:Xn.string().min(1,"Card number is required").transform(e=>e.replace(/[^\d]/g,"")).refine(e=>(gE.test(e)||EE.test(e))&&e.length===16,"Card must be a valid 16-digit Visa or Mastercard number"),expirationDate:Xn.string().min(1,"Expiration date is required").regex(/^(0[1-9]|1[0-2])\/\d{2}$/,"Expiration date must be in MM/YY format")});class bE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:at}))?.debitCards??[]}async rename(n,t){return(await this.client.query({query:Er,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:In,variables:{accountId:n}}))?.deletePayableAccount??null}async create(n){try{const t=yE.parse(n);return(await this.client.query({query:hr,variables:{createDebitCardInput:{...n,cardNumber:t.cardNumber}}}))?.createDebitCard??null}catch(t){throw t instanceof Xn.ZodError?new Error(t.issues[0]?.message??"Input validation failure"):t}}}function kE(e,n){if(!e.usesIntegratorAuth)return;const t=n.clientIp;if(typeof t!="string"||t.length===0)throw new Error("clientIp is required to create a deposit with integrator HMAC credentials: pass the public address your edge observed for the authorizing client")}function Zm(e){const n=e?.idempotencyKey;if(typeof n!="string"||n.length===0)throw new Error("idempotencyKey is required to create a deposit");return{"idempotency-key":n}}class DE{client;constructor(n){this.client=n}async prepare(n){return this.client.restApi(z("/v1/deposits/direct/prepare","post",{body:n}))}async create(n,t){return kE(this.client,n),this.client.restApi(z("/v1/deposits/direct","post",{body:n,headers:Zm(t)}))}async list(n){return this.client.restApi(z("/v1/deposits/","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(z("/v1/deposits/{depositId}","get",{params:{depositId:n}}))}}class SE{client;constructor(n){this.client=n}async list(){return this.client.restApi(z("/v1/funding-sources/","get"))}async get(n){return this.client.restApi(z("/v1/funding-sources/{fundingSourceId}","get",{params:{fundingSourceId:n}}))}async getDepositLimits(n){return this.client.restApi(z("/v1/funding-sources/{fundingSourceId}/deposit-limits","get",{params:{fundingSourceId:n}}))}}var ti={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PayableAccountInstitution"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}],loc:{start:0,end:126}};ti.loc.source={body:`fragment PayableAccountInstitutionFragment on PayableAccountInstitution {
263
263
  id
264
264
  country
265
265
  currency
266
266
  name
267
267
  logo
268
268
  }
269
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Sr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Sr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Sr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Sr(r,n)})}var Ho={};(function(){ti.definitions.forEach(function(n){if(n.name){var t=new Set;Sr(n,t),Ho[n.name.value]=t}})})();function Vm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function SE(e,n){var t={kind:e.kind,definitions:[Vm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ho[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ho[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Vm(e,o);s&&t.definitions.push(s)}),t}SE(ti,"PayableAccountInstitutionFragment");var ot={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PopularBillInstitutions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"billType"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"popularUSBillInstitutions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"billType"},value:{kind:"Variable",name:{kind:"Name",value:"billType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},directives:[]}]}}]}}],loc:{start:0,end:214}};ot.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
269
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Sr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Sr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Sr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Sr(r,n)})}var Ho={};(function(){ti.definitions.forEach(function(n){if(n.name){var t=new Set;Sr(n,t),Ho[n.name.value]=t}})})();function Vm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function BE(e,n){var t={kind:e.kind,definitions:[Vm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ho[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ho[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Vm(e,o);s&&t.definitions.push(s)}),t}BE(ti,"PayableAccountInstitutionFragment");var ot={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PopularBillInstitutions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"billType"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"popularUSBillInstitutions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"billType"},value:{kind:"Variable",name:{kind:"Name",value:"billType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},directives:[]}]}}]}}],loc:{start:0,end:214}};ot.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
270
270
 
271
271
  query PopularBillInstitutions($billType: BillType) {
272
272
  popularUSBillInstitutions(billType: $billType) {
273
273
  ...PayableAccountInstitutionFragment
274
274
  }
275
275
  }
276
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var qm={};function BE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return qm[t]?!1:(qm[t]=!0,!0)})}ot.definitions=ot.definitions.concat(BE(ti.definitions));function Br(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Br(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Br(r,n)}),e.definitions&&e.definitions.forEach(function(r){Br(r,n)})}var Qo={};(function(){ot.definitions.forEach(function(n){if(n.name){var t=new Set;Br(n,t),Qo[n.name.value]=t}})})();function Mm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function AE(e,n){var t={kind:e.kind,definitions:[Mm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Mm(e,o);s&&t.definitions.push(s)}),t}AE(ot,"PopularBillInstitutions");var st={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchUSBillInstitutions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"billType"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchUSBillInstitutions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}},{kind:"Argument",name:{kind:"Name",value:"billType"},value:{kind:"Variable",name:{kind:"Name",value:"billType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},directives:[]}]}}]}}],loc:{start:0,end:261}};st.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
276
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var qm={};function AE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return qm[t]?!1:(qm[t]=!0,!0)})}ot.definitions=ot.definitions.concat(AE(ti.definitions));function Br(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Br(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Br(r,n)}),e.definitions&&e.definitions.forEach(function(r){Br(r,n)})}var Qo={};(function(){ot.definitions.forEach(function(n){if(n.name){var t=new Set;Br(n,t),Qo[n.name.value]=t}})})();function Mm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function wE(e,n){var t={kind:e.kind,definitions:[Mm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Mm(e,o);s&&t.definitions.push(s)}),t}wE(ot,"PopularBillInstitutions");var st={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchUSBillInstitutions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"billType"}},type:{kind:"NamedType",name:{kind:"Name",value:"BillType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchUSBillInstitutions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"searchTerm"},value:{kind:"Variable",name:{kind:"Name",value:"searchTerm"}}},{kind:"Argument",name:{kind:"Name",value:"billType"},value:{kind:"Variable",name:{kind:"Name",value:"billType"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountInstitutionFragment"},directives:[]}]}}]}}],loc:{start:0,end:261}};st.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
277
277
 
278
278
  query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
279
279
  searchUSBillInstitutions(searchTerm: $searchTerm, billType: $billType) {
280
280
  ...PayableAccountInstitutionFragment
281
281
  }
282
282
  }
283
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Gm={};function wE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Gm[t]?!1:(Gm[t]=!0,!0)})}st.definitions=st.definitions.concat(wE(ti.definitions));function Ar(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ar(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ar(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ar(r,n)})}var Ko={};(function(){st.definitions.forEach(function(n){if(n.name){var t=new Set;Ar(n,t),Ko[n.name.value]=t}})})();function Jm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function _E(e,n){var t={kind:e.kind,definitions:[Jm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ko[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ko[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Jm(e,o);s&&t.definitions.push(s)}),t}_E(st,"SearchUSBillInstitutions");class CE{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:ot,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:st,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}class $E{client;constructor(n){this.client=n}async bypassKyc(n){return this.client.restApi(z("/v1/sandbox/bypass-kyc","post",{body:n??{country:"US"}}))}async createDepositWithReturn(n,t){return this.client.restApi(z("/v1/sandbox/deposits/direct","post",{body:n,headers:Zm(t)}))}async prepareDepositWithProgramControl(n){return this.client.restApi(z("/v1/sandbox/deposits/direct/prepare","post",{body:n}))}async getAchDebitExposure(){return this.client.restApi(z("/v1/sandbox/ach-debit/exposure","get",{}))}async setAchDebitExposureCap(n){return this.client.restApi(z("/v1/sandbox/ach-debit/exposure/cap","post",{body:n}))}async linkBankAccount(n){return this.client.restApi(z("/v1/sandbox/bank-accounts/link","post",{body:n}))}async deleteFundingSource(n){return this.client.restApi(z("/v1/sandbox/funding-sources/{fundingSourceId}","delete",{params:{fundingSourceId:n}}))}async simulateAutoRampDeposit(n,t){return this.client.restApi(z("/v1/sandbox/auto-ramp-accounts/{id}/deposit","post",{params:{id:n},body:t}))}}class IE{client;constructor(n){this.client=n}async refund(n,t){return this.client.restApi(z("/v1/off-ramps/{offRampId}/refund","post",{params:{offRampId:n},body:t}))}}class xE{client;constructor(n){this.client=n}async create(n){return this.client.restApi(z("/v1/off-ramp-quotes/","post",{body:n}))}async get(n){return this.client.restApi(z("/v1/off-ramp-quotes/{quoteId}","get",{params:{quoteId:n}}))}async getTransaction(n,t={}){return this.client.restApi(z("/v1/off-ramp-quotes/{quoteId}/transaction","post",{params:{quoteId:n},body:t}))}async submit(n,t){return this.client.restApi(z("/v1/off-ramp-quotes/{quoteId}/submit","post",{params:{quoteId:n},body:t}))}}var wr={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OnrampPaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnRampPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositInstructions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankBeneficiaryName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankRoutingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositMessage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}],loc:{start:0,end:369}};wr.loc.source={body:`fragment OnrampPaymentFragment on OnRampPayment {
283
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Gm={};function _E(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Gm[t]?!1:(Gm[t]=!0,!0)})}st.definitions=st.definitions.concat(_E(ti.definitions));function Ar(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ar(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ar(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ar(r,n)})}var Ko={};(function(){st.definitions.forEach(function(n){if(n.name){var t=new Set;Ar(n,t),Ko[n.name.value]=t}})})();function Jm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function CE(e,n){var t={kind:e.kind,definitions:[Jm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ko[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ko[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Jm(e,o);s&&t.definitions.push(s)}),t}CE(st,"SearchUSBillInstitutions");class $E{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:ot,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:st,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}class IE{client;constructor(n){this.client=n}async bypassKyc(n){return this.client.restApi(z("/v1/sandbox/bypass-kyc","post",{body:n??{country:"US"}}))}async createDepositWithReturn(n,t){return this.client.restApi(z("/v1/sandbox/deposits/direct","post",{body:n,headers:Zm(t)}))}async prepareDepositWithProgramControl(n){return this.client.restApi(z("/v1/sandbox/deposits/direct/prepare","post",{body:n}))}async getAchDebitExposure(){return this.client.restApi(z("/v1/sandbox/ach-debit/exposure","get",{}))}async setAchDebitExposureCap(n){return this.client.restApi(z("/v1/sandbox/ach-debit/exposure/cap","post",{body:n}))}async linkBankAccount(n){return this.client.restApi(z("/v1/sandbox/bank-accounts/link","post",{body:n}))}async deleteFundingSource(n){return this.client.restApi(z("/v1/sandbox/funding-sources/{fundingSourceId}","delete",{params:{fundingSourceId:n}}))}async simulateAutoRampDeposit(n,t){return this.client.restApi(z("/v1/sandbox/auto-ramp-accounts/{id}/deposit","post",{params:{id:n},body:t}))}}class xE{client;constructor(n){this.client=n}async refund(n,t){return this.client.restApi(z("/v1/off-ramps/{offRampId}/refund","post",{params:{offRampId:n},body:t}))}}class FE{client;constructor(n){this.client=n}async create(n){return this.client.restApi(z("/v1/off-ramp-quotes/","post",{body:n}))}async get(n){return this.client.restApi(z("/v1/off-ramp-quotes/{quoteId}","get",{params:{quoteId:n}}))}async getTransaction(n,t={}){return this.client.restApi(z("/v1/off-ramp-quotes/{quoteId}/transaction","post",{params:{quoteId:n},body:t}))}async submit(n,t){return this.client.restApi(z("/v1/off-ramp-quotes/{quoteId}/submit","post",{params:{quoteId:n},body:t}))}}var wr={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OnrampPaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnRampPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositInstructions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankBeneficiaryName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankRoutingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositMessage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}],loc:{start:0,end:369}};wr.loc.source={body:`fragment OnrampPaymentFragment on OnRampPayment {
284
284
  id
285
285
  amount
286
286
  feeAmount
@@ -301,14 +301,14 @@ query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
301
301
  status
302
302
  createdAt
303
303
  }
304
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function _r(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){_r(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){_r(r,n)}),e.definitions&&e.definitions.forEach(function(r){_r(r,n)})}var Wo={};(function(){wr.definitions.forEach(function(n){if(n.name){var t=new Set;_r(n,t),Wo[n.name.value]=t}})})();function Hm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function FE(e,n){var t={kind:e.kind,definitions:[Hm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Wo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Wo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Hm(e,o);s&&t.definitions.push(s)}),t}FE(wr,"OnrampPaymentFragment");var ct={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateOnrampPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createOnrampPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateOnrampPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOnrampPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createOnrampPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createOnrampPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OnrampPaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:257}};ct.loc.source={body:`#import "../queries/onrampPaymentFragment.graphql"
304
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function _r(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){_r(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){_r(r,n)}),e.definitions&&e.definitions.forEach(function(r){_r(r,n)})}var Wo={};(function(){wr.definitions.forEach(function(n){if(n.name){var t=new Set;_r(n,t),Wo[n.name.value]=t}})})();function Hm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function NE(e,n){var t={kind:e.kind,definitions:[Hm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Wo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Wo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Hm(e,o);s&&t.definitions.push(s)}),t}NE(wr,"OnrampPaymentFragment");var ct={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateOnrampPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createOnrampPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateOnrampPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOnrampPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createOnrampPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createOnrampPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OnrampPaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:257}};ct.loc.source={body:`#import "../queries/onrampPaymentFragment.graphql"
305
305
 
306
306
  mutation CreateOnrampPayment($createOnrampPaymentInput: CreateOnrampPaymentInput!) {
307
307
  createOnrampPayment(createOnrampPaymentInput: $createOnrampPaymentInput) {
308
308
  ...OnrampPaymentFragment
309
309
  }
310
310
  }
311
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Qm={};function NE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Qm[t]?!1:(Qm[t]=!0,!0)})}ct.definitions=ct.definitions.concat(NE(wr.definitions));function Cr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Cr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Cr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Cr(r,n)})}var Yo={};(function(){ct.definitions.forEach(function(n){if(n.name){var t=new Set;Cr(n,t),Yo[n.name.value]=t}})})();function Km(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function TE(e,n){var t={kind:e.kind,definitions:[Km(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Yo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Yo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Km(e,o);s&&t.definitions.push(s)}),t}TE(ct,"CreateOnrampPayment");class OE{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:ct,variables:{createOnrampPaymentInput:n}}))?.createOnrampPayment}async list(n){return this.client.restApi(z("/v1/on-ramps/","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(z("/v1/on-ramps/{onRampId}","get",{params:{onRampId:n}}))}}var $r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FullBridgeUser"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BridgeUser"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kycStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"signedAgreementId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasAcceptedTos"},arguments:[],directives:[]}]}}],loc:{start:0,end:151}};$r.loc.source={body:`fragment FullBridgeUser on BridgeUser {
311
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Qm={};function TE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Qm[t]?!1:(Qm[t]=!0,!0)})}ct.definitions=ct.definitions.concat(TE(wr.definitions));function Cr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Cr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Cr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Cr(r,n)})}var Yo={};(function(){ct.definitions.forEach(function(n){if(n.name){var t=new Set;Cr(n,t),Yo[n.name.value]=t}})})();function Km(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function OE(e,n){var t={kind:e.kind,definitions:[Km(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Yo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Yo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Km(e,o);s&&t.definitions.push(s)}),t}OE(ct,"CreateOnrampPayment");class zE{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:ct,variables:{createOnrampPaymentInput:n}}))?.createOnrampPayment}async list(n){return this.client.restApi(z("/v1/on-ramps/","get",n?{query:n}:void 0))}async get(n){return this.client.restApi(z("/v1/on-ramps/{onRampId}","get",{params:{onRampId:n}}))}}var $r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FullBridgeUser"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BridgeUser"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kycStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"signedAgreementId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasAcceptedTos"},arguments:[],directives:[]}]}}],loc:{start:0,end:151}};$r.loc.source={body:`fragment FullBridgeUser on BridgeUser {
312
312
  id
313
313
  kycStatus
314
314
  tosLink
@@ -318,14 +318,14 @@ mutation CreateOnrampPayment($createOnrampPaymentInput: CreateOnrampPaymentInput
318
318
  error
319
319
  hasAcceptedTos
320
320
  }
321
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Ir(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ir(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ir(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ir(r,n)})}var Xo={};(function(){$r.definitions.forEach(function(n){if(n.name){var t=new Set;Ir(n,t),Xo[n.name.value]=t}})})();function Wm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function zE(e,n){var t={kind:e.kind,definitions:[Wm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Xo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Xo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Wm(e,o);s&&t.definitions.push(s)}),t}zE($r,"FullBridgeUser");var lt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AcceptTermsOfService"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"agreementId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setBridgeUserAgreementId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"agreementId"},value:{kind:"Variable",name:{kind:"Name",value:"agreementId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FullBridgeUser"},directives:[]}]}}]}}],loc:{start:0,end:196}};lt.loc.source={body:`#import "../queries/bridgeUserFragment.graphql"
321
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Ir(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ir(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ir(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ir(r,n)})}var Xo={};(function(){$r.definitions.forEach(function(n){if(n.name){var t=new Set;Ir(n,t),Xo[n.name.value]=t}})})();function Wm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function UE(e,n){var t={kind:e.kind,definitions:[Wm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Xo[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Xo[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Wm(e,o);s&&t.definitions.push(s)}),t}UE($r,"FullBridgeUser");var lt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AcceptTermsOfService"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"agreementId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setBridgeUserAgreementId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"agreementId"},value:{kind:"Variable",name:{kind:"Name",value:"agreementId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FullBridgeUser"},directives:[]}]}}]}}],loc:{start:0,end:196}};lt.loc.source={body:`#import "../queries/bridgeUserFragment.graphql"
322
322
 
323
323
  mutation AcceptTermsOfService($agreementId: String!) {
324
324
  setBridgeUserAgreementId(agreementId: $agreementId) {
325
325
  ...FullBridgeUser
326
326
  }
327
327
  }
328
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Ym={};function UE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Ym[t]?!1:(Ym[t]=!0,!0)})}lt.definitions=lt.definitions.concat(UE($r.definitions));function xr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){xr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){xr(r,n)}),e.definitions&&e.definitions.forEach(function(r){xr(r,n)})}var es={};(function(){lt.definitions.forEach(function(n){if(n.name){var t=new Set;xr(n,t),es[n.name.value]=t}})})();function Xm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function PE(e,n){var t={kind:e.kind,definitions:[Xm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=es[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=es[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Xm(e,o);s&&t.definitions.push(s)}),t}PE(lt,"AcceptTermsOfService");class RE{client;constructor(n){this.client=n}async acceptTermsOfService(n){return(await this.client.query({query:lt,variables:{agreementId:n}})).setBridgeUserAgreementId}}var ii={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BridgeVirtualAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deposited"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"microdeposits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositInstructions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankRoutingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:306}};ii.loc.source={body:`fragment VirtualAccountFragment on BridgeVirtualAccount {
328
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Ym={};function PE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Ym[t]?!1:(Ym[t]=!0,!0)})}lt.definitions=lt.definitions.concat(PE($r.definitions));function xr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){xr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){xr(r,n)}),e.definitions&&e.definitions.forEach(function(r){xr(r,n)})}var es={};(function(){lt.definitions.forEach(function(n){if(n.name){var t=new Set;xr(n,t),es[n.name.value]=t}})})();function Xm(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function RE(e,n){var t={kind:e.kind,definitions:[Xm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=es[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=es[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Xm(e,o);s&&t.definitions.push(s)}),t}RE(lt,"AcceptTermsOfService");class jE{client;constructor(n){this.client=n}async acceptTermsOfService(n){return(await this.client.query({query:lt,variables:{agreementId:n}})).setBridgeUserAgreementId}}var ii={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BridgeVirtualAccount"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deposited"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"microdeposits"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depositInstructions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bankAccountNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bankRoutingNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:306}};ii.loc.source={body:`fragment VirtualAccountFragment on BridgeVirtualAccount {
329
329
  id
330
330
  network
331
331
  address
@@ -342,7 +342,7 @@ mutation AcceptTermsOfService($agreementId: String!) {
342
342
  paymentMethod
343
343
  }
344
344
  }
345
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Fr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Fr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Fr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Fr(r,n)})}var ns={};(function(){ii.definitions.forEach(function(n){if(n.name){var t=new Set;Fr(n,t),ns[n.name.value]=t}})})();function e4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function jE(e,n){var t={kind:e.kind,definitions:[e4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ns[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ns[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=e4(e,o);s&&t.definitions.push(s)}),t}jE(ii,"VirtualAccountFragment");var dt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateVirtualAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"network"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"token"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createVirtualAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createBridgeVirtualAccountInput"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}},{kind:"ObjectField",name:{kind:"Name",value:"network"},value:{kind:"Variable",name:{kind:"Name",value:"network"}}},{kind:"ObjectField",name:{kind:"Name",value:"token"},value:{kind:"Variable",name:{kind:"Name",value:"token"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:313}};dt.loc.source={body:`#import "../queries/virtualAccountFragment.graphql"
345
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Fr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Fr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Fr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Fr(r,n)})}var ns={};(function(){ii.definitions.forEach(function(n){if(n.name){var t=new Set;Fr(n,t),ns[n.name.value]=t}})})();function e4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function LE(e,n){var t={kind:e.kind,definitions:[e4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ns[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ns[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=e4(e,o);s&&t.definitions.push(s)}),t}LE(ii,"VirtualAccountFragment");var dt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateVirtualAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"network"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"token"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createVirtualAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createBridgeVirtualAccountInput"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}},{kind:"ObjectField",name:{kind:"Name",value:"network"},value:{kind:"Variable",name:{kind:"Name",value:"network"}}},{kind:"ObjectField",name:{kind:"Name",value:"token"},value:{kind:"Variable",name:{kind:"Name",value:"token"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:313}};dt.loc.source={body:`#import "../queries/virtualAccountFragment.graphql"
346
346
 
347
347
  mutation CreateVirtualAccount($network: String!, $address: String!, $token: String!) {
348
348
  createVirtualAccount(
@@ -351,14 +351,14 @@ mutation CreateVirtualAccount($network: String!, $address: String!, $token: Stri
351
351
  ...VirtualAccountFragment
352
352
  }
353
353
  }
354
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var n4={};function LE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return n4[t]?!1:(n4[t]=!0,!0)})}dt.definitions=dt.definitions.concat(LE(ii.definitions));function Nr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Nr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Nr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Nr(r,n)})}var ts={};(function(){dt.definitions.forEach(function(n){if(n.name){var t=new Set;Nr(n,t),ts[n.name.value]=t}})})();function t4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ZE(e,n){var t={kind:e.kind,definitions:[t4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ts[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ts[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=t4(e,o);s&&t.definitions.push(s)}),t}ZE(dt,"CreateVirtualAccount");var ft={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VirtualAccounts"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"virtualAccounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:132}};ft.loc.source={body:`#import "./virtualAccountFragment.graphql"
354
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var n4={};function ZE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return n4[t]?!1:(n4[t]=!0,!0)})}dt.definitions=dt.definitions.concat(ZE(ii.definitions));function Nr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Nr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Nr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Nr(r,n)})}var ts={};(function(){dt.definitions.forEach(function(n){if(n.name){var t=new Set;Nr(n,t),ts[n.name.value]=t}})})();function t4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function VE(e,n){var t={kind:e.kind,definitions:[t4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ts[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ts[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=t4(e,o);s&&t.definitions.push(s)}),t}VE(dt,"CreateVirtualAccount");var ft={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VirtualAccounts"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"virtualAccounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:132}};ft.loc.source={body:`#import "./virtualAccountFragment.graphql"
355
355
 
356
356
  query VirtualAccounts {
357
357
  virtualAccounts {
358
358
  ...VirtualAccountFragment
359
359
  }
360
360
  }
361
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var i4={};function VE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return i4[t]?!1:(i4[t]=!0,!0)})}ft.definitions=ft.definitions.concat(VE(ii.definitions));function Tr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Tr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Tr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Tr(r,n)})}var is={};(function(){ft.definitions.forEach(function(n){if(n.name){var t=new Set;Tr(n,t),is[n.name.value]=t}})})();function r4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function qE(e,n){var t={kind:e.kind,definitions:[r4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=is[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=is[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=r4(e,o);s&&t.definitions.push(s)}),t}qE(ft,"VirtualAccounts");var Je=(e=>(e.Ethereum="ethereum",e.Polygon="polygon",e.Optimism="optimism",e.Arbitrum="arbitrum",e.Binance="binance-smart-chain",e.Avalanche="avalanche",e.Base="base",e.Bitcoin="bitcoin",e.Dash="dash",e.Tron="tron",e.Solana="solana",e.Sui="sui",e))(Je||{});const u4={[Je.Ethereum]:["USDC","USDT","DAI","USDP","PYUSD"],[Je.Polygon]:["USDC"],[Je.Base]:["USDC"],[Je.Arbitrum]:["USDC"],[Je.Avalanche]:["USDC"],[Je.Optimism]:["USDC"],[Je.Solana]:["USDC","PYUSD"],[Je.Tron]:["USDT"]};function ME(e){const{network:n,token:t}=e,r=u4[n];if(!r||!r.includes(t))throw new Error(`Token "${t}" is not supported on network "${n}". Supported tokens for ${n}: ${r?.join(", ")||"none"}`)}class GE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:ft})).virtualAccounts}async create(n){return ME(n),(await this.client.query({query:dt,variables:{network:n.network,address:n.address,token:n.token}})).createVirtualAccount}}class JE{client;constructor(n){this.client=n}async list(){return this.client.restApi(z("/v1/auto-ramp-accounts/","get"))}async get(n){return this.client.restApi(z("/v1/auto-ramp-accounts/{id}","get",{params:{id:n}}))}async create(n){return this.client.restApi(z("/v1/auto-ramp-accounts/","post",{body:n}))}async estimate(n,t){return this.client.restApi(z("/v1/auto-ramp-accounts/{id}/estimate","get",{params:{id:n},query:{amount:t}}))}}var mt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Payment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeSubsidyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"failureReason"},name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transaction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hash"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"from"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"asset"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:369}};mt.loc.source={body:`fragment PaymentFragment on Payment {
361
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var i4={};function qE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return i4[t]?!1:(i4[t]=!0,!0)})}ft.definitions=ft.definitions.concat(qE(ii.definitions));function Tr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Tr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Tr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Tr(r,n)})}var is={};(function(){ft.definitions.forEach(function(n){if(n.name){var t=new Set;Tr(n,t),is[n.name.value]=t}})})();function r4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ME(e,n){var t={kind:e.kind,definitions:[r4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=is[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=is[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=r4(e,o);s&&t.definitions.push(s)}),t}ME(ft,"VirtualAccounts");var Je=(e=>(e.Ethereum="ethereum",e.Polygon="polygon",e.Optimism="optimism",e.Arbitrum="arbitrum",e.Binance="binance-smart-chain",e.Avalanche="avalanche",e.Base="base",e.Bitcoin="bitcoin",e.Dash="dash",e.Tron="tron",e.Solana="solana",e.Sui="sui",e))(Je||{});const u4={[Je.Ethereum]:["USDC","USDT","DAI","USDP","PYUSD"],[Je.Polygon]:["USDC"],[Je.Base]:["USDC"],[Je.Arbitrum]:["USDC"],[Je.Avalanche]:["USDC"],[Je.Optimism]:["USDC"],[Je.Solana]:["USDC","PYUSD"],[Je.Tron]:["USDT"]};function GE(e){const{network:n,token:t}=e,r=u4[n];if(!r||!r.includes(t))throw new Error(`Token "${t}" is not supported on network "${n}". Supported tokens for ${n}: ${r?.join(", ")||"none"}`)}class JE{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:ft})).virtualAccounts}async create(n){return GE(n),(await this.client.query({query:dt,variables:{network:n.network,address:n.address,token:n.token}})).createVirtualAccount}}class HE{client;constructor(n){this.client=n}async list(){return this.client.restApi(z("/v1/auto-ramp-accounts/","get"))}async get(n){return this.client.restApi(z("/v1/auto-ramp-accounts/{id}","get",{params:{id:n}}))}async create(n){return this.client.restApi(z("/v1/auto-ramp-accounts/","post",{body:n}))}async estimate(n,t){return this.client.restApi(z("/v1/auto-ramp-accounts/{id}/estimate","get",{params:{id:n},query:{amount:t}}))}}var mt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Payment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeSubsidyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paymentRequestId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"failureReason"},name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transaction"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hash"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"from"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"asset"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:369}};mt.loc.source={body:`fragment PaymentFragment on Payment {
362
362
  id
363
363
  userId
364
364
  status
@@ -381,28 +381,28 @@ query VirtualAccounts {
381
381
  network
382
382
  }
383
383
  }
384
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Or(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Or(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Or(r,n)}),e.definitions&&e.definitions.forEach(function(r){Or(r,n)})}var rs={};(function(){mt.definitions.forEach(function(n){if(n.name){var t=new Set;Or(n,t),rs[n.name.value]=t}})})();function a4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function HE(e,n){var t={kind:e.kind,definitions:[a4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=rs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=rs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=a4(e,o);s&&t.definitions.push(s)}),t}HE(mt,"PaymentFragment");var vt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PaymentRequestPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentForPaymentRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};vt.loc.source={body:`#import "./paymentFragment.graphql"
384
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Or(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Or(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Or(r,n)}),e.definitions&&e.definitions.forEach(function(r){Or(r,n)})}var rs={};(function(){mt.definitions.forEach(function(n){if(n.name){var t=new Set;Or(n,t),rs[n.name.value]=t}})})();function a4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function QE(e,n){var t={kind:e.kind,definitions:[a4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=rs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=rs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=a4(e,o);s&&t.definitions.push(s)}),t}QE(mt,"PaymentFragment");var vt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PaymentRequestPayment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentForPaymentRequest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentRequestId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentRequestId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:198}};vt.loc.source={body:`#import "./paymentFragment.graphql"
385
385
 
386
386
  query PaymentRequestPayment($paymentRequestId: String!) {
387
387
  paymentForPaymentRequest(paymentRequestId: $paymentRequestId) {
388
388
  ...PaymentFragment
389
389
  }
390
390
  }
391
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var o4={};function QE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return o4[t]?!1:(o4[t]=!0,!0)})}vt.definitions=vt.definitions.concat(QE(mt.definitions));function zr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){zr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){zr(r,n)}),e.definitions&&e.definitions.forEach(function(r){zr(r,n)})}var us={};(function(){vt.definitions.forEach(function(n){if(n.name){var t=new Set;zr(n,t),us[n.name.value]=t}})})();function s4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function KE(e,n){var t={kind:e.kind,definitions:[s4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=us[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=us[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=s4(e,o);s&&t.definitions.push(s)}),t}KE(vt,"PaymentRequestPayment");var pt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountPayments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentsForAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:165}};pt.loc.source={body:`#import "./paymentFragment.graphql"
391
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var o4={};function KE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return o4[t]?!1:(o4[t]=!0,!0)})}vt.definitions=vt.definitions.concat(KE(mt.definitions));function zr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){zr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){zr(r,n)}),e.definitions&&e.definitions.forEach(function(r){zr(r,n)})}var us={};(function(){vt.definitions.forEach(function(n){if(n.name){var t=new Set;zr(n,t),us[n.name.value]=t}})})();function s4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function WE(e,n){var t={kind:e.kind,definitions:[s4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=us[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=us[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=s4(e,o);s&&t.definitions.push(s)}),t}WE(vt,"PaymentRequestPayment");var pt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountPayments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"accountId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentsForAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"accountId"},value:{kind:"Variable",name:{kind:"Name",value:"accountId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:165}};pt.loc.source={body:`#import "./paymentFragment.graphql"
392
392
 
393
393
  query AccountPayments($accountId: String!) {
394
394
  paymentsForAccount(accountId: $accountId) {
395
395
  ...PaymentFragment
396
396
  }
397
397
  }
398
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var c4={};function WE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return c4[t]?!1:(c4[t]=!0,!0)})}pt.definitions=pt.definitions.concat(WE(mt.definitions));function Ur(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ur(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ur(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ur(r,n)})}var as={};(function(){pt.definitions.forEach(function(n){if(n.name){var t=new Set;Ur(n,t),as[n.name.value]=t}})})();function l4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function YE(e,n){var t={kind:e.kind,definitions:[l4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=as[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=as[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=l4(e,o);s&&t.definitions.push(s)}),t}YE(pt,"AccountPayments");var ht={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Payment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"payment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:146}};ht.loc.source={body:`#import "./paymentFragment.graphql"
398
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var c4={};function YE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return c4[t]?!1:(c4[t]=!0,!0)})}pt.definitions=pt.definitions.concat(YE(mt.definitions));function Ur(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Ur(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Ur(r,n)}),e.definitions&&e.definitions.forEach(function(r){Ur(r,n)})}var as={};(function(){pt.definitions.forEach(function(n){if(n.name){var t=new Set;Ur(n,t),as[n.name.value]=t}})})();function l4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function XE(e,n){var t={kind:e.kind,definitions:[l4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=as[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=as[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=l4(e,o);s&&t.definitions.push(s)}),t}XE(pt,"AccountPayments");var ht={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Payment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"paymentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"payment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paymentId"},value:{kind:"Variable",name:{kind:"Name",value:"paymentId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:146}};ht.loc.source={body:`#import "./paymentFragment.graphql"
399
399
 
400
400
  query Payment($paymentId: String!) {
401
401
  payment(paymentId: $paymentId) {
402
402
  ...PaymentFragment
403
403
  }
404
404
  }
405
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var d4={};function XE(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return d4[t]?!1:(d4[t]=!0,!0)})}ht.definitions=ht.definitions.concat(XE(mt.definitions));function Pr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Pr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Pr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Pr(r,n)})}var os={};(function(){ht.definitions.forEach(function(n){if(n.name){var t=new Set;Pr(n,t),os[n.name.value]=t}})})();function f4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ey(e,n){var t={kind:e.kind,definitions:[f4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=os[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=os[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=f4(e,o);s&&t.definitions.push(s)}),t}ey(ht,"Payment");class ny{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:pt,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:ht,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:vt,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}async getPaymentLimits(n){try{const t=await this.client.restApi(z("/v1/bank-accounts/{accountId}/payment-limits","get",{params:{accountId:n}}));return{perTransaction:Number(t.transactionLimit),dailyLimit:Number(t.dailyLimit),dailyRemainingVolume:Number(t.dailyRemaining)}}catch{return null}}}var Rr={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentRequestFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DirectPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeSubsidyAmount"},arguments:[],directives:[]}]}}],loc:{start:0,end:268}};Rr.loc.source={body:`fragment PaymentRequestFragment on DirectPayment {
405
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var d4={};function ey(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return d4[t]?!1:(d4[t]=!0,!0)})}ht.definitions=ht.definitions.concat(ey(mt.definitions));function Pr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Pr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Pr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Pr(r,n)})}var os={};(function(){ht.definitions.forEach(function(n){if(n.name){var t=new Set;Pr(n,t),os[n.name.value]=t}})})();function f4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ny(e,n){var t={kind:e.kind,definitions:[f4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=os[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=os[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=f4(e,o);s&&t.definitions.push(s)}),t}ny(ht,"Payment");class ty{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:pt,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:ht,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:vt,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}async getPaymentLimits(n){try{const t=await this.client.restApi(z("/v1/bank-accounts/{accountId}/payment-limits","get",{params:{accountId:n}}));return{perTransaction:Number(t.transactionLimit),dailyLimit:Number(t.dailyLimit),dailyRemainingVolume:Number(t.dailyRemaining)}}catch{return null}}}var Rr={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PaymentRequestFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DirectPayment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"accountId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"amountDue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deliveryMethod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetCurrencyRate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feeSubsidyAmount"},arguments:[],directives:[]}]}}],loc:{start:0,end:268}};Rr.loc.source={body:`fragment PaymentRequestFragment on DirectPayment {
406
406
  id
407
407
  userId
408
408
  accountId
@@ -418,14 +418,14 @@ query Payment($paymentId: String!) {
418
418
  targetCurrencyRate
419
419
  feeSubsidyAmount
420
420
  }
421
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function jr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){jr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){jr(r,n)}),e.definitions&&e.definitions.forEach(function(r){jr(r,n)})}var ss={};(function(){Rr.definitions.forEach(function(n){if(n.name){var t=new Set;jr(n,t),ss[n.name.value]=t}})})();function m4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ty(e,n){var t={kind:e.kind,definitions:[m4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ss[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ss[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=m4(e,o);s&&t.definitions.push(s)}),t}ty(Rr,"PaymentRequestFragment");var gt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePaymentRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateDirectPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDirectPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDirectPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentRequestFragment"},directives:[]}]}}]}}],loc:{start:0,end:260}};gt.loc.source={body:`#import "../queries/paymentRequestFragment.graphql"
421
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function jr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){jr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){jr(r,n)}),e.definitions&&e.definitions.forEach(function(r){jr(r,n)})}var ss={};(function(){Rr.definitions.forEach(function(n){if(n.name){var t=new Set;jr(n,t),ss[n.name.value]=t}})})();function m4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function iy(e,n){var t={kind:e.kind,definitions:[m4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ss[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ss[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=m4(e,o);s&&t.definitions.push(s)}),t}iy(Rr,"PaymentRequestFragment");var gt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePaymentRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateDirectPaymentInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDirectPayment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createDirectPaymentInput"},value:{kind:"Variable",name:{kind:"Name",value:"createDirectPaymentInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaymentRequestFragment"},directives:[]}]}}]}}],loc:{start:0,end:260}};gt.loc.source={body:`#import "../queries/paymentRequestFragment.graphql"
422
422
 
423
423
  mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInput!) {
424
424
  createDirectPayment(createDirectPaymentInput: $createDirectPaymentInput) {
425
425
  ...PaymentRequestFragment
426
426
  }
427
427
  }
428
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var v4={};function iy(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return v4[t]?!1:(v4[t]=!0,!0)})}gt.definitions=gt.definitions.concat(iy(Rr.definitions));function Lr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Lr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Lr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Lr(r,n)})}var cs={};(function(){gt.definitions.forEach(function(n){if(n.name){var t=new Set;Lr(n,t),cs[n.name.value]=t}})})();function p4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ry(e,n){var t={kind:e.kind,definitions:[p4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=cs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=cs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=p4(e,o);s&&t.definitions.push(s)}),t}ry(gt,"CreatePaymentRequest");var Zr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSolanaPayParams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reference"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"signer"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"solanaParams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"reference"},value:{kind:"Variable",name:{kind:"Name",value:"reference"}}},{kind:"Argument",name:{kind:"Name",value:"signer"},value:{kind:"Variable",name:{kind:"Name",value:"signer"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionSerialized"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transaction"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:320}};Zr.loc.source={body:`query GetSolanaPayParams(
428
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var v4={};function ry(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return v4[t]?!1:(v4[t]=!0,!0)})}gt.definitions=gt.definitions.concat(ry(Rr.definitions));function Lr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Lr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Lr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Lr(r,n)})}var cs={};(function(){gt.definitions.forEach(function(n){if(n.name){var t=new Set;Lr(n,t),cs[n.name.value]=t}})})();function p4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function uy(e,n){var t={kind:e.kind,definitions:[p4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=cs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=cs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=p4(e,o);s&&t.definitions.push(s)}),t}uy(gt,"CreatePaymentRequest");var Zr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSolanaPayParams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reference"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"signer"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"solanaParams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"reference"},value:{kind:"Variable",name:{kind:"Name",value:"reference"}}},{kind:"Argument",name:{kind:"Name",value:"signer"},value:{kind:"Variable",name:{kind:"Name",value:"signer"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"transactionSerialized"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transaction"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:320}};Zr.loc.source={body:`query GetSolanaPayParams(
429
429
  $tokenAddress: String!
430
430
  $amount: Float!
431
431
  $reference: String!
@@ -441,7 +441,7 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
441
441
  transaction
442
442
  }
443
443
  }
444
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Vr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Vr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Vr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Vr(r,n)})}var ls={};(function(){Zr.definitions.forEach(function(n){if(n.name){var t=new Set;Vr(n,t),ls[n.name.value]=t}})})();function h4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function uy(e,n){var t={kind:e.kind,definitions:[h4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ls[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ls[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=h4(e,o);s&&t.definitions.push(s)}),t}uy(Zr,"GetSolanaPayParams");var qr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSpritzPayParams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reference"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"network"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"spritzPayParams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"reference"},value:{kind:"Variable",name:{kind:"Name",value:"reference"}}},{kind:"Argument",name:{kind:"Name",value:"network"},value:{kind:"Variable",name:{kind:"Name",value:"network"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contractAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"method"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calldata"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiredTokenInput"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:373}};qr.loc.source={body:`query GetSpritzPayParams(
444
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Vr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Vr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Vr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Vr(r,n)})}var ls={};(function(){Zr.definitions.forEach(function(n){if(n.name){var t=new Set;Vr(n,t),ls[n.name.value]=t}})})();function h4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ay(e,n){var t={kind:e.kind,definitions:[h4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ls[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ls[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=h4(e,o);s&&t.definitions.push(s)}),t}ay(Zr,"GetSolanaPayParams");var qr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSpritzPayParams"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reference"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"network"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"spritzPayParams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"reference"},value:{kind:"Variable",name:{kind:"Name",value:"reference"}}},{kind:"Argument",name:{kind:"Name",value:"network"},value:{kind:"Variable",name:{kind:"Name",value:"network"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contractAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"method"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"calldata"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiredTokenInput"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:373}};qr.loc.source={body:`query GetSpritzPayParams(
445
445
  $tokenAddress: String!
446
446
  $amount: Float!
447
447
  $reference: String!
@@ -460,14 +460,14 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
460
460
  requiredTokenInput
461
461
  }
462
462
  }
463
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Mr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Mr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Mr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Mr(r,n)})}var ds={};(function(){qr.definitions.forEach(function(n){if(n.name){var t=new Set;Mr(n,t),ds[n.name.value]=t}})})();function g4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function ay(e,n){var t={kind:e.kind,definitions:[g4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ds[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ds[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=g4(e,o);s&&t.definitions.push(s)}),t}ay(qr,"GetSpritzPayParams");var Et=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Gr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ri(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function ve(e,...n){if(!Gr(e))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function oy(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ri(e.outputLen),ri(e.blockLen)}function yt(e,n=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(n&&e.finished)throw new Error("Hash#digest() has already been called")}function E4(e,n){ve(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function sy(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function _e(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function fs(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function He(e,n){return e<<32-n|e>>>n}function fn(e,n){return e<<n|e>>>32-n>>>0}var cy=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function ly(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function dy(e){for(let n=0;n<e.length;n++)e[n]=ly(e[n]);return e}var y4=cy?e=>e:dy,b4=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",fy=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function ui(e){if(ve(e),b4)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=fy[e[t]];return n}var Xe={_0:48,_9:57,A:65,F:70,a:97,f:102};function k4(e){if(e>=Xe._0&&e<=Xe._9)return e-Xe._0;if(e>=Xe.A&&e<=Xe.F)return e-(Xe.A-10);if(e>=Xe.a&&e<=Xe.f)return e-(Xe.a-10)}function ms(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(b4)return Uint8Array.fromHex(e);const n=e.length,t=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const r=new Uint8Array(t);for(let i=0,u=0;i<t;i++,u+=2){const a=k4(e.charCodeAt(u)),o=k4(e.charCodeAt(u+1));if(a===void 0||o===void 0){const s=e[u]+e[u+1];throw new Error('hex string expected, got non-hex character "'+s+'" at index '+u)}r[i]=a*16+o}return r}function Jr(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ai(e){return typeof e=="string"&&(e=Jr(e)),ve(e),e}function Se(...e){let n=0;for(let r=0;r<e.length;r++){const i=e[r];ve(i),n+=i.length}const t=new Uint8Array(n);for(let r=0,i=0;r<e.length;r++){const u=e[r];t.set(u,i),i+=u.length}return t}var vs=class{};function Qe(e){const n=r=>e().update(ai(r)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function my(e){const n=(r,i)=>e(i).update(ai(r)).digest(),t=e({});return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=r=>e(r),n}function D4(e=32){if(Et&&typeof Et.getRandomValues=="function")return Et.getRandomValues(new Uint8Array(e));if(Et&&typeof Et.randomBytes=="function")return Uint8Array.from(Et.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}var ps=BigInt(0),hs=BigInt(1);function Hr(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}function Qr(e){const n=e.toString(16);return n.length&1?"0"+n:n}function S4(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?ps:BigInt("0x"+e)}function Un(e){return S4(ui(e))}function B4(e){return ve(e),S4(ui(Uint8Array.from(e).reverse()))}function oi(e,n){return ms(e.toString(16).padStart(n*2,"0"))}function A4(e,n){return oi(e,n).reverse()}function de(e,n,t){let r;if(typeof n=="string")try{r=ms(n)}catch(u){throw new Error(e+" must be hex string or Uint8Array, cause: "+u)}else if(Gr(n))r=Uint8Array.from(n);else throw new Error(e+" must be hex string or Uint8Array");const i=r.length;if(typeof t=="number"&&i!==t)throw new Error(e+" of length "+t+" expected, got "+i);return r}var gs=e=>typeof e=="bigint"&&ps<=e;function Es(e,n,t){return gs(e)&&gs(n)&&gs(t)&&n<=e&&e<t}function w4(e,n,t,r){if(!Es(n,t,r))throw new Error("expected valid "+e+": "+t+" <= n < "+r+", got "+n)}function vy(e){let n;for(n=0;e>ps;e>>=hs,n+=1);return n}var Kr=e=>(hs<<BigInt(e))-hs;function py(e,n,t){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");const r=d=>new Uint8Array(d),i=d=>Uint8Array.of(d);let u=r(e),a=r(e),o=0;const s=()=>{u.fill(1),a.fill(0),o=0},c=(...d)=>t(a,u,...d),l=(d=r(0))=>{a=c(i(0),d),u=c(),d.length!==0&&(a=c(i(1),d),u=c())},f=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const v=[];for(;d<n;){u=c();const h=u.slice();v.push(h),d+=u.length}return Se(...v)};return(d,v)=>{s(),l(d);let h;for(;!(h=v(f()));)l();return s(),h}}function hy(e){return typeof e=="function"&&Number.isSafeInteger(e.outputLen)}function Wr(e,n,t={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(i,u,a){const o=e[i];if(a&&o===void 0)return;const s=typeof o;if(s!==u||o===null)throw new Error(`param "${i}" is invalid: expected ${u}, got ${s}`)}Object.entries(n).forEach(([i,u])=>r(i,u,!1)),Object.entries(t).forEach(([i,u])=>r(i,u,!0))}function _4(e){const n=new WeakMap;return(t,...r)=>{const i=n.get(t);if(i!==void 0)return i;const u=e(t,...r);return n.set(t,u),u}}var Yr=BigInt(2**32-1),C4=BigInt(32);function gy(e,n=!1){return n?{h:Number(e&Yr),l:Number(e>>C4&Yr)}:{h:Number(e>>C4&Yr)|0,l:Number(e&Yr)|0}}function $4(e,n=!1){const t=e.length;let r=new Uint32Array(t),i=new Uint32Array(t);for(let u=0;u<t;u++){const{h:a,l:o}=gy(e[u],n);[r[u],i[u]]=[a,o]}return[r,i]}var I4=(e,n,t)=>e>>>t,x4=(e,n,t)=>e<<32-t|n>>>t,bt=(e,n,t)=>e>>>t|n<<32-t,kt=(e,n,t)=>e<<32-t|n>>>t,Xr=(e,n,t)=>e<<64-t|n>>>t-32,eu=(e,n,t)=>e>>>t-32|n<<64-t,Ey=(e,n,t)=>e<<t|n>>>32-t,yy=(e,n,t)=>n<<t|e>>>32-t,by=(e,n,t)=>n<<t-32|e>>>64-t,ky=(e,n,t)=>e<<t-32|n>>>64-t;function en(e,n,t,r){const i=(n>>>0)+(r>>>0);return{h:e+t+(i/2**32|0)|0,l:i|0}}var Dy=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),Sy=(e,n,t,r)=>n+t+r+(e/2**32|0)|0,By=(e,n,t,r)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0),Ay=(e,n,t,r,i)=>n+t+r+i+(e/2**32|0)|0,wy=(e,n,t,r,i)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0)+(i>>>0),_y=(e,n,t,r,i,u)=>n+t+r+i+u+(e/2**32|0)|0;/*! Bundled license information:
463
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Mr(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Mr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Mr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Mr(r,n)})}var ds={};(function(){qr.definitions.forEach(function(n){if(n.name){var t=new Set;Mr(n,t),ds[n.name.value]=t}})})();function g4(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function oy(e,n){var t={kind:e.kind,definitions:[g4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ds[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=ds[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=g4(e,o);s&&t.definitions.push(s)}),t}oy(qr,"GetSpritzPayParams");var Et=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Gr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ri(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function ve(e,...n){if(!Gr(e))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(e.length))throw new Error("Uint8Array expected of length "+n+", got length="+e.length)}function sy(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ri(e.outputLen),ri(e.blockLen)}function yt(e,n=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(n&&e.finished)throw new Error("Hash#digest() has already been called")}function E4(e,n){ve(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function cy(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function _e(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function fs(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function He(e,n){return e<<32-n|e>>>n}function fn(e,n){return e<<n|e>>>32-n>>>0}var ly=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function dy(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function fy(e){for(let n=0;n<e.length;n++)e[n]=dy(e[n]);return e}var y4=ly?e=>e:fy,b4=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",my=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function ui(e){if(ve(e),b4)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=my[e[t]];return n}var Xe={_0:48,_9:57,A:65,F:70,a:97,f:102};function k4(e){if(e>=Xe._0&&e<=Xe._9)return e-Xe._0;if(e>=Xe.A&&e<=Xe.F)return e-(Xe.A-10);if(e>=Xe.a&&e<=Xe.f)return e-(Xe.a-10)}function ms(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(b4)return Uint8Array.fromHex(e);const n=e.length,t=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const r=new Uint8Array(t);for(let i=0,u=0;i<t;i++,u+=2){const a=k4(e.charCodeAt(u)),o=k4(e.charCodeAt(u+1));if(a===void 0||o===void 0){const s=e[u]+e[u+1];throw new Error('hex string expected, got non-hex character "'+s+'" at index '+u)}r[i]=a*16+o}return r}function Jr(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ai(e){return typeof e=="string"&&(e=Jr(e)),ve(e),e}function Se(...e){let n=0;for(let r=0;r<e.length;r++){const i=e[r];ve(i),n+=i.length}const t=new Uint8Array(n);for(let r=0,i=0;r<e.length;r++){const u=e[r];t.set(u,i),i+=u.length}return t}var vs=class{};function Qe(e){const n=r=>e().update(ai(r)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function vy(e){const n=(r,i)=>e(i).update(ai(r)).digest(),t=e({});return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=r=>e(r),n}function D4(e=32){if(Et&&typeof Et.getRandomValues=="function")return Et.getRandomValues(new Uint8Array(e));if(Et&&typeof Et.randomBytes=="function")return Uint8Array.from(Et.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}var ps=BigInt(0),hs=BigInt(1);function Hr(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}function Qr(e){const n=e.toString(16);return n.length&1?"0"+n:n}function S4(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?ps:BigInt("0x"+e)}function Un(e){return S4(ui(e))}function B4(e){return ve(e),S4(ui(Uint8Array.from(e).reverse()))}function oi(e,n){return ms(e.toString(16).padStart(n*2,"0"))}function A4(e,n){return oi(e,n).reverse()}function de(e,n,t){let r;if(typeof n=="string")try{r=ms(n)}catch(u){throw new Error(e+" must be hex string or Uint8Array, cause: "+u)}else if(Gr(n))r=Uint8Array.from(n);else throw new Error(e+" must be hex string or Uint8Array");const i=r.length;if(typeof t=="number"&&i!==t)throw new Error(e+" of length "+t+" expected, got "+i);return r}var gs=e=>typeof e=="bigint"&&ps<=e;function Es(e,n,t){return gs(e)&&gs(n)&&gs(t)&&n<=e&&e<t}function w4(e,n,t,r){if(!Es(n,t,r))throw new Error("expected valid "+e+": "+t+" <= n < "+r+", got "+n)}function py(e){let n;for(n=0;e>ps;e>>=hs,n+=1);return n}var Kr=e=>(hs<<BigInt(e))-hs;function hy(e,n,t){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");const r=d=>new Uint8Array(d),i=d=>Uint8Array.of(d);let u=r(e),a=r(e),o=0;const s=()=>{u.fill(1),a.fill(0),o=0},c=(...d)=>t(a,u,...d),l=(d=r(0))=>{a=c(i(0),d),u=c(),d.length!==0&&(a=c(i(1),d),u=c())},f=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const v=[];for(;d<n;){u=c();const h=u.slice();v.push(h),d+=u.length}return Se(...v)};return(d,v)=>{s(),l(d);let h;for(;!(h=v(f()));)l();return s(),h}}function gy(e){return typeof e=="function"&&Number.isSafeInteger(e.outputLen)}function Wr(e,n,t={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(i,u,a){const o=e[i];if(a&&o===void 0)return;const s=typeof o;if(s!==u||o===null)throw new Error(`param "${i}" is invalid: expected ${u}, got ${s}`)}Object.entries(n).forEach(([i,u])=>r(i,u,!1)),Object.entries(t).forEach(([i,u])=>r(i,u,!0))}function _4(e){const n=new WeakMap;return(t,...r)=>{const i=n.get(t);if(i!==void 0)return i;const u=e(t,...r);return n.set(t,u),u}}var Yr=BigInt(2**32-1),C4=BigInt(32);function Ey(e,n=!1){return n?{h:Number(e&Yr),l:Number(e>>C4&Yr)}:{h:Number(e>>C4&Yr)|0,l:Number(e&Yr)|0}}function $4(e,n=!1){const t=e.length;let r=new Uint32Array(t),i=new Uint32Array(t);for(let u=0;u<t;u++){const{h:a,l:o}=Ey(e[u],n);[r[u],i[u]]=[a,o]}return[r,i]}var I4=(e,n,t)=>e>>>t,x4=(e,n,t)=>e<<32-t|n>>>t,bt=(e,n,t)=>e>>>t|n<<32-t,kt=(e,n,t)=>e<<32-t|n>>>t,Xr=(e,n,t)=>e<<64-t|n>>>t-32,eu=(e,n,t)=>e>>>t-32|n<<64-t,yy=(e,n,t)=>e<<t|n>>>32-t,by=(e,n,t)=>n<<t|e>>>32-t,ky=(e,n,t)=>n<<t-32|e>>>64-t,Dy=(e,n,t)=>e<<t-32|n>>>64-t;function en(e,n,t,r){const i=(n>>>0)+(r>>>0);return{h:e+t+(i/2**32|0)|0,l:i|0}}var Sy=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),By=(e,n,t,r)=>n+t+r+(e/2**32|0)|0,Ay=(e,n,t,r)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0),wy=(e,n,t,r,i)=>n+t+r+i+(e/2**32|0)|0,_y=(e,n,t,r,i)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0)+(i>>>0),Cy=(e,n,t,r,i,u)=>n+t+r+i+u+(e/2**32|0)|0;/*! Bundled license information:
464
464
 
465
465
  @noble/hashes/esm/utils.js:
466
466
  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
467
467
 
468
468
  @noble/curves/esm/utils.js:
469
469
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
470
- */function Cy(e,n,t,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,t,r);const i=BigInt(32),u=BigInt(4294967295),a=Number(t>>i&u),o=Number(t&u),s=r?4:0,c=r?0:4;e.setUint32(n+s,a,r),e.setUint32(n+c,o,r)}function nu(e,n,t){return e&n^~e&t}function F4(e,n,t){return e&n^e&t^n&t}var si=class extends vs{constructor(e,n,t,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=t,this.isLE=r,this.buffer=new Uint8Array(e),this.view=fs(this.buffer)}update(e){yt(this),e=ai(e),ve(e);const{view:n,buffer:t,blockLen:r}=this,i=e.length;for(let u=0;u<i;){const a=Math.min(r-this.pos,i-u);if(a===r){const o=fs(e);for(;r<=i-u;u+=r)this.process(o,u);continue}t.set(e.subarray(u,u+a),this.pos),this.pos+=a,u+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){yt(this),E4(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:r,isLE:i}=this;let{pos:u}=this;n[u++]=128,_e(this.buffer.subarray(u)),this.padOffset>r-u&&(this.process(t,0),u=0);for(let l=u;l<r;l++)n[l]=0;Cy(t,r-8,BigInt(this.length*8),i),this.process(t,0);const a=fs(e),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const s=o/4,c=this.get();if(s>c.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<s;l++)a.setUint32(4*l,c[l],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const t=e.slice(0,n);return this.destroy(),t}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:t,length:r,finished:i,destroyed:u,pos:a}=this;return e.destroyed=u,e.finished=i,e.length=r,e.pos=a,r%n&&e.buffer.set(t),e}clone(){return this._cloneInto()}},mn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),vn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),pe=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),he=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),$y=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),pn=new Uint32Array(64),N4=class extends si{constructor(e=32){super(64,e,8,!1),this.A=mn[0]|0,this.B=mn[1]|0,this.C=mn[2]|0,this.D=mn[3]|0,this.E=mn[4]|0,this.F=mn[5]|0,this.G=mn[6]|0,this.H=mn[7]|0}get(){const{A:e,B:n,C:t,D:r,E:i,F:u,G:a,H:o}=this;return[e,n,t,r,i,u,a,o]}set(e,n,t,r,i,u,a,o){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=i|0,this.F=u|0,this.G=a|0,this.H=o|0}process(e,n){for(let l=0;l<16;l++,n+=4)pn[l]=e.getUint32(n,!1);for(let l=16;l<64;l++){const f=pn[l-15],m=pn[l-2],d=He(f,7)^He(f,18)^f>>>3,v=He(m,17)^He(m,19)^m>>>10;pn[l]=v+pn[l-7]+d+pn[l-16]|0}let{A:t,B:r,C:i,D:u,E:a,F:o,G:s,H:c}=this;for(let l=0;l<64;l++){const f=He(a,6)^He(a,11)^He(a,25),m=c+f+nu(a,o,s)+$y[l]+pn[l]|0,v=(He(t,2)^He(t,13)^He(t,22))+F4(t,r,i)|0;c=s,s=o,o=a,a=u+m|0,u=i,i=r,r=t,t=m+v|0}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,a=a+this.E|0,o=o+this.F|0,s=s+this.G|0,c=c+this.H|0,this.set(t,r,i,u,a,o,s,c)}roundClean(){_e(pn)}destroy(){this.set(0,0,0,0,0,0,0,0),_e(this.buffer)}},Iy=class extends N4{constructor(){super(28),this.A=vn[0]|0,this.B=vn[1]|0,this.C=vn[2]|0,this.D=vn[3]|0,this.E=vn[4]|0,this.F=vn[5]|0,this.G=vn[6]|0,this.H=vn[7]|0}},T4=$4(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),xy=T4[0],Fy=T4[1],hn=new Uint32Array(80),gn=new Uint32Array(80),tu=class extends si{constructor(e=64){super(128,e,16,!1),this.Ah=he[0]|0,this.Al=he[1]|0,this.Bh=he[2]|0,this.Bl=he[3]|0,this.Ch=he[4]|0,this.Cl=he[5]|0,this.Dh=he[6]|0,this.Dl=he[7]|0,this.Eh=he[8]|0,this.El=he[9]|0,this.Fh=he[10]|0,this.Fl=he[11]|0,this.Gh=he[12]|0,this.Gl=he[13]|0,this.Hh=he[14]|0,this.Hl=he[15]|0}get(){const{Ah:e,Al:n,Bh:t,Bl:r,Ch:i,Cl:u,Dh:a,Dl:o,Eh:s,El:c,Fh:l,Fl:f,Gh:m,Gl:d,Hh:v,Hl:h}=this;return[e,n,t,r,i,u,a,o,s,c,l,f,m,d,v,h]}set(e,n,t,r,i,u,a,o,s,c,l,f,m,d,v,h){this.Ah=e|0,this.Al=n|0,this.Bh=t|0,this.Bl=r|0,this.Ch=i|0,this.Cl=u|0,this.Dh=a|0,this.Dl=o|0,this.Eh=s|0,this.El=c|0,this.Fh=l|0,this.Fl=f|0,this.Gh=m|0,this.Gl=d|0,this.Hh=v|0,this.Hl=h|0}process(e,n){for(let g=0;g<16;g++,n+=4)hn[g]=e.getUint32(n),gn[g]=e.getUint32(n+=4);for(let g=16;g<80;g++){const k=hn[g-15]|0,_=gn[g-15]|0,B=bt(k,_,1)^bt(k,_,8)^I4(k,_,7),J=kt(k,_,1)^kt(k,_,8)^x4(k,_,7),q=hn[g-2]|0,F=gn[g-2]|0,y=bt(q,F,19)^Xr(q,F,61)^I4(q,F,6),$=kt(q,F,19)^eu(q,F,61)^x4(q,F,6),D=By(J,$,gn[g-7],gn[g-16]),A=Ay(D,B,y,hn[g-7],hn[g-16]);hn[g]=A|0,gn[g]=D|0}let{Ah:t,Al:r,Bh:i,Bl:u,Ch:a,Cl:o,Dh:s,Dl:c,Eh:l,El:f,Fh:m,Fl:d,Gh:v,Gl:h,Hh:b,Hl:E}=this;for(let g=0;g<80;g++){const k=bt(l,f,14)^bt(l,f,18)^Xr(l,f,41),_=kt(l,f,14)^kt(l,f,18)^eu(l,f,41),B=l&m^~l&v,J=f&d^~f&h,q=wy(E,_,J,Fy[g],gn[g]),F=_y(q,b,k,B,xy[g],hn[g]),y=q|0,$=bt(t,r,28)^Xr(t,r,34)^Xr(t,r,39),D=kt(t,r,28)^eu(t,r,34)^eu(t,r,39),A=t&i^t&a^i&a,x=r&u^r&o^u&o;b=v|0,E=h|0,v=m|0,h=d|0,m=l|0,d=f|0,{h:l,l:f}=en(s|0,c|0,F|0,y|0),s=a|0,c=o|0,a=i|0,o=u|0,i=t|0,u=r|0;const T=Dy(y,D,x);t=Sy(T,F,$,A),r=T|0}({h:t,l:r}=en(this.Ah|0,this.Al|0,t|0,r|0)),{h:i,l:u}=en(this.Bh|0,this.Bl|0,i|0,u|0),{h:a,l:o}=en(this.Ch|0,this.Cl|0,a|0,o|0),{h:s,l:c}=en(this.Dh|0,this.Dl|0,s|0,c|0),{h:l,l:f}=en(this.Eh|0,this.El|0,l|0,f|0),{h:m,l:d}=en(this.Fh|0,this.Fl|0,m|0,d|0),{h:v,l:h}=en(this.Gh|0,this.Gl|0,v|0,h|0),{h:b,l:E}=en(this.Hh|0,this.Hl|0,b|0,E|0),this.set(t,r,i,u,a,o,s,c,l,f,m,d,v,h,b,E)}roundClean(){_e(hn,gn)}destroy(){_e(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Ny=class extends tu{constructor(){super(48),this.Ah=pe[0]|0,this.Al=pe[1]|0,this.Bh=pe[2]|0,this.Bl=pe[3]|0,this.Ch=pe[4]|0,this.Cl=pe[5]|0,this.Dh=pe[6]|0,this.Dl=pe[7]|0,this.Eh=pe[8]|0,this.El=pe[9]|0,this.Fh=pe[10]|0,this.Fl=pe[11]|0,this.Gh=pe[12]|0,this.Gl=pe[13]|0,this.Hh=pe[14]|0,this.Hl=pe[15]|0}},ge=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),Ee=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Ty=class extends tu{constructor(){super(28),this.Ah=ge[0]|0,this.Al=ge[1]|0,this.Bh=ge[2]|0,this.Bl=ge[3]|0,this.Ch=ge[4]|0,this.Cl=ge[5]|0,this.Dh=ge[6]|0,this.Dl=ge[7]|0,this.Eh=ge[8]|0,this.El=ge[9]|0,this.Fh=ge[10]|0,this.Fl=ge[11]|0,this.Gh=ge[12]|0,this.Gl=ge[13]|0,this.Hh=ge[14]|0,this.Hl=ge[15]|0}},Oy=class extends tu{constructor(){super(32),this.Ah=Ee[0]|0,this.Al=Ee[1]|0,this.Bh=Ee[2]|0,this.Bl=Ee[3]|0,this.Ch=Ee[4]|0,this.Cl=Ee[5]|0,this.Dh=Ee[6]|0,this.Dl=Ee[7]|0,this.Eh=Ee[8]|0,this.El=Ee[9]|0,this.Fh=Ee[10]|0,this.Fl=Ee[11]|0,this.Gh=Ee[12]|0,this.Gl=Ee[13]|0,this.Hh=Ee[14]|0,this.Hl=Ee[15]|0}},iu=Qe(()=>new N4);Qe(()=>new Iy),Qe(()=>new tu),Qe(()=>new Ny),Qe(()=>new Oy),Qe(()=>new Ty);var O4=class extends vs{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,oy(e);const t=ai(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(t.length>r?e.create().update(t).digest():t);for(let u=0;u<i.length;u++)i[u]^=54;this.iHash.update(i),this.oHash=e.create();for(let u=0;u<i.length;u++)i[u]^=106;this.oHash.update(i),_e(i)}update(e){return yt(this),this.iHash.update(e),this}digestInto(e){yt(this),ve(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:t,finished:r,destroyed:i,blockLen:u,outputLen:a}=this;return e=e,e.finished=r,e.destroyed=i,e.blockLen=u,e.outputLen=a,e.oHash=n._cloneInto(e.oHash),e.iHash=t._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},z4=(e,n,t)=>new O4(e,n).update(t).digest();z4.create=(e,n)=>new O4(e,n);var Ce=BigInt(0),Be=BigInt(1),Pn=BigInt(2),zy=BigInt(3),U4=BigInt(4),P4=BigInt(5),R4=BigInt(8);function ye(e,n){const t=e%n;return t>=Ce?t:n+t}function Oe(e,n,t){let r=e;for(;n-- >Ce;)r*=r,r%=t;return r}function j4(e,n){if(e===Ce)throw new Error("invert: expected non-zero number");if(n<=Ce)throw new Error("invert: expected positive modulus, got "+n);let t=ye(e,n),r=n,i=Ce,u=Be;for(;t!==Ce;){const o=r/t,s=r%t,c=i-u*o;r=t,t=s,i=u,u=c}if(r!==Be)throw new Error("invert: does not exist");return ye(i,n)}function L4(e,n){const t=(e.ORDER+Be)/U4,r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}function Uy(e,n){const t=(e.ORDER-P4)/R4,r=e.mul(n,Pn),i=e.pow(r,t),u=e.mul(n,i),a=e.mul(e.mul(u,Pn),i),o=e.mul(u,e.sub(a,e.ONE));if(!e.eql(e.sqr(o),n))throw new Error("Cannot find square root");return o}function Py(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-Be,t=0;for(;n%Pn===Ce;)n/=Pn,t++;let r=Pn;const i=uu(e);for(;V4(i,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(t===1)return L4;let u=i.pow(r,n);const a=(n+Be)/Pn;return function(s,c){if(s.is0(c))return c;if(V4(s,c)!==1)throw new Error("Cannot find square root");let l=t,f=s.mul(s.ONE,u),m=s.pow(c,n),d=s.pow(c,a);for(;!s.eql(m,s.ONE);){if(s.is0(m))return s.ZERO;let v=1,h=s.sqr(m);for(;!s.eql(h,s.ONE);)if(v++,h=s.sqr(h),v===l)throw new Error("Cannot find square root");const b=Be<<BigInt(l-v-1),E=s.pow(f,b);l=v,f=s.sqr(E),m=s.mul(m,f),d=s.mul(d,E)}return d}}function Ry(e){return e%U4===zy?L4:e%R4===P4?Uy:Py(e)}var jy=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Z4(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},t=jy.reduce((r,i)=>(r[i]="function",r),n);return Wr(e,t),e}function Ly(e,n,t){if(t<Ce)throw new Error("invalid exponent, negatives unsupported");if(t===Ce)return e.ONE;if(t===Be)return n;let r=e.ONE,i=n;for(;t>Ce;)t&Be&&(r=e.mul(r,i)),i=e.sqr(i),t>>=Be;return r}function ru(e,n,t=!1){const r=new Array(n.length).fill(t?e.ZERO:void 0),i=n.reduce((a,o,s)=>e.is0(o)?a:(r[s]=a,e.mul(a,o)),e.ONE),u=e.inv(i);return n.reduceRight((a,o,s)=>e.is0(o)?a:(r[s]=e.mul(a,r[s]),e.mul(a,o)),u),r}function V4(e,n){const t=(e.ORDER-Be)/Pn,r=e.pow(n,t),i=e.eql(r,e.ONE),u=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!i&&!u&&!a)throw new Error("invalid Legendre symbol result");return i?1:u?0:-1}function Zy(e,n){n!==void 0&&ri(n);const t=n!==void 0?n:e.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function uu(e,n,t=!1,r={}){if(e<=Ce)throw new Error("invalid field: expected ORDER > 0, got "+e);let i,u;if(typeof n=="object"&&n!=null){if(r.sqrt||t)throw new Error("cannot specify opts in two arguments");const l=n;l.BITS&&(i=l.BITS),l.sqrt&&(u=l.sqrt),typeof l.isLE=="boolean"&&(t=l.isLE)}else typeof n=="number"&&(i=n),r.sqrt&&(u=r.sqrt);const{nBitLength:a,nByteLength:o}=Zy(e,i);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:e,isLE:t,BITS:a,BYTES:o,MASK:Kr(a),ZERO:Ce,ONE:Be,create:l=>ye(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return Ce<=l&&l<e},is0:l=>l===Ce,isValidNot0:l=>!c.is0(l)&&c.isValid(l),isOdd:l=>(l&Be)===Be,neg:l=>ye(-l,e),eql:(l,f)=>l===f,sqr:l=>ye(l*l,e),add:(l,f)=>ye(l+f,e),sub:(l,f)=>ye(l-f,e),mul:(l,f)=>ye(l*f,e),pow:(l,f)=>Ly(c,l,f),div:(l,f)=>ye(l*j4(f,e),e),sqrN:l=>l*l,addN:(l,f)=>l+f,subN:(l,f)=>l-f,mulN:(l,f)=>l*f,inv:l=>j4(l,e),sqrt:u||(l=>(s||(s=Ry(e)),s(c,l))),toBytes:l=>t?A4(l,o):oi(l,o),fromBytes:l=>{if(l.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+l.length);return t?B4(l):Un(l)},invertBatch:l=>ru(c,l),cmov:(l,f,m)=>m?f:l});return Object.freeze(c)}function q4(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}function M4(e){const n=q4(e);return n+Math.ceil(n/2)}function Vy(e,n,t=!1){const r=e.length,i=q4(n),u=M4(n);if(r<16||r<u||r>1024)throw new Error("expected "+u+"-1024 bytes of input, got "+r);const a=t?B4(e):Un(e),o=ye(a,n-Be)+Be;return t?A4(o,i):oi(o,i)}var Dt=BigInt(0),Rn=BigInt(1);function ci(e,n){const t=n.negate();return e?t:n}function qy(e,n,t){const r=a=>a.pz,i=ru(e.Fp,t.map(r));return t.map((a,o)=>a.toAffine(i[o])).map(e.fromAffine)}function G4(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function ys(e,n){G4(e,n);const t=Math.ceil(n/e)+1,r=2**(e-1),i=2**e,u=Kr(e),a=BigInt(e);return{windows:t,windowSize:r,mask:u,maxNumber:i,shiftBy:a}}function J4(e,n,t){const{windowSize:r,mask:i,maxNumber:u,shiftBy:a}=t;let o=Number(e&i),s=e>>a;o>r&&(o-=u,s+=Rn);const c=n*r,l=c+Math.abs(o)-1,f=o===0,m=o<0,d=n%2!==0;return{nextN:s,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:c}}function My(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((t,r)=>{if(!(t instanceof n))throw new Error("invalid point at index "+r)})}function Gy(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((t,r)=>{if(!n.isValid(t))throw new Error("invalid scalar at index "+r)})}var bs=new WeakMap,H4=new WeakMap;function ks(e){return H4.get(e)||1}function Q4(e){if(e!==Dt)throw new Error("invalid wNAF")}function Jy(e,n){return{constTimeNegate:ci,hasPrecomputes(t){return ks(t)!==1},unsafeLadder(t,r,i=e.ZERO){let u=t;for(;r>Dt;)r&Rn&&(i=i.add(u)),u=u.double(),r>>=Rn;return i},precomputeWindow(t,r){const{windows:i,windowSize:u}=ys(r,n),a=[];let o=t,s=o;for(let c=0;c<i;c++){s=o,a.push(s);for(let l=1;l<u;l++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,r,i){let u=e.ZERO,a=e.BASE;const o=ys(t,n);for(let s=0;s<o.windows;s++){const{nextN:c,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:v}=J4(i,s,o);i=c,f?a=a.add(ci(d,r[v])):u=u.add(ci(m,r[l]))}return Q4(i),{p:u,f:a}},wNAFUnsafe(t,r,i,u=e.ZERO){const a=ys(t,n);for(let o=0;o<a.windows&&i!==Dt;o++){const{nextN:s,offset:c,isZero:l,isNeg:f}=J4(i,o,a);if(i=s,!l){const m=r[c];u=u.add(f?m.negate():m)}}return Q4(i),u},getPrecomputes(t,r,i){let u=bs.get(r);return u||(u=this.precomputeWindow(r,t),t!==1&&(typeof i=="function"&&(u=i(u)),bs.set(r,u))),u},wNAFCached(t,r,i){const u=ks(t);return this.wNAF(u,this.getPrecomputes(u,t,i),r)},wNAFCachedUnsafe(t,r,i,u){const a=ks(t);return a===1?this.unsafeLadder(t,r,u):this.wNAFUnsafe(a,this.getPrecomputes(a,t,i),r,u)},setWindowSize(t,r){G4(r,n),H4.set(t,r),bs.delete(t)}}}function Hy(e,n,t,r){let i=n,u=e.ZERO,a=e.ZERO;for(;t>Dt||r>Dt;)t&Rn&&(u=u.add(i)),r&Rn&&(a=a.add(i)),i=i.double(),t>>=Rn,r>>=Rn;return{p1:u,p2:a}}function Qy(e,n,t,r){My(t,e),Gy(r,n);const i=t.length,u=r.length;if(i!==u)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,o=vy(BigInt(i));let s=1;o>12?s=o-3:o>4?s=o-2:o>0&&(s=2);const c=Kr(s),l=new Array(Number(c)+1).fill(a),f=Math.floor((n.BITS-1)/s)*s;let m=a;for(let d=f;d>=0;d-=s){l.fill(a);for(let h=0;h<u;h++){const b=r[h],E=Number(b>>BigInt(d)&c);l[E]=l[E].add(t[h])}let v=a;for(let h=l.length-1,b=a;h>0;h--)b=b.add(l[h]),v=v.add(b);if(m=m.add(v),d!==0)for(let h=0;h<s;h++)m=m.double()}return m}function K4(e,n){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return Z4(n),n}else return uu(e)}function Ky(e,n,t={}){if(!n||typeof n!="object")throw new Error(`expected valid ${e} CURVE object`);for(const o of["p","n","h"]){const s=n[o];if(!(typeof s=="bigint"&&s>Dt))throw new Error(`CURVE.${o} must be positive bigint`)}const r=K4(n.p,t.Fp),i=K4(n.n,t.Fn),a=["Gx","Gy","a","b"];for(const o of a)if(!r.isValid(n[o]))throw new Error(`CURVE.${o} must be valid field element of CURVE.Fp`);return{Fp:r,Fn:i}}function W4(e){e.lowS!==void 0&&Hr("lowS",e.lowS),e.prehash!==void 0&&Hr("prehash",e.prehash)}var Wy=class extends Error{constructor(e=""){super(e)}},nn={Err:Wy,_tlv:{encode:(e,n)=>{const{Err:t}=nn;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length&1)throw new t("tlv.encode: unpadded data");const r=n.length/2,i=Qr(r);if(i.length/2&128)throw new t("tlv.encode: long form length too big");const u=r>127?Qr(i.length/2|128):"";return Qr(e)+u+i+n},decode(e,n){const{Err:t}=nn;let r=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[r++]!==e)throw new t("tlv.decode: wrong tlv");const i=n[r++],u=!!(i&128);let a=0;if(!u)a=i;else{const s=i&127;if(!s)throw new t("tlv.decode(long): indefinite length not supported");if(s>4)throw new t("tlv.decode(long): byte length is too big");const c=n.subarray(r,r+s);if(c.length!==s)throw new t("tlv.decode: length bytes not complete");if(c[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const l of c)a=a<<8|l;if(r+=s,a<128)throw new t("tlv.decode(long): not minimal encoding")}const o=n.subarray(r,r+a);if(o.length!==a)throw new t("tlv.decode: wrong value length");return{v:o,l:n.subarray(r+a)}}},_int:{encode(e){const{Err:n}=nn;if(e<jn)throw new n("integer: negative integers are not allowed");let t=Qr(e);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return t},decode(e){const{Err:n}=nn;if(e[0]&128)throw new n("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return Un(e)}},toSig(e){const{Err:n,_int:t,_tlv:r}=nn,i=de("signature",e),{v:u,l:a}=r.decode(48,i);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:o,l:s}=r.decode(2,u),{v:c,l}=r.decode(2,s);if(l.length)throw new n("invalid signature: left bytes after parsing");return{r:t.decode(o),s:t.decode(c)}},hexFromSig(e){const{_tlv:n,_int:t}=nn,r=n.encode(2,t.encode(e.r)),i=n.encode(2,t.encode(e.s)),u=r+i;return n.encode(48,u)}},jn=BigInt(0),Ae=BigInt(1),tn=BigInt(2),St=BigInt(3),Ds=BigInt(4);function Yy(e,n,t){function r(i){const u=e.sqr(i),a=e.mul(u,i);return e.add(e.add(a,e.mul(i,n)),t)}return r}function Y4(e,n,t){const{BYTES:r}=e;function i(u){let a;if(typeof u=="bigint")a=u;else{let o=de("private key",u);if(n){if(!n.includes(o.length*2))throw new Error("invalid private key");const s=new Uint8Array(r);s.set(o,s.length-o.length),o=s}try{a=e.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof u}`)}}if(t&&(a=e.create(a)),!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}return i}function Xy(e,n={}){const{Fp:t,Fn:r}=Ky("weierstrass",e,n),{h:i,n:u}=e;Wr(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:a}=n;if(a&&(!t.is0(e.a)||typeof a.beta!="bigint"||typeof a.splitScalar!="function"))throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function');function o(){if(!t.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function s(F,y,$){const{x:D,y:A}=y.toAffine(),x=t.toBytes(D);if(Hr("isCompressed",$),$){o();const T=!t.isOdd(A);return Se(X4(T),x)}else return Se(Uint8Array.of(4),x,t.toBytes(A))}function c(F){ve(F);const y=t.BYTES,$=y+1,D=2*y+1,A=F.length,x=F[0],T=F.subarray(1);if(A===$&&(x===2||x===3)){const N=t.fromBytes(T);if(!t.isValid(N))throw new Error("bad point: is not on curve, wrong x");const O=m(N);let R;try{R=t.sqrt(O)}catch(W){const j=W instanceof Error?": "+W.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}o();const U=t.isOdd(R);return(x&1)===1!==U&&(R=t.neg(R)),{x:N,y:R}}else if(A===D&&x===4){const N=t.fromBytes(T.subarray(y*0,y*1)),O=t.fromBytes(T.subarray(y*1,y*2));if(!d(N,O))throw new Error("bad point: is not on curve");return{x:N,y:O}}else throw new Error(`bad point: got length ${A}, expected compressed=${$} or uncompressed=${D}`)}const l=n.toBytes||s,f=n.fromBytes||c,m=Yy(t,e.a,e.b);function d(F,y){const $=t.sqr(y),D=m(F);return t.eql($,D)}if(!d(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const v=t.mul(t.pow(e.a,St),Ds),h=t.mul(t.sqr(e.b),BigInt(27));if(t.is0(t.add(v,h)))throw new Error("bad curve params: a or b");function b(F,y,$=!1){if(!t.isValid(y)||$&&t.is0(y))throw new Error(`bad point coordinate ${F}`);return y}function E(F){if(!(F instanceof B))throw new Error("ProjectivePoint expected")}const g=_4((F,y)=>{const{px:$,py:D,pz:A}=F;if(t.eql(A,t.ONE))return{x:$,y:D};const x=F.is0();y==null&&(y=x?t.ONE:t.inv(A));const T=t.mul($,y),N=t.mul(D,y),O=t.mul(A,y);if(x)return{x:t.ZERO,y:t.ZERO};if(!t.eql(O,t.ONE))throw new Error("invZ was invalid");return{x:T,y:N}}),k=_4(F=>{if(F.is0()){if(n.allowInfinityPoint&&!t.is0(F.py))return;throw new Error("bad point: ZERO")}const{x:y,y:$}=F.toAffine();if(!t.isValid(y)||!t.isValid($))throw new Error("bad point: x or y not field elements");if(!d(y,$))throw new Error("bad point: equation left != right");if(!F.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function _(F,y,$,D,A){return $=new B(t.mul($.px,F),$.py,$.pz),y=ci(D,y),$=ci(A,$),y.add($)}class B{constructor(y,$,D){this.px=b("x",y),this.py=b("y",$,!0),this.pz=b("z",D),Object.freeze(this)}static fromAffine(y){const{x:$,y:D}=y||{};if(!y||!t.isValid($)||!t.isValid(D))throw new Error("invalid affine point");if(y instanceof B)throw new Error("projective point not allowed");return t.is0($)&&t.is0(D)?B.ZERO:new B($,D,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(y){return qy(B,"pz",y)}static fromBytes(y){return ve(y),B.fromHex(y)}static fromHex(y){const $=B.fromAffine(f(de("pointHex",y)));return $.assertValidity(),$}static fromPrivateKey(y){const $=Y4(r,n.allowedPrivateKeyLengths,n.wrapPrivateKey);return B.BASE.multiply($(y))}static msm(y,$){return Qy(B,r,y,$)}precompute(y=8,$=!0){return q.setWindowSize(this,y),$||this.multiply(St),this}_setWindowSize(y){this.precompute(y)}assertValidity(){k(this)}hasEvenY(){const{y}=this.toAffine();if(!t.isOdd)throw new Error("Field doesn't support isOdd");return!t.isOdd(y)}equals(y){E(y);const{px:$,py:D,pz:A}=this,{px:x,py:T,pz:N}=y,O=t.eql(t.mul($,N),t.mul(x,A)),R=t.eql(t.mul(D,N),t.mul(T,A));return O&&R}negate(){return new B(this.px,t.neg(this.py),this.pz)}double(){const{a:y,b:$}=e,D=t.mul($,St),{px:A,py:x,pz:T}=this;let N=t.ZERO,O=t.ZERO,R=t.ZERO,U=t.mul(A,A),ue=t.mul(x,x),W=t.mul(T,T),j=t.mul(A,x);return j=t.add(j,j),R=t.mul(A,T),R=t.add(R,R),N=t.mul(y,R),O=t.mul(D,W),O=t.add(N,O),N=t.sub(ue,O),O=t.add(ue,O),O=t.mul(N,O),N=t.mul(j,N),R=t.mul(D,R),W=t.mul(y,W),j=t.sub(U,W),j=t.mul(y,j),j=t.add(j,R),R=t.add(U,U),U=t.add(R,U),U=t.add(U,W),U=t.mul(U,j),O=t.add(O,U),W=t.mul(x,T),W=t.add(W,W),U=t.mul(W,j),N=t.sub(N,U),R=t.mul(W,ue),R=t.add(R,R),R=t.add(R,R),new B(N,O,R)}add(y){E(y);const{px:$,py:D,pz:A}=this,{px:x,py:T,pz:N}=y;let O=t.ZERO,R=t.ZERO,U=t.ZERO;const ue=e.a,W=t.mul(e.b,St);let j=t.mul($,x),oe=t.mul(D,T),se=t.mul(A,N),fe=t.add($,D),X=t.add(x,T);fe=t.mul(fe,X),X=t.add(j,oe),fe=t.sub(fe,X),X=t.add($,A);let ke=t.add(x,N);return X=t.mul(X,ke),ke=t.add(j,se),X=t.sub(X,ke),ke=t.add(D,A),O=t.add(T,N),ke=t.mul(ke,O),O=t.add(oe,se),ke=t.sub(ke,O),U=t.mul(ue,X),O=t.mul(W,se),U=t.add(O,U),O=t.sub(oe,U),U=t.add(oe,U),R=t.mul(O,U),oe=t.add(j,j),oe=t.add(oe,j),se=t.mul(ue,se),X=t.mul(W,X),oe=t.add(oe,se),se=t.sub(j,se),se=t.mul(ue,se),X=t.add(X,se),j=t.mul(oe,X),R=t.add(R,j),j=t.mul(ke,X),O=t.mul(fe,O),O=t.sub(O,j),j=t.mul(fe,oe),U=t.mul(ke,U),U=t.add(U,j),new B(O,R,U)}subtract(y){return this.add(y.negate())}is0(){return this.equals(B.ZERO)}multiply(y){const{endo:$}=n;if(!r.isValidNot0(y))throw new Error("invalid scalar: out of range");let D,A;const x=T=>q.wNAFCached(this,T,B.normalizeZ);if($){const{k1neg:T,k1:N,k2neg:O,k2:R}=$.splitScalar(y),{p:U,f:ue}=x(N),{p:W,f:j}=x(R);A=ue.add(j),D=_($.beta,U,W,T,O)}else{const{p:T,f:N}=x(y);D=T,A=N}return B.normalizeZ([D,A])[0]}multiplyUnsafe(y){const{endo:$}=n,D=this;if(!r.isValid(y))throw new Error("invalid scalar: out of range");if(y===jn||D.is0())return B.ZERO;if(y===Ae)return D;if(q.hasPrecomputes(this))return this.multiply(y);if($){const{k1neg:A,k1:x,k2neg:T,k2:N}=$.splitScalar(y),{p1:O,p2:R}=Hy(B,D,x,N);return _($.beta,O,R,A,T)}else return q.wNAFCachedUnsafe(D,y)}multiplyAndAddUnsafe(y,$,D){const A=this.multiplyUnsafe($).add(y.multiplyUnsafe(D));return A.is0()?void 0:A}toAffine(y){return g(this,y)}isTorsionFree(){const{isTorsionFree:y}=n;return i===Ae?!0:y?y(B,this):q.wNAFCachedUnsafe(this,u).is0()}clearCofactor(){const{clearCofactor:y}=n;return i===Ae?this:y?y(B,this):this.multiplyUnsafe(i)}toBytes(y=!0){return Hr("isCompressed",y),this.assertValidity(),l(B,this,y)}toRawBytes(y=!0){return this.toBytes(y)}toHex(y=!0){return ui(this.toBytes(y))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}B.BASE=new B(e.Gx,e.Gy,t.ONE),B.ZERO=new B(t.ZERO,t.ONE,t.ZERO),B.Fp=t,B.Fn=r;const J=r.BITS,q=Jy(B,n.endo?Math.ceil(J/2):J);return B}function X4(e){return Uint8Array.of(e?2:3)}function eb(e,n,t={}){Wr(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||D4,i=n.hmac||((D,...A)=>z4(n.hash,D,Se(...A))),{Fp:u,Fn:a}=e,{ORDER:o,BITS:s}=a;function c(D){const A=o>>Ae;return D>A}function l(D){return c(D)?a.neg(D):D}function f(D,A){if(!a.isValidNot0(A))throw new Error(`invalid signature ${D}: out of range 1..CURVE.n`)}class m{constructor(A,x,T){f("r",A),f("s",x),this.r=A,this.s=x,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(A){const x=a.BYTES,T=de("compactSignature",A,x*2);return new m(a.fromBytes(T.subarray(0,x)),a.fromBytes(T.subarray(x,x*2)))}static fromDER(A){const{r:x,s:T}=nn.toSig(de("DER",A));return new m(x,T)}assertValidity(){}addRecoveryBit(A){return new m(this.r,this.s,A)}recoverPublicKey(A){const x=u.ORDER,{r:T,s:N,recovery:O}=this;if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");if(o*tn<x&&O>1)throw new Error("recovery id is ambiguous for h>1 curve");const U=O===2||O===3?T+o:T;if(!u.isValid(U))throw new Error("recovery id 2 or 3 invalid");const ue=u.toBytes(U),W=e.fromHex(Se(X4((O&1)===0),ue)),j=a.inv(U),oe=k(de("msgHash",A)),se=a.create(-oe*j),fe=a.create(N*j),X=e.BASE.multiplyUnsafe(se).add(W.multiplyUnsafe(fe));if(X.is0())throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return c(this.s)}normalizeS(){return this.hasHighS()?new m(this.r,a.neg(this.s),this.recovery):this}toBytes(A){if(A==="compact")return Se(a.toBytes(this.r),a.toBytes(this.s));if(A==="der")return ms(nn.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return ui(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return ui(this.toBytes("compact"))}}const d=Y4(a,t.allowedPrivateKeyLengths,t.wrapPrivateKey),v={isValidPrivateKey(D){try{return d(D),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const D=o;return Vy(r(M4(D)),D)},precompute(D=8,A=e.BASE){return A.precompute(D,!1)}};function h(D,A=!0){return e.fromPrivateKey(D).toBytes(A)}function b(D){if(typeof D=="bigint")return!1;if(D instanceof e)return!0;const x=de("key",D).length,T=u.BYTES,N=T+1,O=2*T+1;if(!(t.allowedPrivateKeyLengths||a.BYTES===N))return x===N||x===O}function E(D,A,x=!0){if(b(D)===!0)throw new Error("first arg must be private key");if(b(A)===!1)throw new Error("second arg must be public key");return e.fromHex(A).multiply(d(D)).toBytes(x)}const g=n.bits2int||function(D){if(D.length>8192)throw new Error("input is too large");const A=Un(D),x=D.length*8-s;return x>0?A>>BigInt(x):A},k=n.bits2int_modN||function(D){return a.create(g(D))},_=Kr(s);function B(D){return w4("num < 2^"+s,D,jn,_),a.toBytes(D)}function J(D,A,x=q){if(["recovered","canonical"].some(fe=>fe in x))throw new Error("sign() legacy options not supported");const{hash:T}=n;let{lowS:N,prehash:O,extraEntropy:R}=x;N==null&&(N=!0),D=de("msgHash",D),W4(x),O&&(D=de("prehashed msgHash",T(D)));const U=k(D),ue=d(A),W=[B(ue),B(U)];if(R!=null&&R!==!1){const fe=R===!0?r(u.BYTES):R;W.push(de("extraEntropy",fe))}const j=Se(...W),oe=U;function se(fe){const X=g(fe);if(!a.isValidNot0(X))return;const ke=a.inv(X),Ft=e.BASE.multiply(X).toAffine(),Ln=a.create(Ft.x);if(Ln===jn)return;const Bn=a.create(ke*a.create(oe+Ln*ue));if(Bn===jn)return;let _u=(Ft.x===Ln?0:2)|Number(Ft.y&Ae),Zn=Bn;return N&&c(Bn)&&(Zn=l(Bn),_u^=1),new m(Ln,Zn,_u)}return{seed:j,k2sig:se}}const q={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};function y(D,A,x=q){const{seed:T,k2sig:N}=J(D,A,x);return py(n.hash.outputLen,a.BYTES,i)(T,N)}e.BASE.precompute(8);function $(D,A,x,T=F){const N=D;A=de("msgHash",A),x=de("publicKey",x),W4(T);const{lowS:O,prehash:R,format:U}=T;if("strict"in T)throw new Error("options.strict was renamed to lowS");if(U!==void 0&&!["compact","der","js"].includes(U))throw new Error('format must be "compact", "der" or "js"');const ue=typeof N=="string"||Gr(N),W=!ue&&!U&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!ue&&!W)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let j,oe;try{if(W)if(U===void 0||U==="js")j=new m(N.r,N.s);else throw new Error("invalid format");if(ue){try{U!=="compact"&&(j=m.fromDER(N))}catch(Zn){if(!(Zn instanceof nn.Err))throw Zn}!j&&U!=="der"&&(j=m.fromCompact(N))}oe=e.fromHex(x)}catch{return!1}if(!j||O&&j.hasHighS())return!1;R&&(A=n.hash(A));const{r:se,s:fe}=j,X=k(A),ke=a.inv(fe),Ft=a.create(X*ke),Ln=a.create(se*ke),Bn=e.BASE.multiplyUnsafe(Ft).add(oe.multiplyUnsafe(Ln));return Bn.is0()?!1:a.create(Bn.x)===se}return Object.freeze({getPublicKey:h,getSharedSecret:E,sign:y,verify:$,utils:v,Point:e,Signature:m})}function nb(e){const n={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},t=e.Fp,r=uu(n.n,e.nBitLength),i={Fp:t,Fn:r,allowedPrivateKeyLengths:e.allowedPrivateKeyLengths,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,wrapPrivateKey:e.wrapPrivateKey,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:n,curveOpts:i}}function tb(e){const{CURVE:n,curveOpts:t}=nb(e),r={hash:e.hash,hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:n,curveOpts:t,ecdsaOpts:r}}function ib(e,n){return Object.assign({},n,{ProjectivePoint:n.Point,CURVE:e})}function rb(e){const{CURVE:n,curveOpts:t,ecdsaOpts:r}=tb(e),i=Xy(n,t),u=eb(i,r,t);return ib(e,u)}function ub(e,n){const t=e.ORDER;let r=jn;for(let v=t-Ae;v%tn===jn;v/=tn)r+=Ae;const i=r,u=tn<<i-Ae-Ae,a=u*tn,o=(t-Ae)/a,s=(o-Ae)/tn,c=a-Ae,l=u,f=e.pow(n,o),m=e.pow(n,(o+Ae)/tn);let d=(v,h)=>{let b=f,E=e.pow(h,c),g=e.sqr(E);g=e.mul(g,h);let k=e.mul(v,g);k=e.pow(k,s),k=e.mul(k,E),E=e.mul(k,h),g=e.mul(k,v);let _=e.mul(g,E);k=e.pow(_,l);let B=e.eql(k,e.ONE);E=e.mul(g,m),k=e.mul(_,b),g=e.cmov(E,g,B),_=e.cmov(k,_,B);for(let J=i;J>Ae;J--){let q=J-tn;q=tn<<q-Ae;let F=e.pow(_,q);const y=e.eql(F,e.ONE);E=e.mul(g,b),b=e.mul(b,b),F=e.mul(_,b),g=e.cmov(E,g,y),_=e.cmov(F,_,y)}return{isValid:B,value:g}};if(e.ORDER%Ds===St){const v=(e.ORDER-St)/Ds,h=e.sqrt(e.neg(n));d=(b,E)=>{let g=e.sqr(E);const k=e.mul(b,E);g=e.mul(g,k);let _=e.pow(g,v);_=e.mul(_,k);const B=e.mul(_,h),J=e.mul(e.sqr(_),E),q=e.eql(J,b);let F=e.cmov(B,_,q);return{isValid:q,value:F}}}return d}function ab(e,n){Z4(e);const{A:t,B:r,Z:i}=n;if(!e.isValid(t)||!e.isValid(r)||!e.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const u=ub(e,i);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return a=>{let o,s,c,l,f,m,d,v;o=e.sqr(a),o=e.mul(o,i),s=e.sqr(o),s=e.add(s,o),c=e.add(s,e.ONE),c=e.mul(c,r),l=e.cmov(i,e.neg(s),!e.eql(s,e.ZERO)),l=e.mul(l,t),s=e.sqr(c),m=e.sqr(l),f=e.mul(m,t),s=e.add(s,f),s=e.mul(s,c),m=e.mul(m,l),f=e.mul(m,r),s=e.add(s,f),d=e.mul(o,c);const{isValid:h,value:b}=u(s,m);v=e.mul(o,a),v=e.mul(v,b),d=e.cmov(d,c,h),v=e.cmov(v,b,h);const E=e.isOdd(a)===e.isOdd(v);v=e.cmov(e.neg(v),v,E);const g=ru(e,[l],!0)[0];return d=e.mul(d,g),{x:d,y:v}}}function ob(e,n){const t=r=>rb({...e,hash:r});return{...t(n),create:t}}var sb=Un;function En(e,n){if(li(e),li(n),e<0||e>=1<<8*n)throw new Error("invalid I2OSP input: "+e);const t=Array.from({length:n}).fill(0);for(let r=n-1;r>=0;r--)t[r]=e&255,e>>>=8;return new Uint8Array(t)}function cb(e,n){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r]^n[r];return t}function li(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function lb(e,n,t,r){ve(e),ve(n),li(t),n.length>255&&(n=r(Se(Jr("H2C-OVERSIZE-DST-"),n)));const{outputLen:i,blockLen:u}=r,a=Math.ceil(t/i);if(t>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");const o=Se(n,En(n.length,1)),s=En(0,u),c=En(t,2),l=new Array(a),f=r(Se(s,e,c,En(0,1),o));l[0]=r(Se(f,En(1,1),o));for(let d=1;d<=a;d++){const v=[cb(f,l[d-1]),En(d+1,1),o];l[d]=r(Se(...v))}return Se(...l).slice(0,t)}function db(e,n,t,r,i){if(ve(e),ve(n),li(t),n.length>255){const u=Math.ceil(2*r/8);n=i.create({dkLen:u}).update(Jr("H2C-OVERSIZE-DST-")).update(n).digest()}if(t>65535||n.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:t}).update(e).update(En(t,2)).update(n).update(En(n.length,1)).digest()}function ev(e,n,t){Wr(t,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:r,k:i,m:u,hash:a,expand:o,DST:s}=t;if(!Gr(s)&&typeof s!="string")throw new Error("DST must be string or uint8array");if(!hy(t.hash))throw new Error("expected valid hash");ve(e),li(n);const c=typeof s=="string"?Jr(s):s,l=r.toString(2).length,f=Math.ceil((l+i)/8),m=n*u*f;let d;if(o==="xmd")d=lb(e,c,m,a);else if(o==="xof")d=db(e,c,m,i,a);else if(o==="_internal_pass")d=e;else throw new Error('expand must be "xmd" or "xof"');const v=new Array(n);for(let h=0;h<n;h++){const b=new Array(u);for(let E=0;E<u;E++){const g=f*(E+h*u),k=d.subarray(g,g+f);b[E]=ye(sb(k),r)}v[h]=b}return v}function fb(e,n){const t=n.map(r=>Array.from(r).reverse());return(r,i)=>{const[u,a,o,s]=t.map(f=>f.reduce((m,d)=>e.add(e.mul(m,r),d))),[c,l]=ru(e,[a,s],!0);return r=e.mul(u,c),i=e.mul(i,e.mul(o,l)),{x:r,y:i}}}function mb(e,n,t){if(typeof n!="function")throw new Error("mapToCurve() must be defined");function r(u){return e.fromAffine(n(u))}function i(u){const a=u.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:t,hashToCurve(u,a){const o=t.DST?t.DST:{},s=Object.assign({},t,o,a),c=ev(u,2,s),l=r(c[0]),f=r(c[1]);return i(l.add(f))},encodeToCurve(u,a){const o=t.encodeDST?t.encodeDST:{},s=Object.assign({},t,o,a),c=ev(u,1,s);return i(r(c[0]))},mapToCurve(u){if(!Array.isArray(u))throw new Error("expected array of bigints");for(const a of u)if(typeof a!="bigint")throw new Error("expected array of bigints");return i(r(u))}}}var rn={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},nv=BigInt(0),au=BigInt(1),ou=BigInt(2),tv=(e,n)=>(e+n/ou)/n;function iv(e){const n=rn.p,t=BigInt(3),r=BigInt(6),i=BigInt(11),u=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%n,l=c*c*e%n,f=Oe(l,t,n)*l%n,m=Oe(f,t,n)*l%n,d=Oe(m,ou,n)*c%n,v=Oe(d,i,n)*d%n,h=Oe(v,u,n)*v%n,b=Oe(h,o,n)*h%n,E=Oe(b,s,n)*b%n,g=Oe(E,o,n)*h%n,k=Oe(g,t,n)*l%n,_=Oe(k,a,n)*v%n,B=Oe(_,r,n)*c%n,J=Oe(B,ou,n);if(!yn.eql(yn.sqr(J),e))throw new Error("Cannot find square root");return J}var yn=uu(rn.p,void 0,void 0,{sqrt:iv}),su=ob({...rn,Fp:yn,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=rn.n,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-au*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),u=t,a=BigInt("0x100000000000000000000000000000000"),o=tv(u*e,n),s=tv(-r*e,n);let c=ye(e-o*t-s*i,n),l=ye(-o*r-s*u,n);const f=c>a,m=l>a;if(f&&(c=n-c),m&&(l=n-l),c>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:c,k2neg:m,k2:l}}}},iu),rv={};function cu(e,...n){let t=rv[e];if(t===void 0){const r=iu(Uint8Array.from(e,i=>i.charCodeAt(0)));t=Se(r,r),rv[e]=t}return iu(Se(t,...n))}var Ss=e=>e.toBytes(!0).slice(1),Bs=e=>oi(e,32),As=e=>ye(e,rn.p),di=e=>ye(e,rn.n),ws=su.Point,_s=e=>e%ou===nv;function Cs(e){let n=su.utils.normPrivateKeyToScalar(e),t=ws.fromPrivateKey(n);return{scalar:_s(t.y)?n:di(-n),bytes:Ss(t)}}function uv(e){w4("x",e,au,rn.p);const n=As(e*e),t=As(n*e+BigInt(7));let r=iv(t);_s(r)||(r=As(-r));const i=ws.fromAffine({x:e,y:r});return i.assertValidity(),i}var Bt=Un;function av(...e){return di(Bt(cu("BIP0340/challenge",...e)))}function vb(e){return Cs(e).bytes}function pb(e,n,t=D4(32)){const r=de("message",e),{bytes:i,scalar:u}=Cs(n),a=de("auxRand",t,32),o=Bs(u^Bt(cu("BIP0340/aux",a))),s=cu("BIP0340/nonce",o,i,r),c=di(Bt(s));if(c===nv)throw new Error("sign failed: k is zero");const{bytes:l,scalar:f}=Cs(c),m=av(l,i,r),d=new Uint8Array(64);if(d.set(l,0),d.set(Bs(di(f+m*u)),32),!ov(d,r,i))throw new Error("sign: Invalid signature produced");return d}function ov(e,n,t){const r=de("signature",e,64),i=de("message",n),u=de("publicKey",t,32);try{const a=uv(Bt(u)),o=Bt(r.subarray(0,32));if(!Es(o,au,rn.p))return!1;const s=Bt(r.subarray(32,64));if(!Es(s,au,rn.n))return!1;const c=av(Bs(o),Ss(a),i),l=ws.BASE.multiplyUnsafe(s).add(a.multiplyUnsafe(di(-c))),{x:f,y:m}=l.toAffine();return!(l.is0()||!_s(m)||f!==o)}catch{return!1}}({getPublicKey:vb,sign:pb,verify:ov,utils:{randomPrivateKey:su.utils.randomPrivateKey,lift_x:uv,pointToBytes:Ss,numberToBytesBE:oi,bytesToNumberBE:Un,taggedHash:cu,mod:ye}});var hb=fb(yn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(n=>BigInt(n)))),gb=ab(yn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:yn.create(BigInt("-11"))});mb(su.Point,e=>{const{x:n,y:t}=gb(yn.create(e[0]));return hb(n,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:yn.ORDER,m:1,k:128,expand:"xmd",hash:iu});/*! Bundled license information:
470
+ */function $y(e,n,t,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,t,r);const i=BigInt(32),u=BigInt(4294967295),a=Number(t>>i&u),o=Number(t&u),s=r?4:0,c=r?0:4;e.setUint32(n+s,a,r),e.setUint32(n+c,o,r)}function nu(e,n,t){return e&n^~e&t}function F4(e,n,t){return e&n^e&t^n&t}var si=class extends vs{constructor(e,n,t,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=t,this.isLE=r,this.buffer=new Uint8Array(e),this.view=fs(this.buffer)}update(e){yt(this),e=ai(e),ve(e);const{view:n,buffer:t,blockLen:r}=this,i=e.length;for(let u=0;u<i;){const a=Math.min(r-this.pos,i-u);if(a===r){const o=fs(e);for(;r<=i-u;u+=r)this.process(o,u);continue}t.set(e.subarray(u,u+a),this.pos),this.pos+=a,u+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){yt(this),E4(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:r,isLE:i}=this;let{pos:u}=this;n[u++]=128,_e(this.buffer.subarray(u)),this.padOffset>r-u&&(this.process(t,0),u=0);for(let l=u;l<r;l++)n[l]=0;$y(t,r-8,BigInt(this.length*8),i),this.process(t,0);const a=fs(e),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const s=o/4,c=this.get();if(s>c.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<s;l++)a.setUint32(4*l,c[l],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const t=e.slice(0,n);return this.destroy(),t}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:t,length:r,finished:i,destroyed:u,pos:a}=this;return e.destroyed=u,e.finished=i,e.length=r,e.pos=a,r%n&&e.buffer.set(t),e}clone(){return this._cloneInto()}},mn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),vn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),pe=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),he=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Iy=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),pn=new Uint32Array(64),N4=class extends si{constructor(e=32){super(64,e,8,!1),this.A=mn[0]|0,this.B=mn[1]|0,this.C=mn[2]|0,this.D=mn[3]|0,this.E=mn[4]|0,this.F=mn[5]|0,this.G=mn[6]|0,this.H=mn[7]|0}get(){const{A:e,B:n,C:t,D:r,E:i,F:u,G:a,H:o}=this;return[e,n,t,r,i,u,a,o]}set(e,n,t,r,i,u,a,o){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=i|0,this.F=u|0,this.G=a|0,this.H=o|0}process(e,n){for(let l=0;l<16;l++,n+=4)pn[l]=e.getUint32(n,!1);for(let l=16;l<64;l++){const f=pn[l-15],m=pn[l-2],d=He(f,7)^He(f,18)^f>>>3,v=He(m,17)^He(m,19)^m>>>10;pn[l]=v+pn[l-7]+d+pn[l-16]|0}let{A:t,B:r,C:i,D:u,E:a,F:o,G:s,H:c}=this;for(let l=0;l<64;l++){const f=He(a,6)^He(a,11)^He(a,25),m=c+f+nu(a,o,s)+Iy[l]+pn[l]|0,v=(He(t,2)^He(t,13)^He(t,22))+F4(t,r,i)|0;c=s,s=o,o=a,a=u+m|0,u=i,i=r,r=t,t=m+v|0}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,a=a+this.E|0,o=o+this.F|0,s=s+this.G|0,c=c+this.H|0,this.set(t,r,i,u,a,o,s,c)}roundClean(){_e(pn)}destroy(){this.set(0,0,0,0,0,0,0,0),_e(this.buffer)}},xy=class extends N4{constructor(){super(28),this.A=vn[0]|0,this.B=vn[1]|0,this.C=vn[2]|0,this.D=vn[3]|0,this.E=vn[4]|0,this.F=vn[5]|0,this.G=vn[6]|0,this.H=vn[7]|0}},T4=$4(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Fy=T4[0],Ny=T4[1],hn=new Uint32Array(80),gn=new Uint32Array(80),tu=class extends si{constructor(e=64){super(128,e,16,!1),this.Ah=he[0]|0,this.Al=he[1]|0,this.Bh=he[2]|0,this.Bl=he[3]|0,this.Ch=he[4]|0,this.Cl=he[5]|0,this.Dh=he[6]|0,this.Dl=he[7]|0,this.Eh=he[8]|0,this.El=he[9]|0,this.Fh=he[10]|0,this.Fl=he[11]|0,this.Gh=he[12]|0,this.Gl=he[13]|0,this.Hh=he[14]|0,this.Hl=he[15]|0}get(){const{Ah:e,Al:n,Bh:t,Bl:r,Ch:i,Cl:u,Dh:a,Dl:o,Eh:s,El:c,Fh:l,Fl:f,Gh:m,Gl:d,Hh:v,Hl:h}=this;return[e,n,t,r,i,u,a,o,s,c,l,f,m,d,v,h]}set(e,n,t,r,i,u,a,o,s,c,l,f,m,d,v,h){this.Ah=e|0,this.Al=n|0,this.Bh=t|0,this.Bl=r|0,this.Ch=i|0,this.Cl=u|0,this.Dh=a|0,this.Dl=o|0,this.Eh=s|0,this.El=c|0,this.Fh=l|0,this.Fl=f|0,this.Gh=m|0,this.Gl=d|0,this.Hh=v|0,this.Hl=h|0}process(e,n){for(let g=0;g<16;g++,n+=4)hn[g]=e.getUint32(n),gn[g]=e.getUint32(n+=4);for(let g=16;g<80;g++){const k=hn[g-15]|0,_=gn[g-15]|0,B=bt(k,_,1)^bt(k,_,8)^I4(k,_,7),J=kt(k,_,1)^kt(k,_,8)^x4(k,_,7),q=hn[g-2]|0,F=gn[g-2]|0,y=bt(q,F,19)^Xr(q,F,61)^I4(q,F,6),$=kt(q,F,19)^eu(q,F,61)^x4(q,F,6),D=Ay(J,$,gn[g-7],gn[g-16]),A=wy(D,B,y,hn[g-7],hn[g-16]);hn[g]=A|0,gn[g]=D|0}let{Ah:t,Al:r,Bh:i,Bl:u,Ch:a,Cl:o,Dh:s,Dl:c,Eh:l,El:f,Fh:m,Fl:d,Gh:v,Gl:h,Hh:b,Hl:E}=this;for(let g=0;g<80;g++){const k=bt(l,f,14)^bt(l,f,18)^Xr(l,f,41),_=kt(l,f,14)^kt(l,f,18)^eu(l,f,41),B=l&m^~l&v,J=f&d^~f&h,q=_y(E,_,J,Ny[g],gn[g]),F=Cy(q,b,k,B,Fy[g],hn[g]),y=q|0,$=bt(t,r,28)^Xr(t,r,34)^Xr(t,r,39),D=kt(t,r,28)^eu(t,r,34)^eu(t,r,39),A=t&i^t&a^i&a,x=r&u^r&o^u&o;b=v|0,E=h|0,v=m|0,h=d|0,m=l|0,d=f|0,{h:l,l:f}=en(s|0,c|0,F|0,y|0),s=a|0,c=o|0,a=i|0,o=u|0,i=t|0,u=r|0;const T=Sy(y,D,x);t=By(T,F,$,A),r=T|0}({h:t,l:r}=en(this.Ah|0,this.Al|0,t|0,r|0)),{h:i,l:u}=en(this.Bh|0,this.Bl|0,i|0,u|0),{h:a,l:o}=en(this.Ch|0,this.Cl|0,a|0,o|0),{h:s,l:c}=en(this.Dh|0,this.Dl|0,s|0,c|0),{h:l,l:f}=en(this.Eh|0,this.El|0,l|0,f|0),{h:m,l:d}=en(this.Fh|0,this.Fl|0,m|0,d|0),{h:v,l:h}=en(this.Gh|0,this.Gl|0,v|0,h|0),{h:b,l:E}=en(this.Hh|0,this.Hl|0,b|0,E|0),this.set(t,r,i,u,a,o,s,c,l,f,m,d,v,h,b,E)}roundClean(){_e(hn,gn)}destroy(){_e(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},Ty=class extends tu{constructor(){super(48),this.Ah=pe[0]|0,this.Al=pe[1]|0,this.Bh=pe[2]|0,this.Bl=pe[3]|0,this.Ch=pe[4]|0,this.Cl=pe[5]|0,this.Dh=pe[6]|0,this.Dl=pe[7]|0,this.Eh=pe[8]|0,this.El=pe[9]|0,this.Fh=pe[10]|0,this.Fl=pe[11]|0,this.Gh=pe[12]|0,this.Gl=pe[13]|0,this.Hh=pe[14]|0,this.Hl=pe[15]|0}},ge=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),Ee=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Oy=class extends tu{constructor(){super(28),this.Ah=ge[0]|0,this.Al=ge[1]|0,this.Bh=ge[2]|0,this.Bl=ge[3]|0,this.Ch=ge[4]|0,this.Cl=ge[5]|0,this.Dh=ge[6]|0,this.Dl=ge[7]|0,this.Eh=ge[8]|0,this.El=ge[9]|0,this.Fh=ge[10]|0,this.Fl=ge[11]|0,this.Gh=ge[12]|0,this.Gl=ge[13]|0,this.Hh=ge[14]|0,this.Hl=ge[15]|0}},zy=class extends tu{constructor(){super(32),this.Ah=Ee[0]|0,this.Al=Ee[1]|0,this.Bh=Ee[2]|0,this.Bl=Ee[3]|0,this.Ch=Ee[4]|0,this.Cl=Ee[5]|0,this.Dh=Ee[6]|0,this.Dl=Ee[7]|0,this.Eh=Ee[8]|0,this.El=Ee[9]|0,this.Fh=Ee[10]|0,this.Fl=Ee[11]|0,this.Gh=Ee[12]|0,this.Gl=Ee[13]|0,this.Hh=Ee[14]|0,this.Hl=Ee[15]|0}},iu=Qe(()=>new N4);Qe(()=>new xy),Qe(()=>new tu),Qe(()=>new Ty),Qe(()=>new zy),Qe(()=>new Oy);var O4=class extends vs{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,sy(e);const t=ai(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(t.length>r?e.create().update(t).digest():t);for(let u=0;u<i.length;u++)i[u]^=54;this.iHash.update(i),this.oHash=e.create();for(let u=0;u<i.length;u++)i[u]^=106;this.oHash.update(i),_e(i)}update(e){return yt(this),this.iHash.update(e),this}digestInto(e){yt(this),ve(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:t,finished:r,destroyed:i,blockLen:u,outputLen:a}=this;return e=e,e.finished=r,e.destroyed=i,e.blockLen=u,e.outputLen=a,e.oHash=n._cloneInto(e.oHash),e.iHash=t._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},z4=(e,n,t)=>new O4(e,n).update(t).digest();z4.create=(e,n)=>new O4(e,n);var Ce=BigInt(0),Be=BigInt(1),Pn=BigInt(2),Uy=BigInt(3),U4=BigInt(4),P4=BigInt(5),R4=BigInt(8);function ye(e,n){const t=e%n;return t>=Ce?t:n+t}function Oe(e,n,t){let r=e;for(;n-- >Ce;)r*=r,r%=t;return r}function j4(e,n){if(e===Ce)throw new Error("invert: expected non-zero number");if(n<=Ce)throw new Error("invert: expected positive modulus, got "+n);let t=ye(e,n),r=n,i=Ce,u=Be;for(;t!==Ce;){const o=r/t,s=r%t,c=i-u*o;r=t,t=s,i=u,u=c}if(r!==Be)throw new Error("invert: does not exist");return ye(i,n)}function L4(e,n){const t=(e.ORDER+Be)/U4,r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}function Py(e,n){const t=(e.ORDER-P4)/R4,r=e.mul(n,Pn),i=e.pow(r,t),u=e.mul(n,i),a=e.mul(e.mul(u,Pn),i),o=e.mul(u,e.sub(a,e.ONE));if(!e.eql(e.sqr(o),n))throw new Error("Cannot find square root");return o}function Ry(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-Be,t=0;for(;n%Pn===Ce;)n/=Pn,t++;let r=Pn;const i=uu(e);for(;V4(i,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(t===1)return L4;let u=i.pow(r,n);const a=(n+Be)/Pn;return function(s,c){if(s.is0(c))return c;if(V4(s,c)!==1)throw new Error("Cannot find square root");let l=t,f=s.mul(s.ONE,u),m=s.pow(c,n),d=s.pow(c,a);for(;!s.eql(m,s.ONE);){if(s.is0(m))return s.ZERO;let v=1,h=s.sqr(m);for(;!s.eql(h,s.ONE);)if(v++,h=s.sqr(h),v===l)throw new Error("Cannot find square root");const b=Be<<BigInt(l-v-1),E=s.pow(f,b);l=v,f=s.sqr(E),m=s.mul(m,f),d=s.mul(d,E)}return d}}function jy(e){return e%U4===Uy?L4:e%R4===P4?Py:Ry(e)}var Ly=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Z4(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},t=Ly.reduce((r,i)=>(r[i]="function",r),n);return Wr(e,t),e}function Zy(e,n,t){if(t<Ce)throw new Error("invalid exponent, negatives unsupported");if(t===Ce)return e.ONE;if(t===Be)return n;let r=e.ONE,i=n;for(;t>Ce;)t&Be&&(r=e.mul(r,i)),i=e.sqr(i),t>>=Be;return r}function ru(e,n,t=!1){const r=new Array(n.length).fill(t?e.ZERO:void 0),i=n.reduce((a,o,s)=>e.is0(o)?a:(r[s]=a,e.mul(a,o)),e.ONE),u=e.inv(i);return n.reduceRight((a,o,s)=>e.is0(o)?a:(r[s]=e.mul(a,r[s]),e.mul(a,o)),u),r}function V4(e,n){const t=(e.ORDER-Be)/Pn,r=e.pow(n,t),i=e.eql(r,e.ONE),u=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!i&&!u&&!a)throw new Error("invalid Legendre symbol result");return i?1:u?0:-1}function Vy(e,n){n!==void 0&&ri(n);const t=n!==void 0?n:e.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function uu(e,n,t=!1,r={}){if(e<=Ce)throw new Error("invalid field: expected ORDER > 0, got "+e);let i,u;if(typeof n=="object"&&n!=null){if(r.sqrt||t)throw new Error("cannot specify opts in two arguments");const l=n;l.BITS&&(i=l.BITS),l.sqrt&&(u=l.sqrt),typeof l.isLE=="boolean"&&(t=l.isLE)}else typeof n=="number"&&(i=n),r.sqrt&&(u=r.sqrt);const{nBitLength:a,nByteLength:o}=Vy(e,i);if(o>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:e,isLE:t,BITS:a,BYTES:o,MASK:Kr(a),ZERO:Ce,ONE:Be,create:l=>ye(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return Ce<=l&&l<e},is0:l=>l===Ce,isValidNot0:l=>!c.is0(l)&&c.isValid(l),isOdd:l=>(l&Be)===Be,neg:l=>ye(-l,e),eql:(l,f)=>l===f,sqr:l=>ye(l*l,e),add:(l,f)=>ye(l+f,e),sub:(l,f)=>ye(l-f,e),mul:(l,f)=>ye(l*f,e),pow:(l,f)=>Zy(c,l,f),div:(l,f)=>ye(l*j4(f,e),e),sqrN:l=>l*l,addN:(l,f)=>l+f,subN:(l,f)=>l-f,mulN:(l,f)=>l*f,inv:l=>j4(l,e),sqrt:u||(l=>(s||(s=jy(e)),s(c,l))),toBytes:l=>t?A4(l,o):oi(l,o),fromBytes:l=>{if(l.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+l.length);return t?B4(l):Un(l)},invertBatch:l=>ru(c,l),cmov:(l,f,m)=>m?f:l});return Object.freeze(c)}function q4(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const n=e.toString(2).length;return Math.ceil(n/8)}function M4(e){const n=q4(e);return n+Math.ceil(n/2)}function qy(e,n,t=!1){const r=e.length,i=q4(n),u=M4(n);if(r<16||r<u||r>1024)throw new Error("expected "+u+"-1024 bytes of input, got "+r);const a=t?B4(e):Un(e),o=ye(a,n-Be)+Be;return t?A4(o,i):oi(o,i)}var Dt=BigInt(0),Rn=BigInt(1);function ci(e,n){const t=n.negate();return e?t:n}function My(e,n,t){const r=a=>a.pz,i=ru(e.Fp,t.map(r));return t.map((a,o)=>a.toAffine(i[o])).map(e.fromAffine)}function G4(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function ys(e,n){G4(e,n);const t=Math.ceil(n/e)+1,r=2**(e-1),i=2**e,u=Kr(e),a=BigInt(e);return{windows:t,windowSize:r,mask:u,maxNumber:i,shiftBy:a}}function J4(e,n,t){const{windowSize:r,mask:i,maxNumber:u,shiftBy:a}=t;let o=Number(e&i),s=e>>a;o>r&&(o-=u,s+=Rn);const c=n*r,l=c+Math.abs(o)-1,f=o===0,m=o<0,d=n%2!==0;return{nextN:s,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:c}}function Gy(e,n){if(!Array.isArray(e))throw new Error("array expected");e.forEach((t,r)=>{if(!(t instanceof n))throw new Error("invalid point at index "+r)})}function Jy(e,n){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((t,r)=>{if(!n.isValid(t))throw new Error("invalid scalar at index "+r)})}var bs=new WeakMap,H4=new WeakMap;function ks(e){return H4.get(e)||1}function Q4(e){if(e!==Dt)throw new Error("invalid wNAF")}function Hy(e,n){return{constTimeNegate:ci,hasPrecomputes(t){return ks(t)!==1},unsafeLadder(t,r,i=e.ZERO){let u=t;for(;r>Dt;)r&Rn&&(i=i.add(u)),u=u.double(),r>>=Rn;return i},precomputeWindow(t,r){const{windows:i,windowSize:u}=ys(r,n),a=[];let o=t,s=o;for(let c=0;c<i;c++){s=o,a.push(s);for(let l=1;l<u;l++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,r,i){let u=e.ZERO,a=e.BASE;const o=ys(t,n);for(let s=0;s<o.windows;s++){const{nextN:c,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:v}=J4(i,s,o);i=c,f?a=a.add(ci(d,r[v])):u=u.add(ci(m,r[l]))}return Q4(i),{p:u,f:a}},wNAFUnsafe(t,r,i,u=e.ZERO){const a=ys(t,n);for(let o=0;o<a.windows&&i!==Dt;o++){const{nextN:s,offset:c,isZero:l,isNeg:f}=J4(i,o,a);if(i=s,!l){const m=r[c];u=u.add(f?m.negate():m)}}return Q4(i),u},getPrecomputes(t,r,i){let u=bs.get(r);return u||(u=this.precomputeWindow(r,t),t!==1&&(typeof i=="function"&&(u=i(u)),bs.set(r,u))),u},wNAFCached(t,r,i){const u=ks(t);return this.wNAF(u,this.getPrecomputes(u,t,i),r)},wNAFCachedUnsafe(t,r,i,u){const a=ks(t);return a===1?this.unsafeLadder(t,r,u):this.wNAFUnsafe(a,this.getPrecomputes(a,t,i),r,u)},setWindowSize(t,r){G4(r,n),H4.set(t,r),bs.delete(t)}}}function Qy(e,n,t,r){let i=n,u=e.ZERO,a=e.ZERO;for(;t>Dt||r>Dt;)t&Rn&&(u=u.add(i)),r&Rn&&(a=a.add(i)),i=i.double(),t>>=Rn,r>>=Rn;return{p1:u,p2:a}}function Ky(e,n,t,r){Gy(t,e),Jy(r,n);const i=t.length,u=r.length;if(i!==u)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,o=py(BigInt(i));let s=1;o>12?s=o-3:o>4?s=o-2:o>0&&(s=2);const c=Kr(s),l=new Array(Number(c)+1).fill(a),f=Math.floor((n.BITS-1)/s)*s;let m=a;for(let d=f;d>=0;d-=s){l.fill(a);for(let h=0;h<u;h++){const b=r[h],E=Number(b>>BigInt(d)&c);l[E]=l[E].add(t[h])}let v=a;for(let h=l.length-1,b=a;h>0;h--)b=b.add(l[h]),v=v.add(b);if(m=m.add(v),d!==0)for(let h=0;h<s;h++)m=m.double()}return m}function K4(e,n){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return Z4(n),n}else return uu(e)}function Wy(e,n,t={}){if(!n||typeof n!="object")throw new Error(`expected valid ${e} CURVE object`);for(const o of["p","n","h"]){const s=n[o];if(!(typeof s=="bigint"&&s>Dt))throw new Error(`CURVE.${o} must be positive bigint`)}const r=K4(n.p,t.Fp),i=K4(n.n,t.Fn),a=["Gx","Gy","a","b"];for(const o of a)if(!r.isValid(n[o]))throw new Error(`CURVE.${o} must be valid field element of CURVE.Fp`);return{Fp:r,Fn:i}}function W4(e){e.lowS!==void 0&&Hr("lowS",e.lowS),e.prehash!==void 0&&Hr("prehash",e.prehash)}var Yy=class extends Error{constructor(e=""){super(e)}},nn={Err:Yy,_tlv:{encode:(e,n)=>{const{Err:t}=nn;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length&1)throw new t("tlv.encode: unpadded data");const r=n.length/2,i=Qr(r);if(i.length/2&128)throw new t("tlv.encode: long form length too big");const u=r>127?Qr(i.length/2|128):"";return Qr(e)+u+i+n},decode(e,n){const{Err:t}=nn;let r=0;if(e<0||e>256)throw new t("tlv.encode: wrong tag");if(n.length<2||n[r++]!==e)throw new t("tlv.decode: wrong tlv");const i=n[r++],u=!!(i&128);let a=0;if(!u)a=i;else{const s=i&127;if(!s)throw new t("tlv.decode(long): indefinite length not supported");if(s>4)throw new t("tlv.decode(long): byte length is too big");const c=n.subarray(r,r+s);if(c.length!==s)throw new t("tlv.decode: length bytes not complete");if(c[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const l of c)a=a<<8|l;if(r+=s,a<128)throw new t("tlv.decode(long): not minimal encoding")}const o=n.subarray(r,r+a);if(o.length!==a)throw new t("tlv.decode: wrong value length");return{v:o,l:n.subarray(r+a)}}},_int:{encode(e){const{Err:n}=nn;if(e<jn)throw new n("integer: negative integers are not allowed");let t=Qr(e);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return t},decode(e){const{Err:n}=nn;if(e[0]&128)throw new n("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return Un(e)}},toSig(e){const{Err:n,_int:t,_tlv:r}=nn,i=de("signature",e),{v:u,l:a}=r.decode(48,i);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:o,l:s}=r.decode(2,u),{v:c,l}=r.decode(2,s);if(l.length)throw new n("invalid signature: left bytes after parsing");return{r:t.decode(o),s:t.decode(c)}},hexFromSig(e){const{_tlv:n,_int:t}=nn,r=n.encode(2,t.encode(e.r)),i=n.encode(2,t.encode(e.s)),u=r+i;return n.encode(48,u)}},jn=BigInt(0),Ae=BigInt(1),tn=BigInt(2),St=BigInt(3),Ds=BigInt(4);function Xy(e,n,t){function r(i){const u=e.sqr(i),a=e.mul(u,i);return e.add(e.add(a,e.mul(i,n)),t)}return r}function Y4(e,n,t){const{BYTES:r}=e;function i(u){let a;if(typeof u=="bigint")a=u;else{let o=de("private key",u);if(n){if(!n.includes(o.length*2))throw new Error("invalid private key");const s=new Uint8Array(r);s.set(o,s.length-o.length),o=s}try{a=e.fromBytes(o)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof u}`)}}if(t&&(a=e.create(a)),!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}return i}function eb(e,n={}){const{Fp:t,Fn:r}=Wy("weierstrass",e,n),{h:i,n:u}=e;Wr(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:a}=n;if(a&&(!t.is0(e.a)||typeof a.beta!="bigint"||typeof a.splitScalar!="function"))throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function');function o(){if(!t.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function s(F,y,$){const{x:D,y:A}=y.toAffine(),x=t.toBytes(D);if(Hr("isCompressed",$),$){o();const T=!t.isOdd(A);return Se(X4(T),x)}else return Se(Uint8Array.of(4),x,t.toBytes(A))}function c(F){ve(F);const y=t.BYTES,$=y+1,D=2*y+1,A=F.length,x=F[0],T=F.subarray(1);if(A===$&&(x===2||x===3)){const N=t.fromBytes(T);if(!t.isValid(N))throw new Error("bad point: is not on curve, wrong x");const O=m(N);let R;try{R=t.sqrt(O)}catch(W){const j=W instanceof Error?": "+W.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}o();const U=t.isOdd(R);return(x&1)===1!==U&&(R=t.neg(R)),{x:N,y:R}}else if(A===D&&x===4){const N=t.fromBytes(T.subarray(y*0,y*1)),O=t.fromBytes(T.subarray(y*1,y*2));if(!d(N,O))throw new Error("bad point: is not on curve");return{x:N,y:O}}else throw new Error(`bad point: got length ${A}, expected compressed=${$} or uncompressed=${D}`)}const l=n.toBytes||s,f=n.fromBytes||c,m=Xy(t,e.a,e.b);function d(F,y){const $=t.sqr(y),D=m(F);return t.eql($,D)}if(!d(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const v=t.mul(t.pow(e.a,St),Ds),h=t.mul(t.sqr(e.b),BigInt(27));if(t.is0(t.add(v,h)))throw new Error("bad curve params: a or b");function b(F,y,$=!1){if(!t.isValid(y)||$&&t.is0(y))throw new Error(`bad point coordinate ${F}`);return y}function E(F){if(!(F instanceof B))throw new Error("ProjectivePoint expected")}const g=_4((F,y)=>{const{px:$,py:D,pz:A}=F;if(t.eql(A,t.ONE))return{x:$,y:D};const x=F.is0();y==null&&(y=x?t.ONE:t.inv(A));const T=t.mul($,y),N=t.mul(D,y),O=t.mul(A,y);if(x)return{x:t.ZERO,y:t.ZERO};if(!t.eql(O,t.ONE))throw new Error("invZ was invalid");return{x:T,y:N}}),k=_4(F=>{if(F.is0()){if(n.allowInfinityPoint&&!t.is0(F.py))return;throw new Error("bad point: ZERO")}const{x:y,y:$}=F.toAffine();if(!t.isValid(y)||!t.isValid($))throw new Error("bad point: x or y not field elements");if(!d(y,$))throw new Error("bad point: equation left != right");if(!F.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function _(F,y,$,D,A){return $=new B(t.mul($.px,F),$.py,$.pz),y=ci(D,y),$=ci(A,$),y.add($)}class B{constructor(y,$,D){this.px=b("x",y),this.py=b("y",$,!0),this.pz=b("z",D),Object.freeze(this)}static fromAffine(y){const{x:$,y:D}=y||{};if(!y||!t.isValid($)||!t.isValid(D))throw new Error("invalid affine point");if(y instanceof B)throw new Error("projective point not allowed");return t.is0($)&&t.is0(D)?B.ZERO:new B($,D,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(y){return My(B,"pz",y)}static fromBytes(y){return ve(y),B.fromHex(y)}static fromHex(y){const $=B.fromAffine(f(de("pointHex",y)));return $.assertValidity(),$}static fromPrivateKey(y){const $=Y4(r,n.allowedPrivateKeyLengths,n.wrapPrivateKey);return B.BASE.multiply($(y))}static msm(y,$){return Ky(B,r,y,$)}precompute(y=8,$=!0){return q.setWindowSize(this,y),$||this.multiply(St),this}_setWindowSize(y){this.precompute(y)}assertValidity(){k(this)}hasEvenY(){const{y}=this.toAffine();if(!t.isOdd)throw new Error("Field doesn't support isOdd");return!t.isOdd(y)}equals(y){E(y);const{px:$,py:D,pz:A}=this,{px:x,py:T,pz:N}=y,O=t.eql(t.mul($,N),t.mul(x,A)),R=t.eql(t.mul(D,N),t.mul(T,A));return O&&R}negate(){return new B(this.px,t.neg(this.py),this.pz)}double(){const{a:y,b:$}=e,D=t.mul($,St),{px:A,py:x,pz:T}=this;let N=t.ZERO,O=t.ZERO,R=t.ZERO,U=t.mul(A,A),ue=t.mul(x,x),W=t.mul(T,T),j=t.mul(A,x);return j=t.add(j,j),R=t.mul(A,T),R=t.add(R,R),N=t.mul(y,R),O=t.mul(D,W),O=t.add(N,O),N=t.sub(ue,O),O=t.add(ue,O),O=t.mul(N,O),N=t.mul(j,N),R=t.mul(D,R),W=t.mul(y,W),j=t.sub(U,W),j=t.mul(y,j),j=t.add(j,R),R=t.add(U,U),U=t.add(R,U),U=t.add(U,W),U=t.mul(U,j),O=t.add(O,U),W=t.mul(x,T),W=t.add(W,W),U=t.mul(W,j),N=t.sub(N,U),R=t.mul(W,ue),R=t.add(R,R),R=t.add(R,R),new B(N,O,R)}add(y){E(y);const{px:$,py:D,pz:A}=this,{px:x,py:T,pz:N}=y;let O=t.ZERO,R=t.ZERO,U=t.ZERO;const ue=e.a,W=t.mul(e.b,St);let j=t.mul($,x),oe=t.mul(D,T),se=t.mul(A,N),fe=t.add($,D),X=t.add(x,T);fe=t.mul(fe,X),X=t.add(j,oe),fe=t.sub(fe,X),X=t.add($,A);let ke=t.add(x,N);return X=t.mul(X,ke),ke=t.add(j,se),X=t.sub(X,ke),ke=t.add(D,A),O=t.add(T,N),ke=t.mul(ke,O),O=t.add(oe,se),ke=t.sub(ke,O),U=t.mul(ue,X),O=t.mul(W,se),U=t.add(O,U),O=t.sub(oe,U),U=t.add(oe,U),R=t.mul(O,U),oe=t.add(j,j),oe=t.add(oe,j),se=t.mul(ue,se),X=t.mul(W,X),oe=t.add(oe,se),se=t.sub(j,se),se=t.mul(ue,se),X=t.add(X,se),j=t.mul(oe,X),R=t.add(R,j),j=t.mul(ke,X),O=t.mul(fe,O),O=t.sub(O,j),j=t.mul(fe,oe),U=t.mul(ke,U),U=t.add(U,j),new B(O,R,U)}subtract(y){return this.add(y.negate())}is0(){return this.equals(B.ZERO)}multiply(y){const{endo:$}=n;if(!r.isValidNot0(y))throw new Error("invalid scalar: out of range");let D,A;const x=T=>q.wNAFCached(this,T,B.normalizeZ);if($){const{k1neg:T,k1:N,k2neg:O,k2:R}=$.splitScalar(y),{p:U,f:ue}=x(N),{p:W,f:j}=x(R);A=ue.add(j),D=_($.beta,U,W,T,O)}else{const{p:T,f:N}=x(y);D=T,A=N}return B.normalizeZ([D,A])[0]}multiplyUnsafe(y){const{endo:$}=n,D=this;if(!r.isValid(y))throw new Error("invalid scalar: out of range");if(y===jn||D.is0())return B.ZERO;if(y===Ae)return D;if(q.hasPrecomputes(this))return this.multiply(y);if($){const{k1neg:A,k1:x,k2neg:T,k2:N}=$.splitScalar(y),{p1:O,p2:R}=Qy(B,D,x,N);return _($.beta,O,R,A,T)}else return q.wNAFCachedUnsafe(D,y)}multiplyAndAddUnsafe(y,$,D){const A=this.multiplyUnsafe($).add(y.multiplyUnsafe(D));return A.is0()?void 0:A}toAffine(y){return g(this,y)}isTorsionFree(){const{isTorsionFree:y}=n;return i===Ae?!0:y?y(B,this):q.wNAFCachedUnsafe(this,u).is0()}clearCofactor(){const{clearCofactor:y}=n;return i===Ae?this:y?y(B,this):this.multiplyUnsafe(i)}toBytes(y=!0){return Hr("isCompressed",y),this.assertValidity(),l(B,this,y)}toRawBytes(y=!0){return this.toBytes(y)}toHex(y=!0){return ui(this.toBytes(y))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}B.BASE=new B(e.Gx,e.Gy,t.ONE),B.ZERO=new B(t.ZERO,t.ONE,t.ZERO),B.Fp=t,B.Fn=r;const J=r.BITS,q=Hy(B,n.endo?Math.ceil(J/2):J);return B}function X4(e){return Uint8Array.of(e?2:3)}function nb(e,n,t={}){Wr(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||D4,i=n.hmac||((D,...A)=>z4(n.hash,D,Se(...A))),{Fp:u,Fn:a}=e,{ORDER:o,BITS:s}=a;function c(D){const A=o>>Ae;return D>A}function l(D){return c(D)?a.neg(D):D}function f(D,A){if(!a.isValidNot0(A))throw new Error(`invalid signature ${D}: out of range 1..CURVE.n`)}class m{constructor(A,x,T){f("r",A),f("s",x),this.r=A,this.s=x,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(A){const x=a.BYTES,T=de("compactSignature",A,x*2);return new m(a.fromBytes(T.subarray(0,x)),a.fromBytes(T.subarray(x,x*2)))}static fromDER(A){const{r:x,s:T}=nn.toSig(de("DER",A));return new m(x,T)}assertValidity(){}addRecoveryBit(A){return new m(this.r,this.s,A)}recoverPublicKey(A){const x=u.ORDER,{r:T,s:N,recovery:O}=this;if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");if(o*tn<x&&O>1)throw new Error("recovery id is ambiguous for h>1 curve");const U=O===2||O===3?T+o:T;if(!u.isValid(U))throw new Error("recovery id 2 or 3 invalid");const ue=u.toBytes(U),W=e.fromHex(Se(X4((O&1)===0),ue)),j=a.inv(U),oe=k(de("msgHash",A)),se=a.create(-oe*j),fe=a.create(N*j),X=e.BASE.multiplyUnsafe(se).add(W.multiplyUnsafe(fe));if(X.is0())throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return c(this.s)}normalizeS(){return this.hasHighS()?new m(this.r,a.neg(this.s),this.recovery):this}toBytes(A){if(A==="compact")return Se(a.toBytes(this.r),a.toBytes(this.s));if(A==="der")return ms(nn.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return ui(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return ui(this.toBytes("compact"))}}const d=Y4(a,t.allowedPrivateKeyLengths,t.wrapPrivateKey),v={isValidPrivateKey(D){try{return d(D),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const D=o;return qy(r(M4(D)),D)},precompute(D=8,A=e.BASE){return A.precompute(D,!1)}};function h(D,A=!0){return e.fromPrivateKey(D).toBytes(A)}function b(D){if(typeof D=="bigint")return!1;if(D instanceof e)return!0;const x=de("key",D).length,T=u.BYTES,N=T+1,O=2*T+1;if(!(t.allowedPrivateKeyLengths||a.BYTES===N))return x===N||x===O}function E(D,A,x=!0){if(b(D)===!0)throw new Error("first arg must be private key");if(b(A)===!1)throw new Error("second arg must be public key");return e.fromHex(A).multiply(d(D)).toBytes(x)}const g=n.bits2int||function(D){if(D.length>8192)throw new Error("input is too large");const A=Un(D),x=D.length*8-s;return x>0?A>>BigInt(x):A},k=n.bits2int_modN||function(D){return a.create(g(D))},_=Kr(s);function B(D){return w4("num < 2^"+s,D,jn,_),a.toBytes(D)}function J(D,A,x=q){if(["recovered","canonical"].some(fe=>fe in x))throw new Error("sign() legacy options not supported");const{hash:T}=n;let{lowS:N,prehash:O,extraEntropy:R}=x;N==null&&(N=!0),D=de("msgHash",D),W4(x),O&&(D=de("prehashed msgHash",T(D)));const U=k(D),ue=d(A),W=[B(ue),B(U)];if(R!=null&&R!==!1){const fe=R===!0?r(u.BYTES):R;W.push(de("extraEntropy",fe))}const j=Se(...W),oe=U;function se(fe){const X=g(fe);if(!a.isValidNot0(X))return;const ke=a.inv(X),Ft=e.BASE.multiply(X).toAffine(),Ln=a.create(Ft.x);if(Ln===jn)return;const Bn=a.create(ke*a.create(oe+Ln*ue));if(Bn===jn)return;let _u=(Ft.x===Ln?0:2)|Number(Ft.y&Ae),Zn=Bn;return N&&c(Bn)&&(Zn=l(Bn),_u^=1),new m(Ln,Zn,_u)}return{seed:j,k2sig:se}}const q={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};function y(D,A,x=q){const{seed:T,k2sig:N}=J(D,A,x);return hy(n.hash.outputLen,a.BYTES,i)(T,N)}e.BASE.precompute(8);function $(D,A,x,T=F){const N=D;A=de("msgHash",A),x=de("publicKey",x),W4(T);const{lowS:O,prehash:R,format:U}=T;if("strict"in T)throw new Error("options.strict was renamed to lowS");if(U!==void 0&&!["compact","der","js"].includes(U))throw new Error('format must be "compact", "der" or "js"');const ue=typeof N=="string"||Gr(N),W=!ue&&!U&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!ue&&!W)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let j,oe;try{if(W)if(U===void 0||U==="js")j=new m(N.r,N.s);else throw new Error("invalid format");if(ue){try{U!=="compact"&&(j=m.fromDER(N))}catch(Zn){if(!(Zn instanceof nn.Err))throw Zn}!j&&U!=="der"&&(j=m.fromCompact(N))}oe=e.fromHex(x)}catch{return!1}if(!j||O&&j.hasHighS())return!1;R&&(A=n.hash(A));const{r:se,s:fe}=j,X=k(A),ke=a.inv(fe),Ft=a.create(X*ke),Ln=a.create(se*ke),Bn=e.BASE.multiplyUnsafe(Ft).add(oe.multiplyUnsafe(Ln));return Bn.is0()?!1:a.create(Bn.x)===se}return Object.freeze({getPublicKey:h,getSharedSecret:E,sign:y,verify:$,utils:v,Point:e,Signature:m})}function tb(e){const n={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},t=e.Fp,r=uu(n.n,e.nBitLength),i={Fp:t,Fn:r,allowedPrivateKeyLengths:e.allowedPrivateKeyLengths,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,wrapPrivateKey:e.wrapPrivateKey,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:n,curveOpts:i}}function ib(e){const{CURVE:n,curveOpts:t}=tb(e),r={hash:e.hash,hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:n,curveOpts:t,ecdsaOpts:r}}function rb(e,n){return Object.assign({},n,{ProjectivePoint:n.Point,CURVE:e})}function ub(e){const{CURVE:n,curveOpts:t,ecdsaOpts:r}=ib(e),i=eb(n,t),u=nb(i,r,t);return rb(e,u)}function ab(e,n){const t=e.ORDER;let r=jn;for(let v=t-Ae;v%tn===jn;v/=tn)r+=Ae;const i=r,u=tn<<i-Ae-Ae,a=u*tn,o=(t-Ae)/a,s=(o-Ae)/tn,c=a-Ae,l=u,f=e.pow(n,o),m=e.pow(n,(o+Ae)/tn);let d=(v,h)=>{let b=f,E=e.pow(h,c),g=e.sqr(E);g=e.mul(g,h);let k=e.mul(v,g);k=e.pow(k,s),k=e.mul(k,E),E=e.mul(k,h),g=e.mul(k,v);let _=e.mul(g,E);k=e.pow(_,l);let B=e.eql(k,e.ONE);E=e.mul(g,m),k=e.mul(_,b),g=e.cmov(E,g,B),_=e.cmov(k,_,B);for(let J=i;J>Ae;J--){let q=J-tn;q=tn<<q-Ae;let F=e.pow(_,q);const y=e.eql(F,e.ONE);E=e.mul(g,b),b=e.mul(b,b),F=e.mul(_,b),g=e.cmov(E,g,y),_=e.cmov(F,_,y)}return{isValid:B,value:g}};if(e.ORDER%Ds===St){const v=(e.ORDER-St)/Ds,h=e.sqrt(e.neg(n));d=(b,E)=>{let g=e.sqr(E);const k=e.mul(b,E);g=e.mul(g,k);let _=e.pow(g,v);_=e.mul(_,k);const B=e.mul(_,h),J=e.mul(e.sqr(_),E),q=e.eql(J,b);let F=e.cmov(B,_,q);return{isValid:q,value:F}}}return d}function ob(e,n){Z4(e);const{A:t,B:r,Z:i}=n;if(!e.isValid(t)||!e.isValid(r)||!e.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const u=ab(e,i);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return a=>{let o,s,c,l,f,m,d,v;o=e.sqr(a),o=e.mul(o,i),s=e.sqr(o),s=e.add(s,o),c=e.add(s,e.ONE),c=e.mul(c,r),l=e.cmov(i,e.neg(s),!e.eql(s,e.ZERO)),l=e.mul(l,t),s=e.sqr(c),m=e.sqr(l),f=e.mul(m,t),s=e.add(s,f),s=e.mul(s,c),m=e.mul(m,l),f=e.mul(m,r),s=e.add(s,f),d=e.mul(o,c);const{isValid:h,value:b}=u(s,m);v=e.mul(o,a),v=e.mul(v,b),d=e.cmov(d,c,h),v=e.cmov(v,b,h);const E=e.isOdd(a)===e.isOdd(v);v=e.cmov(e.neg(v),v,E);const g=ru(e,[l],!0)[0];return d=e.mul(d,g),{x:d,y:v}}}function sb(e,n){const t=r=>ub({...e,hash:r});return{...t(n),create:t}}var cb=Un;function En(e,n){if(li(e),li(n),e<0||e>=1<<8*n)throw new Error("invalid I2OSP input: "+e);const t=Array.from({length:n}).fill(0);for(let r=n-1;r>=0;r--)t[r]=e&255,e>>>=8;return new Uint8Array(t)}function lb(e,n){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r]^n[r];return t}function li(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function db(e,n,t,r){ve(e),ve(n),li(t),n.length>255&&(n=r(Se(Jr("H2C-OVERSIZE-DST-"),n)));const{outputLen:i,blockLen:u}=r,a=Math.ceil(t/i);if(t>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");const o=Se(n,En(n.length,1)),s=En(0,u),c=En(t,2),l=new Array(a),f=r(Se(s,e,c,En(0,1),o));l[0]=r(Se(f,En(1,1),o));for(let d=1;d<=a;d++){const v=[lb(f,l[d-1]),En(d+1,1),o];l[d]=r(Se(...v))}return Se(...l).slice(0,t)}function fb(e,n,t,r,i){if(ve(e),ve(n),li(t),n.length>255){const u=Math.ceil(2*r/8);n=i.create({dkLen:u}).update(Jr("H2C-OVERSIZE-DST-")).update(n).digest()}if(t>65535||n.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:t}).update(e).update(En(t,2)).update(n).update(En(n.length,1)).digest()}function ev(e,n,t){Wr(t,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:r,k:i,m:u,hash:a,expand:o,DST:s}=t;if(!Gr(s)&&typeof s!="string")throw new Error("DST must be string or uint8array");if(!gy(t.hash))throw new Error("expected valid hash");ve(e),li(n);const c=typeof s=="string"?Jr(s):s,l=r.toString(2).length,f=Math.ceil((l+i)/8),m=n*u*f;let d;if(o==="xmd")d=db(e,c,m,a);else if(o==="xof")d=fb(e,c,m,i,a);else if(o==="_internal_pass")d=e;else throw new Error('expand must be "xmd" or "xof"');const v=new Array(n);for(let h=0;h<n;h++){const b=new Array(u);for(let E=0;E<u;E++){const g=f*(E+h*u),k=d.subarray(g,g+f);b[E]=ye(cb(k),r)}v[h]=b}return v}function mb(e,n){const t=n.map(r=>Array.from(r).reverse());return(r,i)=>{const[u,a,o,s]=t.map(f=>f.reduce((m,d)=>e.add(e.mul(m,r),d))),[c,l]=ru(e,[a,s],!0);return r=e.mul(u,c),i=e.mul(i,e.mul(o,l)),{x:r,y:i}}}function vb(e,n,t){if(typeof n!="function")throw new Error("mapToCurve() must be defined");function r(u){return e.fromAffine(n(u))}function i(u){const a=u.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:t,hashToCurve(u,a){const o=t.DST?t.DST:{},s=Object.assign({},t,o,a),c=ev(u,2,s),l=r(c[0]),f=r(c[1]);return i(l.add(f))},encodeToCurve(u,a){const o=t.encodeDST?t.encodeDST:{},s=Object.assign({},t,o,a),c=ev(u,1,s);return i(r(c[0]))},mapToCurve(u){if(!Array.isArray(u))throw new Error("expected array of bigints");for(const a of u)if(typeof a!="bigint")throw new Error("expected array of bigints");return i(r(u))}}}var rn={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},nv=BigInt(0),au=BigInt(1),ou=BigInt(2),tv=(e,n)=>(e+n/ou)/n;function iv(e){const n=rn.p,t=BigInt(3),r=BigInt(6),i=BigInt(11),u=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%n,l=c*c*e%n,f=Oe(l,t,n)*l%n,m=Oe(f,t,n)*l%n,d=Oe(m,ou,n)*c%n,v=Oe(d,i,n)*d%n,h=Oe(v,u,n)*v%n,b=Oe(h,o,n)*h%n,E=Oe(b,s,n)*b%n,g=Oe(E,o,n)*h%n,k=Oe(g,t,n)*l%n,_=Oe(k,a,n)*v%n,B=Oe(_,r,n)*c%n,J=Oe(B,ou,n);if(!yn.eql(yn.sqr(J),e))throw new Error("Cannot find square root");return J}var yn=uu(rn.p,void 0,void 0,{sqrt:iv}),su=sb({...rn,Fp:yn,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=rn.n,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-au*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),u=t,a=BigInt("0x100000000000000000000000000000000"),o=tv(u*e,n),s=tv(-r*e,n);let c=ye(e-o*t-s*i,n),l=ye(-o*r-s*u,n);const f=c>a,m=l>a;if(f&&(c=n-c),m&&(l=n-l),c>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:f,k1:c,k2neg:m,k2:l}}}},iu),rv={};function cu(e,...n){let t=rv[e];if(t===void 0){const r=iu(Uint8Array.from(e,i=>i.charCodeAt(0)));t=Se(r,r),rv[e]=t}return iu(Se(t,...n))}var Ss=e=>e.toBytes(!0).slice(1),Bs=e=>oi(e,32),As=e=>ye(e,rn.p),di=e=>ye(e,rn.n),ws=su.Point,_s=e=>e%ou===nv;function Cs(e){let n=su.utils.normPrivateKeyToScalar(e),t=ws.fromPrivateKey(n);return{scalar:_s(t.y)?n:di(-n),bytes:Ss(t)}}function uv(e){w4("x",e,au,rn.p);const n=As(e*e),t=As(n*e+BigInt(7));let r=iv(t);_s(r)||(r=As(-r));const i=ws.fromAffine({x:e,y:r});return i.assertValidity(),i}var Bt=Un;function av(...e){return di(Bt(cu("BIP0340/challenge",...e)))}function pb(e){return Cs(e).bytes}function hb(e,n,t=D4(32)){const r=de("message",e),{bytes:i,scalar:u}=Cs(n),a=de("auxRand",t,32),o=Bs(u^Bt(cu("BIP0340/aux",a))),s=cu("BIP0340/nonce",o,i,r),c=di(Bt(s));if(c===nv)throw new Error("sign failed: k is zero");const{bytes:l,scalar:f}=Cs(c),m=av(l,i,r),d=new Uint8Array(64);if(d.set(l,0),d.set(Bs(di(f+m*u)),32),!ov(d,r,i))throw new Error("sign: Invalid signature produced");return d}function ov(e,n,t){const r=de("signature",e,64),i=de("message",n),u=de("publicKey",t,32);try{const a=uv(Bt(u)),o=Bt(r.subarray(0,32));if(!Es(o,au,rn.p))return!1;const s=Bt(r.subarray(32,64));if(!Es(s,au,rn.n))return!1;const c=av(Bs(o),Ss(a),i),l=ws.BASE.multiplyUnsafe(s).add(a.multiplyUnsafe(di(-c))),{x:f,y:m}=l.toAffine();return!(l.is0()||!_s(m)||f!==o)}catch{return!1}}({getPublicKey:pb,sign:hb,verify:ov,utils:{randomPrivateKey:su.utils.randomPrivateKey,lift_x:uv,pointToBytes:Ss,numberToBytesBE:oi,bytesToNumberBE:Un,taggedHash:cu,mod:ye}});var gb=mb(yn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(n=>BigInt(n)))),Eb=ob(yn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:yn.create(BigInt("-11"))});vb(su.Point,e=>{const{x:n,y:t}=Eb(yn.create(e[0]));return gb(n,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:yn.ORDER,m:1,k:128,expand:"xmd",hash:iu});/*! Bundled license information:
471
471
 
472
472
  @noble/curves/esm/abstract/modular.js:
473
473
  @noble/curves/esm/abstract/curve.js:
@@ -475,10 +475,10 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
475
475
  @noble/curves/esm/_shortw_utils.js:
476
476
  @noble/curves/esm/secp256k1.js:
477
477
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
478
- */var Eb="0.1.1";function yb(){return Eb}var ze=class Ws extends Error{constructor(n,t={}){const r=(()=>{if(t.cause instanceof Ws){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&typeof t.cause.details=="string"?t.cause.details:t.cause?.message?t.cause.message:t.details})(),i=t.cause instanceof Ws&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${i??""}`,o=[n||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||i?["",r?`Details: ${r}`:void 0,i?`See: ${a}`:void 0]:[]].filter(s=>typeof s=="string").join(`
479
- `);super(o,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${yb()}`}),this.cause=t.cause,this.details=r,this.docs=a,this.docsPath=i,this.shortMessage=n}walk(n){return sv(this,n)}};function sv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?sv(e.cause,n):n?null:e}function bb(e,n){if(dv(e)>n)throw new Cb({givenSize:dv(e),maxSize:n})}var un={zero:48,nine:57,A:65,F:70,a:97,f:102};function cv(e){if(e>=un.zero&&e<=un.nine)return e-un.zero;if(e>=un.A&&e<=un.F)return e-(un.A-10);if(e>=un.a&&e<=un.f)return e-(un.a-10)}function kb(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;if(e.length>r)throw new $b({size:e.length,targetSize:r,type:"Bytes"});const i=new Uint8Array(r);for(let u=0;u<r;u++){const a=t==="right";i[a?u:r-u-1]=e[a?u:e.length-u-1]}return i}function $s(e,n){if(xs(e)>n)throw new zb({givenSize:xs(e),maxSize:n})}function lv(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;const i=e.replace("0x","");if(i.length>r*2)throw new Ub({size:Math.ceil(i.length/2),targetSize:r,type:"Hex"});return`0x${i[t==="right"?"padEnd":"padStart"](r*2,"0")}`}new TextDecoder;var Db=new TextEncoder;function Sb(e){return e instanceof Uint8Array?e:typeof e=="string"?Ab(e):Bb(e)}function Bb(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Ab(e,n={}){const{size:t}=n;let r=e;t&&($s(e,t),r=Is(e,t));let i=r.slice(2);i.length%2&&(i=`0${i}`);const u=i.length/2,a=new Uint8Array(u);for(let o=0,s=0;o<u;o++){const c=cv(i.charCodeAt(s++)),l=cv(i.charCodeAt(s++));if(c===void 0||l===void 0)throw new ze(`Invalid byte sequence ("${i[s-2]}${i[s-1]}" in "${i}").`);a[o]=c*16+l}return a}function wb(e,n={}){const{size:t}=n,r=Db.encode(e);return typeof t=="number"?(bb(r,t),_b(r,t)):r}function _b(e,n){return kb(e,{dir:"right",size:n})}function dv(e){return e.length}var Cb=class extends ze{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},$b=class extends ze{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}},Ib=new TextEncoder,xb=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function fv(...e){return`0x${e.reduce((n,t)=>n+t.replace("0x",""),"")}`}function Fb(e,n={}){const t=`0x${Number(e)}`;return typeof n.size=="number"?($s(t,n.size),lu(t,n.size)):t}function mv(e,n={}){let t="";for(let i=0;i<e.length;i++)t+=xb[e[i]];const r=`0x${t}`;return typeof n.size=="number"?($s(r,n.size),Is(r,n.size)):r}function Nb(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let u;r?t?u=(1n<<BigInt(r)*8n-1n)-1n:u=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(u=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof u=="bigint"&&t?-u-1n:0;if(u&&i>u||i<a){const c=typeof e=="bigint"?"n":"";throw new Ob({max:u?`${u}${c}`:void 0,min:`${a}${c}`,signed:t,size:r,value:`${e}${c}`})}const s=`0x${(t&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?lu(s,r):s}function Tb(e,n={}){return mv(Ib.encode(e),n)}function lu(e,n){return lv(e,{dir:"left",size:n})}function Is(e,n){return lv(e,{dir:"right",size:n})}function xs(e){return Math.ceil((e.length-2)/2)}var Ob=class extends ze{constructor({max:e,min:n,signed:t,size:r,value:i}){super(`Number \`${i}\` is not in safe${r?` ${r*8}-bit`:""}${t?" signed":" unsigned"} integer range ${e?`(\`${n}\` to \`${e}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}},zb=class extends ze{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},Ub=class extends ze{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}},vv="2.31.7",Fs={getDocsUrl:({docsBaseUrl:e,docsPath:n="",docsSlug:t})=>n?`${e??"https://viem.sh"}${n}${t?`#${t}`:""}`:void 0,version:`viem@${vv}`},du=class Ys extends Error{constructor(n,t={}){const r=t.cause instanceof Ys?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof Ys&&t.cause.docsPath||t.docsPath,u=Fs.getDocsUrl?.({...t,docsPath:i}),a=[n||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...u?[`Docs: ${u}`]:[],...r?[`Details: ${r}`]:[],...Fs.version?[`Version: ${Fs.version}`]:[]].join(`
480
- `);super(a,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=n,this.version=vv}walk(n){return pv(this,n)}};function pv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?pv(e.cause,n):n?null:e}function Ns(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function hv(e){return Ns(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var gv=class extends du{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};function fu(e,{dir:n,size:t=32}={}){return typeof e=="string"?Pb(e,{dir:n,size:t}):Rb(e,{dir:n,size:t})}function Pb(e,{dir:n,size:t=32}={}){if(t===null)return e;const r=e.replace("0x","");if(r.length>t*2)throw new gv({size:Math.ceil(r.length/2),targetSize:t,type:"hex"});return`0x${r[n==="right"?"padEnd":"padStart"](t*2,"0")}`}function Rb(e,{dir:n,size:t=32}={}){if(t===null)return e;if(e.length>t)throw new gv({size:e.length,targetSize:t,type:"bytes"});const r=new Uint8Array(t);for(let i=0;i<t;i++){const u=n==="right";r[u?i:t-i-1]=e[u?i:e.length-i-1]}return r}var jb=class extends du{constructor({max:e,min:n,signed:t,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},Lb=class extends du{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}};function mu(e,{size:n}){if(hv(e)>n)throw new Lb({givenSize:hv(e),maxSize:n})}function Zb(e,n={}){const{signed:t}=n;n.size&&mu(e,{size:n.size});const r=BigInt(e);if(!t)return r;const i=(e.length-2)/2,u=(1n<<BigInt(i)*8n-1n)-1n;return r<=u?r:r-BigInt(`0x${"f".padStart(i*2,"f")}`)-1n}function Vb(e,n={}){return Number(Zb(e,n))}Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Ts(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let u;r?t?u=(1n<<BigInt(r)*8n-1n)-1n:u=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(u=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof u=="bigint"&&t?-u-1n:0;if(u&&i>u||i<a){const s=typeof e=="bigint"?"n":"";throw new jb({max:u?`${u}${s}`:void 0,min:`${a}${s}`,signed:t,size:r,value:`${e}${s}`})}const o=`0x${(t&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?fu(o,{size:r}):o}new TextEncoder;var qb=new TextEncoder;function Mb(e,n={}){return typeof e=="number"||typeof e=="bigint"?Jb(e,n):typeof e=="boolean"?Gb(e,n):Ns(e)?yv(e,n):bv(e,n)}function Gb(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(mu(t,{size:n.size}),fu(t,{size:n.size})):t}var an={zero:48,nine:57,A:65,F:70,a:97,f:102};function Ev(e){if(e>=an.zero&&e<=an.nine)return e-an.zero;if(e>=an.A&&e<=an.F)return e-(an.A-10);if(e>=an.a&&e<=an.f)return e-(an.a-10)}function yv(e,n={}){let t=e;n.size&&(mu(t,{size:n.size}),t=fu(t,{dir:"right",size:n.size}));let r=t.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,u=new Uint8Array(i);for(let a=0,o=0;a<i;a++){const s=Ev(r.charCodeAt(o++)),c=Ev(r.charCodeAt(o++));if(s===void 0||c===void 0)throw new du(`Invalid byte sequence ("${r[o-2]}${r[o-1]}" in "${r}").`);u[a]=s*16+c}return u}function Jb(e,n){const t=Ts(e,n);return yv(t)}function bv(e,n={}){const t=qb.encode(e);return typeof n.size=="number"?(mu(t,{size:n.size}),fu(t,{dir:"right",size:n.size})):t}var Hb=BigInt(0),fi=BigInt(1),Qb=BigInt(2),Kb=BigInt(7),Wb=BigInt(256),Yb=BigInt(113),kv=[],Dv=[],Sv=[];for(let e=0,n=fi,t=1,r=0;e<24;e++){[t,r]=[r,(2*t+3*r)%5],kv.push(2*(5*r+t)),Dv.push((e+1)*(e+2)/2%64);let i=Hb;for(let u=0;u<7;u++)n=(n<<fi^(n>>Kb)*Yb)%Wb,n&Qb&&(i^=fi<<(fi<<BigInt(u))-fi);Sv.push(i)}var Bv=$4(Sv,!0),Xb=Bv[0],ek=Bv[1],Av=(e,n,t)=>t>32?by(e,n,t):Ey(e,n,t),wv=(e,n,t)=>t>32?ky(e,n,t):yy(e,n,t);function nk(e,n=24){const t=new Uint32Array(10);for(let r=24-n;r<24;r++){for(let a=0;a<10;a++)t[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,c=t[s],l=t[s+1],f=Av(c,l,1)^t[o],m=wv(c,l,1)^t[o+1];for(let d=0;d<50;d+=10)e[a+d]^=f,e[a+d+1]^=m}let i=e[2],u=e[3];for(let a=0;a<24;a++){const o=Dv[a],s=Av(i,u,o),c=wv(i,u,o),l=kv[a];i=e[l],u=e[l+1],e[l]=s,e[l+1]=c}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=e[a+o];for(let o=0;o<10;o++)e[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}e[0]^=Xb[r],e[1]^=ek[r]}_e(t)}var _v=class mp extends vs{constructor(n,t,r,i=!1,u=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=n,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=u,ri(r),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=sy(this.state)}clone(){return this._cloneInto()}keccak(){y4(this.state32),nk(this.state32,this.rounds),y4(this.state32),this.posOut=0,this.pos=0}update(n){yt(this),n=ai(n),ve(n);const{blockLen:t,state:r}=this,i=n.length;for(let u=0;u<i;){const a=Math.min(t-this.pos,i-u);for(let o=0;o<a;o++)r[this.pos++]^=n[u++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:r,blockLen:i}=this;n[r]^=t,(t&128)!==0&&r===i-1&&this.keccak(),n[i-1]^=128,this.keccak()}writeInto(n){yt(this,!1),ve(n),this.finish();const t=this.state,{blockLen:r}=this;for(let i=0,u=n.length;i<u;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,u-i);n.set(t.subarray(this.posOut,this.posOut+a),i),this.posOut+=a,i+=a}return n}xofInto(n){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return ri(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(E4(n,this),this.finished)throw new Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,_e(this.state)}_cloneInto(n){const{blockLen:t,suffix:r,outputLen:i,rounds:u,enableXOF:a}=this;return n||(n=new mp(t,r,i,a,u)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=u,n.suffix=r,n.outputLen=i,n.enableXOF=a,n.destroyed=this.destroyed,n}},bn=(e,n,t)=>Qe(()=>new _v(n,e,t));bn(6,144,224/8),bn(6,136,256/8),bn(6,104,384/8),bn(6,72,512/8),bn(1,144,224/8);var Cv=bn(1,136,256/8);bn(1,104,384/8),bn(1,72,512/8);var $v=(e,n,t)=>my((r={})=>new _v(n,e,r.dkLen===void 0?t:r.dkLen,!0));$v(31,168,128/8),$v(31,136,256/8);function tk(e,n){return Cv(Ns(e,{strict:!1})?Mb(e):e)}var mi=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},ik=/^0x[a-fA-F0-9]{40}$/,Os=new mi(8192);function rk(e,n){const{strict:t=!0}={},r=`${e}.${t}`;if(Os.has(r))return Os.get(r);const i=ik.test(e)?e.toLowerCase()===e?!0:t?uk(e)===e:!0:!1;return Os.set(r,i),i}var zs=new mi(8192);function uk(e,n){if(zs.has(`${e}.${n}`))return zs.get(`${e}.${n}`);const t=e.substring(2).toLowerCase(),r=tk(bv(t)),i=t.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&i[a]&&(i[a]=i[a].toUpperCase()),(r[a>>1]&15)>=8&&i[a+1]&&(i[a+1]=i[a+1].toUpperCase());const u=`0x${i.join("")}`;return zs.set(`${e}.${n}`,u),u}async function ak(e,{address:n,blockTag:t="latest",blockNumber:r}){const i=await e.request({method:"eth_getTransactionCount",params:[n,typeof r=="bigint"?Ts(r):t]},{dedupe:!!r});return Vb(i)}new mi(128),Ts(0,{size:32}),new mi(8192);var At=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),kn=new Uint32Array(80),ok=class extends si{constructor(){super(64,20,8,!1),this.A=At[0]|0,this.B=At[1]|0,this.C=At[2]|0,this.D=At[3]|0,this.E=At[4]|0}get(){const{A:e,B:n,C:t,D:r,E:i}=this;return[e,n,t,r,i]}set(e,n,t,r,i){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=i|0}process(e,n){for(let o=0;o<16;o++,n+=4)kn[o]=e.getUint32(n,!1);for(let o=16;o<80;o++)kn[o]=fn(kn[o-3]^kn[o-8]^kn[o-14]^kn[o-16],1);let{A:t,B:r,C:i,D:u,E:a}=this;for(let o=0;o<80;o++){let s,c;o<20?(s=nu(r,i,u),c=1518500249):o<40?(s=r^i^u,c=1859775393):o<60?(s=F4(r,i,u),c=2400959708):(s=r^i^u,c=3395469782);const l=fn(t,5)+s+a+c+kn[o]|0;a=u,u=i,i=fn(r,30),r=t,t=l}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,a=a+this.E|0,this.set(t,r,i,u,a)}roundClean(){_e(kn)}destroy(){this.set(0,0,0,0,0),_e(this.buffer)}};Qe(()=>new ok);var sk=Math.pow(2,32),ck=Array.from({length:64},(e,n)=>Math.floor(sk*Math.abs(Math.sin(n+1)))),vu=At.slice(0,4),Us=new Uint32Array(16),lk=class extends si{constructor(){super(64,16,8,!0),this.A=vu[0]|0,this.B=vu[1]|0,this.C=vu[2]|0,this.D=vu[3]|0}get(){const{A:e,B:n,C:t,D:r}=this;return[e,n,t,r]}set(e,n,t,r){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0}process(e,n){for(let a=0;a<16;a++,n+=4)Us[a]=e.getUint32(n,!0);let{A:t,B:r,C:i,D:u}=this;for(let a=0;a<64;a++){let o,s,c;a<16?(o=nu(r,i,u),s=a,c=[7,12,17,22]):a<32?(o=nu(u,r,i),s=(5*a+1)%16,c=[5,9,14,20]):a<48?(o=r^i^u,s=(3*a+5)%16,c=[4,11,16,23]):(o=i^(r|~u),s=7*a%16,c=[6,10,15,21]),o=o+t+ck[a]+Us[s],t=u,u=i,i=r,r=r+fn(o,c[a%4])}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,this.set(t,r,i,u)}roundClean(){_e(Us)}destroy(){this.set(0,0,0,0),_e(this.buffer)}};Qe(()=>new lk);var dk=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Iv=Uint8Array.from(new Array(16).fill(0).map((e,n)=>n)),fk=Iv.map(e=>(9*e+5)%16),xv=(()=>{const t=[[Iv],[fk]];for(let r=0;r<4;r++)for(let i of t)i.push(i[r].map(u=>dk[u]));return t})(),Fv=xv[0],Nv=xv[1],Tv=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),mk=Fv.map((e,n)=>e.map(t=>Tv[n][t])),vk=Nv.map((e,n)=>e.map(t=>Tv[n][t])),pk=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),hk=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function Ov(e,n,t,r){return e===0?n^t^r:e===1?n&t|~n&r:e===2?(n|~t)^r:e===3?n&r|t&~r:n^(t|~r)}var pu=new Uint32Array(16),gk=class extends si{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:n,h2:t,h3:r,h4:i}=this;return[e,n,t,r,i]}set(e,n,t,r,i){this.h0=e|0,this.h1=n|0,this.h2=t|0,this.h3=r|0,this.h4=i|0}process(e,n){for(let m=0;m<16;m++,n+=4)pu[m]=e.getUint32(n,!0);let t=this.h0|0,r=t,i=this.h1|0,u=i,a=this.h2|0,o=a,s=this.h3|0,c=s,l=this.h4|0,f=l;for(let m=0;m<5;m++){const d=4-m,v=pk[m],h=hk[m],b=Fv[m],E=Nv[m],g=mk[m],k=vk[m];for(let _=0;_<16;_++){const B=fn(t+Ov(m,i,a,s)+pu[b[_]]+v,g[_])+l|0;t=l,l=s,s=fn(a,10)|0,a=i,i=B}for(let _=0;_<16;_++){const B=fn(r+Ov(d,u,o,c)+pu[E[_]]+h,k[_])+f|0;r=f,f=c,c=fn(o,10)|0,o=u,u=B}}this.set(this.h1+a+c|0,this.h2+s+f|0,this.h3+l+r|0,this.h4+t+u|0,this.h0+i+o|0)}roundClean(){_e(pu)}destroy(){this.destroyed=!0,_e(this.buffer),this.set(0,0,0,0,0)}};Qe(()=>new gk);function Ek(e){const{source:n}=e,t=new Map,r=new mi(8192),i=new Map,u=({address:a,chainId:o})=>`${a}.${o}`;return{async consume({address:a,chainId:o,client:s}){const c=u({address:a,chainId:o}),l=this.get({address:a,chainId:o,client:s});this.increment({address:a,chainId:o});const f=await l;return await n.set({address:a,chainId:o},f),r.set(c,f),f},async increment({address:a,chainId:o}){const s=u({address:a,chainId:o}),c=t.get(s)??0;t.set(s,c+1)},async get({address:a,chainId:o,client:s}){const c=u({address:a,chainId:o});let l=i.get(c);return l||(l=(async()=>{try{const m=await n.get({address:a,chainId:o,client:s}),d=r.get(c)??0;return d>0&&m<=d?d+1:(r.delete(c),m)}finally{this.reset({address:a,chainId:o})}})(),i.set(c,l)),(t.get(c)??0)+await l},reset({address:a,chainId:o}){const s=u({address:a,chainId:o});t.delete(s),i.delete(s)}}}function yk(){return{async get(e){const{address:n,client:t}=e;return ak(t,{address:n,blockTag:"pending"})},set(){}}}Ek({source:yk()});function bk(e,n={}){const{as:t=typeof e=="string"?"Hex":"Bytes"}=n,r=Cv(Sb(e));return t==="Bytes"?r:mv(r)}var kk=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},Dk={checksum:new kk(8192)},Ps=Dk.checksum,Sk=/^0x[a-fA-F0-9]{40}$/;function zv(e,n={}){const{strict:t=!0}=n;if(!Sk.test(e))throw new Uv({address:e,cause:new Ak});if(t){if(e.toLowerCase()===e)return;if(Bk(e)!==e)throw new Uv({address:e,cause:new wk})}}function Bk(e){if(Ps.has(e))return Ps.get(e);zv(e,{strict:!1});const n=e.substring(2).toLowerCase(),t=bk(wb(n),{as:"Bytes"}),r=n.split("");for(let u=0;u<40;u+=2)t[u>>1]>>4>=8&&r[u]&&(r[u]=r[u].toUpperCase()),(t[u>>1]&15)>=8&&r[u+1]&&(r[u+1]=r[u+1].toUpperCase());const i=`0x${r.join("")}`;return Ps.set(e,i),i}var Uv=class extends ze{constructor({address:e,cause:n}){super(`Address "${e}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}},Ak=class extends ze{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}},wk=class extends ze{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},_k=/^(.*)\[([0-9]*)\]$/,Ck=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,$k=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Rs(e,n){if(e.length!==n.length)throw new xk({expectedLength:e.length,givenLength:n.length});const t=[];for(let r=0;r<e.length;r++){const i=e[r],u=n[r];t.push(Rs.encode(i,u))}return fv(...t)}(function(e){function n(t,r,i=!1){if(t==="address"){const s=r;return zv(s),lu(s.toLowerCase(),i?32:0)}if(t==="string")return Tb(r);if(t==="bytes")return r;if(t==="bool")return lu(Fb(r),i?32:1);const u=t.match($k);if(u){const[s,c,l="256"]=u,f=Number.parseInt(l)/8;return Nb(r,{size:i?32:f,signed:c==="int"})}const a=t.match(Ck);if(a){const[s,c]=a;if(Number.parseInt(c)!==(r.length-2)/2)throw new Ik({expectedSize:Number.parseInt(c),value:r});return Is(r,i?32:0)}const o=t.match(_k);if(o&&Array.isArray(r)){const[s,c]=o,l=[];for(let f=0;f<r.length;f++)l.push(n(c,r[f],!0));return l.length===0?"0x":fv(...l)}throw new Fk(t)}e.encode=n})(Rs||(Rs={}));var Ik=class extends ze{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${xs(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},xk=class extends ze{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${n}`].join(`
481
- `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}},Fk=class extends ze{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}};function Nk(e){if(!/^0[xX][0-9a-fA-F]{40}$/.test(e))return!1;const n="0x"+e.slice(2),t=n.slice(2);return t===t.toLowerCase()||t===t.toUpperCase()?!0:rk(n)}function Pv(e){try{return new vp(e),!0}catch{return!1}}const Rv=e=>Math.round((e+Number.EPSILON)*100)/100;function Tk(e){const n=e.replace(/^data:\w+\/\w+;base64,/,""),t=Buffer.from(n,"base64");return new Uint8Array(t)}class Ok{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:gt,variables:{createDirectPaymentInput:{...n,amount:n.amount}}}))?.createDirectPayment}async getWeb3PaymentParams(n){if(!Nk(n.paymentTokenAddress))throw new Error("Invalid token address");return(await this.client.query({query:qr,variables:{amount:Rv(n.paymentRequest.amountDue),network:n.paymentRequest.network,tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id}}))?.spritzPayParams}async getSolanaPaymentParams(n){if(!Pv(n.paymentTokenAddress))throw new Error(`Invalid token address: ${n.paymentTokenAddress}`);if(!Pv(n.signer))throw new Error(`Invalid signer: ${n.signer}`);const t=await this.client.query({query:Zr,variables:{amount:Rv(n.paymentRequest.amountDue),tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id,signer:n.signer}});return{versionedTransaction:pp.deserialize(Tk(t?.solanaParams?.transactionSerialized??"")),transactionSerialized:t?.solanaParams?.transactionSerialized}}}class zk{client;constructor(n){this.client=n}async accept(n){return this.client.restApi(z("/v1/users/me/terms","post",{body:n}))}}var wt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VerificationFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Verification"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"identity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canRetry"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationMetadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"failureReason"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"details"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"matchedEmail"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:286}};wt.loc.source={body:`fragment VerificationFragment on Verification {
478
+ */var yb="0.1.1";function bb(){return yb}var ze=class Ws extends Error{constructor(n,t={}){const r=(()=>{if(t.cause instanceof Ws){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&typeof t.cause.details=="string"?t.cause.details:t.cause?.message?t.cause.message:t.details})(),i=t.cause instanceof Ws&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${i??""}`,o=[n||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||i?["",r?`Details: ${r}`:void 0,i?`See: ${a}`:void 0]:[]].filter(s=>typeof s=="string").join(`
479
+ `);super(o,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${bb()}`}),this.cause=t.cause,this.details=r,this.docs=a,this.docsPath=i,this.shortMessage=n}walk(n){return sv(this,n)}};function sv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?sv(e.cause,n):n?null:e}function kb(e,n){if(dv(e)>n)throw new $b({givenSize:dv(e),maxSize:n})}var un={zero:48,nine:57,A:65,F:70,a:97,f:102};function cv(e){if(e>=un.zero&&e<=un.nine)return e-un.zero;if(e>=un.A&&e<=un.F)return e-(un.A-10);if(e>=un.a&&e<=un.f)return e-(un.a-10)}function Db(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;if(e.length>r)throw new Ib({size:e.length,targetSize:r,type:"Bytes"});const i=new Uint8Array(r);for(let u=0;u<r;u++){const a=t==="right";i[a?u:r-u-1]=e[a?u:e.length-u-1]}return i}function $s(e,n){if(xs(e)>n)throw new Ub({givenSize:xs(e),maxSize:n})}function lv(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;const i=e.replace("0x","");if(i.length>r*2)throw new Pb({size:Math.ceil(i.length/2),targetSize:r,type:"Hex"});return`0x${i[t==="right"?"padEnd":"padStart"](r*2,"0")}`}new TextDecoder;var Sb=new TextEncoder;function Bb(e){return e instanceof Uint8Array?e:typeof e=="string"?wb(e):Ab(e)}function Ab(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function wb(e,n={}){const{size:t}=n;let r=e;t&&($s(e,t),r=Is(e,t));let i=r.slice(2);i.length%2&&(i=`0${i}`);const u=i.length/2,a=new Uint8Array(u);for(let o=0,s=0;o<u;o++){const c=cv(i.charCodeAt(s++)),l=cv(i.charCodeAt(s++));if(c===void 0||l===void 0)throw new ze(`Invalid byte sequence ("${i[s-2]}${i[s-1]}" in "${i}").`);a[o]=c*16+l}return a}function _b(e,n={}){const{size:t}=n,r=Sb.encode(e);return typeof t=="number"?(kb(r,t),Cb(r,t)):r}function Cb(e,n){return Db(e,{dir:"right",size:n})}function dv(e){return e.length}var $b=class extends ze{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},Ib=class extends ze{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}},xb=new TextEncoder,Fb=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function fv(...e){return`0x${e.reduce((n,t)=>n+t.replace("0x",""),"")}`}function Nb(e,n={}){const t=`0x${Number(e)}`;return typeof n.size=="number"?($s(t,n.size),lu(t,n.size)):t}function mv(e,n={}){let t="";for(let i=0;i<e.length;i++)t+=Fb[e[i]];const r=`0x${t}`;return typeof n.size=="number"?($s(r,n.size),Is(r,n.size)):r}function Tb(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let u;r?t?u=(1n<<BigInt(r)*8n-1n)-1n:u=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(u=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof u=="bigint"&&t?-u-1n:0;if(u&&i>u||i<a){const c=typeof e=="bigint"?"n":"";throw new zb({max:u?`${u}${c}`:void 0,min:`${a}${c}`,signed:t,size:r,value:`${e}${c}`})}const s=`0x${(t&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?lu(s,r):s}function Ob(e,n={}){return mv(xb.encode(e),n)}function lu(e,n){return lv(e,{dir:"left",size:n})}function Is(e,n){return lv(e,{dir:"right",size:n})}function xs(e){return Math.ceil((e.length-2)/2)}var zb=class extends ze{constructor({max:e,min:n,signed:t,size:r,value:i}){super(`Number \`${i}\` is not in safe${r?` ${r*8}-bit`:""}${t?" signed":" unsigned"} integer range ${e?`(\`${n}\` to \`${e}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}},Ub=class extends ze{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},Pb=class extends ze{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}},vv="2.31.7",Fs={getDocsUrl:({docsBaseUrl:e,docsPath:n="",docsSlug:t})=>n?`${e??"https://viem.sh"}${n}${t?`#${t}`:""}`:void 0,version:`viem@${vv}`},du=class Ys extends Error{constructor(n,t={}){const r=t.cause instanceof Ys?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof Ys&&t.cause.docsPath||t.docsPath,u=Fs.getDocsUrl?.({...t,docsPath:i}),a=[n||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...u?[`Docs: ${u}`]:[],...r?[`Details: ${r}`]:[],...Fs.version?[`Version: ${Fs.version}`]:[]].join(`
480
+ `);super(a,t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=n,this.version=vv}walk(n){return pv(this,n)}};function pv(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?pv(e.cause,n):n?null:e}function Ns(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function hv(e){return Ns(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var gv=class extends du{constructor({size:e,targetSize:n,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};function fu(e,{dir:n,size:t=32}={}){return typeof e=="string"?Rb(e,{dir:n,size:t}):jb(e,{dir:n,size:t})}function Rb(e,{dir:n,size:t=32}={}){if(t===null)return e;const r=e.replace("0x","");if(r.length>t*2)throw new gv({size:Math.ceil(r.length/2),targetSize:t,type:"hex"});return`0x${r[n==="right"?"padEnd":"padStart"](t*2,"0")}`}function jb(e,{dir:n,size:t=32}={}){if(t===null)return e;if(e.length>t)throw new gv({size:e.length,targetSize:t,type:"bytes"});const r=new Uint8Array(t);for(let i=0;i<t;i++){const u=n==="right";r[u?i:t-i-1]=e[u?i:e.length-i-1]}return r}var Lb=class extends du{constructor({max:e,min:n,signed:t,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},Zb=class extends du{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}};function mu(e,{size:n}){if(hv(e)>n)throw new Zb({givenSize:hv(e),maxSize:n})}function Vb(e,n={}){const{signed:t}=n;n.size&&mu(e,{size:n.size});const r=BigInt(e);if(!t)return r;const i=(e.length-2)/2,u=(1n<<BigInt(i)*8n-1n)-1n;return r<=u?r:r-BigInt(`0x${"f".padStart(i*2,"f")}`)-1n}function qb(e,n={}){return Number(Vb(e,n))}Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Ts(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let u;r?t?u=(1n<<BigInt(r)*8n-1n)-1n:u=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(u=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof u=="bigint"&&t?-u-1n:0;if(u&&i>u||i<a){const s=typeof e=="bigint"?"n":"";throw new Lb({max:u?`${u}${s}`:void 0,min:`${a}${s}`,signed:t,size:r,value:`${e}${s}`})}const o=`0x${(t&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?fu(o,{size:r}):o}new TextEncoder;var Mb=new TextEncoder;function Gb(e,n={}){return typeof e=="number"||typeof e=="bigint"?Hb(e,n):typeof e=="boolean"?Jb(e,n):Ns(e)?yv(e,n):bv(e,n)}function Jb(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(mu(t,{size:n.size}),fu(t,{size:n.size})):t}var an={zero:48,nine:57,A:65,F:70,a:97,f:102};function Ev(e){if(e>=an.zero&&e<=an.nine)return e-an.zero;if(e>=an.A&&e<=an.F)return e-(an.A-10);if(e>=an.a&&e<=an.f)return e-(an.a-10)}function yv(e,n={}){let t=e;n.size&&(mu(t,{size:n.size}),t=fu(t,{dir:"right",size:n.size}));let r=t.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,u=new Uint8Array(i);for(let a=0,o=0;a<i;a++){const s=Ev(r.charCodeAt(o++)),c=Ev(r.charCodeAt(o++));if(s===void 0||c===void 0)throw new du(`Invalid byte sequence ("${r[o-2]}${r[o-1]}" in "${r}").`);u[a]=s*16+c}return u}function Hb(e,n){const t=Ts(e,n);return yv(t)}function bv(e,n={}){const t=Mb.encode(e);return typeof n.size=="number"?(mu(t,{size:n.size}),fu(t,{dir:"right",size:n.size})):t}var Qb=BigInt(0),fi=BigInt(1),Kb=BigInt(2),Wb=BigInt(7),Yb=BigInt(256),Xb=BigInt(113),kv=[],Dv=[],Sv=[];for(let e=0,n=fi,t=1,r=0;e<24;e++){[t,r]=[r,(2*t+3*r)%5],kv.push(2*(5*r+t)),Dv.push((e+1)*(e+2)/2%64);let i=Qb;for(let u=0;u<7;u++)n=(n<<fi^(n>>Wb)*Xb)%Yb,n&Kb&&(i^=fi<<(fi<<BigInt(u))-fi);Sv.push(i)}var Bv=$4(Sv,!0),ek=Bv[0],nk=Bv[1],Av=(e,n,t)=>t>32?ky(e,n,t):yy(e,n,t),wv=(e,n,t)=>t>32?Dy(e,n,t):by(e,n,t);function tk(e,n=24){const t=new Uint32Array(10);for(let r=24-n;r<24;r++){for(let a=0;a<10;a++)t[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){const o=(a+8)%10,s=(a+2)%10,c=t[s],l=t[s+1],f=Av(c,l,1)^t[o],m=wv(c,l,1)^t[o+1];for(let d=0;d<50;d+=10)e[a+d]^=f,e[a+d+1]^=m}let i=e[2],u=e[3];for(let a=0;a<24;a++){const o=Dv[a],s=Av(i,u,o),c=wv(i,u,o),l=kv[a];i=e[l],u=e[l+1],e[l]=s,e[l+1]=c}for(let a=0;a<50;a+=10){for(let o=0;o<10;o++)t[o]=e[a+o];for(let o=0;o<10;o++)e[a+o]^=~t[(o+2)%10]&t[(o+4)%10]}e[0]^=ek[r],e[1]^=nk[r]}_e(t)}var _v=class mp extends vs{constructor(n,t,r,i=!1,u=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=n,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=u,ri(r),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=cy(this.state)}clone(){return this._cloneInto()}keccak(){y4(this.state32),tk(this.state32,this.rounds),y4(this.state32),this.posOut=0,this.pos=0}update(n){yt(this),n=ai(n),ve(n);const{blockLen:t,state:r}=this,i=n.length;for(let u=0;u<i;){const a=Math.min(t-this.pos,i-u);for(let o=0;o<a;o++)r[this.pos++]^=n[u++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:r,blockLen:i}=this;n[r]^=t,(t&128)!==0&&r===i-1&&this.keccak(),n[i-1]^=128,this.keccak()}writeInto(n){yt(this,!1),ve(n),this.finish();const t=this.state,{blockLen:r}=this;for(let i=0,u=n.length;i<u;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,u-i);n.set(t.subarray(this.posOut,this.posOut+a),i),this.posOut+=a,i+=a}return n}xofInto(n){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return ri(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(E4(n,this),this.finished)throw new Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,_e(this.state)}_cloneInto(n){const{blockLen:t,suffix:r,outputLen:i,rounds:u,enableXOF:a}=this;return n||(n=new mp(t,r,i,a,u)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=u,n.suffix=r,n.outputLen=i,n.enableXOF=a,n.destroyed=this.destroyed,n}},bn=(e,n,t)=>Qe(()=>new _v(n,e,t));bn(6,144,224/8),bn(6,136,256/8),bn(6,104,384/8),bn(6,72,512/8),bn(1,144,224/8);var Cv=bn(1,136,256/8);bn(1,104,384/8),bn(1,72,512/8);var $v=(e,n,t)=>vy((r={})=>new _v(n,e,r.dkLen===void 0?t:r.dkLen,!0));$v(31,168,128/8),$v(31,136,256/8);function ik(e,n){return Cv(Ns(e,{strict:!1})?Gb(e):e)}var mi=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},rk=/^0x[a-fA-F0-9]{40}$/,Os=new mi(8192);function uk(e,n){const{strict:t=!0}={},r=`${e}.${t}`;if(Os.has(r))return Os.get(r);const i=rk.test(e)?e.toLowerCase()===e?!0:t?ak(e)===e:!0:!1;return Os.set(r,i),i}var zs=new mi(8192);function ak(e,n){if(zs.has(`${e}.${n}`))return zs.get(`${e}.${n}`);const t=e.substring(2).toLowerCase(),r=ik(bv(t)),i=t.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&i[a]&&(i[a]=i[a].toUpperCase()),(r[a>>1]&15)>=8&&i[a+1]&&(i[a+1]=i[a+1].toUpperCase());const u=`0x${i.join("")}`;return zs.set(`${e}.${n}`,u),u}async function ok(e,{address:n,blockTag:t="latest",blockNumber:r}){const i=await e.request({method:"eth_getTransactionCount",params:[n,typeof r=="bigint"?Ts(r):t]},{dedupe:!!r});return qb(i)}new mi(128),Ts(0,{size:32}),new mi(8192);var At=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),kn=new Uint32Array(80),sk=class extends si{constructor(){super(64,20,8,!1),this.A=At[0]|0,this.B=At[1]|0,this.C=At[2]|0,this.D=At[3]|0,this.E=At[4]|0}get(){const{A:e,B:n,C:t,D:r,E:i}=this;return[e,n,t,r,i]}set(e,n,t,r,i){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=i|0}process(e,n){for(let o=0;o<16;o++,n+=4)kn[o]=e.getUint32(n,!1);for(let o=16;o<80;o++)kn[o]=fn(kn[o-3]^kn[o-8]^kn[o-14]^kn[o-16],1);let{A:t,B:r,C:i,D:u,E:a}=this;for(let o=0;o<80;o++){let s,c;o<20?(s=nu(r,i,u),c=1518500249):o<40?(s=r^i^u,c=1859775393):o<60?(s=F4(r,i,u),c=2400959708):(s=r^i^u,c=3395469782);const l=fn(t,5)+s+a+c+kn[o]|0;a=u,u=i,i=fn(r,30),r=t,t=l}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,a=a+this.E|0,this.set(t,r,i,u,a)}roundClean(){_e(kn)}destroy(){this.set(0,0,0,0,0),_e(this.buffer)}};Qe(()=>new sk);var ck=Math.pow(2,32),lk=Array.from({length:64},(e,n)=>Math.floor(ck*Math.abs(Math.sin(n+1)))),vu=At.slice(0,4),Us=new Uint32Array(16),dk=class extends si{constructor(){super(64,16,8,!0),this.A=vu[0]|0,this.B=vu[1]|0,this.C=vu[2]|0,this.D=vu[3]|0}get(){const{A:e,B:n,C:t,D:r}=this;return[e,n,t,r]}set(e,n,t,r){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0}process(e,n){for(let a=0;a<16;a++,n+=4)Us[a]=e.getUint32(n,!0);let{A:t,B:r,C:i,D:u}=this;for(let a=0;a<64;a++){let o,s,c;a<16?(o=nu(r,i,u),s=a,c=[7,12,17,22]):a<32?(o=nu(u,r,i),s=(5*a+1)%16,c=[5,9,14,20]):a<48?(o=r^i^u,s=(3*a+5)%16,c=[4,11,16,23]):(o=i^(r|~u),s=7*a%16,c=[6,10,15,21]),o=o+t+lk[a]+Us[s],t=u,u=i,i=r,r=r+fn(o,c[a%4])}t=t+this.A|0,r=r+this.B|0,i=i+this.C|0,u=u+this.D|0,this.set(t,r,i,u)}roundClean(){_e(Us)}destroy(){this.set(0,0,0,0),_e(this.buffer)}};Qe(()=>new dk);var fk=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Iv=Uint8Array.from(new Array(16).fill(0).map((e,n)=>n)),mk=Iv.map(e=>(9*e+5)%16),xv=(()=>{const t=[[Iv],[mk]];for(let r=0;r<4;r++)for(let i of t)i.push(i[r].map(u=>fk[u]));return t})(),Fv=xv[0],Nv=xv[1],Tv=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>Uint8Array.from(e)),vk=Fv.map((e,n)=>e.map(t=>Tv[n][t])),pk=Nv.map((e,n)=>e.map(t=>Tv[n][t])),hk=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),gk=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function Ov(e,n,t,r){return e===0?n^t^r:e===1?n&t|~n&r:e===2?(n|~t)^r:e===3?n&r|t&~r:n^(t|~r)}var pu=new Uint32Array(16),Ek=class extends si{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:n,h2:t,h3:r,h4:i}=this;return[e,n,t,r,i]}set(e,n,t,r,i){this.h0=e|0,this.h1=n|0,this.h2=t|0,this.h3=r|0,this.h4=i|0}process(e,n){for(let m=0;m<16;m++,n+=4)pu[m]=e.getUint32(n,!0);let t=this.h0|0,r=t,i=this.h1|0,u=i,a=this.h2|0,o=a,s=this.h3|0,c=s,l=this.h4|0,f=l;for(let m=0;m<5;m++){const d=4-m,v=hk[m],h=gk[m],b=Fv[m],E=Nv[m],g=vk[m],k=pk[m];for(let _=0;_<16;_++){const B=fn(t+Ov(m,i,a,s)+pu[b[_]]+v,g[_])+l|0;t=l,l=s,s=fn(a,10)|0,a=i,i=B}for(let _=0;_<16;_++){const B=fn(r+Ov(d,u,o,c)+pu[E[_]]+h,k[_])+f|0;r=f,f=c,c=fn(o,10)|0,o=u,u=B}}this.set(this.h1+a+c|0,this.h2+s+f|0,this.h3+l+r|0,this.h4+t+u|0,this.h0+i+o|0)}roundClean(){_e(pu)}destroy(){this.destroyed=!0,_e(this.buffer),this.set(0,0,0,0,0)}};Qe(()=>new Ek);function yk(e){const{source:n}=e,t=new Map,r=new mi(8192),i=new Map,u=({address:a,chainId:o})=>`${a}.${o}`;return{async consume({address:a,chainId:o,client:s}){const c=u({address:a,chainId:o}),l=this.get({address:a,chainId:o,client:s});this.increment({address:a,chainId:o});const f=await l;return await n.set({address:a,chainId:o},f),r.set(c,f),f},async increment({address:a,chainId:o}){const s=u({address:a,chainId:o}),c=t.get(s)??0;t.set(s,c+1)},async get({address:a,chainId:o,client:s}){const c=u({address:a,chainId:o});let l=i.get(c);return l||(l=(async()=>{try{const m=await n.get({address:a,chainId:o,client:s}),d=r.get(c)??0;return d>0&&m<=d?d+1:(r.delete(c),m)}finally{this.reset({address:a,chainId:o})}})(),i.set(c,l)),(t.get(c)??0)+await l},reset({address:a,chainId:o}){const s=u({address:a,chainId:o});t.delete(s),i.delete(s)}}}function bk(){return{async get(e){const{address:n,client:t}=e;return ok(t,{address:n,blockTag:"pending"})},set(){}}}yk({source:bk()});function kk(e,n={}){const{as:t=typeof e=="string"?"Hex":"Bytes"}=n,r=Cv(Bb(e));return t==="Bytes"?r:mv(r)}var Dk=class extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const n=super.get(e);return super.has(e)&&n!==void 0&&(this.delete(e),super.set(e,n)),n}set(e,n){if(super.set(e,n),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}},Sk={checksum:new Dk(8192)},Ps=Sk.checksum,Bk=/^0x[a-fA-F0-9]{40}$/;function zv(e,n={}){const{strict:t=!0}=n;if(!Bk.test(e))throw new Uv({address:e,cause:new wk});if(t){if(e.toLowerCase()===e)return;if(Ak(e)!==e)throw new Uv({address:e,cause:new _k})}}function Ak(e){if(Ps.has(e))return Ps.get(e);zv(e,{strict:!1});const n=e.substring(2).toLowerCase(),t=kk(_b(n),{as:"Bytes"}),r=n.split("");for(let u=0;u<40;u+=2)t[u>>1]>>4>=8&&r[u]&&(r[u]=r[u].toUpperCase()),(t[u>>1]&15)>=8&&r[u+1]&&(r[u+1]=r[u+1].toUpperCase());const i=`0x${r.join("")}`;return Ps.set(e,i),i}var Uv=class extends ze{constructor({address:e,cause:n}){super(`Address "${e}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}},wk=class extends ze{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}},_k=class extends ze{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},Ck=/^(.*)\[([0-9]*)\]$/,$k=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ik=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Rs(e,n){if(e.length!==n.length)throw new Fk({expectedLength:e.length,givenLength:n.length});const t=[];for(let r=0;r<e.length;r++){const i=e[r],u=n[r];t.push(Rs.encode(i,u))}return fv(...t)}(function(e){function n(t,r,i=!1){if(t==="address"){const s=r;return zv(s),lu(s.toLowerCase(),i?32:0)}if(t==="string")return Ob(r);if(t==="bytes")return r;if(t==="bool")return lu(Nb(r),i?32:1);const u=t.match(Ik);if(u){const[s,c,l="256"]=u,f=Number.parseInt(l)/8;return Tb(r,{size:i?32:f,signed:c==="int"})}const a=t.match($k);if(a){const[s,c]=a;if(Number.parseInt(c)!==(r.length-2)/2)throw new xk({expectedSize:Number.parseInt(c),value:r});return Is(r,i?32:0)}const o=t.match(Ck);if(o&&Array.isArray(r)){const[s,c]=o,l=[];for(let f=0;f<r.length;f++)l.push(n(c,r[f],!0));return l.length===0?"0x":fv(...l)}throw new Nk(t)}e.encode=n})(Rs||(Rs={}));var xk=class extends ze{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${xs(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},Fk=class extends ze{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${n}`].join(`
481
+ `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}},Nk=class extends ze{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}};function Tk(e){if(!/^0[xX][0-9a-fA-F]{40}$/.test(e))return!1;const n="0x"+e.slice(2),t=n.slice(2);return t===t.toLowerCase()||t===t.toUpperCase()?!0:uk(n)}function Pv(e){try{return new vp(e),!0}catch{return!1}}const Rv=e=>Math.round((e+Number.EPSILON)*100)/100;function Ok(e){const n=e.replace(/^data:\w+\/\w+;base64,/,""),t=Buffer.from(n,"base64");return new Uint8Array(t)}class zk{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:gt,variables:{createDirectPaymentInput:{...n,amount:n.amount}}}))?.createDirectPayment}async getWeb3PaymentParams(n){if(!Tk(n.paymentTokenAddress))throw new Error("Invalid token address");return(await this.client.query({query:qr,variables:{amount:Rv(n.paymentRequest.amountDue),network:n.paymentRequest.network,tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id}}))?.spritzPayParams}async getSolanaPaymentParams(n){if(!Pv(n.paymentTokenAddress))throw new Error(`Invalid token address: ${n.paymentTokenAddress}`);if(!Pv(n.signer))throw new Error(`Invalid signer: ${n.signer}`);const t=await this.client.query({query:Zr,variables:{amount:Rv(n.paymentRequest.amountDue),tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id,signer:n.signer}});return{versionedTransaction:pp.deserialize(Ok(t?.solanaParams?.transactionSerialized??"")),transactionSerialized:t?.solanaParams?.transactionSerialized}}}class Uk{client;constructor(n){this.client=n}async accept(n){return this.client.restApi(z("/v1/users/me/terms","post",{body:n}))}}var wt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VerificationFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Verification"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"identity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canRetry"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationMetadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"failureReason"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"details"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"matchedEmail"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:286}};wt.loc.source={body:`fragment VerificationFragment on Verification {
482
482
  userId
483
483
  identity {
484
484
  canRetry
@@ -493,14 +493,14 @@ mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInpu
493
493
  }
494
494
  }
495
495
  }
496
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function hu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){hu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){hu(r,n)}),e.definitions&&e.definitions.forEach(function(r){hu(r,n)})}var js={};(function(){wt.definitions.forEach(function(n){if(n.name){var t=new Set;hu(n,t),js[n.name.value]=t}})})();function jv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Uk(e,n){var t={kind:e.kind,definitions:[jv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=js[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=js[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=jv(e,o);s&&t.definitions.push(s)}),t}Uk(wt,"VerificationFragment");var _t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RetryFailedVerification"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retryFailedVerification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}}]}}],loc:{start:0,end:156}};_t.loc.source={body:`#import "../queries/verificationFragment.graphql"
496
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function hu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){hu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){hu(r,n)}),e.definitions&&e.definitions.forEach(function(r){hu(r,n)})}var js={};(function(){wt.definitions.forEach(function(n){if(n.name){var t=new Set;hu(n,t),js[n.name.value]=t}})})();function jv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Pk(e,n){var t={kind:e.kind,definitions:[jv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=js[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=js[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=jv(e,o);s&&t.definitions.push(s)}),t}Pk(wt,"VerificationFragment");var _t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RetryFailedVerification"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retryFailedVerification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}}]}}],loc:{start:0,end:156}};_t.loc.source={body:`#import "../queries/verificationFragment.graphql"
497
497
 
498
498
  mutation RetryFailedVerification {
499
499
  retryFailedVerification {
500
500
  ...VerificationFragment
501
501
  }
502
502
  }
503
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Lv={};function Pk(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Lv[t]?!1:(Lv[t]=!0,!0)})}_t.definitions=_t.definitions.concat(Pk(wt.definitions));function gu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){gu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gu(r,n)}),e.definitions&&e.definitions.forEach(function(r){gu(r,n)})}var Ls={};(function(){_t.definitions.forEach(function(n){if(n.name){var t=new Set;gu(n,t),Ls[n.name.value]=t}})})();function Zv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Rk(e,n){var t={kind:e.kind,definitions:[Zv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ls[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ls[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Zv(e,o);s&&t.definitions.push(s)}),t}Rk(_t,"RetryFailedVerification");var Eu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GetVerificationParams"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getVerificationParams"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inquiryId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sessionToken"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrlExpiresAt"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:165}};Eu.loc.source={body:`mutation GetVerificationParams {
503
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Lv={};function Rk(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Lv[t]?!1:(Lv[t]=!0,!0)})}_t.definitions=_t.definitions.concat(Rk(wt.definitions));function gu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){gu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){gu(r,n)}),e.definitions&&e.definitions.forEach(function(r){gu(r,n)})}var Ls={};(function(){_t.definitions.forEach(function(n){if(n.name){var t=new Set;gu(n,t),Ls[n.name.value]=t}})})();function Zv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function jk(e,n){var t={kind:e.kind,definitions:[Zv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ls[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ls[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Zv(e,o);s&&t.definitions.push(s)}),t}jk(_t,"RetryFailedVerification");var Eu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GetVerificationParams"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getVerificationParams"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"inquiryId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sessionToken"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"verificationUrlExpiresAt"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:165}};Eu.loc.source={body:`mutation GetVerificationParams {
504
504
  getVerificationParams {
505
505
  inquiryId
506
506
  verificationUrl
@@ -508,7 +508,7 @@ mutation RetryFailedVerification {
508
508
  verificationUrlExpiresAt
509
509
  }
510
510
  }
511
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function yu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){yu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){yu(r,n)}),e.definitions&&e.definitions.forEach(function(r){yu(r,n)})}var Zs={};(function(){Eu.definitions.forEach(function(n){if(n.name){var t=new Set;yu(n,t),Zs[n.name.value]=t}})})();function Vv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function jk(e,n){var t={kind:e.kind,definitions:[Vv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Zs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Zs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Vv(e,o);s&&t.definitions.push(s)}),t}jk(Eu,"GetVerificationParams");var vi={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timezone"},arguments:[],directives:[]}]}}],loc:{start:0,end:105}};vi.loc.source={body:`fragment UserFragment on User {
511
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function yu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){yu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){yu(r,n)}),e.definitions&&e.definitions.forEach(function(r){yu(r,n)})}var Zs={};(function(){Eu.definitions.forEach(function(n){if(n.name){var t=new Set;yu(n,t),Zs[n.name.value]=t}})})();function Vv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Lk(e,n){var t={kind:e.kind,definitions:[Vv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Zs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Zs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Vv(e,o);s&&t.definitions.push(s)}),t}Lk(Eu,"GetVerificationParams");var vi={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timezone"},arguments:[],directives:[]}]}}],loc:{start:0,end:105}};vi.loc.source={body:`fragment UserFragment on User {
512
512
  id
513
513
  email
514
514
  firstName
@@ -516,7 +516,7 @@ mutation RetryFailedVerification {
516
516
  createdAt
517
517
  timezone
518
518
  }
519
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function bu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){bu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){bu(r,n)}),e.definitions&&e.definitions.forEach(function(r){bu(r,n)})}var Vs={};(function(){vi.definitions.forEach(function(n){if(n.name){var t=new Set;bu(n,t),Vs[n.name.value]=t}})})();function qv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Lk(e,n){var t={kind:e.kind,definitions:[qv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Vs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Vs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=qv(e,o);s&&t.definitions.push(s)}),t}Lk(vi,"UserFragment");var Dn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CurrentUser"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"verification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}}]}}],loc:{start:0,end:193}};Dn.loc.source={body:`#import "./userFragment.graphql"
519
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function bu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){bu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){bu(r,n)}),e.definitions&&e.definitions.forEach(function(r){bu(r,n)})}var Vs={};(function(){vi.definitions.forEach(function(n){if(n.name){var t=new Set;bu(n,t),Vs[n.name.value]=t}})})();function qv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Zk(e,n){var t={kind:e.kind,definitions:[qv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Vs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Vs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=qv(e,o);s&&t.definitions.push(s)}),t}Zk(vi,"UserFragment");var Dn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CurrentUser"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"verification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}}]}}],loc:{start:0,end:193}};Dn.loc.source={body:`#import "./userFragment.graphql"
520
520
  #import "./verificationFragment.graphql"
521
521
 
522
522
  query CurrentUser {
@@ -527,7 +527,7 @@ query CurrentUser {
527
527
  ...VerificationFragment
528
528
  }
529
529
  }
530
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Mv={};function Gv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Mv[t]?!1:(Mv[t]=!0,!0)})}Dn.definitions=Dn.definitions.concat(Gv(vi.definitions)),Dn.definitions=Dn.definitions.concat(Gv(wt.definitions));function ku(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){ku(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){ku(r,n)}),e.definitions&&e.definitions.forEach(function(r){ku(r,n)})}var qs={};(function(){Dn.definitions.forEach(function(n){if(n.name){var t=new Set;ku(n,t),qs[n.name.value]=t}})})();function Jv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Zk(e,n){var t={kind:e.kind,definitions:[Jv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=qs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Jv(e,o);s&&t.definitions.push(s)}),t}Zk(Dn,"CurrentUser");var Sn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserAccess"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"verification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"bridgeUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kycStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"signedAgreementId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasAcceptedTos"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:356}};Sn.loc.source={body:`#import "./userFragment.graphql"
530
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Mv={};function Gv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Mv[t]?!1:(Mv[t]=!0,!0)})}Dn.definitions=Dn.definitions.concat(Gv(vi.definitions)),Dn.definitions=Dn.definitions.concat(Gv(wt.definitions));function ku(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){ku(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){ku(r,n)}),e.definitions&&e.definitions.forEach(function(r){ku(r,n)})}var qs={};(function(){Dn.definitions.forEach(function(n){if(n.name){var t=new Set;ku(n,t),qs[n.name.value]=t}})})();function Jv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Vk(e,n){var t={kind:e.kind,definitions:[Jv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=qs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=qs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Jv(e,o);s&&t.definitions.push(s)}),t}Vk(Dn,"CurrentUser");var Sn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserAccess"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"verification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VerificationFragment"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"bridgeUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"kycStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tosStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"signedAgreementId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasAcceptedTos"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:356}};Sn.loc.source={body:`#import "./userFragment.graphql"
531
531
  #import "./verificationFragment.graphql"
532
532
 
533
533
  query UserAccess {
@@ -548,7 +548,7 @@ query UserAccess {
548
548
  hasAcceptedTos
549
549
  }
550
550
  }
551
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Hv={};function Qv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Hv[t]?!1:(Hv[t]=!0,!0)})}Sn.definitions=Sn.definitions.concat(Qv(vi.definitions)),Sn.definitions=Sn.definitions.concat(Qv(wt.definitions));function Du(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Du(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Du(r,n)}),e.definitions&&e.definitions.forEach(function(r){Du(r,n)})}var Ms={};(function(){Sn.definitions.forEach(function(n){if(n.name){var t=new Set;Du(n,t),Ms[n.name.value]=t}})})();function Kv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function Vk(e,n){var t={kind:e.kind,definitions:[Kv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ms[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ms[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Kv(e,o);s&&t.definitions.push(s)}),t}Vk(Sn,"UserAccess");var on=(e=>(e.NotStarted="not_started",e.Pending="pending",e.Completed="completed",e.Failed="failed",e))(on||{}),Ue=(e=>(e.IdentityVerification="identity_verification",e.TermsAcceptance="terms_acceptance",e.AdditionalVerification="additional_verification",e.RegionalCompliance="regional_compliance",e.RiskEvaluation="risk_evaluation",e.DocumentSubmission="document_submission",e))(Ue||{}),Su=(e=>(e.AchPurchase="ach_purchase",e.WirePurchase="wire_purchase",e))(Su||{}),pi=(e=>(e.UsBankAccount="us_bank_account",e.UsBills="us_bills",e.UsDebitCard="us_debit_card",e.IbanTransfer="iban_transfer",e.UkBankAccount="uk_bank_account",e.CaBankAccount="ca_bank_account",e))(pi||{}),Wv=(e=>(e.UsVirtualCard="us_virtual_card",e.UsPhysicalCard="us_physical_card",e))(Wv||{}),qk=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(qk||{}),Yv=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(Yv||{}),Xv=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Xv||{}),ep=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(ep||{}),np=(e=>(e.AutoLoan="AutoLoan",e.CreditCard="CreditCard",e.Loan="Loan",e.MobilePhone="MobilePhone",e.Mortgage="Mortgage",e.StudentLoan="StudentLoan",e.Unknown="Unknown",e.Utility="Utility",e))(np||{}),tp=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(tp||{}),ip=(e=>(e.COMPLETED="COMPLETED",e.CONFIRMED="CONFIRMED",e.CREATED="CREATED",e.FAILED="FAILED",e.FAILED_VALIDATION="FAILED_VALIDATION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.TRANSACTION_FAILED="TRANSACTION_FAILED",e.TRANSACTION_PENDING="TRANSACTION_PENDING",e))(ip||{}),Ct=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNDER_REVIEW="UNDER_REVIEW",e.UNINITIALIZED="UNINITIALIZED",e))(Ct||{}),Mk=(e=>(e.AWAITING_FUNDS="AWAITING_FUNDS",e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.ON_HOLD="ON_HOLD",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSED="REVERSED",e))(Mk||{}),Gk=(e=>(e.Provider="Provider",e.User="User",e))(Gk||{}),rp=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(rp||{}),up=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(up||{}),ap=(e=>(e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSAL_IN_PROGRESS="REVERSAL_IN_PROGRESS",e.REVERSED="REVERSED",e.SCHEDULED="SCHEDULED",e.SENT="SENT",e))(ap||{}),Gs=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Gs||{}),Jk=(e=>(e.VerifySms="verify_sms",e.DocumentVerification="documentary_verification",e.RiskCheck="risk_check",e.KycCheck="kyc_check",e.WatchlistScreening="watchlist_screening",e.SelfieCheck="selfie_check",e.AddressInvalid="address_invalid",e.DuplicateIdentity="duplicate_identity",e))(Jk||{}),$t=(e=>(e.NotStarted="not_started",e.Verified="verified",e.Failed="failed",e.Disabled="disabled",e))($t||{});function Hk(e=Ct.INITIALIZED){switch(e){case Ct.FAILED:return"failed";case Ct.ACTIVE:return"verified";case Ct.DISABLED:return"disabled";case Ct.RETRY:return"failed";default:return"not_started"}}function op(e){const n=e?.me??null;if(!n)return null;const t=e?.verification??null,r=t?.identity?.verificationMetadata??null,i=r?.details?.matchedEmail??null,u=r?.failureReason?{failureReason:r.failureReason,details:{matchedEmail:i}}:null;return{...n,verificationStatus:Hk(t?.identity?.status),verificationUrl:t?.identity?.verificationUrl??null,verifiedCountry:t?.identity?.country??null,canRetryVerification:t?.identity?.canRetry??!1,verificationMetadata:u}}function Qk(e,n){return{verified:e===$t.Verified,country:n??null}}function Kk({verificationUrl:e,verificationStatus:n,retryable:t}){if(n!==$t.Verified)return n===$t.Failed?{type:Ue.IdentityVerification,description:"Identity verification failed. Please retry verification.",retryable:t,status:on.Failed}:n===$t.NotStarted?{type:Ue.IdentityVerification,description:"Verify your identity to unlock features",actionUrl:e,status:on.NotStarted}:{type:Ue.IdentityVerification,description:"Identity verification pending review",status:on.Pending}}function Wk(e){try{const n=new URL(e);return n.searchParams.delete("redirect_uri"),n.toString()}catch{return e}}function Yk(e,n){if(!e&&n)return{type:Ue.TermsAcceptance,description:"Please review and accept the terms of service",actionUrl:Wk(n),status:on.NotStarted}}function Xk(e){if(!e)return{type:Ue.IdentityVerification,status:on.NotStarted};if(!(e.status==="active"||e.status==="approved"))return e.status==="rejected"||e.status==="failed"?{type:Ue.IdentityVerification,status:on.Failed}:e.status==="pending"||e.status==="in_review"?{type:Ue.IdentityVerification,status:on.Pending}:{type:Ue.IdentityVerification,status:on.NotStarted}}function eD(e){if(!e)return[];if(!["US"].includes(e.toUpperCase()))return[];const n=[];return e.toUpperCase()==="US"&&n.push(Su.AchPurchase,Su.WirePurchase),n}const nD={US:[pi.UsBankAccount,pi.UsDebitCard],CA:[pi.CaBankAccount]};function tD(e){return e?nD[e.toUpperCase()]??[]:[]}function iD(e){if(!e.verified)return{active:!1,features:[],requirements:[]};const n=tD(e.country??null);return{active:n.length>0,features:n,requirements:[]}}function rD(e,n){const t=eD(e.country??null);if(!e.verified)return{active:!1,features:[],requirements:[]};const r=[],i=Yk(n?.hasAcceptedTos??!1,n?.tosLink);i&&r.push(i);const u=Xk(n);if(u&&r.push(u),t.length===0)return{active:!1,features:[],requirements:r};const a={active:r.length===0,features:r.length===0?t:[],requirements:r};return i?a.nextRequirement=Ue.TermsAcceptance:u&&(a.nextRequirement=Ue.IdentityVerification),a}function uD(e,n,t){const r=e?.bridgeUser,i=e?.verification?.identity?.canRetry??!1,u=e?.verification?.identity?.verificationUrl??null,a=Qk(n,t),o=Kk({verificationStatus:n,retryable:i,verificationUrl:u}),s={onramp:rD(a,r),offramp:iD(a)};return{kycStatus:a,...o&&{kycRequirement:o},capabilities:s}}class aD{client;constructor(n){this.client=n}async createUser(n){return this.client.usesIntegratorAuth?this.client.restApi(z("/v1/integrator/users","post",{body:{email:n.email,...n.timezone?{timezone:n.timezone}:{}}})):this.client.request({method:"post",path:"/users/integration",body:n})}async create(n){return this.createUser(n)}async requestApiKey(n){return this.client.request({method:"post",path:"/users/request-key",body:{email:n}})}async authorizeApiKeyWithOTP(n){return this.client.request({method:"post",path:"/users/validate-key",body:n})}async getMe(){return this.client.restApi(z("/v1/users/me","get"))}async getCurrentUser(){const n=await this.client.query({query:Dn});return op(n)}async retryFailedVerification(){return await this.client.query({query:_t}),this.getCurrentUser()}async getVerificationParams(){return(await this.client.query({query:Eu})).getVerificationParams}async getUserAccess(){const n=await this.client.query({query:Sn}),t=op(n),r=t?.verificationStatus??$t.NotStarted,i=t?.verifiedCountry??null;return uD(n,r,i)}}class oD{client;constructor(n){this.client=n}async createSession(){return this.client.restApi(z("/v1/users/me/verification-sessions/","post"))}}var hi={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualDebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:469}};hi.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
551
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var Hv={};function Qv(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Hv[t]?!1:(Hv[t]=!0,!0)})}Sn.definitions=Sn.definitions.concat(Qv(vi.definitions)),Sn.definitions=Sn.definitions.concat(Qv(wt.definitions));function Du(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Du(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Du(r,n)}),e.definitions&&e.definitions.forEach(function(r){Du(r,n)})}var Ms={};(function(){Sn.definitions.forEach(function(n){if(n.name){var t=new Set;Du(n,t),Ms[n.name.value]=t}})})();function Kv(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function qk(e,n){var t={kind:e.kind,definitions:[Kv(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ms[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Ms[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=Kv(e,o);s&&t.definitions.push(s)}),t}qk(Sn,"UserAccess");var on=(e=>(e.NotStarted="not_started",e.Pending="pending",e.Completed="completed",e.Failed="failed",e))(on||{}),Ue=(e=>(e.IdentityVerification="identity_verification",e.TermsAcceptance="terms_acceptance",e.AdditionalVerification="additional_verification",e.RegionalCompliance="regional_compliance",e.RiskEvaluation="risk_evaluation",e.DocumentSubmission="document_submission",e))(Ue||{}),Su=(e=>(e.AchPurchase="ach_purchase",e.WirePurchase="wire_purchase",e))(Su||{}),pi=(e=>(e.UsBankAccount="us_bank_account",e.UsBills="us_bills",e.UsDebitCard="us_debit_card",e.IbanTransfer="iban_transfer",e.UkBankAccount="uk_bank_account",e.CaBankAccount="ca_bank_account",e))(pi||{}),Wv=(e=>(e.UsVirtualCard="us_virtual_card",e.UsPhysicalCard="us_physical_card",e))(Wv||{}),Mk=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))(Mk||{}),Yv=(e=>(e.AMOUNT_RECEIVED="AMOUNT_RECEIVED",e.TOTAL_AMOUNT="TOTAL_AMOUNT",e))(Yv||{}),Xv=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Xv||{}),ep=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(ep||{}),np=(e=>(e.AutoLoan="AutoLoan",e.CreditCard="CreditCard",e.Loan="Loan",e.MobilePhone="MobilePhone",e.Mortgage="Mortgage",e.StudentLoan="StudentLoan",e.Unknown="Unknown",e.Utility="Utility",e))(np||{}),tp=(e=>(e.Mastercard="Mastercard",e.Visa="Visa",e))(tp||{}),ip=(e=>(e.COMPLETED="COMPLETED",e.CONFIRMED="CONFIRMED",e.CREATED="CREATED",e.FAILED="FAILED",e.FAILED_VALIDATION="FAILED_VALIDATION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.TRANSACTION_FAILED="TRANSACTION_FAILED",e.TRANSACTION_PENDING="TRANSACTION_PENDING",e))(ip||{}),Ct=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNDER_REVIEW="UNDER_REVIEW",e.UNINITIALIZED="UNINITIALIZED",e))(Ct||{}),Gk=(e=>(e.AWAITING_FUNDS="AWAITING_FUNDS",e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.ON_HOLD="ON_HOLD",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSED="REVERSED",e))(Gk||{}),Jk=(e=>(e.Provider="Provider",e.User="User",e))(Jk||{}),rp=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.OneTimePayment="OneTimePayment",e.VirtualCard="VirtualCard",e))(rp||{}),up=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(up||{}),ap=(e=>(e.CANCELLED="CANCELLED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.PENDING="PENDING",e.REFUNDED="REFUNDED",e.REVERSAL_IN_PROGRESS="REVERSAL_IN_PROGRESS",e.REVERSED="REVERSED",e.SCHEDULED="SCHEDULED",e.SENT="SENT",e))(ap||{}),Gs=(e=>(e.USPhysicalDebitCard="USPhysicalDebitCard",e.USVirtualDebitCard="USVirtualDebitCard",e))(Gs||{}),Hk=(e=>(e.VerifySms="verify_sms",e.DocumentVerification="documentary_verification",e.RiskCheck="risk_check",e.KycCheck="kyc_check",e.WatchlistScreening="watchlist_screening",e.SelfieCheck="selfie_check",e.AddressInvalid="address_invalid",e.DuplicateIdentity="duplicate_identity",e))(Hk||{}),$t=(e=>(e.NotStarted="not_started",e.Verified="verified",e.Failed="failed",e.Disabled="disabled",e))($t||{});function Qk(e=Ct.INITIALIZED){switch(e){case Ct.FAILED:return"failed";case Ct.ACTIVE:return"verified";case Ct.DISABLED:return"disabled";case Ct.RETRY:return"failed";default:return"not_started"}}function op(e){const n=e?.me??null;if(!n)return null;const t=e?.verification??null,r=t?.identity?.verificationMetadata??null,i=r?.details?.matchedEmail??null,u=r?.failureReason?{failureReason:r.failureReason,details:{matchedEmail:i}}:null;return{...n,verificationStatus:Qk(t?.identity?.status),verificationUrl:t?.identity?.verificationUrl??null,verifiedCountry:t?.identity?.country??null,canRetryVerification:t?.identity?.canRetry??!1,verificationMetadata:u}}function Kk(e,n){return{verified:e===$t.Verified,country:n??null}}function Wk({verificationUrl:e,verificationStatus:n,retryable:t}){if(n!==$t.Verified)return n===$t.Failed?{type:Ue.IdentityVerification,description:"Identity verification failed. Please retry verification.",retryable:t,status:on.Failed}:n===$t.NotStarted?{type:Ue.IdentityVerification,description:"Verify your identity to unlock features",actionUrl:e,status:on.NotStarted}:{type:Ue.IdentityVerification,description:"Identity verification pending review",status:on.Pending}}function Yk(e){try{const n=new URL(e);return n.searchParams.delete("redirect_uri"),n.toString()}catch{return e}}function Xk(e,n){if(!e&&n)return{type:Ue.TermsAcceptance,description:"Please review and accept the terms of service",actionUrl:Yk(n),status:on.NotStarted}}function eD(e){if(!e)return{type:Ue.IdentityVerification,status:on.NotStarted};if(!(e.status==="active"||e.status==="approved"))return e.status==="rejected"||e.status==="failed"?{type:Ue.IdentityVerification,status:on.Failed}:e.status==="pending"||e.status==="in_review"?{type:Ue.IdentityVerification,status:on.Pending}:{type:Ue.IdentityVerification,status:on.NotStarted}}function nD(e){if(!e)return[];if(!["US"].includes(e.toUpperCase()))return[];const n=[];return e.toUpperCase()==="US"&&n.push(Su.AchPurchase,Su.WirePurchase),n}const tD={US:[pi.UsBankAccount,pi.UsDebitCard],CA:[pi.CaBankAccount]};function iD(e){return e?tD[e.toUpperCase()]??[]:[]}function rD(e){if(!e.verified)return{active:!1,features:[],requirements:[]};const n=iD(e.country??null);return{active:n.length>0,features:n,requirements:[]}}function uD(e,n){const t=nD(e.country??null);if(!e.verified)return{active:!1,features:[],requirements:[]};const r=[],i=Xk(n?.hasAcceptedTos??!1,n?.tosLink);i&&r.push(i);const u=eD(n);if(u&&r.push(u),t.length===0)return{active:!1,features:[],requirements:r};const a={active:r.length===0,features:r.length===0?t:[],requirements:r};return i?a.nextRequirement=Ue.TermsAcceptance:u&&(a.nextRequirement=Ue.IdentityVerification),a}function aD(e,n,t){const r=e?.bridgeUser,i=e?.verification?.identity?.canRetry??!1,u=e?.verification?.identity?.verificationUrl??null,a=Kk(n,t),o=Wk({verificationStatus:n,retryable:i,verificationUrl:u}),s={onramp:uD(a,r),offramp:rD(a)};return{kycStatus:a,...o&&{kycRequirement:o},capabilities:s}}class oD{client;constructor(n){this.client=n}async createUser(n){return this.client.usesIntegratorAuth?this.client.restApi(z("/v1/integrator/users","post",{body:{email:n.email,...n.timezone?{timezone:n.timezone}:{}}})):this.client.request({method:"post",path:"/users/integration",body:n})}async create(n){return this.createUser(n)}async requestApiKey(n){return this.client.request({method:"post",path:"/users/request-key",body:{email:n}})}async authorizeApiKeyWithOTP(n){return this.client.request({method:"post",path:"/users/validate-key",body:n})}async getMe(){return this.client.restApi(z("/v1/users/me","get"))}async getCurrentUser(){const n=await this.client.query({query:Dn});return op(n)}async retryFailedVerification(){return await this.client.query({query:_t}),this.getCurrentUser()}async getVerificationParams(){return(await this.client.query({query:Eu})).getVerificationParams}async getUserAccess(){const n=await this.client.query({query:Sn}),t=op(n),r=t?.verificationStatus??$t.NotStarted,i=t?.verifiedCountry??null;return aD(n,r,i)}}class sD{client;constructor(n){this.client=n}async createSession(){return this.client.restApi(z("/v1/users/me/verification-sessions/","post"))}}var hi={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"VirtualDebitCardFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VirtualCard"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mask"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"balance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"renderSecret"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"virtualCardType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"billingInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"holder"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"street"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"street2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subdivision"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"postalCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryCode"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"paymentAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"network"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:469}};hi.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
552
552
  id
553
553
  name
554
554
  userId
@@ -578,24 +578,24 @@ query UserAccess {
578
578
  address
579
579
  }
580
580
  }
581
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Bu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Bu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Bu(r,n)}),e.definitions&&e.definitions.forEach(function(r){Bu(r,n)})}var Js={};(function(){hi.definitions.forEach(function(n){if(n.name){var t=new Set;Bu(n,t),Js[n.name.value]=t}})})();function sp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function sD(e,n){var t={kind:e.kind,definitions:[sp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Js[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Js[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=sp(e,o);s&&t.definitions.push(s)}),t}sD(hi,"VirtualDebitCardFragment");var It={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateUSVirtualDebitCard"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createUSVirtualDebitCard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualDebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:166}};It.loc.source={body:`#import "../queries/virtualDebitCardFragment.graphql"
581
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};function Bu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Bu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Bu(r,n)}),e.definitions&&e.definitions.forEach(function(r){Bu(r,n)})}var Js={};(function(){hi.definitions.forEach(function(n){if(n.name){var t=new Set;Bu(n,t),Js[n.name.value]=t}})})();function sp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function cD(e,n){var t={kind:e.kind,definitions:[sp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Js[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Js[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=sp(e,o);s&&t.definitions.push(s)}),t}cD(hi,"VirtualDebitCardFragment");var It={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateUSVirtualDebitCard"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createUSVirtualDebitCard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualDebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:166}};It.loc.source={body:`#import "../queries/virtualDebitCardFragment.graphql"
582
582
 
583
583
  mutation CreateUSVirtualDebitCard {
584
584
  createUSVirtualDebitCard {
585
585
  ...VirtualDebitCardFragment
586
586
  }
587
587
  }
588
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var cp={};function cD(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return cp[t]?!1:(cp[t]=!0,!0)})}It.definitions=It.definitions.concat(cD(hi.definitions));function Au(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Au(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Au(r,n)}),e.definitions&&e.definitions.forEach(function(r){Au(r,n)})}var Hs={};(function(){It.definitions.forEach(function(n){if(n.name){var t=new Set;Au(n,t),Hs[n.name.value]=t}})})();function lp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function lD(e,n){var t={kind:e.kind,definitions:[lp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Hs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Hs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=lp(e,o);s&&t.definitions.push(s)}),t}lD(It,"CreateUSVirtualDebitCard");var xt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserVirtualDebitCard"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"virtualDebitCard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualDebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:142}};xt.loc.source={body:`#import "./virtualDebitCardFragment.graphql"
588
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var cp={};function lD(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return cp[t]?!1:(cp[t]=!0,!0)})}It.definitions=It.definitions.concat(lD(hi.definitions));function Au(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){Au(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Au(r,n)}),e.definitions&&e.definitions.forEach(function(r){Au(r,n)})}var Hs={};(function(){It.definitions.forEach(function(n){if(n.name){var t=new Set;Au(n,t),Hs[n.name.value]=t}})})();function lp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function dD(e,n){var t={kind:e.kind,definitions:[lp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Hs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Hs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=lp(e,o);s&&t.definitions.push(s)}),t}dD(It,"CreateUSVirtualDebitCard");var xt={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserVirtualDebitCard"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"virtualDebitCard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VirtualDebitCardFragment"},directives:[]}]}}]}}],loc:{start:0,end:142}};xt.loc.source={body:`#import "./virtualDebitCardFragment.graphql"
589
589
 
590
590
  query UserVirtualDebitCard {
591
591
  virtualDebitCard {
592
592
  ...VirtualDebitCardFragment
593
593
  }
594
594
  }
595
- `,name:"GraphQL request",locationOffset:{line:1,column:1}};var dp={};function dD(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return dp[t]?!1:(dp[t]=!0,!0)})}xt.definitions=xt.definitions.concat(dD(hi.definitions));function wu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){wu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){wu(r,n)}),e.definitions&&e.definitions.forEach(function(r){wu(r,n)})}var Qs={};(function(){xt.definitions.forEach(function(n){if(n.name){var t=new Set;wu(n,t),Qs[n.name.value]=t}})})();function fp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function fD(e,n){var t={kind:e.kind,definitions:[fp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=fp(e,o);s&&t.definitions.push(s)}),t}fD(xt,"UserVirtualDebitCard");const mD={[Gs.USVirtualDebitCard]:e=>({query:It,variables:void 0,response:"createUSVirtualDebitCard"})},vD=(e,n)=>mD[e]?.(n)??null;class pD{client;constructor(n){this.client=n}async fetch(){return(await this.client.query({query:xt}))?.virtualDebitCard??null}async create(n,t){const r=vD(n,t);if(!r)throw new Error("Invalid virtual card type");return(await this.client.query({query:r.query,variables:r.variables}))?.[r.response]??null}}function Ks(e){const n=e;return{id:e.id,integratorId:n.integratorId??"",failureCount:e.failureCount,events:e.events,url:e.url,createdAt:n.createdAt??"",disabled:e.disabled}}class hD{client;constructor(n){this.client=n}async create(n){const t=await this.client.restApi(z("/v1/integrator/webhooks","post",{body:n}));return Ks(t)}async update(n,t){const r=await this.client.restApi(z("/v1/integrator/webhooks/{webhookId}","patch",{params:{webhookId:n},body:t}));return Ks(r)}async updateWebhookSecret(n){return{success:(await this.client.restApi(z("/v1/integrator/webhook-secret","post",{body:{secret:n}}))).secretConfigured}}async list(){return(await this.client.restApi(z("/v1/integrator/webhooks","get"))).map(Ks)}async delete(n){const t=await this.list().then(r=>r.find(i=>i.id===n)).catch(()=>{});return await this.client.restApi(z("/v1/integrator/webhooks/{webhookId}","delete",{params:{webhookId:n}})),t??{id:n,integratorId:"",failureCount:0,events:[],url:"",createdAt:"",disabled:!0}}}class Xs{environment;apiKey;integrationKey;integratorSecret;client;user;verification;compliance;terms;bankAccount;debitCard;deposit;achDebit;achDebitReturn;fundingSource;paymentRequest;payment;onrampPayment;onramp;offramp;offRampQuote;virtualAccounts;autoRampAccount;virtualCard;bill;institution;sandbox;webhook;constructor(n,t,r,i,u){if(t===void 0&&r===void 0)throw new Error("The integrationKey or apiKey variable appears to be missing or empty. Please ensure you provide it, or when initializing the SpritzApiClient, opt for the integratorKey option.");if(i&&!r)throw new Error("integratorSecret requires integrationKey to be provided. Both are needed for HMAC-signed REST API requests.");if(this.environment=n,this.apiKey=t,this.integrationKey=r,this.integratorSecret=i,!u&&Lh())throw new Error(`It seems you're operating within a browser environment.
595
+ `,name:"GraphQL request",locationOffset:{line:1,column:1}};var dp={};function fD(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return dp[t]?!1:(dp[t]=!0,!0)})}xt.definitions=xt.definitions.concat(fD(hi.definitions));function wu(e,n){if(e.kind==="FragmentSpread")n.add(e.name.value);else if(e.kind==="VariableDefinition"){var t=e.type;t.kind==="NamedType"&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(r){wu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){wu(r,n)}),e.definitions&&e.definitions.forEach(function(r){wu(r,n)})}var Qs={};(function(){xt.definitions.forEach(function(n){if(n.name){var t=new Set;wu(n,t),Qs[n.name.value]=t}})})();function fp(e,n){for(var t=0;t<e.definitions.length;t++){var r=e.definitions[t];if(r.name&&r.name.value==n)return r}}function mD(e,n){var t={kind:e.kind,definitions:[fp(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Qs[n]||new Set,i=new Set,u=new Set;for(r.forEach(function(o){u.add(o)});u.size>0;){var a=u;u=new Set,a.forEach(function(o){if(!i.has(o)){i.add(o);var s=Qs[o]||new Set;s.forEach(function(c){u.add(c)})}})}return i.forEach(function(o){var s=fp(e,o);s&&t.definitions.push(s)}),t}mD(xt,"UserVirtualDebitCard");const vD={[Gs.USVirtualDebitCard]:e=>({query:It,variables:void 0,response:"createUSVirtualDebitCard"})},pD=(e,n)=>vD[e]?.(n)??null;class hD{client;constructor(n){this.client=n}async fetch(){return(await this.client.query({query:xt}))?.virtualDebitCard??null}async create(n,t){const r=pD(n,t);if(!r)throw new Error("Invalid virtual card type");return(await this.client.query({query:r.query,variables:r.variables}))?.[r.response]??null}}function Ks(e){const n=e;return{id:e.id,integratorId:n.integratorId??"",failureCount:e.failureCount,events:e.events,url:e.url,createdAt:n.createdAt??"",disabled:e.disabled}}class gD{client;constructor(n){this.client=n}async create(n){const t=await this.client.restApi(z("/v1/integrator/webhooks","post",{body:n}));return Ks(t)}async update(n,t){const r=await this.client.restApi(z("/v1/integrator/webhooks/{webhookId}","patch",{params:{webhookId:n},body:t}));return Ks(r)}async updateWebhookSecret(n){return{success:(await this.client.restApi(z("/v1/integrator/webhook-secret","post",{body:{secret:n}}))).secretConfigured}}async list(){return(await this.client.restApi(z("/v1/integrator/webhooks","get"))).map(Ks)}async delete(n){const t=await this.list().then(r=>r.find(i=>i.id===n)).catch(()=>{});return await this.client.restApi(z("/v1/integrator/webhooks/{webhookId}","delete",{params:{webhookId:n}})),t??{id:n,integratorId:"",failureCount:0,events:[],url:"",createdAt:"",disabled:!0}}}class Xs{environment;apiKey;integrationKey;integratorSecret;client;user;verification;compliance;terms;bankAccount;debitCard;deposit;achDebit;achDebitReturn;fundingSource;paymentRequest;payment;onrampPayment;onramp;offramp;offRampQuote;virtualAccounts;autoRampAccount;virtualCard;bill;institution;sandbox;webhook;connect;constructor(n,t,r,i,u){if(t===void 0&&r===void 0)throw new Error("The integrationKey or apiKey variable appears to be missing or empty. Please ensure you provide it, or when initializing the SpritzApiClient, opt for the integratorKey option.");if(i&&!r)throw new Error("integratorSecret requires integrationKey to be provided. Both are needed for HMAC-signed REST API requests.");if(this.environment=n,this.apiKey=t,this.integrationKey=r,this.integratorSecret=i,!u&&Gh())throw new Error(`It seems you're operating within a browser environment.
596
596
 
597
597
  By default, this is deactivated due to the potential risk of exposing your confidential integrator credentials.
598
598
  If you're aware of these risks and have taken necessary security measures, you can enable the \`dangerouslyAllowBrowser\` option, e.g.,
599
599
 
600
600
  SpritzApiClient.initialize({ apiKey, dangerouslyAllowBrowser: true });
601
- `)}static initialize({environment:n=Cu.Sandbox,apiKey:t,integrationKey:r,integratorSecret:i,dangerouslyAllowBrowser:u=!1}){const a=new Xs(n,t,r,i,u);return a.init(),a}init(){this.client=new dg({environment:this.environment,apiKey:this.apiKey,integrationKey:this.integrationKey,integratorSecret:this.integratorSecret}),this.user=new aD(this.client),this.verification=new oD(this.client),this.compliance=new Ig(this.client),this.terms=new zk(this.client),this.bankAccount=new Eg(this.client),this.debitCard=new yE(this.client),this.deposit=new kE(this.client),this.achDebit=new hg(this.client),this.achDebitReturn=new gg(this.client),this.fundingSource=new DE(this.client),this.paymentRequest=new Ok(this.client),this.payment=new ny(this.client),this.onrampPayment=new OE(this.client),this.onramp=new RE(this.client),this.offramp=new IE(this.client),this.offRampQuote=new xE(this.client),this.virtualAccounts=new GE(this.client),this.autoRampAccount=new JE(this.client),this.virtualCard=new pD(this.client),this.bill=new $g(this.client),this.institution=new CE(this.client),this.sandbox=new $E(this.client),this.webhook=new hD(this.client)}setApiKey(n){return this.apiKey=n,this.init(),this}}export{Oi as APIConnectionError,Zc as APIConnectionTimeoutError,be as APIError,Gh as APIUserAbortError,Yv as AmountMode,qc as AuthenticationError,Vc as BadRequestError,Xv as BankAccountSubType,ep as BankAccountType,np as BillType,Wv as CardFeatureType,Jc as ConflictError,tp as DebitCardNetwork,Cu as Environment,Kc as InternalServerError,Gc as NotFoundError,pi as OfframpFeatureType,Su as OnrampFeatureType,rp as PayableAccountType,up as PaymentDeliveryMethod,Je as PaymentNetwork,ip as PaymentRequestStatus,ap as PaymentStatus,Mc as PermissionDeniedError,Qc as RateLimitError,Ue as RequirementType,Xs as SpritzApiClient,Lc as SpritzApiError,Hc as UnprocessableEntityError,Gs as VirtualCardType,Hh as hasProblemCode,Jh as hasProblemType,qu as isAPIError,u4 as onrampSupportedTokens};
601
+ `)}static initialize({environment:n=Cu.Sandbox,apiKey:t,integrationKey:r,integratorSecret:i,dangerouslyAllowBrowser:u=!1}){const a=new Xs(n,t,r,i,u);return a.init(),a}init(){this.client=new hg({environment:this.environment,apiKey:this.apiKey,integrationKey:this.integrationKey,integratorSecret:this.integratorSecret}),this.user=new oD(this.client),this.verification=new sD(this.client),this.compliance=new xg(this.client),this.terms=new Uk(this.client),this.bankAccount=new yg(this.client),this.debitCard=new bE(this.client),this.deposit=new DE(this.client),this.achDebit=new gg(this.client),this.achDebitReturn=new Eg(this.client),this.fundingSource=new SE(this.client),this.paymentRequest=new zk(this.client),this.payment=new ty(this.client),this.onrampPayment=new zE(this.client),this.onramp=new jE(this.client),this.offramp=new xE(this.client),this.offRampQuote=new FE(this.client),this.virtualAccounts=new JE(this.client),this.autoRampAccount=new HE(this.client),this.virtualCard=new hD(this.client),this.bill=new Ig(this.client),this.institution=new $E(this.client),this.sandbox=new IE(this.client),this.webhook=new gD(this.client),this.connect=new bp(this.client)}setApiKey(n){return this.apiKey=n,this.init(),this}}export{Oi as APIConnectionError,Zc as APIConnectionTimeoutError,be as APIError,Wh as APIUserAbortError,Yv as AmountMode,qc as AuthenticationError,Vc as BadRequestError,Xv as BankAccountSubType,ep as BankAccountType,np as BillType,Wv as CardFeatureType,Jc as ConflictError,tp as DebitCardNetwork,Cu as Environment,Kc as InternalServerError,Gc as NotFoundError,pi as OfframpFeatureType,Su as OnrampFeatureType,rp as PayableAccountType,up as PaymentDeliveryMethod,Je as PaymentNetwork,ip as PaymentRequestStatus,ap as PaymentStatus,Mc as PermissionDeniedError,Qc as RateLimitError,Ue as RequirementType,Xs as SpritzApiClient,Lc as SpritzApiError,Hc as UnprocessableEntityError,Gs as VirtualCardType,Xh as hasProblemCode,Yh as hasProblemType,qu as isAPIError,u4 as onrampSupportedTokens};