@spritz-finance/api-client 0.3.2 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/spritz-api-client.cjs +491 -0
- package/dist/spritz-api-client.d.ts +220 -157
- package/dist/spritz-api-client.mjs +95 -53
- package/package.json +44 -25
- package/dist/spritz-api-client.js +0 -449
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
"use strict";var ti=(e=>(e.Staging="staging",e.Production="production",e))(ti||{}),Hm=Object.defineProperty,En=(e,n)=>{for(var t in n)Hm(e,t,{get:n[t],enumerable:!0})};function au(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?au=function(t){return typeof t}:au=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function yn(e){return au(e)=="object"&&e!==null}var hs=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",Ce=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function ui(e,n){for(var t=/\r\n|[\n\r]/g,r=1,u=n+1,i;(i=t.exec(e.body))&&i.index<n;)r+=1,u=n+1-(i.index+i[0].length);return{line:r,column:u}}function Km(e){return gs(e.source,ui(e.source,e.start))}function gs(e,n){var t=e.locationOffset.column-1,r=ou(t)+e.body,u=n.line-1,i=e.locationOffset.line-1,a=n.line+i,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[u];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+Es([["".concat(a),v[0]]].concat(v.slice(1,m+1).map(function(b){return["",b]}),[[" ",ou(d-1)+"^"],["",v[m+1]]]))}return c+Es([["".concat(a-1),l[u-1]],["".concat(a),f],["",ou(s-1)+"^"],["".concat(a+1),l[u+1]]])}function Es(e){var n=e.filter(function(r){r[0];var u=r[1];return u!==void 0}),t=Math.max.apply(Math,n.map(function(r){var u=r[0];return u.length}));return n.map(function(r){var u=r[0],i=r[1];return Qm(t,u)+(i?" | "+i:" |")}).join(`
|
|
3
|
+
`)}function ou(e){return Array(e+1).join(" ")}function Qm(e,n){return ou(e-n.length)+n}function su(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?su=function(t){return typeof t}:su=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}function ys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),t.push.apply(t,r)}return t}function Wm(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ys(Object(t),!0).forEach(function(r){Ym(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ym(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Xm(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function ev(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 nv(e,n,t){return n&&ev(e.prototype,n),e}function tv(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&&At(e,n)}function uv(e){var n=ks();return function(){var r=St(e),u;if(n){var i=St(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return bs(this,u)}}function bs(e,n){return n&&(su(n)==="object"||typeof n=="function")?n:_t(e)}function _t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(e){var n=typeof Map=="function"?new Map:void 0;return ri=function(r){if(r===null||!rv(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,u)}function u(){return cu(r,arguments,St(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),At(u,r)},ri(e)}function cu(e,n,t){return ks()?cu=Reflect.construct:cu=function(u,i,a){var o=[null];o.push.apply(o,i);var s=Function.bind.apply(u,o),c=new s;return a&&At(c,a.prototype),c},cu.apply(null,arguments)}function ks(){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 rv(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function At(e,n){return At=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},At(e,n)}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},St(e)}var ee=function(e){tv(t,e);var n=uv(t);function t(r,u,i,a,o,s,c){var l,f,m,d;Xm(this,t),d=n.call(this,r),d.name="GraphQLError",d.originalError=s??void 0,d.nodes=Ds(Array.isArray(u)?u:u?[u]:void 0);for(var v=[],h=0,b=(y=d.nodes)!==null&&y!==void 0?y:[];h<b.length;h++){var y,E=b[h],k=E.loc;k!=null&&v.push(k)}v=Ds(v),d.source=i??((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(_){return _.start})),d.locations=a&&i?a.map(function(_){return ui(i,_)}):(m=v)===null||m===void 0?void 0:m.map(function(_){return ui(_.source,_.start)}),d.path=o??void 0;var w=s?.extensions;return c==null&&yn(w)?d.extensions=Wm({},w):d.extensions=c??{},Object.defineProperties(_t(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(_t(d),"stack",{value:s.stack,writable:!0,configurable:!0}),bs(d)):(Error.captureStackTrace?Error.captureStackTrace(_t(d),t):Object.defineProperty(_t(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return nv(t,[{key:"toString",value:function(){return iv(this)}},{key:Ce,get:function(){return"Object"}}]),t}(ri(Error));function Ds(e){return e===void 0||e.length===0?void 0:e}function iv(e){var n=e.message;if(e.nodes)for(var t=0,r=e.nodes;t<r.length;t++){var u=r[t];u.loc&&(n+=`
|
|
4
|
+
|
|
5
|
+
`+Km(u.loc))}else if(e.source&&e.locations)for(var i=0,a=e.locations;i<a.length;i++){var o=a[i];n+=`
|
|
6
|
+
|
|
7
|
+
`+gs(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 wt(e,n){var t=!!e;if(!t)throw new Error(n??"Unexpected invariant triggered.")}var av=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,ii=av;function Te(e){var n=e.prototype.toJSON;typeof n=="function"||wt(0),e.prototype.inspect=n,ii&&(e.prototype[ii]=n)}var ov=function(){function e(t,r,u){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=u}var n=e.prototype;return n.toJSON=function(){return{start:this.start,end:this.end}},e}();Te(ov);var sv=function(){function e(t,r,u,i,a,o,s){this.kind=t,this.start=r,this.end=u,this.line=i,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}();Te(sv);function ai(e){return e!=null&&typeof e.kind=="string"}function lu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lu=function(t){return typeof t}:lu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}var cv=10,Bs=2;function J(e){return du(e,[])}function du(e,n){switch(lu(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":lv(e,n);default:return String(e)}}function lv(e,n){if(n.indexOf(e)!==-1)return"[Circular]";var t=[].concat(n,[e]),r=mv(e);if(r!==void 0){var u=r.call(e);if(u!==e)return typeof u=="string"?u:du(u,t)}else if(Array.isArray(e))return fv(e,t);return dv(e,t)}function dv(e,n){var t=Object.keys(e);if(t.length===0)return"{}";if(n.length>Bs)return"["+vv(e)+"]";var r=t.map(function(u){var i=du(e[u],n);return u+": "+i});return"{ "+r.join(", ")+" }"}function fv(e,n){if(e.length===0)return"[]";if(n.length>Bs)return"[Array]";for(var t=Math.min(cv,e.length),r=e.length-t,u=[],i=0;i<t;++i)u.push(du(e[i],n));return r===1?u.push("... 1 more item"):r>1&&u.push("... ".concat(r," more items")),"["+u.join(", ")+"]"}function mv(e){var n=e[String(ii)];if(typeof n=="function")return n;if(typeof e.inspect=="function")return e.inspect}function vv(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 fu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fu=function(t){return typeof t}:fu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}var Ge=function(n,t){if(n instanceof t)return!0;if(fu(n)==="object"&&n!==null){var r,u=t.prototype[Symbol.toStringTag],i=Symbol.toStringTag in n?n[Symbol.toStringTag]:(r=n.constructor)===null||r===void 0?void 0:r.name;if(u===i){var a=J(n);throw new Error("Cannot use ".concat(u,' "').concat(a,`" from another module or realm.
|
|
8
|
+
|
|
9
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
10
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
11
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
12
|
+
|
|
13
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
14
|
+
|
|
15
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
16
|
+
versions may have different capabilities and behavior. The data from one
|
|
17
|
+
version used in the function from another could produce confusing and
|
|
18
|
+
spurious results.`))}}return!1};function pv(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 hv(e,n,t){return n&&pv(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(J(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 hv(e,[{key:Ce,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 gv(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
|
+
`)===-1,u=e[0]===" "||e[0]===" ",i=e[e.length-1]==='"',a=e[e.length-1]==="\\",o=!r||i||a||t,s="";return o&&!(r&&u)&&(s+=`
|
|
20
|
+
`+n),s+=n?e.replace(/\n/g,`
|
|
21
|
+
`+n):e,o&&(s+=`
|
|
22
|
+
`),'"""'+s.replace(/"""/g,'\\"""')+'"""'}var Ev={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"]},yv=Object.freeze({});function _s(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ev,r=void 0,u=Array.isArray(e),i=[e],a=-1,o=[],s=void 0,c=void 0,l=void 0,f=[],m=[],d=e;do{a++;var v=a===i.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(u)s=s.slice();else{for(var b={},y=0,E=Object.keys(s);y<E.length;y++){var k=E[y];b[k]=s[k]}s=b}for(var w=0,_=0;_<o.length;_++){var G=o[_][0],V=o[_][1];u&&(G-=w),u&&V===null?(s.splice(G,1),w++):s[G]=V}}a=r.index,i=r.keys,o=r.edits,u=r.inArray,r=r.prev}else{if(c=l?u?a:i[a]:void 0,s=l?l[c]:d,s==null)continue;l&&f.push(c)}var F=void 0;if(!Array.isArray(s)){if(!ai(s))throw new Error("Invalid AST Node: ".concat(J(s),"."));var g=oi(n,s.kind,v);if(g){if(F=g.call(n,s,c,l,f,m),F===yv)break;if(F===!1){if(!v){f.pop();continue}}else if(F!==void 0&&(o.push([c,F]),!v))if(ai(F))s=F;else{f.pop();continue}}}if(F===void 0&&h&&o.push([c,s]),v)f.pop();else{var $;r={inArray:u,index:a,keys:i,edits:o,prev:r},u=Array.isArray(s),i=u?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 oi(e,n,t){var r=e[n];if(r){if(!t&&typeof r=="function")return r;var u=t?r.leave:r.enter;if(typeof u=="function")return u}else{var i=t?e.leave:e.enter;if(i){if(typeof i=="function")return i;var a=i[n];if(typeof a=="function")return a}}}var bv=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}},As=bv,kv=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},bn=kv,Dv=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})},Ct=Dv;function Ss(e,n){return e.reduce(function(t,r){return t[n(r)]=r,t},Object.create(null))}function mu(e,n){for(var t=Object.create(null),r=0,u=Ct(e);r<u.length;r++){var i=u[r],a=i[0],o=i[1];t[a]=n(o,a)}return t}function Ae(e){if(Object.getPrototypeOf(e)===null)return e;for(var n=Object.create(null),t=0,r=Ct(e);t<r.length;t++){var u=r[t],i=u[0],a=u[1];n[i]=a}return n}function si(e,n,t){return e.reduce(function(r,u){return r[n(u)]=t(u),r},Object.create(null))}var Bv=5;function _v(e,n){var t=[e,n],r=t[0],u=t[1],i=" Did you mean ";i+=r+" ";var a=u.map(function(c){return'"'.concat(c,'"')});switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}var o=a.slice(0,Bv),s=o.pop();return i+o.join(", ")+", or "+s+"?"}function ws(e){return e}function Av(e,n){for(var t=0,r=0;t<e.length&&r<n.length;){var u=e.charCodeAt(t),i=n.charCodeAt(r);if(vu(u)&&vu(i)){var a=0;do++t,a=a*10+u-ci,u=e.charCodeAt(t);while(vu(u)&&a>0);var o=0;do++r,o=o*10+i-ci,i=n.charCodeAt(r);while(vu(i)&&o>0);if(a<o)return-1;if(a>o)return 1}else{if(u<i)return-1;if(u>i)return 1;++t,++r}}return e.length-n.length}var ci=48,Sv=57;function vu(e){return!isNaN(e)&&ci<=e&&e<=Sv}function wv(e,n){for(var t=Object.create(null),r=new Cv(e),u=Math.floor(e.length*.4)+1,i=0;i<n.length;i++){var a=n[i],o=r.measure(a,u);o!==void 0&&(t[a]=o)}return Object.keys(t).sort(function(s,c){var l=t[s]-t[c];return l!==0?l:Av(s,c)})}var Cv=function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Cs(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,u){if(this._input===r)return 0;var i=r.toLowerCase();if(this._inputLowerCase===i)return 1;var a=Cs(i),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>u)){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,y=1;y<=l;y++){var E=a[d-1]===o[y-1]?0:1,k=Math.min(v[y]+1,h[y-1]+1,v[y-1]+E);if(d>1&&y>1&&a[d-1]===o[y-2]&&a[d-2]===o[y-1]){var w=f[(d-2)%3][y-2];k=Math.min(k,w+1)}k<b&&(b=k),h[y]=k}if(b>u)return}var _=f[c%3][l];return _<=u?_:void 0}},e}();function Cs(e){for(var n=e.length,t=new Array(n),r=0;r<n;++r)t[r]=e.charCodeAt(r);return t}function Je(e){return _s(e,{leave:xv})}var $v=80,xv={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return x(n.definitions,`
|
|
23
|
+
|
|
24
|
+
`)+`
|
|
25
|
+
`},OperationDefinition:function(n){var t=n.operation,r=n.name,u=ne("(",x(n.variableDefinitions,", "),")"),i=x(n.directives," "),a=n.selectionSet;return!r&&!i&&!u&&t==="query"?a:x([t,x([r,u]),i,a]," ")},VariableDefinition:function(n){var t=n.variable,r=n.type,u=n.defaultValue,i=n.directives;return t+": "+r+ne(" = ",u)+ne(" ",x(i," "))},SelectionSet:function(n){var t=n.selections;return ze(t)},Field:function(n){var t=n.alias,r=n.name,u=n.arguments,i=n.directives,a=n.selectionSet,o=ne("",t,": ")+r,s=o+ne("(",x(u,", "),")");return s.length>$v&&(s=o+ne(`(
|
|
26
|
+
`,pu(x(u,`
|
|
27
|
+
`)),`
|
|
28
|
+
)`)),x([s,x(i," "),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+ne(" ",x(r," "))},InlineFragment:function(n){var t=n.typeCondition,r=n.directives,u=n.selectionSet;return x(["...",ne("on ",t),x(r," "),u]," ")},FragmentDefinition:function(n){var t=n.name,r=n.typeCondition,u=n.variableDefinitions,i=n.directives,a=n.selectionSet;return"fragment ".concat(t).concat(ne("(",x(u,", "),")")," ")+"on ".concat(r," ").concat(ne("",x(i," ")," "))+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,u=n.block;return u?gv(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"["+x(t,", ")+"]"},ObjectValue:function(n){var t=n.fields;return"{"+x(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+ne("(",x(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:Oe(function(e){var n=e.directives,t=e.operationTypes;return x(["schema",x(n," "),ze(t)]," ")}),OperationTypeDefinition:function(n){var t=n.operation,r=n.type;return t+": "+r},ScalarTypeDefinition:Oe(function(e){var n=e.name,t=e.directives;return x(["scalar",n,x(t," ")]," ")}),ObjectTypeDefinition:Oe(function(e){var n=e.name,t=e.interfaces,r=e.directives,u=e.fields;return x(["type",n,ne("implements ",x(t," & ")),x(r," "),ze(u)]," ")}),FieldDefinition:Oe(function(e){var n=e.name,t=e.arguments,r=e.type,u=e.directives;return n+($s(t)?ne(`(
|
|
29
|
+
`,pu(x(t,`
|
|
30
|
+
`)),`
|
|
31
|
+
)`):ne("(",x(t,", "),")"))+": "+r+ne(" ",x(u," "))}),InputValueDefinition:Oe(function(e){var n=e.name,t=e.type,r=e.defaultValue,u=e.directives;return x([n+": "+t,ne("= ",r),x(u," ")]," ")}),InterfaceTypeDefinition:Oe(function(e){var n=e.name,t=e.interfaces,r=e.directives,u=e.fields;return x(["interface",n,ne("implements ",x(t," & ")),x(r," "),ze(u)]," ")}),UnionTypeDefinition:Oe(function(e){var n=e.name,t=e.directives,r=e.types;return x(["union",n,x(t," "),r&&r.length!==0?"= "+x(r," | "):""]," ")}),EnumTypeDefinition:Oe(function(e){var n=e.name,t=e.directives,r=e.values;return x(["enum",n,x(t," "),ze(r)]," ")}),EnumValueDefinition:Oe(function(e){var n=e.name,t=e.directives;return x([n,x(t," ")]," ")}),InputObjectTypeDefinition:Oe(function(e){var n=e.name,t=e.directives,r=e.fields;return x(["input",n,x(t," "),ze(r)]," ")}),DirectiveDefinition:Oe(function(e){var n=e.name,t=e.arguments,r=e.repeatable,u=e.locations;return"directive @"+n+($s(t)?ne(`(
|
|
32
|
+
`,pu(x(t,`
|
|
33
|
+
`)),`
|
|
34
|
+
)`):ne("(",x(t,", "),")"))+(r?" repeatable":"")+" on "+x(u," | ")}),SchemaExtension:function(n){var t=n.directives,r=n.operationTypes;return x(["extend schema",x(t," "),ze(r)]," ")},ScalarTypeExtension:function(n){var t=n.name,r=n.directives;return x(["extend scalar",t,x(r," ")]," ")},ObjectTypeExtension:function(n){var t=n.name,r=n.interfaces,u=n.directives,i=n.fields;return x(["extend type",t,ne("implements ",x(r," & ")),x(u," "),ze(i)]," ")},InterfaceTypeExtension:function(n){var t=n.name,r=n.interfaces,u=n.directives,i=n.fields;return x(["extend interface",t,ne("implements ",x(r," & ")),x(u," "),ze(i)]," ")},UnionTypeExtension:function(n){var t=n.name,r=n.directives,u=n.types;return x(["extend union",t,x(r," "),u&&u.length!==0?"= "+x(u," | "):""]," ")},EnumTypeExtension:function(n){var t=n.name,r=n.directives,u=n.values;return x(["extend enum",t,x(r," "),ze(u)]," ")},InputObjectTypeExtension:function(n){var t=n.name,r=n.directives,u=n.fields;return x(["extend input",t,x(r," "),ze(u)]," ")}};function Oe(e){return function(n){return x([n.description,e(n)],`
|
|
35
|
+
`)}}function x(e){var n,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(n=e?.filter(function(r){return r}).join(t))!==null&&n!==void 0?n:""}function ze(e){return ne(`{
|
|
36
|
+
`,pu(x(e,`
|
|
37
|
+
`)),`
|
|
38
|
+
}`)}function ne(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return n!=null&&n!==""?e+n+t:""}function pu(e){return ne(" ",e.replace(/\n/g,`
|
|
39
|
+
`))}function Iv(e){return e.indexOf(`
|
|
40
|
+
`)!==-1}function $s(e){return e!=null&&e.some(Iv)}function li(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 li(t,n)});case C.OBJECT:return si(e.fields,function(t){return t.name.value},function(t){return li(t.value,n)});case C.VARIABLE:return n?.[e.name.value]}wt(0,"Unexpected value node: "+J(e))}function Fv(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 zn(e,n,t){return n&&Fv(e.prototype,n),e}function xs(e){return $t(e)||Ze(e)||$e(e)||tn(e)||un(e)||kn(e)||xt(e)||Un(e)}function Nv(e){if(!xs(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL type."));return e}function $t(e){return Ge(e,Dn)}function Ze(e){return Ge(e,rn)}function $e(e){return Ge(e,Os)}function tn(e){return Ge(e,zs)}function un(e){return Ge(e,Eu)}function kn(e){return Ge(e,Us)}function xt(e){return Ge(e,se)}function Un(e){return Ge(e,R)}function Pn(e){return $t(e)||un(e)||kn(e)||fi(e)&&Pn(e.ofType)}function hu(e){return $t(e)||Ze(e)||$e(e)||tn(e)||un(e)||fi(e)&&hu(e.ofType)}function Tv(e){return $t(e)||un(e)}function di(e){return Ze(e)||$e(e)||tn(e)}function Ov(e){return $e(e)||tn(e)}function se(e){if(this instanceof se)this.ofType=Nv(e);else return new se(e)}se.prototype.toString=function(){return"["+String(this.ofType)+"]"},se.prototype.toJSON=function(){return this.toString()},Object.defineProperty(se.prototype,Ce,{get:function(){return"GraphQLList"}}),Te(se);function R(e){if(this instanceof R)this.ofType=Uv(e);else return new R(e)}R.prototype.toString=function(){return String(this.ofType)+"!"},R.prototype.toJSON=function(){return this.toString()},Object.defineProperty(R.prototype,Ce,{get:function(){return"GraphQLNonNull"}}),Te(R);function fi(e){return xt(e)||Un(e)}function zv(e){return xs(e)&&!Un(e)}function Uv(e){if(!zv(e))throw new Error("Expected ".concat(J(e)," to be a GraphQL nullable type."));return e}function Pv(e){if(e)return Un(e)?e.ofType:e}function It(e){if(e){for(var n=e;fi(n);)n=n.ofType;return n}}function gu(e){return typeof e=="function"?e():e}function jn(e){return e&&e.length>0?e:void 0}var Dn=function(){function e(t){var r,u,i,a=(r=t.parseValue)!==null&&r!==void 0?r:ws;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(u=t.serialize)!==null&&u!==void 0?u:ws,this.parseValue=a,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:function(o,s){return a(li(o,s))},this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=jn(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(J(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()},zn(e,[{key:Ce,get:function(){return"GraphQLScalarType"}}]),e}();Te(Dn);var rn=function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=jn(t.extensionASTNodes),this._fields=Fs.bind(void 0,t),this._interfaces=Is.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(J(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:Ns(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()},zn(e,[{key:Ce,get:function(){return"GraphQLObjectType"}}]),e}();Te(rn);function Is(e){var n,t=(n=gu(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 Fs(e){var n=gu(e.fields);return Rn(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),mu(n,function(t,r){var u;Rn(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(J(t.resolve),"."));var i=(u=t.args)!==null&&u!==void 0?u:{};Rn(i)||M(0,"".concat(e.name,".").concat(r," args must be an object with argument names as keys."));var a=Ct(i).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&&Ae(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&&Ae(t.extensions),astNode:t.astNode}})}function Rn(e){return yn(e)&&!Array.isArray(e)}function Ns(e){return mu(e,function(n){return{description:n.description,type:n.type,args:Ts(n.args),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}})}function Ts(e){return si(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 Os=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=jn(t.extensionASTNodes),this._fields=Fs.bind(void 0,t),this._interfaces=Is.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(J(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:Ns(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()},zn(e,[{key:Ce,get:function(){return"GraphQLInterfaceType"}}]),e}();Te(Os);var zs=function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=jn(t.extensionASTNodes),this._types=jv.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(J(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()},zn(e,[{key:Ce,get:function(){return"GraphQLUnionType"}}]),e}();Te(zs);function jv(e){var n=gu(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 Eu=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=jn(t.extensionASTNodes),this._values=Rv(this.name,t.values),this._valueLookup=new Map(this._values.map(function(r){return[r.value,r]})),this._nameLookup=Ss(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 u=this._valueLookup.get(r);if(u===void 0)throw new ee('Enum "'.concat(this.name,'" cannot represent value: ').concat(J(r)));return u.name},n.parseValue=function(r){if(typeof r!="string"){var u=J(r);throw new ee('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(u,".")+yu(this,u))}var i=this.getValue(r);if(i==null)throw new ee('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+yu(this,r));return i.value},n.parseLiteral=function(r,u){if(r.kind!==C.ENUM){var i=Je(r);throw new ee('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(i,".")+yu(this,i),r)}var a=this.getValue(r.value);if(a==null){var o=Je(r);throw new ee('Value "'.concat(o,'" does not exist in "').concat(this.name,'" enum.')+yu(this,o),r)}return a.value},n.toConfig=function(){var r,u=si(this.getValues(),function(i){return i.name},function(i){return{description:i.description,value:i.value,deprecationReason:i.deprecationReason,extensions:i.extensions,astNode:i.astNode}});return{name:this.name,description:this.description,values:u,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()},zn(e,[{key:Ce,get:function(){return"GraphQLEnumType"}}]),e}();Te(Eu);function yu(e,n){var t=e.getValues().map(function(u){return u.name}),r=wv(n,t);return _v("the enum value",r)}function Rv(e,n){return Rn(n)||M(0,"".concat(e," values must be an object with value names as keys.")),Ct(n).map(function(t){var r=t[0],u=t[1];return Rn(u)||M(0,"".concat(e,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(J(u),".")),!("isDeprecated"in u)||M(0,"".concat(e,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:u.description,value:u.value!==void 0?u.value:r,isDeprecated:u.deprecationReason!=null,deprecationReason:u.deprecationReason,extensions:u.extensions&&Ae(u.extensions),astNode:u.astNode}})}var Us=function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&Ae(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=jn(t.extensionASTNodes),this._fields=Lv.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,u=mu(this.getFields(),function(i){return{description:i.description,type:i.type,defaultValue:i.defaultValue,deprecationReason:i.deprecationReason,extensions:i.extensions,astNode:i.astNode}});return{name:this.name,description:this.description,fields:u,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()},zn(e,[{key:Ce,get:function(){return"GraphQLInputObjectType"}}]),e}();Te(Us);function Lv(e){var n=gu(e.fields);return Rn(n)||M(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),mu(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&&Ae(t.extensions),astNode:t.astNode}})}var Zv=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[hs];if(typeof r=="function"){for(var u=r.call(e),i=[],a,o=0;!(a=u.next()).done;++o)if(i.push(n.call(t,a.value,o)),o>9999999)throw new TypeError("Near-infinite iteration.");return i}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[]},Vv=Zv,Mv=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Ft=Mv;function bu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bu=function(t){return typeof t}:bu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}function qv(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(e==null||bu(e)!=="object")return null;if(Array.isArray(e))return e.map(n);var t=e[hs];if(typeof t=="function"){for(var r=t.call(e),u=[],i,a=0;!(i=r.next()).done;++a)u.push(n(i.value,a));return u}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 Gv=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ku=Gv,mi=2147483647,vi=-2147483648;function Jv(e){var n=Nt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!ku(t))throw new ee("Int cannot represent non-integer value: ".concat(J(n)));if(t>mi||t<vi)throw new ee("Int cannot represent non 32-bit signed integer value: "+J(n));return t}function Hv(e){if(!ku(e))throw new ee("Int cannot represent non-integer value: ".concat(J(e)));if(e>mi||e<vi)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var Kv=new Dn({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:Jv,parseValue:Hv,parseLiteral:function(n){if(n.kind!==C.INT)throw new ee("Int cannot represent non-integer value: ".concat(Je(n)),n);var t=parseInt(n.value,10);if(t>mi||t<vi)throw new ee("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n);return t}});function Qv(e){var n=Nt(e);if(typeof n=="boolean")return n?1:0;var t=n;if(typeof n=="string"&&n!==""&&(t=Number(n)),!Ft(t))throw new ee("Float cannot represent non numeric value: ".concat(J(n)));return t}function Wv(e){if(!Ft(e))throw new ee("Float cannot represent non numeric value: ".concat(J(e)));return e}var Yv=new Dn({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:Qv,parseValue:Wv,parseLiteral:function(n){if(n.kind!==C.FLOAT&&n.kind!==C.INT)throw new ee("Float cannot represent non numeric value: ".concat(Je(n)),n);return parseFloat(n.value)}});function Nt(e){if(yn(e)){if(typeof e.valueOf=="function"){var n=e.valueOf();if(!yn(n))return n}if(typeof e.toJSON=="function")return e.toJSON()}return e}function Xv(e){var n=Nt(e);if(typeof n=="string")return n;if(typeof n=="boolean")return n?"true":"false";if(Ft(n))return n.toString();throw new ee("String cannot represent value: ".concat(J(e)))}function ep(e){if(typeof e!="string")throw new ee("String cannot represent a non string value: ".concat(J(e)));return e}var te=new Dn({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:Xv,parseValue:ep,parseLiteral:function(n){if(n.kind!==C.STRING)throw new ee("String cannot represent a non string value: ".concat(Je(n)),n);return n.value}});function np(e){var n=Nt(e);if(typeof n=="boolean")return n;if(Ft(n))return n!==0;throw new ee("Boolean cannot represent a non boolean value: ".concat(J(n)))}function tp(e){if(typeof e!="boolean")throw new ee("Boolean cannot represent a non boolean value: ".concat(J(e)));return e}var xe=new Dn({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:np,parseValue:tp,parseLiteral:function(n){if(n.kind!==C.BOOLEAN)throw new ee("Boolean cannot represent a non boolean value: ".concat(Je(n)),n);return n.value}});function up(e){var n=Nt(e);if(typeof n=="string")return n;if(ku(n))return String(n);throw new ee("ID cannot represent value: ".concat(J(e)))}function rp(e){if(typeof e=="string")return e;if(ku(e))return e.toString();throw new ee("ID cannot represent value: ".concat(J(e)))}var Ps=new Dn({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:up,parseValue:rp,parseLiteral:function(n){if(n.kind!==C.STRING&&n.kind!==C.INT)throw new ee("ID cannot represent a non-string and non-integer value: "+Je(n),n);return n.value}}),js=Object.freeze([te,Kv,Yv,xe,Ps]);function Tt(e,n){if(Un(n)){var t=Tt(e,n.ofType);return t?.kind===C.NULL?null:t}if(e===null)return{kind:C.NULL};if(e===void 0)return null;if(xt(n)){var r=n.ofType,u=qv(e);if(u!=null){for(var i=[],a=0;a<u.length;a++){var o=u[a],s=Tt(o,r);s!=null&&i.push(s)}return{kind:C.LIST,values:i}}return Tt(e,r)}if(kn(n)){if(!yn(e))return null;for(var c=[],l=0,f=bn(n.getFields());l<f.length;l++){var m=f[l],d=Tt(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(Tv(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"&&Ft(v)){var h=String(v);return Rs.test(h)?{kind:C.INT,value:h}:{kind:C.FLOAT,value:h}}if(typeof v=="string")return un(n)?{kind:C.ENUM,value:v}:n===Ps&&Rs.test(v)?{kind:C.INT,value:v}:{kind:C.STRING,value:v};throw new TypeError("Cannot convert value to AST: ".concat(J(v),"."))}wt(0,"Unexpected input type: "+J(n))}var Rs=/^-?(?:0|[1-9][0-9]*)$/,pi=new rn({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:te,resolve:function(t){return t.description}},types:{description:"A list of all types supported by this server.",type:new R(new se(new R(Ue))),resolve:function(t){return bn(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new R(Ue),resolve:function(t){return t.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ue,resolve:function(t){return t.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ue,resolve:function(t){return t.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new R(new se(new R(Ls))),resolve:function(t){return t.getDirectives()}}}}}),Ls=new rn({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
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 R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isRepeatable:{type:new R(xe),resolve:function(t){return t.isRepeatable}},locations:{type:new R(new se(new R(Zs))),resolve:function(t){return t.locations}},args:{type:new R(new se(new R(Du))),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,r){var u=r.includeDeprecated;return u?t.args:t.args.filter(function(i){return i.deprecationReason==null})}}}}}),Zs=new Eu({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."}}}),Ue=new rn({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 R(qs),resolve:function(t){if($t(t))return de.SCALAR;if(Ze(t))return de.OBJECT;if($e(t))return de.INTERFACE;if(tn(t))return de.UNION;if(un(t))return de.ENUM;if(kn(t))return de.INPUT_OBJECT;if(xt(t))return de.LIST;if(Un(t))return de.NON_NULL;wt(0,'Unexpected type: "'.concat(J(t),'".'))}},name:{type:te,resolve:function(t){return t.name!==void 0?t.name:void 0}},description:{type:te,resolve:function(t){return t.description!==void 0?t.description:void 0}},specifiedByUrl:{type:te,resolve:function(t){return t.specifiedByUrl!==void 0?t.specifiedByUrl:void 0}},fields:{type:new se(new R(Vs)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,r){var u=r.includeDeprecated;if(Ze(t)||$e(t)){var i=bn(t.getFields());return u?i:i.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new se(new R(Ue)),resolve:function(t){if(Ze(t)||$e(t))return t.getInterfaces()}},possibleTypes:{type:new se(new R(Ue)),resolve:function(t,r,u,i){var a=i.schema;if(Ov(t))return a.getPossibleTypes(t)}},enumValues:{type:new se(new R(Ms)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,r){var u=r.includeDeprecated;if(un(t)){var i=t.getValues();return u?i:i.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new se(new R(Du)),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,r){var u=r.includeDeprecated;if(kn(t)){var i=bn(t.getFields());return u?i:i.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Ue,resolve:function(t){return t.ofType!==void 0?t.ofType:void 0}}}}}),Vs=new rn({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 R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},args:{type:new R(new se(new R(Du))),args:{includeDeprecated:{type:xe,defaultValue:!1}},resolve:function(t,r){var u=r.includeDeprecated;return u?t.args:t.args.filter(function(i){return i.deprecationReason==null})}},type:{type:new R(Ue),resolve:function(t){return t.type}},isDeprecated:{type:new R(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),Du=new rn({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 R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},type:{type:new R(Ue),resolve:function(t){return t.type}},defaultValue:{type:te,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(t){var r=t.type,u=t.defaultValue,i=Tt(u,r);return i?Je(i):null}},isDeprecated:{type:new R(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),Ms=new rn({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 R(te),resolve:function(t){return t.name}},description:{type:te,resolve:function(t){return t.description}},isDeprecated:{type:new R(xe),resolve:function(t){return t.deprecationReason!=null}},deprecationReason:{type:te,resolve:function(t){return t.deprecationReason}}}}}),de=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),qs=new Eu({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:de.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:de.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:de.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:de.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:de.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:de.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:de.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:de.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Gs={name:"__schema",type:new R(pi),description:"Access the current type schema of this server.",args:[],resolve:function(n,t,r,u){var i=u.schema;return i},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Js={name:"__type",type:Ue,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new R(te),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(n,t,r,u){var i=t.name,a=u.schema;return a.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Hs={name:"__typename",type:new R(te),description:"The name of the current Object type at runtime.",args:[],resolve:function(n,t,r,u){var i=u.parentType;return i.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Ks=Object.freeze([pi,Ls,Zs,Ue,Vs,Du,Ms,qs]);function ip(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 ap(e,n,t){return n&&ip(e.prototype,n),e}function op(e){return Ge(e,Ln)}var Ln=function(){function e(t){var r,u;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&&Ae(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 i=(u=t.args)!==null&&u!==void 0?u:{};yn(i)&&!Array.isArray(i)||M(0,"@".concat(t.name," args must be an object with argument names as keys.")),this.args=Ct(i).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&&Ae(s.extensions),astNode:s.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Ts(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},ap(e,[{key:Ce,get:function(){return"GraphQLDirective"}}]),e}();Te(Ln);var sp=new Ln({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 R(xe),description:"Included when true."}}}),cp=new Ln({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 R(xe),description:"Skipped when true."}}}),lp="No longer supported",dp=new Ln({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:te,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:lp}}}),fp=new Ln({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[K.SCALAR],args:{url:{type:new R(te),description:"The URL that specifies the behaviour of this scalar."}}}),mp=Object.freeze([sp,cp,dp,fp]);function vp(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&&vp(e.prototype,n),e}(function(){function e(t){var r;this.__validationErrors=t.assumeValid===!0?[]:void 0,yn(t)||M(0,"Must provide configuration object."),!t.types||Array.isArray(t.types)||M(0,'"types" must be Array if provided but got: '.concat(J(t.types),".")),!t.directives||Array.isArray(t.directives)||M(0,'"directives" must be Array if provided but got: '+"".concat(J(t.directives),".")),this.description=t.description,this.extensions=t.extensions&&Ae(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:mp;var u=new Set(t.types);if(t.types!=null)for(var i=0,a=t.types;i<a.length;i++){var o=a[i];u.delete(o),Pe(o,u)}this._queryType!=null&&Pe(this._queryType,u),this._mutationType!=null&&Pe(this._mutationType,u),this._subscriptionType!=null&&Pe(this._subscriptionType,u);for(var s=0,c=this._directives;s<c.length;s++){var l=c[s];if(op(l))for(var f=0,m=l.args;f<m.length;f++){var d=m[f];Pe(d.type,u)}}Pe(pi,u),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var v=0,h=Vv(u);v<h.length;v++){var b=h[v];if(b!=null){var y=b.name;if(y||M(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[y]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(y,'".'));if(this._typeMap[y]=b,$e(b))for(var E=0,k=b.getInterfaces();E<k.length;E++){var w=k[E];if($e(w)){var _=this._implementationsMap[w.name];_===void 0&&(_=this._implementationsMap[w.name]={objects:[],interfaces:[]}),_.interfaces.push(b)}}else if(Ze(b))for(var G=0,V=b.getInterfaces();G<V.length;G++){var F=V[G];if($e(F)){var g=this._implementationsMap[F.name];g===void 0&&(g=this._implementationsMap[F.name]={objects:[],interfaces:[]}),g.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 tn(r)?r.getTypes():this.getImplementations(r).objects},n.getImplementations=function(r){var u=this._implementationsMap[r.name];return u??{objects:[],interfaces:[]}},n.isPossibleType=function(r,u){return this.isSubType(r,u)},n.isSubType=function(r,u){var i=this._subTypeMap[r.name];if(i===void 0){if(i=Object.create(null),tn(r))for(var a=0,o=r.getTypes();a<o.length;a++){var s=o[a];i[s.name]=!0}else{for(var c=this.getImplementations(r),l=0,f=c.objects;l<f.length;l++){var m=f[l];i[m.name]=!0}for(var d=0,v=c.interfaces;d<v.length;d++){var h=v[d];i[h.name]=!0}}this._subTypeMap[r.name]=i}return i[u.name]!==void 0},n.getDirectives=function(){return this._directives},n.getDirective=function(r){return As(this.getDirectives(),function(u){return u.name===r})},n.toConfig=function(){var r;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:bn(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}},pp(e,[{key:Ce,get:function(){return"GraphQLSchema"}}]),e})();function Pe(e,n){var t=It(e);if(!n.has(t)){if(n.add(t),tn(t))for(var r=0,u=t.getTypes();r<u.length;r++){var i=u[r];Pe(i,n)}else if(Ze(t)||$e(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++){var s=o[a];Pe(s,n)}for(var c=0,l=bn(t.getFields());c<l.length;c++){var f=l[c];Pe(f.type,n);for(var m=0,d=f.args;m<d.length;m++){var v=d[m];Pe(v.type,n)}}}else if(kn(t))for(var h=0,b=bn(t.getFields());h<b.length;h++){var y=b[h];Pe(y.type,n)}}return n}function Bu(e,n){var t;if(n.kind===C.LIST_TYPE)return t=Bu(e,n.type),t&&new se(t);if(n.kind===C.NON_NULL_TYPE)return t=Bu(e,n.type),t&&new R(t);if(n.kind===C.NAMED_TYPE)return e.getType(n.name.value);wt(0,"Unexpected type node: "+J(n))}var hp=function(){function e(t,r,u){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??gp,u&&(Pn(u)&&this._inputTypeStack.push(u),di(u)&&this._parentTypeStack.push(u),hu(u)&&this._typeStack.push(u))}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 u=this._schema;switch(r.kind){case C.SELECTION_SET:{var i=It(this.getType());this._parentTypeStack.push(di(i)?i:void 0);break}case C.FIELD:{var a=this.getParentType(),o,s;a&&(o=this._getFieldDef(u,a,r),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(hu(s)?s:void 0);break}case C.DIRECTIVE:this._directive=u.getDirective(r.name.value);break;case C.OPERATION_DEFINITION:{var c;switch(r.operation){case"query":c=u.getQueryType();break;case"mutation":c=u.getMutationType();break;case"subscription":c=u.getSubscriptionType();break}this._typeStack.push(Ze(c)?c:void 0);break}case C.INLINE_FRAGMENT:case C.FRAGMENT_DEFINITION:{var l=r.typeCondition,f=l?Bu(u,l):It(this.getType());this._typeStack.push(hu(f)?f:void 0);break}case C.VARIABLE_DEFINITION:{var m=Bu(u,r.type);this._inputTypeStack.push(Pn(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=As(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(Pn(h)?h:void 0);break}case C.LIST:{var y=Pv(this.getInputType()),E=xt(y)?y.ofType:y;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Pn(E)?E:void 0);break}case C.OBJECT_FIELD:{var k=It(this.getInputType()),w,_;kn(k)&&(_=k.getFields()[r.name.value],_&&(w=_.type)),this._defaultValueStack.push(_?_.defaultValue:void 0),this._inputTypeStack.push(Pn(w)?w:void 0);break}case C.ENUM:{var G=It(this.getInputType()),V;un(G)&&(V=G.getValue(r.value)),this._enumValue=V;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 gp(e,n,t){var r=t.name.value;if(r===Gs.name&&e.getQueryType()===n)return Gs;if(r===Js.name&&e.getQueryType()===n)return Js;if(r===Hs.name&&di(n))return Hs;if(Ze(n)||$e(n))return n.getFields()[r]}function Ep(e,n){return{enter:function(r){e.enter(r);var u=oi(n,r.kind,!1);if(u){var i=u.apply(n,arguments);return i!==void 0&&(e.leave(r),ai(i)&&e.enter(i)),i}},leave:function(r){var u=oi(n,r.kind,!0),i;return u&&(i=u.apply(n,arguments)),e.leave(r),i}}}[].concat(js,Ks).map(function(e){return e.name});var an;function Zn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}an={},Zn(an,C.SCALAR_TYPE_DEFINITION,C.SCALAR_TYPE_EXTENSION),Zn(an,C.OBJECT_TYPE_DEFINITION,C.OBJECT_TYPE_EXTENSION),Zn(an,C.INTERFACE_TYPE_DEFINITION,C.INTERFACE_TYPE_EXTENSION),Zn(an,C.UNION_TYPE_DEFINITION,C.UNION_TYPE_EXTENSION),Zn(an,C.ENUM_TYPE_DEFINITION,C.ENUM_TYPE_EXTENSION),Zn(an,C.INPUT_OBJECT_TYPE_DEFINITION,C.INPUT_OBJECT_TYPE_EXTENSION);function Qs(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var Ws=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 u=this._fragments;return u||(this._fragments=u=this.getDocument().definitions.reduce(function(i,a){return a.kind===C.FRAGMENT_DEFINITION&&(i[a.name.value]=a),i},Object.create(null))),u[r]},n.getFragmentSpreads=function(r){var u=this._fragmentSpreads.get(r);if(!u){u=[];for(var i=[r];i.length!==0;)for(var a=i.pop(),o=0,s=a.selections;o<s.length;o++){var c=s[o];c.kind===C.FRAGMENT_SPREAD?u.push(c):c.selectionSet&&i.push(c.selectionSet)}this._fragmentSpreads.set(r,u)}return u},n.getRecursivelyReferencedFragments=function(r){var u=this._recursivelyReferencedFragments.get(r);if(!u){u=[];for(var i=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(i[f]!==!0){i[f]=!0;var m=this.getFragment(f);m&&(u.push(m),a.push(m.selectionSet))}}this._recursivelyReferencedFragments.set(r,u)}return u},e}();(function(e){Qs(n,e);function n(r,u,i){var a;return a=e.call(this,r,i)||this,a._schema=u,a}var t=n.prototype;return t.getSchema=function(){return this._schema},n})(Ws),function(e){Qs(n,e);function n(r,u,i,a){var o;return o=e.call(this,u,a)||this,o._schema=r,o._typeInfo=i,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}var t=n.prototype;return t.getSchema=function(){return this._schema},t.getVariableUsages=function(u){var i=this._variableUsages.get(u);if(!i){var a=[],o=new hp(this._schema);_s(u,Ep(o,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:o.getInputType(),defaultValue:o.getDefaultValue()})}})),i=a,this._variableUsages.set(u,i)}return i},t.getRecursiveVariableUsages=function(u){var i=this._recursiveVariableUsages.get(u);if(!i){i=this.getVariableUsages(u);for(var a=0,o=this.getRecursivelyReferencedFragments(u);a<o.length;a++){var s=o[a];i=i.concat(this.getVariableUsages(s))}this._recursiveVariableUsages.set(u,i)}return i},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}(Ws),Ss(js.concat(Ks),function(e){return e.name});const Ys=e=>e instanceof Error?e:new Error(e),yp=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u",Xs={staging:{baseEndpoint:"https://api-staging.spritz.finance",graphEndpoint:"https://api-staging.spritz.finance/router/graph"},production:{baseEndpoint:"https://api.spritz.finance",graphEndpoint:"https://api.spritz.finance/router/graph"}},bp=(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};class kp extends Error{timestamp;headers;constructor(n,t,...r){super(...r),this.name="SpritzApiError",this.message=n,this.headers=t??{},this.timestamp=new Date().toISOString()}}class we extends Error{status;headers;timestamp;constructor(n,t,r,u){super(we.makeMessage(t,r)),this.status=n,this.headers=u,this.timestamp=new Date().toISOString()}static makeMessage(n,t){return n?.message?typeof n.message=="string"?n.message:JSON.stringify(n.message):n?JSON.stringify(n):t||"Unknown error occurred"}static generate(n,t,r,u){return n?n===400?new Bp(n,t,r,u):n===401?new _p(n,t,r,u):n===403?new Ap(n,t,r,u):n===404?new Sp(n,t,r,u):n===409?new wp(n,t,r,u):n===422?new Cp(n,t,r,u):n===429?new $p(n,t,r,u):n>=500?new xp(n,t,r,u):new we(n,t,r,u):new hi({cause:Ys(t)})}}class hi extends we{status=void 0;constructor({message:n,cause:t}){super(void 0,void 0,n||"Connection error.",void 0),t&&(this.cause=t)}}class Dp extends hi{constructor(){super({message:"Request timed out."})}}class Bp extends we{name="BadRequestError";status=400}class _p extends we{name="AuthenticationError";status=401}class Ap extends we{name="PermissionDeniedError";status=403}class Sp extends we{name="NotFoundError";status=404}class wp extends we{name="ConflictError";status=409}class Cp extends we{name="UnprocessableEntityError";status=422}class $p extends we{name="RateLimitError";status=429}class xp extends we{name="InternalServerError"}const Ip=e=>{try{return JSON.parse(e)}catch{return}},e0=10,n0=100;function Fp(e){if(!e||!e.definitions)throw new Error("Invalid GraphQL query: missing definitions");const n=e.definitions.filter(i=>i.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=Np(t);if(r>e0)throw new Error(`GraphQL query too deep: ${r} levels (max: ${e0})`);const u=Tp(t);if(u>n0)throw new Error(`GraphQL query too complex: ${u} fields (max: ${n0})`);if(t?.operation!=="query"&&t?.operation!=="mutation")throw new Error(`Invalid GraphQL operation type: ${t?.operation}`)}function Np(e){if(!e.selectionSet)return 0;function n(t){let r=0;for(const u of t.selections)if(u.kind==="Field"&&u.selectionSet){const i=1+n(u.selectionSet);r=Math.max(r,i)}else if(u.kind==="InlineFragment"&&u.selectionSet){const i=n(u.selectionSet);r=Math.max(r,i)}else u.kind==="FragmentSpread"&&(r=Math.max(r,1));return r}return n(e.selectionSet)}function Tp(e){if(!e.selectionSet)return 0;function n(t){let r=0;for(const u of t.selections)r+=1,u.kind==="Field"&&u.selectionSet||u.kind==="InlineFragment"&&u.selectionSet?r+=n(u.selectionSet):u.kind==="FragmentSpread"&&(r+=5);return r}return n(e.selectionSet)}function Op(e){if(!e)return;const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(!zp(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]=gi(r)}return n}function zp(e){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e)}function gi(e){if(e==null)return e;if(typeof e=="string")return e.replace(/[\x00-\x1F\x7F]/g,"");if(typeof e=="number"||typeof e=="boolean")return e;if(Array.isArray(e))return e.map(gi);if(typeof e=="object"){const n=Object.create(null);for(const[t,r]of Object.entries(e)){if(typeof t!="string"||t.includes("__proto__")||t.includes("constructor"))throw new Error(`Invalid property name: ${t}`);n[t]=gi(r)}return n}return String(e).replace(/[\x00-\x1F\x7F]/g,"")}async function t0(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 Up{baseGraphURL;baseRestURL;timeout;apiKey;integrationKey;constructor({environment:n,timeout:t=3e5,apiKey:r,integrationKey:u}){this.apiKey=r,this.integrationKey=u,this.baseGraphURL=Xs[n].graphEndpoint,this.baseRestURL=Xs[n].baseEndpoint,this.timeout=bp("timeout",t)}async query({query:n,variables:t}){Fp(n);const r=Op(t);return this.sendQuery({query:n,variables:r}).then(u=>t0(u)).then(({response:u,headers:i})=>{if(u.data)return u.data;if(u.errors){const a=u.errors[0]??{message:"Unknown error"};throw new kp(a.message,i)}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(u=>t0(u)).then(({response:u})=>u)}async sendQuery({query:n,variables:t}){const{url:r,req:u,timeout:i}=this.buildGraphRequest({query:n,variables:t});return this.sendHTTPRequest({url:r,req:u,timeout:i})}async sendRequest({method:n,path:t,body:r}){const{url:u,req:i,timeout:a}=this.buildRestRequest(n,t,r);return this.sendHTTPRequest({url:u,req:i,timeout:a})}async sendHTTPRequest({url:n,req:t,timeout:r}){const u=new AbortController,i=await this.fetchWithTimeout(n,t,r,u).catch(Ys);if(i instanceof Error)throw i.name==="AbortError"?new Dp:new hi({cause:i});const a=this.getResponseHeaders(i.headers);if(!i.ok){const o=await i.text().catch(()=>"Unknown error"),s=Ip(o);throw this.makeStatusError(i.status,s,s?void 0:o,a)}return{response:i,controller:u,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,u){const{signal:i,...a}=t||{},o=AbortSignal.timeout(r),s=i?AbortSignal.any([i,o,u.signal]):AbortSignal.any([o,u.signal]);return fetch(n,{...a,signal:s})}buildGraphRequest({query:n,variables:t}){const r={query:Je(n),variables:t,operationName:n?.definitions?.[0]?.name?.value},u=r?JSON.stringify(r,null,2):null,i=this.calculateContentLength(u),a=this.timeout,o={...i&&{"Content-Length":i},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:"POST",...u&&{body:u},headers:s};return{url:this.baseGraphURL,req:c,timeout:a}}buildRestRequest(n,t,r){const u=r?JSON.stringify(r,null,2):null,i=this.calculateContentLength(u),a=this.timeout,o={...i&&{"Content-Length":i},...this.defaultHeaders()},s=Object.fromEntries(Object.entries(o).filter(([l,f])=>f!==null)),c={method:n,...u&&{body:u},headers:s};return{url:`${this.baseRestURL}${t.startsWith("/")?t:"/"+t}`,req:c,timeout:a}}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,u){return we.generate(n,t,r,u)}}var je={};En(je,{$brand:()=>i0,$input:()=>Ul,$output:()=>zl,NEVER:()=>r0,TimePrecision:()=>Rl,ZodAny:()=>Md,ZodArray:()=>Hd,ZodBase64:()=>Ga,ZodBase64URL:()=>Ja,ZodBigInt:()=>Vu,ZodBigIntFormat:()=>Wa,ZodBoolean:()=>Zu,ZodCIDRv4:()=>Ma,ZodCIDRv6:()=>qa,ZodCUID:()=>Ua,ZodCUID2:()=>Pa,ZodCatch:()=>vf,ZodCustom:()=>Wu,ZodCustomStringFormat:()=>Ud,ZodDate:()=>Ya,ZodDefault:()=>sf,ZodDiscriminatedUnion:()=>Kd,ZodE164:()=>Ha,ZodEmail:()=>Na,ZodEmoji:()=>Oa,ZodEnum:()=>Mt,ZodError:()=>og,ZodFile:()=>af,ZodFirstPartyTypeKind:()=>oo,ZodGUID:()=>Ru,ZodIPv4:()=>Za,ZodIPv6:()=>Va,ZodISODate:()=>Ca,ZodISODateTime:()=>wa,ZodISODuration:()=>xa,ZodISOTime:()=>$a,ZodIntersection:()=>Qd,ZodIssueCode:()=>l3,ZodJWT:()=>Ka,ZodKSUID:()=>La,ZodLazy:()=>bf,ZodLiteral:()=>uf,ZodMap:()=>ef,ZodNaN:()=>hf,ZodNanoID:()=>za,ZodNever:()=>Gd,ZodNonOptional:()=>io,ZodNull:()=>Zd,ZodNullable:()=>of,ZodNumber:()=>Lu,ZodNumberFormat:()=>Hn,ZodObject:()=>Gu,ZodOptional:()=>ro,ZodPipe:()=>ao,ZodPrefault:()=>lf,ZodPromise:()=>Df,ZodReadonly:()=>gf,ZodRealError:()=>Vt,ZodRecord:()=>no,ZodSet:()=>nf,ZodString:()=>ju,ZodStringFormat:()=>X,ZodSuccess:()=>mf,ZodSymbol:()=>Rd,ZodTemplateLiteral:()=>yf,ZodTransform:()=>to,ZodTuple:()=>Yd,ZodType:()=>Z,ZodULID:()=>ja,ZodURL:()=>Ta,ZodUUID:()=>He,ZodUndefined:()=>Ld,ZodUnion:()=>eo,ZodUnknown:()=>qd,ZodVoid:()=>Jd,ZodXID:()=>Ra,_ZodString:()=>Ia,_default:()=>cf,any:()=>Rg,array:()=>Xa,base64:()=>Sg,base64url:()=>wg,bigint:()=>Og,boolean:()=>jd,catch:()=>pf,check:()=>Bf,cidrv4:()=>_g,cidrv6:()=>Ag,clone:()=>Ve,coerce:()=>Sf,config:()=>ye,core:()=>u0,cuid:()=>gg,cuid2:()=>Eg,custom:()=>i3,date:()=>Zg,discriminatedUnion:()=>Jg,e164:()=>Cg,email:()=>sg,emoji:()=>pg,endsWith:()=>ya,enum:()=>tf,file:()=>Xg,flattenError:()=>Di,float32:()=>Ig,float64:()=>Fg,formatError:()=>Bi,function:()=>Ad,getErrorMap:()=>f3,globalRegistry:()=>An,gt:()=>wn,gte:()=>Se,guid:()=>cg,includes:()=>ga,instanceof:()=>a3,int:()=>Qa,int32:()=>Ng,int64:()=>zg,intersection:()=>Wd,ipv4:()=>Dg,ipv6:()=>Bg,iso:()=>wd,json:()=>s3,jwt:()=>$g,keyof:()=>Vg,ksuid:()=>kg,lazy:()=>kf,length:()=>Pu,literal:()=>rf,locales:()=>Vi,looseObject:()=>Gg,lowercase:()=>pa,lt:()=>Sn,lte:()=>Le,map:()=>Qg,maxLength:()=>Uu,maxSize:()=>zu,mime:()=>ba,minLength:()=>Jn,minSize:()=>Zt,multipleOf:()=>Lt,nan:()=>t3,nanoid:()=>hg,nativeEnum:()=>Yg,negative:()=>vd,never:()=>qu,nonnegative:()=>hd,nonoptional:()=>ff,nonpositive:()=>pd,normalize:()=>ka,null:()=>Vd,nullable:()=>Ku,nullish:()=>e3,number:()=>Pd,object:()=>Mg,optional:()=>Hu,overwrite:()=>Cn,parse:()=>Nd,parseAsync:()=>Td,partialRecord:()=>Kg,pipe:()=>Qu,positive:()=>md,prefault:()=>df,preprocess:()=>c3,prettifyError:()=>g0,promise:()=>r3,property:()=>gd,readonly:()=>Ef,record:()=>Xd,refine:()=>_f,regex:()=>va,regexes:()=>xi,registry:()=>qi,safeParse:()=>Od,safeParseAsync:()=>zd,set:()=>Wg,setErrorMap:()=>d3,size:()=>ma,startsWith:()=>Ea,strictObject:()=>qg,string:()=>Fa,stringFormat:()=>xg,stringbool:()=>o3,success:()=>n3,superRefine:()=>Af,symbol:()=>Pg,templateLiteral:()=>u3,toJSONSchema:()=>Sd,toLowerCase:()=>Ba,toUpperCase:()=>_a,transform:()=>uo,treeifyError:()=>p0,trim:()=>Da,tuple:()=>Hg,uint32:()=>Tg,uint64:()=>Ug,ulid:()=>yg,undefined:()=>jg,union:()=>Ju,unknown:()=>Mu,uppercase:()=>ha,url:()=>vg,uuid:()=>lg,uuidv4:()=>dg,uuidv6:()=>fg,uuidv7:()=>mg,void:()=>Lg,xid:()=>bg});var u0={};En(u0,{$ZodAny:()=>Qc,$ZodArray:()=>Pi,$ZodAsyncError:()=>Vn,$ZodBase64:()=>Pc,$ZodBase64URL:()=>Rc,$ZodBigInt:()=>Ui,$ZodBigIntFormat:()=>Gc,$ZodBoolean:()=>zi,$ZodCIDRv4:()=>zc,$ZodCIDRv6:()=>Uc,$ZodCUID:()=>Ac,$ZodCUID2:()=>Sc,$ZodCatch:()=>Bl,$ZodCheck:()=>ue,$ZodCheckBigIntFormat:()=>ec,$ZodCheckEndsWith:()=>fc,$ZodCheckGreaterThan:()=>Ni,$ZodCheckIncludes:()=>lc,$ZodCheckLengthEquals:()=>ac,$ZodCheckLessThan:()=>Fi,$ZodCheckLowerCase:()=>sc,$ZodCheckMaxLength:()=>rc,$ZodCheckMaxSize:()=>nc,$ZodCheckMimeType:()=>pc,$ZodCheckMinLength:()=>ic,$ZodCheckMinSize:()=>tc,$ZodCheckMultipleOf:()=>Y0,$ZodCheckNumberFormat:()=>X0,$ZodCheckOverwrite:()=>hc,$ZodCheckProperty:()=>vc,$ZodCheckRegex:()=>oc,$ZodCheckSizeEquals:()=>uc,$ZodCheckStartsWith:()=>dc,$ZodCheckStringFormat:()=>jt,$ZodCheckUpperCase:()=>cc,$ZodCustom:()=>Il,$ZodCustomStringFormat:()=>Mc,$ZodDate:()=>Xc,$ZodDefault:()=>gl,$ZodDiscriminatedUnion:()=>rl,$ZodE164:()=>Lc,$ZodEmail:()=>kc,$ZodEmoji:()=>Bc,$ZodEnum:()=>fl,$ZodError:()=>ki,$ZodFile:()=>vl,$ZodFunction:()=>_d,$ZodGUID:()=>yc,$ZodIPv4:()=>Tc,$ZodIPv6:()=>Oc,$ZodISODate:()=>Ic,$ZodISODateTime:()=>xc,$ZodISODuration:()=>Nc,$ZodISOTime:()=>Fc,$ZodIntersection:()=>il,$ZodJWT:()=>Vc,$ZodKSUID:()=>$c,$ZodLazy:()=>xl,$ZodLiteral:()=>ml,$ZodMap:()=>sl,$ZodNaN:()=>_l,$ZodNanoID:()=>_c,$ZodNever:()=>Wc,$ZodNonOptional:()=>bl,$ZodNull:()=>Kc,$ZodNullable:()=>hl,$ZodNumber:()=>Oi,$ZodNumberFormat:()=>qc,$ZodObject:()=>tl,$ZodOptional:()=>pl,$ZodPipe:()=>Zi,$ZodPrefault:()=>yl,$ZodPromise:()=>$l,$ZodReadonly:()=>Sl,$ZodRealError:()=>Pt,$ZodRecord:()=>ol,$ZodRegistry:()=>Mi,$ZodSet:()=>ll,$ZodString:()=>Rt,$ZodStringFormat:()=>W,$ZodSuccess:()=>Dl,$ZodSymbol:()=>Jc,$ZodTemplateLiteral:()=>Cl,$ZodTransform:()=>Li,$ZodTuple:()=>Fu,$ZodType:()=>U,$ZodULID:()=>wc,$ZodURL:()=>Dc,$ZodUUID:()=>bc,$ZodUndefined:()=>Hc,$ZodUnion:()=>ji,$ZodUnknown:()=>xu,$ZodVoid:()=>Yc,$ZodXID:()=>Cc,$brand:()=>i0,$constructor:()=>p,$input:()=>Ul,$output:()=>zl,Doc:()=>gc,JSONSchema:()=>ag,JSONSchemaGenerator:()=>Sa,NEVER:()=>r0,TimePrecision:()=>Rl,_any:()=>od,_array:()=>Aa,_base64:()=>ca,_base64url:()=>la,_bigint:()=>ed,_boolean:()=>Yl,_catch:()=>eg,_cidrv4:()=>oa,_cidrv6:()=>sa,_coercedBigint:()=>nd,_coercedBoolean:()=>Xl,_coercedDate:()=>dd,_coercedNumber:()=>Gl,_coercedString:()=>jl,_cuid:()=>ea,_cuid2:()=>na,_custom:()=>bd,_date:()=>ld,_default:()=>W6,_discriminatedUnion:()=>R6,_e164:()=>da,_email:()=>Gi,_emoji:()=>Yi,_endsWith:()=>ya,_enum:()=>q6,_file:()=>yd,_float32:()=>Hl,_float64:()=>Kl,_gt:()=>wn,_gte:()=>Se,_guid:()=>Tu,_includes:()=>ga,_int:()=>Jl,_int32:()=>Ql,_int64:()=>td,_intersection:()=>L6,_ipv4:()=>ia,_ipv6:()=>aa,_isoDate:()=>Zl,_isoDateTime:()=>Ll,_isoDuration:()=>Ml,_isoTime:()=>Vl,_jwt:()=>fa,_ksuid:()=>ra,_lazy:()=>rg,_length:()=>Pu,_literal:()=>J6,_lowercase:()=>pa,_lt:()=>Sn,_lte:()=>Le,_map:()=>V6,_max:()=>Le,_maxLength:()=>Uu,_maxSize:()=>zu,_mime:()=>ba,_min:()=>Se,_minLength:()=>Jn,_minSize:()=>Zt,_multipleOf:()=>Lt,_nan:()=>fd,_nanoid:()=>Xi,_nativeEnum:()=>G6,_negative:()=>vd,_never:()=>sd,_nonnegative:()=>hd,_nonoptional:()=>Y6,_nonpositive:()=>pd,_normalize:()=>ka,_null:()=>ad,_nullable:()=>Q6,_number:()=>ql,_optional:()=>K6,_overwrite:()=>Cn,_parse:()=>_i,_parseAsync:()=>Si,_pipe:()=>ng,_positive:()=>md,_promise:()=>ig,_property:()=>gd,_readonly:()=>tg,_record:()=>Z6,_refine:()=>kd,_regex:()=>va,_safeParse:()=>Ci,_safeParseAsync:()=>$i,_set:()=>M6,_size:()=>ma,_startsWith:()=>Ea,_string:()=>Pl,_stringFormat:()=>Bd,_stringbool:()=>Dd,_success:()=>X6,_symbol:()=>rd,_templateLiteral:()=>ug,_toLowerCase:()=>Ba,_toUpperCase:()=>_a,_transform:()=>H6,_trim:()=>Da,_tuple:()=>Ed,_uint32:()=>Wl,_uint64:()=>ud,_ulid:()=>ta,_undefined:()=>id,_union:()=>j6,_unknown:()=>Ou,_uppercase:()=>ha,_url:()=>Wi,_uuid:()=>Ji,_uuidv4:()=>Hi,_uuidv6:()=>Ki,_uuidv7:()=>Qi,_void:()=>cd,_xid:()=>ua,clone:()=>Ve,config:()=>ye,flattenError:()=>Di,formatError:()=>Bi,function:()=>Ad,globalConfig:()=>_u,globalRegistry:()=>An,isValidBase64:()=>Ti,isValidBase64URL:()=>jc,isValidJWT:()=>Zc,locales:()=>Vi,parse:()=>Ai,parseAsync:()=>wi,prettifyError:()=>g0,regexes:()=>xi,registry:()=>qi,safeParse:()=>E0,safeParseAsync:()=>y0,toDotPath:()=>h0,toJSONSchema:()=>Sd,treeifyError:()=>p0,util:()=>q,version:()=>Ec});var r0=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 u=t?.Parent??Object;class i extends u{}Object.defineProperty(i,"name",{value:e});function a(o){var s;const c=t?.Parent?new i: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 i0=Symbol("zod_brand"),Vn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},_u={};function ye(e){return e&&Object.assign(_u,e),_u}var q={};En(q,{BIGINT_FORMAT_RANGES:()=>f0,Class:()=>th,NUMBER_FORMAT_RANGES:()=>d0,aborted:()=>qn,allowsEval:()=>s0,assert:()=>Zp,assertEqual:()=>Pp,assertIs:()=>Rp,assertNever:()=>Lp,assertNotEqual:()=>jp,assignProp:()=>yi,cached:()=>Au,captureStackTrace:()=>bi,cleanEnum:()=>nh,cleanRegex:()=>Su,clone:()=>Ve,createTransparentProxy:()=>Hp,defineLazy:()=>H,esc:()=>Mn,escapeRegex:()=>_n,extend:()=>Wp,finalizeIssue:()=>Re,floatSafeRemainder:()=>o0,getElementAtPath:()=>Vp,getEnumValues:()=>Ei,getLengthableOrigin:()=>$u,getParsedType:()=>Jp,getSizableOrigin:()=>Cu,isObject:()=>Ot,isPlainObject:()=>zt,issue:()=>m0,joinValues:()=>S,jsonStringifyReplacer:()=>a0,merge:()=>Yp,normalizeParams:()=>B,nullish:()=>Bn,numKeys:()=>Gp,omit:()=>Qp,optionalKeys:()=>l0,partial:()=>Xp,pick:()=>Kp,prefixIssues:()=>Ie,primitiveTypes:()=>c0,promiseAllObject:()=>Mp,propertyKeyTypes:()=>wu,randomString:()=>qp,required:()=>eh,stringifyPrimitive:()=>L,unwrapMessage:()=>Ut});function Pp(e){return e}function jp(e){return e}function Rp(e){}function Lp(e){throw new Error}function Zp(e){}function Ei(e){const n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,u])=>n.indexOf(+r)===-1).map(([r,u])=>u)}function S(e,n="|"){return e.map(t=>L(t)).join(n)}function a0(e,n){return typeof n=="bigint"?n.toString():n}function Au(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Bn(e){return e==null}function Su(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function o0(e,n){const t=(e.toString().split(".")[1]||"").length,r=(n.toString().split(".")[1]||"").length,u=t>r?t:r,i=Number.parseInt(e.toFixed(u).replace(".","")),a=Number.parseInt(n.toFixed(u).replace(".",""));return i%a/10**u}function H(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 yi(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Vp(e,n){return n?n.reduce((t,r)=>t?.[r],e):e}function Mp(e){const n=Object.keys(e),t=n.map(r=>e[r]);return Promise.all(t).then(r=>{const u={};for(let i=0;i<n.length;i++)u[n[i]]=r[i];return u})}function qp(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 Mn(e){return JSON.stringify(e)}var bi=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Ot(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var s0=Au(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function zt(e){if(Ot(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(Ot(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Gp(e){let n=0;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n++;return n}var Jp=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}`)}},wu=new Set(["string","number","symbol"]),c0=new Set(["string","number","bigint","boolean","symbol","undefined"]);function _n(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ve(e,n,t){const r=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(r._zod.parent=e),r}function B(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 Hp(e){let n;return new Proxy({},{get(t,r,u){return n??(n=e()),Reflect.get(n,r,u)},set(t,r,u,i){return n??(n=e()),Reflect.set(n,r,u,i)},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,u){return n??(n=e()),Reflect.defineProperty(n,r,u)}})}function L(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function l0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}var d0={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]},f0={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Kp(e,n){const t={},r=e._zod.def;for(const u in n){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(t[u]=r.shape[u])}return Ve(e,{...e._zod.def,shape:t,checks:[]})}function Qp(e,n){const t={...e._zod.def.shape},r=e._zod.def;for(const u in n){if(!(u in r.shape))throw new Error(`Unrecognized key: "${u}"`);n[u]&&delete t[u]}return Ve(e,{...e._zod.def,shape:t,checks:[]})}function Wp(e,n){if(!zt(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 yi(this,"shape",r),r},checks:[]};return Ve(e,t)}function Yp(e,n){return Ve(e,{...e._zod.def,get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return yi(this,"shape",t),t},catchall:n._zod.def.catchall,checks:[]})}function Xp(e,n,t){const r=n._zod.def.shape,u={...r};if(t)for(const i in t){if(!(i in r))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(u[i]=e?new e({type:"optional",innerType:r[i]}):r[i])}else for(const i in r)u[i]=e?new e({type:"optional",innerType:r[i]}):r[i];return Ve(n,{...n._zod.def,shape:u,checks:[]})}function eh(e,n,t){const r=n._zod.def.shape,u={...r};if(t)for(const i in t){if(!(i in u))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(u[i]=new e({type:"nonoptional",innerType:r[i]}))}else for(const i in r)u[i]=new e({type:"nonoptional",innerType:r[i]});return Ve(n,{...n._zod.def,shape:u,checks:[]})}function qn(e,n=0){for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Ie(e,n){return n.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function Ut(e){return typeof e=="string"?e:e?.message}function Re(e,n,t){const r={...e,path:e.path??[]};if(!e.message){const u=Ut(e.inst?._zod.def?.error?.(e))??Ut(n?.error?.(e))??Ut(t.customError?.(e))??Ut(t.localeError?.(e))??"Invalid input";r.message=u}return delete r.inst,delete r.continue,n?.reportInput||delete r.input,r}function Cu(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function $u(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function m0(...e){const[n,t,r]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:r}:{...n}}function nh(e){return Object.entries(e).filter(([n,t])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}var th=class{constructor(...e){}},v0=(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,a0,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ki=p("$ZodError",v0),Pt=p("$ZodError",v0,{Parent:Error});function Di(e,n=t=>t.message){const t={},r=[];for(const u of e.issues)u.path.length>0?(t[u.path[0]]=t[u.path[0]]||[],t[u.path[0]].push(n(u))):r.push(n(u));return{formErrors:r,fieldErrors:t}}function Bi(e,n){const t=n||function(i){return i.message},r={_errors:[]},u=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>u({issues:o}));else if(a.code==="invalid_key")u({issues:a.issues});else if(a.code==="invalid_element")u({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 u(e),r}function p0(e,n){const t=n||function(i){return i.message},r={errors:[]},u=(i,a=[])=>{var o,s;for(const c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(l=>u({issues:l},c.path));else if(c.code==="invalid_key")u({issues:c.issues},c.path);else if(c.code==="invalid_element")u({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 u(e),r}function h0(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 g0(e){const n=[],t=[...e.issues].sort((r,u)=>r.path.length-u.path.length);for(const r of t)n.push(`\u2716 ${r.message}`),r.path?.length&&n.push(` \u2192 at ${h0(r.path)}`);return n.join(`
|
|
43
|
+
`)}var _i=e=>(n,t,r,u)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},i);if(a instanceof Promise)throw new Vn;if(a.issues.length){const o=new(u?.Err??e)(a.issues.map(s=>Re(s,i,ye())));throw bi(o,u?.callee),o}return a.value},Ai=_i(Pt),Si=e=>async(n,t,r,u)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const o=new(u?.Err??e)(a.issues.map(s=>Re(s,i,ye())));throw bi(o,u?.callee),o}return a.value},wi=Si(Pt),Ci=e=>(n,t,r)=>{const u=r?{...r,async:!1}:{async:!1},i=n._zod.run({value:t,issues:[]},u);if(i instanceof Promise)throw new Vn;return i.issues.length?{success:!1,error:new(e??ki)(i.issues.map(a=>Re(a,u,ye())))}:{success:!0,data:i.value}},E0=Ci(Pt),$i=e=>async(n,t,r)=>{const u=r?Object.assign(r,{async:!0}):{async:!0};let i=n._zod.run({value:t,issues:[]},u);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Re(a,u,ye())))}:{success:!0,data:i.value}},y0=$i(Pt),xi={};En(xi,{base64:()=>T0,base64url:()=>Ii,bigint:()=>V0,boolean:()=>G0,browserEmail:()=>lh,cidrv4:()=>F0,cidrv6:()=>N0,cuid:()=>b0,cuid2:()=>k0,date:()=>P0,datetime:()=>L0,domain:()=>fh,duration:()=>S0,e164:()=>z0,email:()=>C0,emoji:()=>$0,extendedDuration:()=>uh,guid:()=>w0,hostname:()=>O0,html5Email:()=>oh,integer:()=>M0,ipv4:()=>x0,ipv6:()=>I0,ksuid:()=>_0,lowercase:()=>K0,nanoid:()=>A0,null:()=>J0,number:()=>q0,rfc5322Email:()=>sh,string:()=>Z0,time:()=>R0,ulid:()=>D0,undefined:()=>H0,unicodeEmail:()=>ch,uppercase:()=>Q0,uuid:()=>Gn,uuid4:()=>rh,uuid6:()=>ih,uuid7:()=>ah,xid:()=>B0});var b0=/^[cC][^\s-]{8,}$/,k0=/^[0-9a-z]+$/,D0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,B0=/^[0-9a-vA-V]{20}$/,_0=/^[A-Za-z0-9]{27}$/,A0=/^[a-zA-Z0-9_-]{21}$/,S0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,uh=/^[-+]?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)?)??$/,w0=/^([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})$/,Gn=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)$/,rh=Gn(4),ih=Gn(6),ah=Gn(7),C0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,oh=/^[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])?)*$/,sh=/^(([^<>()\[\]\\.,;:\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,}))$/,ch=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,lh=/^[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])?)*$/,dh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function $0(){return new RegExp(dh,"u")}var x0=/^(?:(?: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])$/,I0=/^(([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})$/,F0=/^((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])$/,N0=/^(([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])$/,T0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ii=/^[A-Za-z0-9_-]*$/,O0=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,fh=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,z0=/^\+(?:[0-9]){6,14}[0-9]$/,U0="(?:(?:\\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])))",P0=new RegExp(`^${U0}$`);function j0(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 R0(e){return new RegExp(`^${j0(e)}$`)}function L0(e){const n=j0({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(`^${U0}T(?:${r})$`)}var Z0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},V0=/^\d+n?$/,M0=/^\d+$/,q0=/^-?\d+(?:\.\d+)?/i,G0=/true|false/i,J0=/null/i,H0=/undefined/i,K0=/^[^A-Z]*$/,Q0=/^[^a-z]*$/,ue=p("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),W0={number:"number",bigint:"bigint",object:"date"},Fi=p("$ZodCheckLessThan",(e,n)=>{ue.init(e,n);const t=W0[typeof n.value];e._zod.onattach.push(r=>{const u=r._zod.bag,i=(n.inclusive?u.maximum:u.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<i&&(n.inclusive?u.maximum=n.value:u.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})}}),Ni=p("$ZodCheckGreaterThan",(e,n)=>{ue.init(e,n);const t=W0[typeof n.value];e._zod.onattach.push(r=>{const u=r._zod.bag,i=(n.inclusive?u.minimum:u.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>i&&(n.inclusive?u.minimum=n.value:u.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})}}),Y0=p("$ZodCheckMultipleOf",(e,n)=>{ue.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):o0(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})}}),X0=p("$ZodCheckNumberFormat",(e,n)=>{ue.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),r=t?"int":"number",[u,i]=d0[n.format];e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=n.format,o.minimum=u,o.maximum=i,t&&(o.pattern=M0)}),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<u&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:u,inclusive:!0,inst:e,continue:!n.abort}),o>i&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:i,inst:e})}}),ec=p("$ZodCheckBigIntFormat",(e,n)=>{ue.init(e,n);const[t,r]=f0[n.format];e._zod.onattach.push(u=>{const i=u._zod.bag;i.format=n.format,i.minimum=t,i.maximum=r}),e._zod.check=u=>{const i=u.value;i<t&&u.issues.push({origin:"bigint",input:i,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),i>r&&u.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inst:e})}}),nc=p("$ZodCheckMaxSize",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=r=>{const u=r.value;return!Bn(u)&&u.size!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<u&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const u=r.value;u.size<=n.maximum||r.issues.push({origin:Cu(u),code:"too_big",maximum:n.maximum,input:u,inst:e,continue:!n.abort})}}),tc=p("$ZodCheckMinSize",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=r=>{const u=r.value;return!Bn(u)&&u.size!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>u&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const u=r.value;u.size>=n.minimum||r.issues.push({origin:Cu(u),code:"too_small",minimum:n.minimum,input:u,inst:e,continue:!n.abort})}}),uc=p("$ZodCheckSizeEquals",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=r=>{const u=r.value;return!Bn(u)&&u.size!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag;u.minimum=n.size,u.maximum=n.size,u.size=n.size}),e._zod.check=r=>{const u=r.value,i=u.size;if(i===n.size)return;const a=i>n.size;r.issues.push({origin:Cu(u),...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})}}),rc=p("$ZodCheckMaxLength",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=r=>{const u=r.value;return!Bn(u)&&u.length!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<u&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const u=r.value;if(u.length<=n.maximum)return;const a=$u(u);r.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:u,inst:e,continue:!n.abort})}}),ic=p("$ZodCheckMinLength",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=r=>{const u=r.value;return!Bn(u)&&u.length!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>u&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const u=r.value;if(u.length>=n.minimum)return;const a=$u(u);r.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:u,inst:e,continue:!n.abort})}}),ac=p("$ZodCheckLengthEquals",(e,n)=>{var t;ue.init(e,n),(t=e._zod.def).when??(t.when=r=>{const u=r.value;return!Bn(u)&&u.length!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag;u.minimum=n.length,u.maximum=n.length,u.length=n.length}),e._zod.check=r=>{const u=r.value,i=u.length;if(i===n.length)return;const a=$u(u),o=i>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})}}),jt=p("$ZodCheckStringFormat",(e,n)=>{var t,r;ue.init(e,n),e._zod.onattach.push(u=>{const i=u._zod.bag;i.format=n.format,n.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(n.pattern))}),n.pattern?(t=e._zod).check??(t.check=u=>{n.pattern.lastIndex=0,!n.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:n.format,input:u.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(r=e._zod).check??(r.check=()=>{})}),oc=p("$ZodCheckRegex",(e,n)=>{jt.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})}}),sc=p("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=K0),jt.init(e,n)}),cc=p("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=Q0),jt.init(e,n)}),lc=p("$ZodCheckIncludes",(e,n)=>{ue.init(e,n);const t=_n(n.includes),r=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=r,e._zod.onattach.push(u=>{const i=u._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=u=>{u.value.includes(n.includes,n.position)||u.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:u.value,inst:e,continue:!n.abort})}}),dc=p("$ZodCheckStartsWith",(e,n)=>{ue.init(e,n);const t=new RegExp(`^${_n(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const u=r._zod.bag;u.patterns??(u.patterns=new Set),u.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})}}),fc=p("$ZodCheckEndsWith",(e,n)=>{ue.init(e,n);const t=new RegExp(`.*${_n(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const u=r._zod.bag;u.patterns??(u.patterns=new Set),u.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 mc(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues))}var vc=p("$ZodCheckProperty",(e,n)=>{ue.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(u=>mc(u,t,n.property));mc(r,t,n.property)}}),pc=p("$ZodCheckMimeType",(e,n)=>{ue.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})}}),hc=p("$ZodCheckOverwrite",(e,n)=>{ue.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}}),gc=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(`
|
|
44
|
+
`).filter(i=>i),r=Math.min(...t.map(i=>i.length-i.trimStart().length)),u=t.map(i=>i.slice(r)).map(i=>" ".repeat(this.indent*2)+i);for(const i of u)this.content.push(i)}compile(){const e=Function,n=this?.args,r=[...(this?.content??[""]).map(u=>` ${u}`)];return new e(...n,r.join(`
|
|
45
|
+
`))}},Ec={major:4,minor:0,patch:5},U=p("$ZodType",(e,n)=>{var t;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=Ec;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const u of r)for(const i of u._zod.onattach)i(e);if(r.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const u=(i,a,o)=>{let s=qn(i),c;for(const l of a){if(l._zod.def.when){if(!l._zod.def.when(i))continue}else if(s)continue;const f=i.issues.length,m=l._zod.check(i);if(m instanceof Promise&&o?.async===!1)throw new Vn;if(c||m instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await m,i.issues.length!==f&&(s||(s=qn(i,f)))});else{if(i.issues.length===f)continue;s||(s=qn(i,f))}}return c?c.then(()=>i):i};e._zod.run=(i,a)=>{const o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new Vn;return o.then(s=>u(s,r,a))}return u(o,r,a)}}e["~standard"]={validate:u=>{try{const i=E0(e,u);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return y0(e,u).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Rt=p("$ZodString",(e,n)=>{U.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Z0(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}}),W=p("$ZodStringFormat",(e,n)=>{jt.init(e,n),Rt.init(e,n)}),yc=p("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=w0),W.init(e,n)}),bc=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=Gn(r))}else n.pattern??(n.pattern=Gn());W.init(e,n)}),kc=p("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=C0),W.init(e,n)}),Dc=p("$ZodURL",(e,n)=>{W.init(e,n),e._zod.check=t=>{try{const r=t.value,u=new URL(r),i=u.href;n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(u.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:O0.source,input:t.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.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("/")&&i.endsWith("/")?t.value=i.slice(0,-1):t.value=i;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!n.abort})}}}),Bc=p("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=$0()),W.init(e,n)}),_c=p("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=A0),W.init(e,n)}),Ac=p("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=b0),W.init(e,n)}),Sc=p("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=k0),W.init(e,n)}),wc=p("$ZodULID",(e,n)=>{n.pattern??(n.pattern=D0),W.init(e,n)}),Cc=p("$ZodXID",(e,n)=>{n.pattern??(n.pattern=B0),W.init(e,n)}),$c=p("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=_0),W.init(e,n)}),xc=p("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=L0(n)),W.init(e,n)}),Ic=p("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=P0),W.init(e,n)}),Fc=p("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=R0(n)),W.init(e,n)}),Nc=p("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=S0),W.init(e,n)}),Tc=p("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=x0),W.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format="ipv4"})}),Oc=p("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=I0),W.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})}}}),zc=p("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=F0),W.init(e,n)}),Uc=p("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=N0),W.init(e,n),e._zod.check=t=>{const[r,u]=t.value.split("/");try{if(!u)throw new Error;const i=Number(u);if(`${i}`!==u)throw new Error;if(i<0||i>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 Ti(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Pc=p("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=T0),W.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{Ti(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!n.abort})}});function jc(e){if(!Ii.test(e))return!1;const n=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),t=n.padEnd(Math.ceil(n.length/4)*4,"=");return Ti(t)}var Rc=p("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=Ii),W.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{jc(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!n.abort})}}),Lc=p("$ZodE164",(e,n)=>{n.pattern??(n.pattern=z0),W.init(e,n)});function Zc(e,n=null){try{const t=e.split(".");if(t.length!==3)return!1;const[r]=t;if(!r)return!1;const u=JSON.parse(atob(r));return!("typ"in u&&u?.typ!=="JWT"||!u.alg||n&&(!("alg"in u)||u.alg!==n))}catch{return!1}}var Vc=p("$ZodJWT",(e,n)=>{W.init(e,n),e._zod.check=t=>{Zc(t.value,n.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!n.abort})}}),Mc=p("$ZodCustomStringFormat",(e,n)=>{W.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})}}),Oi=p("$ZodNumber",(e,n)=>{U.init(e,n),e._zod.pattern=e._zod.bag.pattern??q0,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=Number(t.value)}catch{}const u=t.value;if(typeof u=="number"&&!Number.isNaN(u)&&Number.isFinite(u))return t;const i=typeof u=="number"?Number.isNaN(u)?"NaN":Number.isFinite(u)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:u,inst:e,...i?{received:i}:{}}),t}}),qc=p("$ZodNumber",(e,n)=>{X0.init(e,n),Oi.init(e,n)}),zi=p("$ZodBoolean",(e,n)=>{U.init(e,n),e._zod.pattern=G0,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=!!t.value}catch{}const u=t.value;return typeof u=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:e}),t}}),Ui=p("$ZodBigInt",(e,n)=>{U.init(e,n),e._zod.pattern=V0,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}}),Gc=p("$ZodBigInt",(e,n)=>{ec.init(e,n),Ui.init(e,n)}),Jc=p("$ZodSymbol",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=t.value;return typeof u=="symbol"||t.issues.push({expected:"symbol",code:"invalid_type",input:u,inst:e}),t}}),Hc=p("$ZodUndefined",(e,n)=>{U.init(e,n),e._zod.pattern=H0,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{const u=t.value;return typeof u>"u"||t.issues.push({expected:"undefined",code:"invalid_type",input:u,inst:e}),t}}),Kc=p("$ZodNull",(e,n)=>{U.init(e,n),e._zod.pattern=J0,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{const u=t.value;return u===null||t.issues.push({expected:"null",code:"invalid_type",input:u,inst:e}),t}}),Qc=p("$ZodAny",(e,n)=>{U.init(e,n),e._zod.parse=t=>t}),xu=p("$ZodUnknown",(e,n)=>{U.init(e,n),e._zod.parse=t=>t}),Wc=p("$ZodNever",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),Yc=p("$ZodVoid",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=t.value;return typeof u>"u"||t.issues.push({expected:"void",code:"invalid_type",input:u,inst:e}),t}}),Xc=p("$ZodDate",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=new Date(t.value)}catch{}const u=t.value,i=u instanceof Date;return i&&!Number.isNaN(u.getTime())||t.issues.push({expected:"date",code:"invalid_type",input:u,...i?{received:"Invalid Date"}:{},inst:e}),t}});function el(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}var Pi=p("$ZodArray",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=t.value;if(!Array.isArray(u))return t.issues.push({expected:"array",code:"invalid_type",input:u,inst:e}),t;t.value=Array(u.length);const i=[];for(let a=0;a<u.length;a++){const o=u[a],s=n.element._zod.run({value:o,issues:[]},r);s instanceof Promise?i.push(s.then(c=>el(c,t,a))):el(s,t,a)}return i.length?Promise.all(i).then(()=>t):t}});function Iu(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}function nl(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(...Ie(t,e.issues)):e.value===void 0?t in r&&(n.value[t]=void 0):n.value[t]=e.value}var tl=p("$ZodObject",(e,n)=>{U.init(e,n);const t=Au(()=>{const f=Object.keys(n.shape);for(const d of f)if(!(n.shape[d]instanceof U))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const m=l0(n.shape);return{shape:n.shape,keys:f,keySet:new Set(f),numKeys:f.length,optionalKeys:new Set(m)}});H(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 gc(["shape","payload","ctx"]),d=t.value,v=E=>{const k=Mn(E);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 E of d.keys)h[E]=`key_${b++}`;m.write("const newResult = {}");for(const E of d.keys)if(d.optionalKeys.has(E)){const k=h[E];m.write(`const ${k} = ${v(E)};`);const w=Mn(E);m.write(`
|
|
46
|
+
if (${k}.issues.length) {
|
|
47
|
+
if (input[${w}] === undefined) {
|
|
48
|
+
if (${w} in input) {
|
|
49
|
+
newResult[${w}] = undefined;
|
|
50
|
+
}
|
|
51
|
+
} else {
|
|
52
|
+
payload.issues = payload.issues.concat(
|
|
53
|
+
${k}.issues.map((iss) => ({
|
|
54
|
+
...iss,
|
|
55
|
+
path: iss.path ? [${w}, ...iss.path] : [${w}],
|
|
56
|
+
}))
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
} else if (${k}.value === undefined) {
|
|
60
|
+
if (${w} in input) newResult[${w}] = undefined;
|
|
61
|
+
} else {
|
|
62
|
+
newResult[${w}] = ${k}.value;
|
|
63
|
+
}
|
|
64
|
+
`)}else{const k=h[E];m.write(`const ${k} = ${v(E)};`),m.write(`
|
|
65
|
+
if (${k}.issues.length) payload.issues = payload.issues.concat(${k}.issues.map(iss => ({
|
|
66
|
+
...iss,
|
|
67
|
+
path: iss.path ? [${Mn(E)}, ...iss.path] : [${Mn(E)}]
|
|
68
|
+
})));`),m.write(`newResult[${Mn(E)}] = ${k}.value`)}m.write("payload.value = newResult;"),m.write("return payload;");const y=m.compile();return(E,k)=>y(f,E,k)};let u;const i=Ot,a=!_u.jitless,s=a&&s0.value,c=n.catchall;let l;e._zod.parse=(f,m)=>{l??(l=t.value);const d=f.value;if(!i(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)u||(u=r(n.shape)),f=u(f,m);else{f.value={};const k=l.shape;for(const w of l.keys){const _=k[w],G=_._zod.run({value:d[w],issues:[]},m),V=_._zod.optin==="optional"&&_._zod.optout==="optional";G instanceof Promise?v.push(G.then(F=>V?nl(F,f,w,d):Iu(F,f,w))):V?nl(G,f,w,d):Iu(G,f,w)}}if(!c)return v.length?Promise.all(v).then(()=>f):f;const h=[],b=l.keySet,y=c._zod,E=y.def.type;for(const k of Object.keys(d)){if(b.has(k))continue;if(E==="never"){h.push(k);continue}const w=y.run({value:d[k],issues:[]},m);w instanceof Promise?v.push(w.then(_=>Iu(_,f,k))):Iu(w,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 ul(e,n,t,r){for(const u of e)if(u.issues.length===0)return n.value=u.value,n;return n.issues.push({code:"invalid_union",input:n.value,inst:t,errors:e.map(u=>u.issues.map(i=>Re(i,r,ye())))}),n}var ji=p("$ZodUnion",(e,n)=>{U.init(e,n),H(e._zod,"optin",()=>n.options.some(t=>t._zod.optin==="optional")?"optional":void 0),H(e._zod,"optout",()=>n.options.some(t=>t._zod.optout==="optional")?"optional":void 0),H(e._zod,"values",()=>{if(n.options.every(t=>t._zod.values))return new Set(n.options.flatMap(t=>Array.from(t._zod.values)))}),H(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=>Su(r.source)).join("|")})$`)}}),e._zod.parse=(t,r)=>{let u=!1;const i=[];for(const a of n.options){const o=a._zod.run({value:t.value,issues:[]},r);if(o instanceof Promise)i.push(o),u=!0;else{if(o.issues.length===0)return o;i.push(o)}}return u?Promise.all(i).then(a=>ul(a,t,e,r)):ul(i,t,e,r)}}),rl=p("$ZodDiscriminatedUnion",(e,n)=>{ji.init(e,n);const t=e._zod.parse;H(e._zod,"propValues",()=>{const u={};for(const i of n.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(i)}"`);for(const[o,s]of Object.entries(a)){u[o]||(u[o]=new Set);for(const c of s)u[o].add(c)}}return u});const r=Au(()=>{const u=n.options,i=new Map;for(const a of u){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(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});e._zod.parse=(u,i)=>{const a=u.value;if(!Ot(a))return u.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),u;const o=r.value.get(a?.[n.discriminator]);return o?o._zod.run(u,i):n.unionFallback?t(u,i):(u.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[n.discriminator],inst:e}),u)}}),il=p("$ZodIntersection",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=t.value,i=n.left._zod.run({value:u,issues:[]},r),a=n.right._zod.run({value:u,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>al(t,s,c)):al(t,i,a)}});function Ri(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(zt(e)&&zt(n)){const t=Object.keys(n),r=Object.keys(e).filter(i=>t.indexOf(i)!==-1),u={...e,...n};for(const i of r){const a=Ri(e[i],n[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};u[i]=a.data}return{valid:!0,data:u}}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 u=e[r],i=n[r],a=Ri(u,i);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function al(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),qn(e))return e;const r=Ri(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 Fu=p("$ZodTuple",(e,n)=>{U.init(e,n);const t=n.items,r=t.length-[...t].reverse().findIndex(u=>u._zod.optin!=="optional");e._zod.parse=(u,i)=>{const a=u.value;if(!Array.isArray(a))return u.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),u;u.value=[];const o=[];if(!n.rest){const c=a.length>t.length,l=a.length<r-1;if(c||l)return u.issues.push({input:a,inst:e,origin:"array",...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}}),u}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:[]},i);l instanceof Promise?o.push(l.then(f=>Nu(f,u,s))):Nu(l,u,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:[]},i);f instanceof Promise?o.push(f.then(m=>Nu(m,u,s))):Nu(f,u,s)}}return o.length?Promise.all(o).then(()=>u):u}});function Nu(e,n,t){e.issues.length&&n.issues.push(...Ie(t,e.issues)),n.value[t]=e.value}var ol=p("$ZodRecord",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=t.value;if(!zt(u))return t.issues.push({expected:"record",code:"invalid_type",input:u,inst:e}),t;const i=[];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:u[s],issues:[]},r);c instanceof Promise?i.push(c.then(l=>{l.issues.length&&t.issues.push(...Ie(s,l.issues)),t.value[s]=l.value})):(c.issues.length&&t.issues.push(...Ie(s,c.issues)),t.value[s]=c.value)}let o;for(const s in u)a.has(s)||(o=o??[],o.push(s));o&&o.length>0&&t.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:o})}else{t.value={};for(const a of Reflect.ownKeys(u)){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=>Re(c,r,ye())),input:a,path:[a],inst:e}),t.value[o.value]=o.value;continue}const s=n.valueType._zod.run({value:u[a],issues:[]},r);s instanceof Promise?i.push(s.then(c=>{c.issues.length&&t.issues.push(...Ie(a,c.issues)),t.value[o.value]=c.value})):(s.issues.length&&t.issues.push(...Ie(a,s.issues)),t.value[o.value]=s.value)}}return i.length?Promise.all(i).then(()=>t):t}}),sl=p("$ZodMap",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=t.value;if(!(u instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:u,inst:e}),t;const i=[];t.value=new Map;for(const[a,o]of u){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?i.push(Promise.all([s,c]).then(([l,f])=>{cl(l,f,t,a,u,e,r)})):cl(s,c,t,a,u,e,r)}return i.length?Promise.all(i).then(()=>t):t}});function cl(e,n,t,r,u,i,a){e.issues.length&&(wu.has(typeof r)?t.issues.push(...Ie(r,e.issues)):t.issues.push({origin:"map",code:"invalid_key",input:u,inst:i,issues:e.issues.map(o=>Re(o,a,ye()))})),n.issues.length&&(wu.has(typeof r)?t.issues.push(...Ie(r,n.issues)):t.issues.push({origin:"map",code:"invalid_element",input:u,inst:i,key:r,issues:n.issues.map(o=>Re(o,a,ye()))})),t.value.set(e.value,n.value)}var ll=p("$ZodSet",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=t.value;if(!(u instanceof Set))return t.issues.push({input:u,inst:e,expected:"set",code:"invalid_type"}),t;const i=[];t.value=new Set;for(const a of u){const o=n.valueType._zod.run({value:a,issues:[]},r);o instanceof Promise?i.push(o.then(s=>dl(s,t))):dl(o,t)}return i.length?Promise.all(i).then(()=>t):t}});function dl(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}var fl=p("$ZodEnum",(e,n)=>{U.init(e,n);const t=Ei(n.entries);e._zod.values=new Set(t),e._zod.pattern=new RegExp(`^(${t.filter(r=>wu.has(typeof r)).map(r=>typeof r=="string"?_n(r):r.toString()).join("|")})$`),e._zod.parse=(r,u)=>{const i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t,input:i,inst:e}),r}}),ml=p("$ZodLiteral",(e,n)=>{U.init(e,n),e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?_n(t):t?t.toString():String(t)).join("|")})$`),e._zod.parse=(t,r)=>{const u=t.value;return e._zod.values.has(u)||t.issues.push({code:"invalid_value",values:n.values,input:u,inst:e}),t}}),vl=p("$ZodFile",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=t.value;return u instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:u,inst:e}),t}}),Li=p("$ZodTransform",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=n.transform(t.value,t);if(r.async)return(u instanceof Promise?u:Promise.resolve(u)).then(a=>(t.value=a,t));if(u instanceof Promise)throw new Vn;return t.value=u,t}}),pl=p("$ZodOptional",(e,n)=>{U.init(e,n),e._zod.optin="optional",e._zod.optout="optional",H(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),H(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${Su(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)}),hl=p("$ZodNullable",(e,n)=>{U.init(e,n),H(e._zod,"optin",()=>n.innerType._zod.optin),H(e._zod,"optout",()=>n.innerType._zod.optout),H(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${Su(t.source)}|null)$`):void 0}),H(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)}),gl=p("$ZodDefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{if(t.value===void 0)return t.value=n.defaultValue,t;const u=n.innerType._zod.run(t,r);return u instanceof Promise?u.then(i=>El(i,n)):El(u,n)}});function El(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}var yl=p("$ZodPrefault",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(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))}),bl=p("$ZodNonOptional",(e,n)=>{U.init(e,n),H(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 u=n.innerType._zod.run(t,r);return u instanceof Promise?u.then(i=>kl(i,e)):kl(u,e)}});function kl(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 Dl=p("$ZodSuccess",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>{const u=n.innerType._zod.run(t,r);return u instanceof Promise?u.then(i=>(t.value=i.issues.length===0,t)):(t.value=u.issues.length===0,t)}}),Bl=p("$ZodCatch",(e,n)=>{U.init(e,n),e._zod.optin="optional",H(e._zod,"optout",()=>n.innerType._zod.optout),H(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{const u=n.innerType._zod.run(t,r);return u instanceof Promise?u.then(i=>(t.value=i.value,i.issues.length&&(t.value=n.catchValue({...t,error:{issues:i.issues.map(a=>Re(a,r,ye()))},input:t.value}),t.issues=[]),t)):(t.value=u.value,u.issues.length&&(t.value=n.catchValue({...t,error:{issues:u.issues.map(i=>Re(i,r,ye()))},input:t.value}),t.issues=[]),t)}}),_l=p("$ZodNaN",(e,n)=>{U.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)}),Zi=p("$ZodPipe",(e,n)=>{U.init(e,n),H(e._zod,"values",()=>n.in._zod.values),H(e._zod,"optin",()=>n.in._zod.optin),H(e._zod,"optout",()=>n.out._zod.optout),H(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,r)=>{const u=n.in._zod.run(t,r);return u instanceof Promise?u.then(i=>Al(i,n,r)):Al(u,n,r)}});function Al(e,n,t){return qn(e)?e:n.out._zod.run({value:e.value,issues:e.issues},t)}var Sl=p("$ZodReadonly",(e,n)=>{U.init(e,n),H(e._zod,"propValues",()=>n.innerType._zod.propValues),H(e._zod,"values",()=>n.innerType._zod.values),H(e._zod,"optin",()=>n.innerType._zod.optin),H(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,r)=>{const u=n.innerType._zod.run(t,r);return u instanceof Promise?u.then(wl):wl(u)}});function wl(e){return e.value=Object.freeze(e.value),e}var Cl=p("$ZodTemplateLiteral",(e,n)=>{U.init(e,n);const t=[];for(const r of n.parts)if(r instanceof U){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const u=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!u)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const i=u.startsWith("^")?1:0,a=u.endsWith("$")?u.length-1:u.length;t.push(u.slice(i,a))}else if(r===null||c0.has(typeof r))t.push(_n(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${t.join("")}$`),e._zod.parse=(r,u)=>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)}),$l=p("$ZodPromise",(e,n)=>{U.init(e,n),e._zod.parse=(t,r)=>Promise.resolve(t.value).then(u=>n.innerType._zod.run({value:u,issues:[]},r))}),xl=p("$ZodLazy",(e,n)=>{U.init(e,n),H(e._zod,"innerType",()=>n.getter()),H(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),H(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),H(e._zod,"optin",()=>e._zod.innerType._zod.optin),H(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),Il=p("$ZodCustom",(e,n)=>{ue.init(e,n),U.init(e,n),e._zod.parse=(t,r)=>t,e._zod.check=t=>{const r=t.value,u=n.fn(r);if(u instanceof Promise)return u.then(i=>Fl(i,t,r,e));Fl(u,t,r,e)}});function Fl(e,n,t,r){if(!e){const u={code:"custom",input:t,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(u.params=r._zod.def.params),n.issues.push(m0(u))}}var Vi={};En(Vi,{ar:()=>vh,az:()=>hh,be:()=>Eh,ca:()=>bh,cs:()=>Dh,de:()=>_h,en:()=>Tl,eo:()=>$h,es:()=>Ih,fa:()=>Nh,fi:()=>Oh,fr:()=>Uh,frCA:()=>jh,he:()=>Lh,hu:()=>Vh,id:()=>qh,it:()=>Jh,ja:()=>Kh,kh:()=>Wh,ko:()=>Xh,mk:()=>n6,ms:()=>u6,nl:()=>i6,no:()=>o6,ota:()=>c6,pl:()=>m6,ps:()=>d6,pt:()=>p6,ru:()=>g6,sl:()=>y6,sv:()=>k6,ta:()=>B6,th:()=>A6,tr:()=>C6,ua:()=>x6,ur:()=>F6,vi:()=>T6,zhCN:()=>z6,zhTW:()=>P6});var mh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.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 ${u.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${t(u.input)}`;case"invalid_value":return u.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 ${L(u.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: ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.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 ${u.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${u.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 ${u.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${u.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${u.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${u.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.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 "${u.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${r[i.format]??u.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 ${u.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${u.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${u.keys.length>1?"\u0629":""}: ${S(u.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${u.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 ${u.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function vh(){return{localeError:mh()}}var ph=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${u.expected}, daxil olan ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${L(u.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${u.origin??"d\u0259y\u0259r"} ${i}${u.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${u.origin??"d\u0259y\u0259r"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${u.origin} ${i}${u.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??u.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${u.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${u.keys.length>1?"lar":""}: ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${u.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function hh(){return{localeError:ph()}}function Nl(e,n,t,r){const u=Math.abs(e),i=u%10,a=u%100;return a>=11&&a<=19?r:i===1?n:i>=2&&i<=4?t:r}var gh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(u))return"\u043C\u0430\u0441\u0456\u045E";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.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 ${u.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${t(u.input)}`;case"invalid_value":return u.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 ${L(u.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 ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);if(a){const o=Number(u.maximum),s=Nl(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 ${u.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${u.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 ${u.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);if(a){const o=Number(u.minimum),s=Nl(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 ${u.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${u.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 ${u.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??u.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 ${u.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${u.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${u.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 ${u.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Eh(){return{localeError:gh()}}var yh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${u.expected}, s'ha rebut ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Valor inv\xE0lid: s'esperava ${L(u.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${S(u.values," o ")}`;case"too_big":{const i=u.inclusive?"com a m\xE0xim":"menys de",a=n(u.origin);return a?`Massa gran: s'esperava que ${u.origin??"el valor"} contingu\xE9s ${i} ${u.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${u.origin??"el valor"} fos ${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?"com a m\xEDnim":"m\xE9s de",a=n(u.origin);return a?`Massa petit: s'esperava que ${u.origin} contingu\xE9s ${i} ${u.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${u.origin} fos ${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??u.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${u.divisor}`;case"unrecognized_keys":return`Clau${u.keys.length>1?"s":""} no reconeguda${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${u.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${u.origin}`;default:return"Entrada inv\xE0lida"}}};function bh(){return{localeError:yh()}}var kh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"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(u))return"pole";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${u.expected}, obdr\u017Eeno ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${L(u.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${u.origin??"hodnota"} mus\xED m\xEDt ${i}${u.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${u.origin??"hodnota"} mus\xED b\xFDt ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${u.origin??"hodnota"} mus\xED m\xEDt ${i}${u.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${u.origin??"hodnota"} mus\xED b\xFDt ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??u.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${u.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${S(u.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${u.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${u.origin}`;default:return"Neplatn\xFD vstup"}}};function Dh(){return{localeError:kh()}}var Bh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"Zahl";case"object":{if(Array.isArray(u))return"Array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${u.expected}, erhalten ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ung\xFCltige Eingabe: erwartet ${L(u.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Zu gro\xDF: erwartet, dass ${u.origin??"Wert"} ${i}${u.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${u.origin??"Wert"} ${i}${u.maximum.toString()} ist`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Zu klein: erwartet, dass ${u.origin} ${i}${u.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${u.origin} ${i}${u.minimum.toString()} ist`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??u.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${u.divisor} sein`;case"unrecognized_keys":return`${u.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${S(u.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${u.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${u.origin}`;default:return"Ung\xFCltige Eingabe"}}};function _h(){return{localeError:Bh()}}var Ah=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},Sh=()=>{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 ${Ah(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${L(r.values[0])}`:`Invalid option: expected one of ${S(r.values,"|")}`;case"too_big":{const u=r.inclusive?"<=":"<",i=n(r.origin);return i?`Too big: expected ${r.origin??"value"} to have ${u}${r.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${u}${r.maximum.toString()}`}case"too_small":{const u=r.inclusive?">=":">",i=n(r.origin);return i?`Too small: expected ${r.origin} to have ${u}${r.minimum.toString()} ${i.unit}`:`Too small: expected ${r.origin} to be ${u}${r.minimum.toString()}`}case"invalid_format":{const u=r;return u.format==="starts_with"?`Invalid string: must start with "${u.prefix}"`:u.format==="ends_with"?`Invalid string: must end with "${u.suffix}"`:u.format==="includes"?`Invalid string: must include "${u.includes}"`:u.format==="regex"?`Invalid string: must match pattern ${u.pattern}`:`Invalid ${t[u.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":""}: ${S(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 Tl(){return{localeError:Sh()}}var wh=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},Ch=()=>{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 ${wh(r.input)}`;case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${L(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${S(r.values,"|")}`;case"too_big":{const u=r.inclusive?"<=":"<",i=n(r.origin);return i?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${u}${r.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${u}${r.maximum.toString()}`}case"too_small":{const u=r.inclusive?">=":">",i=n(r.origin);return i?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${u}${r.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${u}${r.minimum.toString()}`}case"invalid_format":{const u=r;return u.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${u.prefix}"`:u.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${u.suffix}"`:u.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${u.includes}"`:u.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${u.pattern}`:`Nevalida ${t[u.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":""}: ${S(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 $h(){return{localeError:Ch()}}var xh=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(u))return"arreglo";if(u===null)return"nulo";if(Object.getPrototypeOf(u)!==Object.prototype)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${u.expected}, recibido ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Entrada inv\xE1lida: se esperaba ${L(u.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Demasiado grande: se esperaba que ${u.origin??"valor"} tuviera ${i}${u.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u.origin??"valor"} fuera ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Demasiado peque\xF1o: se esperaba que ${u.origin} tuviera ${i}${u.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${u.origin} fuera ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??u.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${u.divisor}`;case"unrecognized_keys":return`Llave${u.keys.length>1?"s":""} desconocida${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${u.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${u.origin}`;default:return"Entrada inv\xE1lida"}}};function Ih(){return{localeError:xh()}}var Fh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(u))return"\u0622\u0631\u0627\u06CC\u0647";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.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 ${u.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${t(u.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return u.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${L(u.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 ${S(u.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${u.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${u.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${u.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${u.origin} \u0628\u0627\u06CC\u062F ${i}${u.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${u.origin} \u0628\u0627\u06CC\u062F ${i}${u.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{const i=u;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??u.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 ${u.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${u.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${S(u.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${u.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 ${u.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Nh(){return{localeError:Fh()}}var Th=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${u.expected}, oli ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${L(u.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${u.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${u.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??u.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${u.divisor} monikerta`;case"unrecognized_keys":return`${u.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${S(u.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 Oh(){return{localeError:Th()}}var zh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"nombre";case"object":{if(Array.isArray(u))return"tableau";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Entr\xE9e invalide : ${u.expected} attendu, ${t(u.input)} re\xE7u`;case"invalid_value":return u.values.length===1?`Entr\xE9e invalide : ${L(u.values[0])} attendu`:`Option invalide : une valeur parmi ${S(u.values,"|")} attendue`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Trop grand : ${u.origin??"valeur"} doit ${a.verb} ${i}${u.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${u.origin??"valeur"} doit \xEAtre ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Trop petit : ${u.origin} doit ${a.verb} ${i}${u.minimum.toString()} ${a.unit}`:`Trop petit : ${u.origin} doit \xEAtre ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??u.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${u.divisor}`;case"unrecognized_keys":return`Cl\xE9${u.keys.length>1?"s":""} non reconnue${u.keys.length>1?"s":""} : ${S(u.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${u.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${u.origin}`;default:return"Entr\xE9e invalide"}}};function Uh(){return{localeError:zh()}}var Ph=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${u.expected}, re\xE7u ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Entr\xE9e invalide : attendu ${L(u.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"\u2264":"<",a=n(u.origin);return a?`Trop grand : attendu que ${u.origin??"la valeur"} ait ${i}${u.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${u.origin??"la valeur"} soit ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?"\u2265":">",a=n(u.origin);return a?`Trop petit : attendu que ${u.origin} ait ${i}${u.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${u.origin} soit ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??u.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${u.divisor}`;case"unrecognized_keys":return`Cl\xE9${u.keys.length>1?"s":""} non reconnue${u.keys.length>1?"s":""} : ${S(u.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${u.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${u.origin}`;default:return"Entr\xE9e invalide"}}};function jh(){return{localeError:Ph()}}var Rh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${L(u.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 ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${u.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${i}${u.maximum.toString()} ${a.unit??"elements"}`:`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${u.origin??"value"} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${u.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${i}${u.minimum.toString()} ${a.unit}`:`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${u.origin} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.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"${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${r[i.format]??u.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 ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${u.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${u.origin}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Lh(){return{localeError:Rh()}}var Zh=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(u))return"t\xF6mb";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${u.expected}, a kapott \xE9rt\xE9k ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${L(u.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`T\xFAl nagy: ${u.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${u.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${u.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${u.origin} m\xE9rete t\xFAl kicsi ${i}${u.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${u.origin} t\xFAl kicsi ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??u.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${u.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${u.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${u.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Vh(){return{localeError:Zh()}}var Mh=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Input tidak valid: diharapkan ${u.expected}, diterima ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Input tidak valid: diharapkan ${L(u.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Terlalu besar: diharapkan ${u.origin??"value"} memiliki ${i}${u.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${u.origin??"value"} menjadi ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Terlalu kecil: diharapkan ${u.origin} memiliki ${i}${u.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${u.origin} menjadi ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??u.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${u.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${u.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${u.origin}`;default:return"Input tidak valid"}}};function qh(){return{localeError:Mh()}}var Gh=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"numero";case"object":{if(Array.isArray(u))return"vettore";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Input non valido: atteso ${u.expected}, ricevuto ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Input non valido: atteso ${L(u.values[0])}`:`Opzione non valida: atteso uno tra ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Troppo grande: ${u.origin??"valore"} deve avere ${i}${u.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${u.origin??"valore"} deve essere ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Troppo piccolo: ${u.origin} deve avere ${i}${u.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${u.origin} deve essere ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${r[i.format]??u.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${u.divisor}`;case"unrecognized_keys":return`Chiav${u.keys.length>1?"i":"e"} non riconosciut${u.keys.length>1?"e":"a"}: ${S(u.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${u.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${u.origin}`;default:return"Input non valido"}}};function Jh(){return{localeError:Gh()}}var Hh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(u))return"\u914D\u5217";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${u.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${t(u.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return u.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${L(u.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${S(u.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{const i=u.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=n(u.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${u.origin??"\u5024"}\u306F${u.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${u.origin??"\u5024"}\u306F${u.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{const i=u.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=n(u.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${u.origin}\u306F${u.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${u.origin}\u306F${u.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{const i=u;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??u.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${u.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${u.keys.length>1?"\u7FA4":""}: ${S(u.keys,"\u3001")}`;case"invalid_key":return`${u.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${u.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Kh(){return{localeError:Hh()}}var Qh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(u))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(u===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.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 ${u.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${t(u.input)}`;case"invalid_value":return u.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 ${L(u.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 ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${u.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin} ${i} ${u.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${u.origin} ${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??u.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 ${u.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${S(u.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 ${u.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 ${u.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 Wh(){return{localeError:Qh()}}var Yh=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${u.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${t(u.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return u.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${L(u.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${S(u.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{const i=u.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(u.origin),s=o?.unit??"\uC694\uC18C";return o?`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${u.maximum.toString()}${s} ${i}${a}`:`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${u.maximum.toString()} ${i}${a}`}case"too_small":{const i=u.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=n(u.origin),s=o?.unit??"\uC694\uC18C";return o?`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${u.minimum.toString()}${s} ${i}${a}`:`${u.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${u.minimum.toString()} ${i}${a}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??u.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${u.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${S(u.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${u.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${u.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function Xh(){return{localeError:Yh()}}var e6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(u))return"\u043D\u0438\u0437\u0430";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Invalid input: expected ${L(u.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 ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.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 ${u.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${u.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 ${u.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${u.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${u.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${r[i.format]??u.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 ${u.divisor}`;case"unrecognized_keys":return`${u.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"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${u.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 ${u.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function n6(){return{localeError:e6()}}var t6=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"nombor";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Input tidak sah: dijangka ${u.expected}, diterima ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Input tidak sah: dijangka ${L(u.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Terlalu besar: dijangka ${u.origin??"nilai"} ${a.verb} ${i}${u.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${u.origin??"nilai"} adalah ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Terlalu kecil: dijangka ${u.origin} ${a.verb} ${i}${u.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${u.origin} adalah ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??u.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${u.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${S(u.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${u.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${u.origin}`;default:return"Input tidak sah"}}};function u6(){return{localeError:t6()}}var r6=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function n(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"getal";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Ongeldige invoer: verwacht ${u.expected}, ontving ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ongeldige invoer: verwacht ${L(u.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Te lang: verwacht dat ${u.origin??"waarde"} ${i}${u.maximum.toString()} ${a.unit??"elementen"} bevat`:`Te lang: verwacht dat ${u.origin??"waarde"} ${i}${u.maximum.toString()} is`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Te kort: verwacht dat ${u.origin} ${i}${u.minimum.toString()} ${a.unit} bevat`:`Te kort: verwacht dat ${u.origin} ${i}${u.minimum.toString()} is`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??u.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${u.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${u.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${u.origin}`;default:return"Ongeldige invoer"}}};function i6(){return{localeError:r6()}}var a6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"tall";case"object":{if(Array.isArray(u))return"liste";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Ugyldig input: forventet ${u.expected}, fikk ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ugyldig verdi: forventet ${L(u.values[0])}`:`Ugyldig valg: forventet en av ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`For stor(t): forventet ${u.origin??"value"} til \xE5 ha ${i}${u.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${u.origin??"value"} til \xE5 ha ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`For lite(n): forventet ${u.origin} til \xE5 ha ${i}${u.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${u.origin} til \xE5 ha ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??u.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${S(u.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${u.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${u.origin}`;default:return"Ugyldig input"}}};function o6(){return{localeError:a6()}}var s6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"numara";case"object":{if(Array.isArray(u))return"saf";if(u===null)return"gayb";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`F\xE2sit giren: umulan ${u.expected}, al\u0131nan ${t(u.input)}`;case"invalid_value":return u.values.length===1?`F\xE2sit giren: umulan ${L(u.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Fazla b\xFCy\xFCk: ${u.origin??"value"}, ${i}${u.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${u.origin??"value"}, ${i}${u.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Fazla k\xFC\xE7\xFCk: ${u.origin}, ${i}${u.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${u.origin}, ${i}${u.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{const i=u;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??u.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${u.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${u.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function c6(){return{localeError:s6()}}var l6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(u))return"\u0627\u0631\u06D0";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${u.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${t(u.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return u.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${L(u.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${S(u.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${u.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${u.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${u.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${u.maximum.toString()} \u0648\u064A`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${u.origin} \u0628\u0627\u06CC\u062F ${i}${u.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${u.origin} \u0628\u0627\u06CC\u062F ${i}${u.minimum.toString()} \u0648\u064A`}case"invalid_format":{const i=u;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??u.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${u.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${u.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${S(u.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${u.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 ${u.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function d6(){return{localeError:l6()}}var f6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"liczba";case"object":{if(Array.isArray(u))return"tablica";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${u.expected}, otrzymano ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${L(u.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${u.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${u.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${u.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??u.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${u.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${u.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${u.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function m6(){return{localeError:f6()}}var v6=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(u))return"array";if(u===null)return"nulo";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${u.expected}, recebido ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Entrada inv\xE1lida: esperado ${L(u.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Muito grande: esperado que ${u.origin??"valor"} tivesse ${i}${u.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${u.origin??"valor"} fosse ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Muito pequeno: esperado que ${u.origin} tivesse ${i}${u.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${u.origin} fosse ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??u.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${u.divisor}`;case"unrecognized_keys":return`Chave${u.keys.length>1?"s":""} desconhecida${u.keys.length>1?"s":""}: ${S(u.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${u.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${u.origin}`;default:return"Campo inv\xE1lido"}}};function p6(){return{localeError:v6()}}function Ol(e,n,t,r){const u=Math.abs(e),i=u%10,a=u%100;return a>=11&&a<=19?r:i===1?n:i>=2&&i<=4?t:r}var h6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(u))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.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 ${u.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${L(u.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 ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);if(a){const o=Number(u.maximum),s=Ol(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 ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${u.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 ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);if(a){const o=Number(u.minimum),s=Ol(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 ${u.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${u.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 ${u.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??u.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 ${u.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${u.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${u.keys.length>1?"\u0438":""}: ${S(u.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${u.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 ${u.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 g6(){return{localeError:h6()}}var E6=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(u))return"tabela";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${u.expected}, prejeto ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${L(u.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${u.origin??"vrednost"} imelo ${i}${u.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${u.origin??"vrednost"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${u.origin} imelo ${i}${u.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??u.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${u.divisor}`;case"unrecognized_keys":return`Neprepoznan${u.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${S(u.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${u.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${u.origin}`;default:return"Neveljaven vnos"}}};function y6(){return{localeError:E6()}}var b6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"antal";case"object":{if(Array.isArray(u))return"lista";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${u.expected}, fick ${t(u.input)}`;case"invalid_value":return u.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${L(u.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${u.origin??"v\xE4rdet"} att ha ${i}${u.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${u.origin??"v\xE4rdet"} att ha ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${u.origin??"v\xE4rdet"} att ha ${i}${u.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${u.origin??"v\xE4rdet"} att ha ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??u.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${u.divisor}`;case"unrecognized_keys":return`${u.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${S(u.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${u.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${u.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function k6(){return{localeError:b6()}}var D6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(u))return"\u0B85\u0BA3\u0BBF";if(u===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.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 ${u.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t(u.input)}`;case"invalid_value":return u.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 ${L(u.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 ${S(u.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.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 ${u.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${u.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 ${u.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${u.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.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 ${u.origin} ${i}${u.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 ${u.origin} ${i}${u.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{const i=u;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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[i.format]??u.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${u.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${u.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${S(u.keys,", ")}`;case"invalid_key":return`${u.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`${u.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 B6(){return{localeError:D6()}}var _6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(u))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(u===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.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 ${u.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${L(u.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 ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=n(u.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${u.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=n(u.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${u.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${u.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??u.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 ${u.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: ${S(u.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${u.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 ${u.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function A6(){return{localeError:_6()}}var S6=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},w6=()=>{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 ${S6(r.input)}`;case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${L(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${S(r.values,"|")}`;case"too_big":{const u=r.inclusive?"<=":"<",i=n(r.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${u}${r.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${u}${r.maximum.toString()}`}case"too_small":{const u=r.inclusive?">=":">",i=n(r.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${u}${r.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${u}${r.minimum.toString()}`}case"invalid_format":{const u=r;return u.format==="starts_with"?`Ge\xE7ersiz metin: "${u.prefix}" ile ba\u015Flamal\u0131`:u.format==="ends_with"?`Ge\xE7ersiz metin: "${u.suffix}" ile bitmeli`:u.format==="includes"?`Ge\xE7ersiz metin: "${u.includes}" i\xE7ermeli`:u.format==="regex"?`Ge\xE7ersiz metin: ${u.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${t[u.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":""}: ${S(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 C6(){return{localeError:w6()}}var $6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(u))return"\u043C\u0430\u0441\u0438\u0432";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.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 ${u.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${t(u.input)}`;case"invalid_value":return u.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 ${L(u.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 ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.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 ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${u.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 ${u.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.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 ${u.origin} ${a.verb} ${i}${u.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 ${u.origin} \u0431\u0443\u0434\u0435 ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??u.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 ${u.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${u.keys.length>1?"\u0456":""}: ${S(u.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${u.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 ${u.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 x6(){return{localeError:$6()}}var I6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(u))return"\u0622\u0631\u06D2";if(u===null)return"\u0646\u0644";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${u.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${t(u.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return u.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${L(u.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${S(u.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${u.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${u.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: ${u.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${u.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${u.origin} \u06A9\u06D2 ${i}${u.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${u.origin} \u06A9\u0627 ${i}${u.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{const i=u;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??u.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${u.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${u.keys.length>1?"\u0632":""}: ${S(u.keys,"\u060C ")}`;case"invalid_key":return`${u.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${u.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function F6(){return{localeError:I6()}}var N6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(u))return"m\u1EA3ng";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${u.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${L(u.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${u.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${u.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${u.origin??"gi\xE1 tr\u1ECB"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${u.origin} ${a.verb} ${i}${u.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??u.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 ${u.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${S(u.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${u.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 ${u.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function T6(){return{localeError:N6()}}var O6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(u))return"\u6570\u7EC4";if(u===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${u.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${L(u.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${u.origin??"\u503C"} ${i}${u.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${u.origin??"\u503C"} ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${u.origin} ${i}${u.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${u.origin} ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??u.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${u.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${S(u.keys,", ")}`;case"invalid_key":return`${u.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${u.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function z6(){return{localeError:O6()}}var U6=()=>{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(u){return e[u]??null}const t=u=>{const i=typeof u;switch(i){case"number":return Number.isNaN(u)?"NaN":"number";case"object":{if(Array.isArray(u))return"array";if(u===null)return"null";if(Object.getPrototypeOf(u)!==Object.prototype&&u.constructor)return u.constructor.name}}return i},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 u=>{switch(u.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${u.expected}\uFF0C\u4F46\u6536\u5230 ${t(u.input)}`;case"invalid_value":return u.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${L(u.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${S(u.values,"|")}`;case"too_big":{const i=u.inclusive?"<=":"<",a=n(u.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${u.origin??"\u503C"} \u61C9\u70BA ${i}${u.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${u.origin??"\u503C"} \u61C9\u70BA ${i}${u.maximum.toString()}`}case"too_small":{const i=u.inclusive?">=":">",a=n(u.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${u.origin} \u61C9\u70BA ${i}${u.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${u.origin} \u61C9\u70BA ${i}${u.minimum.toString()}`}case"invalid_format":{const i=u;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??u.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${u.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${u.keys.length>1?"\u5011":""}\uFF1A${S(u.keys,"\u3001")}`;case"invalid_key":return`${u.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${u.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function P6(){return{localeError:U6()}}var zl=Symbol("ZodOutput"),Ul=Symbol("ZodInput"),Mi=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 qi(){return new Mi}var An=qi();function Pl(e,n){return new e({type:"string",...B(n)})}function jl(e,n){return new e({type:"string",coerce:!0,...B(n)})}function Gi(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...B(n)})}function Tu(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...B(n)})}function Ji(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...B(n)})}function Hi(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...B(n)})}function Ki(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...B(n)})}function Qi(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...B(n)})}function Wi(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...B(n)})}function Yi(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...B(n)})}function Xi(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...B(n)})}function ea(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...B(n)})}function na(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...B(n)})}function ta(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...B(n)})}function ua(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...B(n)})}function ra(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...B(n)})}function ia(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...B(n)})}function aa(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...B(n)})}function oa(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...B(n)})}function sa(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...B(n)})}function ca(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...B(n)})}function la(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...B(n)})}function da(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...B(n)})}function fa(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...B(n)})}var Rl={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ll(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...B(n)})}function Zl(e,n){return new e({type:"string",format:"date",check:"string_format",...B(n)})}function Vl(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...B(n)})}function Ml(e,n){return new e({type:"string",format:"duration",check:"string_format",...B(n)})}function ql(e,n){return new e({type:"number",checks:[],...B(n)})}function Gl(e,n){return new e({type:"number",coerce:!0,checks:[],...B(n)})}function Jl(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...B(n)})}function Hl(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...B(n)})}function Kl(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...B(n)})}function Ql(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...B(n)})}function Wl(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...B(n)})}function Yl(e,n){return new e({type:"boolean",...B(n)})}function Xl(e,n){return new e({type:"boolean",coerce:!0,...B(n)})}function ed(e,n){return new e({type:"bigint",...B(n)})}function nd(e,n){return new e({type:"bigint",coerce:!0,...B(n)})}function td(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...B(n)})}function ud(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...B(n)})}function rd(e,n){return new e({type:"symbol",...B(n)})}function id(e,n){return new e({type:"undefined",...B(n)})}function ad(e,n){return new e({type:"null",...B(n)})}function od(e){return new e({type:"any"})}function Ou(e){return new e({type:"unknown"})}function sd(e,n){return new e({type:"never",...B(n)})}function cd(e,n){return new e({type:"void",...B(n)})}function ld(e,n){return new e({type:"date",...B(n)})}function dd(e,n){return new e({type:"date",coerce:!0,...B(n)})}function fd(e,n){return new e({type:"nan",...B(n)})}function Sn(e,n){return new Fi({check:"less_than",...B(n),value:e,inclusive:!1})}function Le(e,n){return new Fi({check:"less_than",...B(n),value:e,inclusive:!0})}function wn(e,n){return new Ni({check:"greater_than",...B(n),value:e,inclusive:!1})}function Se(e,n){return new Ni({check:"greater_than",...B(n),value:e,inclusive:!0})}function md(e){return wn(0,e)}function vd(e){return Sn(0,e)}function pd(e){return Le(0,e)}function hd(e){return Se(0,e)}function Lt(e,n){return new Y0({check:"multiple_of",...B(n),value:e})}function zu(e,n){return new nc({check:"max_size",...B(n),maximum:e})}function Zt(e,n){return new tc({check:"min_size",...B(n),minimum:e})}function ma(e,n){return new uc({check:"size_equals",...B(n),size:e})}function Uu(e,n){return new rc({check:"max_length",...B(n),maximum:e})}function Jn(e,n){return new ic({check:"min_length",...B(n),minimum:e})}function Pu(e,n){return new ac({check:"length_equals",...B(n),length:e})}function va(e,n){return new oc({check:"string_format",format:"regex",...B(n),pattern:e})}function pa(e){return new sc({check:"string_format",format:"lowercase",...B(e)})}function ha(e){return new cc({check:"string_format",format:"uppercase",...B(e)})}function ga(e,n){return new lc({check:"string_format",format:"includes",...B(n),includes:e})}function Ea(e,n){return new dc({check:"string_format",format:"starts_with",...B(n),prefix:e})}function ya(e,n){return new fc({check:"string_format",format:"ends_with",...B(n),suffix:e})}function gd(e,n,t){return new vc({check:"property",property:e,schema:n,...B(t)})}function ba(e,n){return new pc({check:"mime_type",mime:e,...B(n)})}function Cn(e){return new hc({check:"overwrite",tx:e})}function ka(e){return Cn(n=>n.normalize(e))}function Da(){return Cn(e=>e.trim())}function Ba(){return Cn(e=>e.toLowerCase())}function _a(){return Cn(e=>e.toUpperCase())}function Aa(e,n,t){return new e({type:"array",element:n,...B(t)})}function j6(e,n,t){return new e({type:"union",options:n,...B(t)})}function R6(e,n,t,r){return new e({type:"union",options:t,discriminator:n,...B(r)})}function L6(e,n,t){return new e({type:"intersection",left:n,right:t})}function Ed(e,n,t,r){const u=t instanceof U,i=u?r:t,a=u?t:null;return new e({type:"tuple",items:n,rest:a,...B(i)})}function Z6(e,n,t,r){return new e({type:"record",keyType:n,valueType:t,...B(r)})}function V6(e,n,t,r){return new e({type:"map",keyType:n,valueType:t,...B(r)})}function M6(e,n,t){return new e({type:"set",valueType:n,...B(t)})}function q6(e,n,t){const r=Array.isArray(n)?Object.fromEntries(n.map(u=>[u,u])):n;return new e({type:"enum",entries:r,...B(t)})}function G6(e,n,t){return new e({type:"enum",entries:n,...B(t)})}function J6(e,n,t){return new e({type:"literal",values:Array.isArray(n)?n:[n],...B(t)})}function yd(e,n){return new e({type:"file",...B(n)})}function H6(e,n){return new e({type:"transform",transform:n})}function K6(e,n){return new e({type:"optional",innerType:n})}function Q6(e,n){return new e({type:"nullable",innerType:n})}function W6(e,n,t){return new e({type:"default",innerType:n,get defaultValue(){return typeof t=="function"?t():t}})}function Y6(e,n,t){return new e({type:"nonoptional",innerType:n,...B(t)})}function X6(e,n){return new e({type:"success",innerType:n})}function eg(e,n,t){return new e({type:"catch",innerType:n,catchValue:typeof t=="function"?t:()=>t})}function ng(e,n,t){return new e({type:"pipe",in:n,out:t})}function tg(e,n){return new e({type:"readonly",innerType:n})}function ug(e,n,t){return new e({type:"template_literal",parts:n,...B(t)})}function rg(e,n){return new e({type:"lazy",getter:n})}function ig(e,n){return new e({type:"promise",innerType:n})}function bd(e,n,t){const r=B(t);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:n,...r})}function kd(e,n,t){return new e({type:"custom",check:"custom",fn:n,...B(t)})}function Dd(e,n){const t=B(n);let r=t.truthy??["true","1","yes","on","y","enabled"],u=t.falsy??["false","0","no","off","n","disabled"];t.case!=="sensitive"&&(r=r.map(v=>typeof v=="string"?v.toLowerCase():v),u=u.map(v=>typeof v=="string"?v.toLowerCase():v));const i=new Set(r),a=new Set(u),o=e.Pipe??Zi,s=e.Boolean??zi,c=e.String??Rt,l=e.Transform??Li,f=new l({type:"transform",transform:(v,h)=>{let b=v;return t.case!=="sensitive"&&(b=b.toLowerCase()),i.has(b)?!0:a.has(b)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...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 Bd(e,n,t,r={}){const u=B(r),i={...B(r),check:"string_format",type:"string",format:n,fn:typeof t=="function"?t:o=>t.test(o),...u};return t instanceof RegExp&&(i.pattern=t),new e(i)}var _d=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?Ai(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 u=e(...r);return this._def.output?Ai(this._def.output,u,void 0,{callee:n}):u};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 wi(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 u=await e(...r);return this._def.output?wi(this._def.output,u,void 0,{callee:n}):u};return n}input(...e){const n=this.constructor;return Array.isArray(e[0])?new n({type:"function",input:new Fu({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 Ad(e){return new _d({type:"function",input:Array.isArray(e?.input)?Ed(Fu,e?.input):e?.input??Aa(Pi,Ou(xu)),output:e?.output??Ou(xu)})}var Sa=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??An,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,u={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},i=this.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.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:y,contentEncoding:E}=e._zod.bag;if(typeof v=="number"&&(d.minLength=v),typeof h=="number"&&(d.maxLength=h),b&&(d.format=u[b]??b,d.format===""&&delete d.format),E&&(d.contentEncoding=E),y&&y.size>0){const k=[...y];k.length===1?d.pattern=k[0].source:k.length>1&&(a.schema.allOf=[...k.map(w=>({...this.target==="draft-7"?{type:"string"}:{},pattern:w.source}))])}break}case"number":{const d=m,{minimum:v,maximum:h,format:b,multipleOf:y,exclusiveMaximum:E,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 E=="number"&&(d.exclusiveMaximum=E),typeof h=="number"&&(d.maximum=h,typeof E=="number"&&(E<=h?delete d.maximum:delete d.exclusiveMaximum)),typeof y=="number"&&(d.multipleOf=y);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 y in v)d.properties[y]=this.process(v[y],{...l,path:[...l.path,"properties",y]});const h=new Set(Object.keys(v)),b=new Set([...h].filter(y=>{const E=r.shape[y]._zod;return this.io==="input"?E.optin===void 0:E.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=E=>"allOf"in E&&Object.keys(E).length===1,y=[...b(v)?v.allOf:[v],...b(h)?h.allOf:[h]];d.allOf=y;break}case"tuple":{const d=m;d.type="array";const v=r.items.map((y,E)=>this.process(y,{...l,path:[...l.path,"prefixItems",E]}));if(this.target==="draft-2020-12"?d.prefixItems=v:d.items=v,r.rest){const y=this.process(r.rest,{...l,path:[...l.path,"items"]});this.target==="draft-2020-12"?d.items=y:d.additionalItems=y}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=Ei(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:y}=e._zod.bag;h!==void 0&&(v.minLength=h),b!==void 0&&(v.maxLength=b),y?y.length===1?(v.contentMediaType=y[0],Object.assign(d,v)):d.anyOf=y.map(E=>({...v,contentMediaType:E})):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"&&ie(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 u=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??(y=>y);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}},i=c=>{if(c[1].schema.$ref)return;const l=c[1],{ref:f,defId:m}=u(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>
|
|
69
|
+
|
|
70
|
+
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]){i(c);continue}if(t.external){const m=t.external.registry.get(c[0])?.id;if(e!==c[0]&&m){i(c);continue}}if(this.metadataRegistry.get(c[0])?.id){i(c);continue}if(l.cycle){i(c);continue}if(l.count>1&&t.reused==="ref"){i(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 Sd(e,n){if(e instanceof Mi){const r=new Sa(n),u={};for(const o of e._idmap.entries()){const[s,c]=o;r.process(c)}const i={},a={registry:e,uri:n?.uri,defs:u};for(const o of e._idmap.entries()){const[s,c]=o;i[s]=r.emit(c,{...n,external:a})}if(Object.keys(u).length>0){const o=r.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[o]:u}}return{schemas:i}}const t=new Sa(n);return t.process(e),t.emit(e,n)}function ie(e,n){const t=n??{seen:new Set};if(t.seen.has(e))return!1;t.seen.add(e);const u=e._zod.def;switch(u.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 ie(u.element,t);case"object":{for(const i in u.shape)if(ie(u.shape[i],t))return!0;return!1}case"union":{for(const i of u.options)if(ie(i,t))return!0;return!1}case"intersection":return ie(u.left,t)||ie(u.right,t);case"tuple":{for(const i of u.items)if(ie(i,t))return!0;return!!(u.rest&&ie(u.rest,t))}case"record":return ie(u.keyType,t)||ie(u.valueType,t);case"map":return ie(u.keyType,t)||ie(u.valueType,t);case"set":return ie(u.valueType,t);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return ie(u.innerType,t);case"lazy":return ie(u.getter(),t);case"default":return ie(u.innerType,t);case"prefault":return ie(u.innerType,t);case"custom":return!1;case"transform":return!0;case"pipe":return ie(u.in,t)||ie(u.out,t);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${u.type}`)}var ag={},wd={};En(wd,{ZodISODate:()=>Ca,ZodISODateTime:()=>wa,ZodISODuration:()=>xa,ZodISOTime:()=>$a,date:()=>$d,datetime:()=>Cd,duration:()=>Id,time:()=>xd});var wa=p("ZodISODateTime",(e,n)=>{xc.init(e,n),X.init(e,n)});function Cd(e){return Ll(wa,e)}var Ca=p("ZodISODate",(e,n)=>{Ic.init(e,n),X.init(e,n)});function $d(e){return Zl(Ca,e)}var $a=p("ZodISOTime",(e,n)=>{Fc.init(e,n),X.init(e,n)});function xd(e){return Vl($a,e)}var xa=p("ZodISODuration",(e,n)=>{Nc.init(e,n),X.init(e,n)});function Id(e){return Ml(xa,e)}var Fd=(e,n)=>{ki.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>Bi(e,t)},flatten:{value:t=>Di(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})},og=p("ZodError",Fd),Vt=p("ZodError",Fd,{Parent:Error}),Nd=_i(Vt),Td=Si(Vt),Od=Ci(Vt),zd=$i(Vt),Z=p("ZodType",(e,n)=>(U.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)=>Ve(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>Nd(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>Od(e,t,r),e.parseAsync=async(t,r)=>Td(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>zd(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(_f(t,r)),e.superRefine=t=>e.check(Af(t)),e.overwrite=t=>e.check(Cn(t)),e.optional=()=>Hu(e),e.nullable=()=>Ku(e),e.nullish=()=>Hu(Ku(e)),e.nonoptional=t=>ff(e,t),e.array=()=>Xa(e),e.or=t=>Ju([e,t]),e.and=t=>Wd(e,t),e.transform=t=>Qu(e,uo(t)),e.default=t=>cf(e,t),e.prefault=t=>df(e,t),e.catch=t=>pf(e,t),e.pipe=t=>Qu(e,t),e.readonly=()=>Ef(e),e.describe=t=>{const r=e.clone();return An.add(r,{description:t}),r},Object.defineProperty(e,"description",{get(){return An.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return An.get(e);const r=e.clone();return An.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ia=p("_ZodString",(e,n)=>{Rt.init(e,n),Z.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(va(...r)),e.includes=(...r)=>e.check(ga(...r)),e.startsWith=(...r)=>e.check(Ea(...r)),e.endsWith=(...r)=>e.check(ya(...r)),e.min=(...r)=>e.check(Jn(...r)),e.max=(...r)=>e.check(Uu(...r)),e.length=(...r)=>e.check(Pu(...r)),e.nonempty=(...r)=>e.check(Jn(1,...r)),e.lowercase=r=>e.check(pa(r)),e.uppercase=r=>e.check(ha(r)),e.trim=()=>e.check(Da()),e.normalize=(...r)=>e.check(ka(...r)),e.toLowerCase=()=>e.check(Ba()),e.toUpperCase=()=>e.check(_a())}),ju=p("ZodString",(e,n)=>{Rt.init(e,n),Ia.init(e,n),e.email=t=>e.check(Gi(Na,t)),e.url=t=>e.check(Wi(Ta,t)),e.jwt=t=>e.check(fa(Ka,t)),e.emoji=t=>e.check(Yi(Oa,t)),e.guid=t=>e.check(Tu(Ru,t)),e.uuid=t=>e.check(Ji(He,t)),e.uuidv4=t=>e.check(Hi(He,t)),e.uuidv6=t=>e.check(Ki(He,t)),e.uuidv7=t=>e.check(Qi(He,t)),e.nanoid=t=>e.check(Xi(za,t)),e.guid=t=>e.check(Tu(Ru,t)),e.cuid=t=>e.check(ea(Ua,t)),e.cuid2=t=>e.check(na(Pa,t)),e.ulid=t=>e.check(ta(ja,t)),e.base64=t=>e.check(ca(Ga,t)),e.base64url=t=>e.check(la(Ja,t)),e.xid=t=>e.check(ua(Ra,t)),e.ksuid=t=>e.check(ra(La,t)),e.ipv4=t=>e.check(ia(Za,t)),e.ipv6=t=>e.check(aa(Va,t)),e.cidrv4=t=>e.check(oa(Ma,t)),e.cidrv6=t=>e.check(sa(qa,t)),e.e164=t=>e.check(da(Ha,t)),e.datetime=t=>e.check(Cd(t)),e.date=t=>e.check($d(t)),e.time=t=>e.check(xd(t)),e.duration=t=>e.check(Id(t))});function Fa(e){return Pl(ju,e)}var X=p("ZodStringFormat",(e,n)=>{W.init(e,n),Ia.init(e,n)}),Na=p("ZodEmail",(e,n)=>{kc.init(e,n),X.init(e,n)});function sg(e){return Gi(Na,e)}var Ru=p("ZodGUID",(e,n)=>{yc.init(e,n),X.init(e,n)});function cg(e){return Tu(Ru,e)}var He=p("ZodUUID",(e,n)=>{bc.init(e,n),X.init(e,n)});function lg(e){return Ji(He,e)}function dg(e){return Hi(He,e)}function fg(e){return Ki(He,e)}function mg(e){return Qi(He,e)}var Ta=p("ZodURL",(e,n)=>{Dc.init(e,n),X.init(e,n)});function vg(e){return Wi(Ta,e)}var Oa=p("ZodEmoji",(e,n)=>{Bc.init(e,n),X.init(e,n)});function pg(e){return Yi(Oa,e)}var za=p("ZodNanoID",(e,n)=>{_c.init(e,n),X.init(e,n)});function hg(e){return Xi(za,e)}var Ua=p("ZodCUID",(e,n)=>{Ac.init(e,n),X.init(e,n)});function gg(e){return ea(Ua,e)}var Pa=p("ZodCUID2",(e,n)=>{Sc.init(e,n),X.init(e,n)});function Eg(e){return na(Pa,e)}var ja=p("ZodULID",(e,n)=>{wc.init(e,n),X.init(e,n)});function yg(e){return ta(ja,e)}var Ra=p("ZodXID",(e,n)=>{Cc.init(e,n),X.init(e,n)});function bg(e){return ua(Ra,e)}var La=p("ZodKSUID",(e,n)=>{$c.init(e,n),X.init(e,n)});function kg(e){return ra(La,e)}var Za=p("ZodIPv4",(e,n)=>{Tc.init(e,n),X.init(e,n)});function Dg(e){return ia(Za,e)}var Va=p("ZodIPv6",(e,n)=>{Oc.init(e,n),X.init(e,n)});function Bg(e){return aa(Va,e)}var Ma=p("ZodCIDRv4",(e,n)=>{zc.init(e,n),X.init(e,n)});function _g(e){return oa(Ma,e)}var qa=p("ZodCIDRv6",(e,n)=>{Uc.init(e,n),X.init(e,n)});function Ag(e){return sa(qa,e)}var Ga=p("ZodBase64",(e,n)=>{Pc.init(e,n),X.init(e,n)});function Sg(e){return ca(Ga,e)}var Ja=p("ZodBase64URL",(e,n)=>{Rc.init(e,n),X.init(e,n)});function wg(e){return la(Ja,e)}var Ha=p("ZodE164",(e,n)=>{Lc.init(e,n),X.init(e,n)});function Cg(e){return da(Ha,e)}var Ka=p("ZodJWT",(e,n)=>{Vc.init(e,n),X.init(e,n)});function $g(e){return fa(Ka,e)}var Ud=p("ZodCustomStringFormat",(e,n)=>{Mc.init(e,n),X.init(e,n)});function xg(e,n,t={}){return Bd(Ud,e,n,t)}var Lu=p("ZodNumber",(e,n)=>{Oi.init(e,n),Z.init(e,n),e.gt=(r,u)=>e.check(wn(r,u)),e.gte=(r,u)=>e.check(Se(r,u)),e.min=(r,u)=>e.check(Se(r,u)),e.lt=(r,u)=>e.check(Sn(r,u)),e.lte=(r,u)=>e.check(Le(r,u)),e.max=(r,u)=>e.check(Le(r,u)),e.int=r=>e.check(Qa(r)),e.safe=r=>e.check(Qa(r)),e.positive=r=>e.check(wn(0,r)),e.nonnegative=r=>e.check(Se(0,r)),e.negative=r=>e.check(Sn(0,r)),e.nonpositive=r=>e.check(Le(0,r)),e.multipleOf=(r,u)=>e.check(Lt(r,u)),e.step=(r,u)=>e.check(Lt(r,u)),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 Pd(e){return ql(Lu,e)}var Hn=p("ZodNumberFormat",(e,n)=>{qc.init(e,n),Lu.init(e,n)});function Qa(e){return Jl(Hn,e)}function Ig(e){return Hl(Hn,e)}function Fg(e){return Kl(Hn,e)}function Ng(e){return Ql(Hn,e)}function Tg(e){return Wl(Hn,e)}var Zu=p("ZodBoolean",(e,n)=>{zi.init(e,n),Z.init(e,n)});function jd(e){return Yl(Zu,e)}var Vu=p("ZodBigInt",(e,n)=>{Ui.init(e,n),Z.init(e,n),e.gte=(r,u)=>e.check(Se(r,u)),e.min=(r,u)=>e.check(Se(r,u)),e.gt=(r,u)=>e.check(wn(r,u)),e.gte=(r,u)=>e.check(Se(r,u)),e.min=(r,u)=>e.check(Se(r,u)),e.lt=(r,u)=>e.check(Sn(r,u)),e.lte=(r,u)=>e.check(Le(r,u)),e.max=(r,u)=>e.check(Le(r,u)),e.positive=r=>e.check(wn(BigInt(0),r)),e.negative=r=>e.check(Sn(BigInt(0),r)),e.nonpositive=r=>e.check(Le(BigInt(0),r)),e.nonnegative=r=>e.check(Se(BigInt(0),r)),e.multipleOf=(r,u)=>e.check(Lt(r,u));const t=e._zod.bag;e.minValue=t.minimum??null,e.maxValue=t.maximum??null,e.format=t.format??null});function Og(e){return ed(Vu,e)}var Wa=p("ZodBigIntFormat",(e,n)=>{Gc.init(e,n),Vu.init(e,n)});function zg(e){return td(Wa,e)}function Ug(e){return ud(Wa,e)}var Rd=p("ZodSymbol",(e,n)=>{Jc.init(e,n),Z.init(e,n)});function Pg(e){return rd(Rd,e)}var Ld=p("ZodUndefined",(e,n)=>{Hc.init(e,n),Z.init(e,n)});function jg(e){return id(Ld,e)}var Zd=p("ZodNull",(e,n)=>{Kc.init(e,n),Z.init(e,n)});function Vd(e){return ad(Zd,e)}var Md=p("ZodAny",(e,n)=>{Qc.init(e,n),Z.init(e,n)});function Rg(){return od(Md)}var qd=p("ZodUnknown",(e,n)=>{xu.init(e,n),Z.init(e,n)});function Mu(){return Ou(qd)}var Gd=p("ZodNever",(e,n)=>{Wc.init(e,n),Z.init(e,n)});function qu(e){return sd(Gd,e)}var Jd=p("ZodVoid",(e,n)=>{Yc.init(e,n),Z.init(e,n)});function Lg(e){return cd(Jd,e)}var Ya=p("ZodDate",(e,n)=>{Xc.init(e,n),Z.init(e,n),e.min=(r,u)=>e.check(Se(r,u)),e.max=(r,u)=>e.check(Le(r,u));const t=e._zod.bag;e.minDate=t.minimum?new Date(t.minimum):null,e.maxDate=t.maximum?new Date(t.maximum):null});function Zg(e){return ld(Ya,e)}var Hd=p("ZodArray",(e,n)=>{Pi.init(e,n),Z.init(e,n),e.element=n.element,e.min=(t,r)=>e.check(Jn(t,r)),e.nonempty=t=>e.check(Jn(1,t)),e.max=(t,r)=>e.check(Uu(t,r)),e.length=(t,r)=>e.check(Pu(t,r)),e.unwrap=()=>e.element});function Xa(e,n){return Aa(Hd,e,n)}function Vg(e){const n=e._zod.def.shape;return rf(Object.keys(n))}var Gu=p("ZodObject",(e,n)=>{tl.init(e,n),Z.init(e,n),q.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>tf(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Mu()}),e.loose=()=>e.clone({...e._zod.def,catchall:Mu()}),e.strict=()=>e.clone({...e._zod.def,catchall:qu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>q.extend(e,t),e.merge=t=>q.merge(e,t),e.pick=t=>q.pick(e,t),e.omit=t=>q.omit(e,t),e.partial=(...t)=>q.partial(ro,e,t[0]),e.required=(...t)=>q.required(io,e,t[0])});function Mg(e,n){const t={type:"object",get shape(){return q.assignProp(this,"shape",{...e}),this.shape},...q.normalizeParams(n)};return new Gu(t)}function qg(e,n){return new Gu({type:"object",get shape(){return q.assignProp(this,"shape",{...e}),this.shape},catchall:qu(),...q.normalizeParams(n)})}function Gg(e,n){return new Gu({type:"object",get shape(){return q.assignProp(this,"shape",{...e}),this.shape},catchall:Mu(),...q.normalizeParams(n)})}var eo=p("ZodUnion",(e,n)=>{ji.init(e,n),Z.init(e,n),e.options=n.options});function Ju(e,n){return new eo({type:"union",options:e,...q.normalizeParams(n)})}var Kd=p("ZodDiscriminatedUnion",(e,n)=>{eo.init(e,n),rl.init(e,n)});function Jg(e,n,t){return new Kd({type:"union",options:n,discriminator:e,...q.normalizeParams(t)})}var Qd=p("ZodIntersection",(e,n)=>{il.init(e,n),Z.init(e,n)});function Wd(e,n){return new Qd({type:"intersection",left:e,right:n})}var Yd=p("ZodTuple",(e,n)=>{Fu.init(e,n),Z.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})});function Hg(e,n,t){const r=n instanceof U,u=r?t:n,i=r?n:null;return new Yd({type:"tuple",items:e,rest:i,...q.normalizeParams(u)})}var no=p("ZodRecord",(e,n)=>{ol.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function Xd(e,n,t){return new no({type:"record",keyType:e,valueType:n,...q.normalizeParams(t)})}function Kg(e,n,t){return new no({type:"record",keyType:Ju([e,qu()]),valueType:n,...q.normalizeParams(t)})}var ef=p("ZodMap",(e,n)=>{sl.init(e,n),Z.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function Qg(e,n,t){return new ef({type:"map",keyType:e,valueType:n,...q.normalizeParams(t)})}var nf=p("ZodSet",(e,n)=>{ll.init(e,n),Z.init(e,n),e.min=(...t)=>e.check(Zt(...t)),e.nonempty=t=>e.check(Zt(1,t)),e.max=(...t)=>e.check(zu(...t)),e.size=(...t)=>e.check(ma(...t))});function Wg(e,n){return new nf({type:"set",valueType:e,...q.normalizeParams(n)})}var Mt=p("ZodEnum",(e,n)=>{fl.init(e,n),Z.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(r,u)=>{const i={};for(const a of r)if(t.has(a))i[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Mt({...n,checks:[],...q.normalizeParams(u),entries:i})},e.exclude=(r,u)=>{const i={...n.entries};for(const a of r)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Mt({...n,checks:[],...q.normalizeParams(u),entries:i})}});function tf(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Mt({type:"enum",entries:t,...q.normalizeParams(n)})}function Yg(e,n){return new Mt({type:"enum",entries:e,...q.normalizeParams(n)})}var uf=p("ZodLiteral",(e,n)=>{ml.init(e,n),Z.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 rf(e,n){return new uf({type:"literal",values:Array.isArray(e)?e:[e],...q.normalizeParams(n)})}var af=p("ZodFile",(e,n)=>{vl.init(e,n),Z.init(e,n),e.min=(t,r)=>e.check(Zt(t,r)),e.max=(t,r)=>e.check(zu(t,r)),e.mime=(t,r)=>e.check(ba(Array.isArray(t)?t:[t],r))});function Xg(e){return yd(af,e)}var to=p("ZodTransform",(e,n)=>{Li.init(e,n),Z.init(e,n),e._zod.parse=(t,r)=>{t.addIssue=i=>{if(typeof i=="string")t.issues.push(q.issue(i,t.value,n));else{const a=i;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(q.issue(a))}};const u=n.transform(t.value,t);return u instanceof Promise?u.then(i=>(t.value=i,t)):(t.value=u,t)}});function uo(e){return new to({type:"transform",transform:e})}var ro=p("ZodOptional",(e,n)=>{pl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Hu(e){return new ro({type:"optional",innerType:e})}var of=p("ZodNullable",(e,n)=>{hl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Ku(e){return new of({type:"nullable",innerType:e})}function e3(e){return Hu(Ku(e))}var sf=p("ZodDefault",(e,n)=>{gl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cf(e,n){return new sf({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var lf=p("ZodPrefault",(e,n)=>{yl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function df(e,n){return new lf({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():n}})}var io=p("ZodNonOptional",(e,n)=>{bl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function ff(e,n){return new io({type:"nonoptional",innerType:e,...q.normalizeParams(n)})}var mf=p("ZodSuccess",(e,n)=>{Dl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function n3(e){return new mf({type:"success",innerType:e})}var vf=p("ZodCatch",(e,n)=>{Bl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function pf(e,n){return new vf({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}var hf=p("ZodNaN",(e,n)=>{_l.init(e,n),Z.init(e,n)});function t3(e){return fd(hf,e)}var ao=p("ZodPipe",(e,n)=>{Zi.init(e,n),Z.init(e,n),e.in=n.in,e.out=n.out});function Qu(e,n){return new ao({type:"pipe",in:e,out:n})}var gf=p("ZodReadonly",(e,n)=>{Sl.init(e,n),Z.init(e,n)});function Ef(e){return new gf({type:"readonly",innerType:e})}var yf=p("ZodTemplateLiteral",(e,n)=>{Cl.init(e,n),Z.init(e,n)});function u3(e,n){return new yf({type:"template_literal",parts:e,...q.normalizeParams(n)})}var bf=p("ZodLazy",(e,n)=>{xl.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.getter()});function kf(e){return new bf({type:"lazy",getter:e})}var Df=p("ZodPromise",(e,n)=>{$l.init(e,n),Z.init(e,n),e.unwrap=()=>e._zod.def.innerType});function r3(e){return new Df({type:"promise",innerType:e})}var Wu=p("ZodCustom",(e,n)=>{Il.init(e,n),Z.init(e,n)});function Bf(e){const n=new ue({check:"custom"});return n._zod.check=e,n}function i3(e,n){return bd(Wu,e??(()=>!0),n)}function _f(e,n={}){return kd(Wu,e,n)}function Af(e){const n=Bf(t=>(t.addIssue=r=>{if(typeof r=="string")t.issues.push(q.issue(r,t.value,n._zod.def));else{const u=r;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=t.value),u.inst??(u.inst=n),u.continue??(u.continue=!n._zod.def.abort),t.issues.push(q.issue(u))}},e(t.value,t)));return n}function a3(e,n={error:`Input not instance of ${e.name}`}){const t=new Wu({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...q.normalizeParams(n)});return t._zod.bag.Class=e,t}var o3=(...e)=>Dd({Pipe:ao,Boolean:Zu,String:ju,Transform:to},...e);function s3(e){const n=kf(()=>Ju([Fa(e),Pd(),jd(),Vd(),Xa(n),Xd(Fa(),n)]));return n}function c3(e,n){return Qu(uo(e),n)}var l3={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 d3(e){ye({customError:e})}function f3(){return ye().customError}var oo;oo||(oo={});var Sf={};En(Sf,{bigint:()=>h3,boolean:()=>p3,date:()=>g3,number:()=>v3,string:()=>m3});function m3(e){return jl(ju,e)}function v3(e){return Gl(Lu,e)}function p3(e){return Xl(Zu,e)}function h3(e){return nd(Vu,e)}function g3(e){return dd(Ya,e)}ye(Tl());var Kn={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}};Kn.loc.source={body:`fragment PayableAccountFragment on PayableAccount {
|
|
71
|
+
id
|
|
72
|
+
name
|
|
73
|
+
userId
|
|
74
|
+
country
|
|
75
|
+
currency
|
|
76
|
+
payable
|
|
77
|
+
originator
|
|
78
|
+
type
|
|
79
|
+
createdAt
|
|
80
|
+
... on BankAccount {
|
|
81
|
+
accountNumber
|
|
82
|
+
bankAccountType
|
|
83
|
+
bankAccountSubType
|
|
84
|
+
holder
|
|
85
|
+
email
|
|
86
|
+
ownedByUser
|
|
87
|
+
bankAccountDetails {
|
|
88
|
+
... on USBankAccountDetails {
|
|
89
|
+
routingNumber
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
... on VirtualCard {
|
|
94
|
+
mask
|
|
95
|
+
balance
|
|
96
|
+
renderSecret
|
|
97
|
+
virtualCardType
|
|
98
|
+
billingInfo {
|
|
99
|
+
holder
|
|
100
|
+
phone
|
|
101
|
+
email
|
|
102
|
+
address {
|
|
103
|
+
street
|
|
104
|
+
street2
|
|
105
|
+
city
|
|
106
|
+
subdivision
|
|
107
|
+
postalCode
|
|
108
|
+
countryCode
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
... on Bill {
|
|
113
|
+
billType
|
|
114
|
+
verifying
|
|
115
|
+
billAccountDetails {
|
|
116
|
+
balance
|
|
117
|
+
amountDue
|
|
118
|
+
openedAt
|
|
119
|
+
lastPaymentAmount
|
|
120
|
+
lastPaymentDate
|
|
121
|
+
nextPaymentDueDate
|
|
122
|
+
nextPaymentMinimumAmount
|
|
123
|
+
lastStatementBalance
|
|
124
|
+
remainingStatementBalance
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
dataSync {
|
|
128
|
+
lastSync
|
|
129
|
+
syncStatus
|
|
130
|
+
}
|
|
131
|
+
institution {
|
|
132
|
+
id
|
|
133
|
+
name
|
|
134
|
+
logo
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
`,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 so={};(function(){Kn.definitions.forEach(function(n){if(n.name){var t=new Set;Yu(n,t),so[n.name.value]=t}})})();function wf(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 E3(e,n){var t={kind:e.kind,definitions:[wf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=so[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=so[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=wf(e,o);s&&t.definitions.push(s)}),t}E3(Kn,"PayableAccountFragment");var Qn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateBankAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"createAccountInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BankAccountInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createBankAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"createAccountInput"},value:{kind:"Variable",name:{kind:"Name",value:"createAccountInput"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PayableAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:229}};Qn.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
138
|
+
|
|
139
|
+
mutation CreateBankAccount($createAccountInput: BankAccountInput!) {
|
|
140
|
+
createBankAccount(createAccountInput: $createAccountInput) {
|
|
141
|
+
...PayableAccountFragment
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Cf={};function y3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Cf[t]?!1:(Cf[t]=!0,!0)})}Qn.definitions=Qn.definitions.concat(y3(Kn.definitions));function Xu(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){Xu(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Xu(r,n)}),e.definitions&&e.definitions.forEach(function(r){Xu(r,n)})}var co={};(function(){Qn.definitions.forEach(function(n){if(n.name){var t=new Set;Xu(n,t),co[n.name.value]=t}})})();function $f(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 b3(e,n){var t={kind:e.kind,definitions:[$f(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=co[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=co[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=$f(e,o);s&&t.definitions.push(s)}),t}b3(Qn,"CreateBankAccount");var $n={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}};$n.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
145
|
+
|
|
146
|
+
mutation DeletePayableAccount($accountId: String!) {
|
|
147
|
+
deletePayableAccount(accountId: $accountId) {
|
|
148
|
+
...PayableAccountFragment
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var xf={};function k3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return xf[t]?!1:(xf[t]=!0,!0)})}$n.definitions=$n.definitions.concat(k3(Kn.definitions));function er(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){er(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){er(r,n)}),e.definitions&&e.definitions.forEach(function(r){er(r,n)})}var lo={};(function(){$n.definitions.forEach(function(n){if(n.name){var t=new Set;er(n,t),lo[n.name.value]=t}})})();function If(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 D3(e,n){var t={kind:e.kind,definitions:[If(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=lo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=lo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=If(e,o);s&&t.definitions.push(s)}),t}D3($n,"DeletePayableAccount");var qt={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BankAccountFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BankAccount"}},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:"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:"Field",name:{kind:"Name",value:"deliveryMethods"},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:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},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:580}};qt.loc.source={body:`fragment BankAccountFragment on BankAccount {
|
|
152
|
+
id
|
|
153
|
+
name
|
|
154
|
+
userId
|
|
155
|
+
country
|
|
156
|
+
currency
|
|
157
|
+
createdAt
|
|
158
|
+
type
|
|
159
|
+
... on BankAccount {
|
|
160
|
+
accountNumber
|
|
161
|
+
bankAccountType
|
|
162
|
+
bankAccountSubType
|
|
163
|
+
holder
|
|
164
|
+
email
|
|
165
|
+
ownedByUser
|
|
166
|
+
bankAccountDetails {
|
|
167
|
+
... on USBankAccountDetails {
|
|
168
|
+
routingNumber
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
deliveryMethods
|
|
172
|
+
}
|
|
173
|
+
institution {
|
|
174
|
+
id
|
|
175
|
+
name
|
|
176
|
+
logo
|
|
177
|
+
country
|
|
178
|
+
currency
|
|
179
|
+
}
|
|
180
|
+
paymentAddresses {
|
|
181
|
+
network
|
|
182
|
+
address
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};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 fo={};(function(){qt.definitions.forEach(function(n){if(n.name){var t=new Set;nr(n,t),fo[n.name.value]=t}})})();function Ff(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 B3(e,n){var t={kind:e.kind,definitions:[Ff(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=fo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=fo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Ff(e,o);s&&t.definitions.push(s)}),t}B3(qt,"BankAccountFragment");var Wn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenameBankAccount"},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:"BankAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:218}};Wn.loc.source={body:`#import "../queries/bankAccountFragment.graphql"
|
|
186
|
+
|
|
187
|
+
mutation RenameBankAccount($accountId: String!, $name: String!) {
|
|
188
|
+
renamePayableAccount(accountId: $accountId, name: $name) {
|
|
189
|
+
...BankAccountFragment
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Nf={};function _3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Nf[t]?!1:(Nf[t]=!0,!0)})}Wn.definitions=Wn.definitions.concat(_3(qt.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 mo={};(function(){Wn.definitions.forEach(function(n){if(n.name){var t=new Set;tr(n,t),mo[n.name.value]=t}})})();function Tf(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 A3(e,n){var t={kind:e.kind,definitions:[Tf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=mo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=mo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Tf(e,o);s&&t.definitions.push(s)}),t}A3(Wn,"RenameBankAccount");var Yn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserBankAccounts"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bankAccounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BankAccountFragment"},directives:[]}]}}]}}],loc:{start:0,end:124}};Yn.loc.source={body:`#import "./bankAccountFragment.graphql"
|
|
193
|
+
|
|
194
|
+
query UserBankAccounts {
|
|
195
|
+
bankAccounts {
|
|
196
|
+
...BankAccountFragment
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Of={};function S3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Of[t]?!1:(Of[t]=!0,!0)})}Yn.definitions=Yn.definitions.concat(S3(qt.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 vo={};(function(){Yn.definitions.forEach(function(n){if(n.name){var t=new Set;ur(n,t),vo[n.name.value]=t}})})();function zf(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 w3(e,n){var t={kind:e.kind,definitions:[zf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=vo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=vo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=zf(e,o);s&&t.definitions.push(s)}),t}w3(Yn,"UserBankAccounts");function C3(e){throw new Error(e)}var $3=(e=>(e.Active="Active",e.Error="Error",e.Syncing="Syncing",e.Unavailable="Unavailable",e))($3||{}),Uf=(e=>(e.Business="Business",e.Checking="Checking",e.Savings="Savings",e))(Uf||{}),Xn=(e=>(e.CABankAccount="CABankAccount",e.IbanAccount="IbanAccount",e.UKBankAccount="UKBankAccount",e.USBankAccount="USBankAccount",e))(Xn||{}),Pf=(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))(Pf||{}),jf=(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))(jf||{}),x3=(e=>(e.ACTIVE="ACTIVE",e.DISABLED="DISABLED",e.FAILED="FAILED",e.INITIALIZED="INITIALIZED",e.LOADING="LOADING",e.RETRY="RETRY",e.UNAVAILABLE="UNAVAILABLE",e.UNINITIALIZED="UNINITIALIZED",e))(x3||{}),I3=(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))(I3||{}),F3=(e=>(e.Provider="Provider",e.User="User",e))(F3||{}),Rf=(e=>(e.BankAccount="BankAccount",e.Bill="Bill",e.DebitCard="DebitCard",e.DigitalAccount="DigitalAccount",e.VirtualCard="VirtualCard",e))(Rf||{}),N3=(e=>(e.INSTANT="INSTANT",e.SAME_DAY="SAME_DAY",e.STANDARD="STANDARD",e))(N3||{}),Lf=(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))(Lf||{}),po=(e=>(e.USVirtualDebitCard="USVirtualDebitCard",e))(po||{});const T3=je.object({transitNumber:je.string().length(5,{message:"Transit number must be exactly 5 characters long"}).regex(/^[0-9]{5}$/,"Transit number should contain only digits."),institutionNumber:je.string().length(3,{message:"Institution number must be exactly 3 characters long"}).regex(/^[0-9]{3}$/,"Institution number should contain only digits.")}),O3=je.object({routingNumber:je.string().length(9,{message:"Routing number must be exactly 9 characters long"}).regex(/^[0-9]{9}$/,"Routing number should contain only digits.")}),z3=je.object({iban:je.string().min(15,{message:"IBAN must be at least 15 characters long"}).max(34,{message:"IBAN must be at most 34 characters long"}).regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]+$/,"IBAN must start with 2 letters, followed by 2 digits, then alphanumeric characters")}),U3=je.object({sortCode:je.string().length(6,{message:"Sort code must be exactly 6 characters long"}).regex(/^[0-9]{6}$/,"Sort code should contain only digits.")}),P3={[Xn.CABankAccount]:T3,[Xn.USBankAccount]:O3,[Xn.IbanAccount]:z3,[Xn.UKBankAccount]:U3};class j3{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:Yn}))?.bankAccounts??[]}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:$n,variables:{accountId:n}}))?.deletePayableAccount??null}async create(n,t){const r=P3[n]??C3("Invalid bank account type");try{const u=r.parse(t);return(await this.client.query({query:Qn,variables:{createAccountInput:{accountNumber:t.accountNumber,name:t.name,type:n,subType:t.subType,details:u,email:t.email??null,ownedByUser:t.ownedByUser??null,holder:t.holder??null}}}))?.createBankAccount??null}catch(u){throw u instanceof je.ZodError?new Error(u?.issues?.[0]?.message??"Input validation failure"):u}}}var Gt={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}};Gt.loc.source={body:`fragment BillFragment on Bill {
|
|
200
|
+
id
|
|
201
|
+
name
|
|
202
|
+
userId
|
|
203
|
+
country
|
|
204
|
+
currency
|
|
205
|
+
originator
|
|
206
|
+
payable
|
|
207
|
+
verifying
|
|
208
|
+
billType
|
|
209
|
+
createdAt
|
|
210
|
+
billAccountDetails {
|
|
211
|
+
balance
|
|
212
|
+
amountDue
|
|
213
|
+
openedAt
|
|
214
|
+
lastPaymentAmount
|
|
215
|
+
lastPaymentDate
|
|
216
|
+
nextPaymentDueDate
|
|
217
|
+
nextPaymentMinimumAmount
|
|
218
|
+
lastStatementBalance
|
|
219
|
+
remainingStatementBalance
|
|
220
|
+
}
|
|
221
|
+
dataSync {
|
|
222
|
+
lastSync
|
|
223
|
+
syncStatus
|
|
224
|
+
}
|
|
225
|
+
institution {
|
|
226
|
+
id
|
|
227
|
+
name
|
|
228
|
+
logo
|
|
229
|
+
}
|
|
230
|
+
paymentAddresses {
|
|
231
|
+
network
|
|
232
|
+
address
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function rr(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){rr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){rr(r,n)}),e.definitions&&e.definitions.forEach(function(r){rr(r,n)})}var ho={};(function(){Gt.definitions.forEach(function(n){if(n.name){var t=new Set;rr(n,t),ho[n.name.value]=t}})})();function Zf(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 R3(e,n){var t={kind:e.kind,definitions:[Zf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ho[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=ho[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Zf(e,o);s&&t.definitions.push(s)}),t}R3(Gt,"BillFragment");var et={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}};et.loc.source={body:`#import "../queries/billFragment.graphql"
|
|
236
|
+
|
|
237
|
+
mutation CreateUSBill($institutionId: String!, $accountNumber: String!, $type: BillType) {
|
|
238
|
+
addUSBill(institutionId: $institutionId, accountNumber: $accountNumber, type: $type) {
|
|
239
|
+
...BillFragment
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Vf={};function L3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Vf[t]?!1:(Vf[t]=!0,!0)})}et.definitions=et.definitions.concat(L3(Gt.definitions));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 go={};(function(){et.definitions.forEach(function(n){if(n.name){var t=new Set;ir(n,t),go[n.name.value]=t}})})();function Mf(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 Z3(e,n){var t={kind:e.kind,definitions:[Mf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=go[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=go[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Mf(e,o);s&&t.definitions.push(s)}),t}Z3(et,"CreateUSBill");var nt={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}};nt.loc.source={body:`#import "../queries/payableAccountFragment.graphql"
|
|
243
|
+
|
|
244
|
+
mutation RenamePayableAccount($accountId: String!, $name: String!) {
|
|
245
|
+
renamePayableAccount(accountId: $accountId, name: $name) {
|
|
246
|
+
...PayableAccountFragment
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var qf={};function V3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return qf[t]?!1:(qf[t]=!0,!0)})}nt.definitions=nt.definitions.concat(V3(Kn.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 Eo={};(function(){nt.definitions.forEach(function(n){if(n.name){var t=new Set;ar(n,t),Eo[n.name.value]=t}})})();function Gf(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 M3(e,n){var t={kind:e.kind,definitions:[Gf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Eo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Eo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Gf(e,o);s&&t.definitions.push(s)}),t}M3(nt,"RenamePayableAccount");var tt={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}};tt.loc.source={body:`#import "./billFragment.graphql"
|
|
250
|
+
|
|
251
|
+
query UserBills {
|
|
252
|
+
bills {
|
|
253
|
+
...BillFragment
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Jf={};function q3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Jf[t]?!1:(Jf[t]=!0,!0)})}tt.definitions=tt.definitions.concat(q3(Gt.definitions));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 yo={};(function(){tt.definitions.forEach(function(n){if(n.name){var t=new Set;or(n,t),yo[n.name.value]=t}})})();function Hf(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 G3(e,n){var t={kind:e.kind,definitions:[Hf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=yo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=yo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Hf(e,o);s&&t.definitions.push(s)}),t}G3(tt,"UserBills");class J3{client;constructor(n){this.client=n}async list(){return(await this.client.query({query:tt}))?.bills??[]}async rename(n,t){return(await this.client.query({query:nt,variables:{accountId:n,name:t}}))?.renamePayableAccount??null}async delete(n){return(await this.client.query({query:$n,variables:{accountId:n}}))?.deletePayableAccount??null}async add(n,t,r){return(await this.client.query({query:et,variables:{institutionId:n,accountNumber:t,type:r??null}}))?.addUSBill??null}}var Jt={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}};Jt.loc.source={body:`fragment PayableAccountInstitutionFragment on PayableAccountInstitution {
|
|
257
|
+
id
|
|
258
|
+
country
|
|
259
|
+
currency
|
|
260
|
+
name
|
|
261
|
+
logo
|
|
262
|
+
}
|
|
263
|
+
`,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 bo={};(function(){Jt.definitions.forEach(function(n){if(n.name){var t=new Set;sr(n,t),bo[n.name.value]=t}})})();function Kf(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 H3(e,n){var t={kind:e.kind,definitions:[Kf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=bo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=bo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Kf(e,o);s&&t.definitions.push(s)}),t}H3(Jt,"PayableAccountInstitutionFragment");var ut={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}};ut.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
|
|
264
|
+
|
|
265
|
+
query PopularBillInstitutions($billType: BillType) {
|
|
266
|
+
popularUSBillInstitutions(billType: $billType) {
|
|
267
|
+
...PayableAccountInstitutionFragment
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Qf={};function K3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Qf[t]?!1:(Qf[t]=!0,!0)})}ut.definitions=ut.definitions.concat(K3(Jt.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 ko={};(function(){ut.definitions.forEach(function(n){if(n.name){var t=new Set;cr(n,t),ko[n.name.value]=t}})})();function Wf(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 Q3(e,n){var t={kind:e.kind,definitions:[Wf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ko[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=ko[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Wf(e,o);s&&t.definitions.push(s)}),t}Q3(ut,"PopularBillInstitutions");var rt={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}};rt.loc.source={body:`#import "./payableAccountInstitutionFragment.graphql"
|
|
271
|
+
|
|
272
|
+
query SearchUSBillInstitutions($searchTerm: String!, $billType: BillType) {
|
|
273
|
+
searchUSBillInstitutions(searchTerm: $searchTerm, billType: $billType) {
|
|
274
|
+
...PayableAccountInstitutionFragment
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Yf={};function W3(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Yf[t]?!1:(Yf[t]=!0,!0)})}rt.definitions=rt.definitions.concat(W3(Jt.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 Do={};(function(){rt.definitions.forEach(function(n){if(n.name){var t=new Set;lr(n,t),Do[n.name.value]=t}})})();function Xf(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 Y3(e,n){var t={kind:e.kind,definitions:[Xf(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Do[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Do[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Xf(e,o);s&&t.definitions.push(s)}),t}Y3(rt,"SearchUSBillInstitutions");class X3{client;constructor(n){this.client=n}async popularUSBillInstitutions(n){return(await this.client.query({query:ut,variables:{billType:n??null}}))?.popularUSBillInstitutions??[]}async searchUSBillInstitutions(n,t){return(await this.client.query({query:rt,variables:{searchTerm:n,billType:t??null}}))?.searchUSBillInstitutions??[]}}var Ht={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}};Ht.loc.source={body:`fragment OnrampPaymentFragment on OnRampPayment {
|
|
278
|
+
id
|
|
279
|
+
amount
|
|
280
|
+
feeAmount
|
|
281
|
+
depositInstructions {
|
|
282
|
+
amount
|
|
283
|
+
currency
|
|
284
|
+
bankName
|
|
285
|
+
bankAddress
|
|
286
|
+
bankBeneficiaryName
|
|
287
|
+
bankRoutingNumber
|
|
288
|
+
bankAccountNumber
|
|
289
|
+
paymentMethod
|
|
290
|
+
depositMessage
|
|
291
|
+
}
|
|
292
|
+
network
|
|
293
|
+
token
|
|
294
|
+
address
|
|
295
|
+
status
|
|
296
|
+
createdAt
|
|
297
|
+
}
|
|
298
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};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 Bo={};(function(){Ht.definitions.forEach(function(n){if(n.name){var t=new Set;dr(n,t),Bo[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 e1(e,n){var t={kind:e.kind,definitions:[e4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Bo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Bo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=e4(e,o);s&&t.definitions.push(s)}),t}e1(Ht,"OnrampPaymentFragment");var it={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}};it.loc.source={body:`#import "../queries/onrampPaymentFragment.graphql"
|
|
299
|
+
|
|
300
|
+
mutation CreateOnrampPayment($createOnrampPaymentInput: CreateOnrampPaymentInput!) {
|
|
301
|
+
createOnrampPayment(createOnrampPaymentInput: $createOnrampPaymentInput) {
|
|
302
|
+
...OnrampPaymentFragment
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var n4={};function n1(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)})}it.definitions=it.definitions.concat(n1(Ht.definitions));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 _o={};(function(){it.definitions.forEach(function(n){if(n.name){var t=new Set;fr(n,t),_o[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 t1(e,n){var t={kind:e.kind,definitions:[t4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=_o[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=_o[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=t4(e,o);s&&t.definitions.push(s)}),t}t1(it,"CreateOnrampPayment");var at={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OnrampPayments"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onrampPayments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OnrampPaymentFragment"},directives:[]}]}}]}}],loc:{start:0,end:128}};at.loc.source={body:`#import "./onrampPaymentFragment.graphql"
|
|
306
|
+
|
|
307
|
+
query OnrampPayments {
|
|
308
|
+
onrampPayments {
|
|
309
|
+
...OnrampPaymentFragment
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var u4={};function u1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return u4[t]?!1:(u4[t]=!0,!0)})}at.definitions=at.definitions.concat(u1(Ht.definitions));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 Ao={};(function(){at.definitions.forEach(function(n){if(n.name){var t=new Set;mr(n,t),Ao[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 r1(e,n){var t={kind:e.kind,definitions:[r4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Ao[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Ao[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=r4(e,o);s&&t.definitions.push(s)}),t}r1(at,"OnrampPayments");class i1{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:it,variables:{createOnrampPaymentInput:n}}))?.createOnrampPayment}async list(){return(await this.client.query({query:at}))?.onrampPayments}}var ot={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:"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:[]}]}}],loc:{start:0,end:229}};ot.loc.source={body:`fragment PaymentFragment on Payment {
|
|
313
|
+
id
|
|
314
|
+
userId
|
|
315
|
+
status
|
|
316
|
+
accountId
|
|
317
|
+
amount
|
|
318
|
+
feeAmount
|
|
319
|
+
createdAt
|
|
320
|
+
deliveryMethod
|
|
321
|
+
paymentRequestId
|
|
322
|
+
targetCurrency
|
|
323
|
+
targetCurrencyAmount
|
|
324
|
+
targetCurrencyRate
|
|
325
|
+
}
|
|
326
|
+
`,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 So={};(function(){ot.definitions.forEach(function(n){if(n.name){var t=new Set;vr(n,t),So[n.name.value]=t}})})();function i4(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 a1(e,n){var t={kind:e.kind,definitions:[i4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=So[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=So[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=i4(e,o);s&&t.definitions.push(s)}),t}a1(ot,"PaymentFragment");var st={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}};st.loc.source={body:`#import "./paymentFragment.graphql"
|
|
327
|
+
|
|
328
|
+
query PaymentRequestPayment($paymentRequestId: String!) {
|
|
329
|
+
paymentForPaymentRequest(paymentRequestId: $paymentRequestId) {
|
|
330
|
+
...PaymentFragment
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var a4={};function o1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return a4[t]?!1:(a4[t]=!0,!0)})}st.definitions=st.definitions.concat(o1(ot.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 wo={};(function(){st.definitions.forEach(function(n){if(n.name){var t=new Set;pr(n,t),wo[n.name.value]=t}})})();function o4(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 s1(e,n){var t={kind:e.kind,definitions:[o4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=wo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=wo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=o4(e,o);s&&t.definitions.push(s)}),t}s1(st,"PaymentRequestPayment");var ct={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}};ct.loc.source={body:`#import "./paymentFragment.graphql"
|
|
334
|
+
|
|
335
|
+
query AccountPayments($accountId: String!) {
|
|
336
|
+
paymentsForAccount(accountId: $accountId) {
|
|
337
|
+
...PaymentFragment
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var s4={};function c1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return s4[t]?!1:(s4[t]=!0,!0)})}ct.definitions=ct.definitions.concat(c1(ot.definitions));function hr(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){hr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){hr(r,n)}),e.definitions&&e.definitions.forEach(function(r){hr(r,n)})}var Co={};(function(){ct.definitions.forEach(function(n){if(n.name){var t=new Set;hr(n,t),Co[n.name.value]=t}})})();function c4(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 l1(e,n){var t={kind:e.kind,definitions:[c4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Co[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Co[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=c4(e,o);s&&t.definitions.push(s)}),t}l1(ct,"AccountPayments");var lt={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}};lt.loc.source={body:`#import "./paymentFragment.graphql"
|
|
341
|
+
|
|
342
|
+
query Payment($paymentId: String!) {
|
|
343
|
+
payment(paymentId: $paymentId) {
|
|
344
|
+
...PaymentFragment
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var l4={};function d1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return l4[t]?!1:(l4[t]=!0,!0)})}lt.definitions=lt.definitions.concat(d1(ot.definitions));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 $o={};(function(){lt.definitions.forEach(function(n){if(n.name){var t=new Set;gr(n,t),$o[n.name.value]=t}})})();function d4(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 f1(e,n){var t={kind:e.kind,definitions:[d4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=$o[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=$o[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=d4(e,o);s&&t.definitions.push(s)}),t}f1(lt,"Payment");class m1{client;constructor(n){this.client=n}async listForAccount(n){return(await this.client.query({query:ct,variables:{accountId:n}}))?.paymentsForAccount??[]}async fetchById(n){return(await this.client.query({query:lt,variables:{paymentId:n}}))?.payment??null}async getForPaymentRequest(n){return(await this.client.query({query:st,variables:{paymentRequestId:n}}))?.paymentForPaymentRequest??null}}var Er={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:[]}]}}],loc:{start:0,end:247}};Er.loc.source={body:`fragment PaymentRequestFragment on DirectPayment {
|
|
348
|
+
id
|
|
349
|
+
userId
|
|
350
|
+
accountId
|
|
351
|
+
status
|
|
352
|
+
amount
|
|
353
|
+
feeAmount
|
|
354
|
+
amountDue
|
|
355
|
+
network
|
|
356
|
+
createdAt
|
|
357
|
+
deliveryMethod
|
|
358
|
+
targetCurrency
|
|
359
|
+
targetCurrencyAmount
|
|
360
|
+
targetCurrencyRate
|
|
361
|
+
}
|
|
362
|
+
`,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 xo={};(function(){Er.definitions.forEach(function(n){if(n.name){var t=new Set;yr(n,t),xo[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 v1(e,n){var t={kind:e.kind,definitions:[f4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=xo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=xo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=f4(e,o);s&&t.definitions.push(s)}),t}v1(Er,"PaymentRequestFragment");var dt={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}};dt.loc.source={body:`#import "../queries/paymentRequestFragment.graphql"
|
|
363
|
+
|
|
364
|
+
mutation CreatePaymentRequest($createDirectPaymentInput: CreateDirectPaymentInput!) {
|
|
365
|
+
createDirectPayment(createDirectPaymentInput: $createDirectPaymentInput) {
|
|
366
|
+
...PaymentRequestFragment
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var m4={};function p1(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return m4[t]?!1:(m4[t]=!0,!0)})}dt.definitions=dt.definitions.concat(p1(Er.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 Io={};(function(){dt.definitions.forEach(function(n){if(n.name){var t=new Set;br(n,t),Io[n.name.value]=t}})})();function v4(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 h1(e,n){var t={kind:e.kind,definitions:[v4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Io[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Io[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=v4(e,o);s&&t.definitions.push(s)}),t}h1(dt,"CreatePaymentRequest");var kr={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:[]},{kind:"Field",name:{kind:"Name",value:"suggestedGasLimit"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:399}};kr.loc.source={body:`query GetSpritzPayParams(
|
|
370
|
+
$tokenAddress: String!
|
|
371
|
+
$amount: Float!
|
|
372
|
+
$reference: String!
|
|
373
|
+
$network: String!
|
|
374
|
+
) {
|
|
375
|
+
spritzPayParams(
|
|
376
|
+
tokenAddress: $tokenAddress
|
|
377
|
+
amount: $amount
|
|
378
|
+
reference: $reference
|
|
379
|
+
network: $network
|
|
380
|
+
) {
|
|
381
|
+
contractAddress
|
|
382
|
+
method
|
|
383
|
+
calldata
|
|
384
|
+
value
|
|
385
|
+
requiredTokenInput
|
|
386
|
+
suggestedGasLimit
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};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 Fo={};(function(){kr.definitions.forEach(function(n){if(n.name){var t=new Set;Dr(n,t),Fo[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 g1(e,n){var t={kind:e.kind,definitions:[p4(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=Fo[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=Fo[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=p4(e,o);s&&t.definitions.push(s)}),t}g1(kr,"GetSpritzPayParams");var ft=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Br(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Kt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function fe(e,...n){if(!Br(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 E1(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Kt(e.outputLen),Kt(e.blockLen)}function mt(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 h4(e,n){fe(e);const t=n.outputLen;if(e.length<t)throw new Error("digestInto() expects output buffer of length at least "+t)}function y1(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Be(...e){for(let n=0;n<e.length;n++)e[n].fill(0)}function No(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Me(e,n){return e<<32-n|e>>>n}function on(e,n){return e<<n|e>>>32-n>>>0}var b1=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function k1(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function D1(e){for(let n=0;n<e.length;n++)e[n]=k1(e[n]);return e}var g4=b1?e=>e:D1,E4=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",B1=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function Qt(e){if(fe(e),E4)return e.toHex();let n="";for(let t=0;t<e.length;t++)n+=B1[e[t]];return n}var Ke={_0:48,_9:57,A:65,F:70,a:97,f:102};function y4(e){if(e>=Ke._0&&e<=Ke._9)return e-Ke._0;if(e>=Ke.A&&e<=Ke.F)return e-(Ke.A-10);if(e>=Ke.a&&e<=Ke.f)return e-(Ke.a-10)}function To(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(E4)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 u=0,i=0;u<t;u++,i+=2){const a=y4(e.charCodeAt(i)),o=y4(e.charCodeAt(i+1));if(a===void 0||o===void 0){const s=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+s+'" at index '+i)}r[u]=a*16+o}return r}function _r(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Wt(e){return typeof e=="string"&&(e=_r(e)),fe(e),e}function be(...e){let n=0;for(let r=0;r<e.length;r++){const u=e[r];fe(u),n+=u.length}const t=new Uint8Array(n);for(let r=0,u=0;r<e.length;r++){const i=e[r];t.set(i,u),u+=i.length}return t}var Oo=class{};function qe(e){const n=r=>e().update(Wt(r)).digest(),t=e();return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=()=>e(),n}function _1(e){const n=(r,u)=>e(u).update(Wt(r)).digest(),t=e({});return n.outputLen=t.outputLen,n.blockLen=t.blockLen,n.create=r=>e(r),n}function b4(e=32){if(ft&&typeof ft.getRandomValues=="function")return ft.getRandomValues(new Uint8Array(e));if(ft&&typeof ft.randomBytes=="function")return Uint8Array.from(ft.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}var zo=BigInt(0),Uo=BigInt(1);function Ar(e,n){if(typeof n!="boolean")throw new Error(e+" boolean expected, got "+n)}function Sr(e){const n=e.toString(16);return n.length&1?"0"+n:n}function k4(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?zo:BigInt("0x"+e)}function xn(e){return k4(Qt(e))}function D4(e){return fe(e),k4(Qt(Uint8Array.from(e).reverse()))}function Yt(e,n){return To(e.toString(16).padStart(n*2,"0"))}function B4(e,n){return Yt(e,n).reverse()}function ce(e,n,t){let r;if(typeof n=="string")try{r=To(n)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(Br(n))r=Uint8Array.from(n);else throw new Error(e+" must be hex string or Uint8Array");const u=r.length;if(typeof t=="number"&&u!==t)throw new Error(e+" of length "+t+" expected, got "+u);return r}var Po=e=>typeof e=="bigint"&&zo<=e;function jo(e,n,t){return Po(e)&&Po(n)&&Po(t)&&n<=e&&e<t}function _4(e,n,t,r){if(!jo(n,t,r))throw new Error("expected valid "+e+": "+t+" <= n < "+r+", got "+n)}function A1(e){let n;for(n=0;e>zo;e>>=Uo,n+=1);return n}var wr=e=>(Uo<<BigInt(e))-Uo;function S1(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),u=d=>Uint8Array.of(d);let i=r(e),a=r(e),o=0;const s=()=>{i.fill(1),a.fill(0),o=0},c=(...d)=>t(a,i,...d),l=(d=r(0))=>{a=c(u(0),d),i=c(),d.length!==0&&(a=c(u(1),d),i=c())},f=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const v=[];for(;d<n;){i=c();const h=i.slice();v.push(h),d+=i.length}return be(...v)};return(d,v)=>{s(),l(d);let h;for(;!(h=v(f()));)l();return s(),h}}function w1(e){return typeof e=="function"&&Number.isSafeInteger(e.outputLen)}function Cr(e,n,t={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(u,i,a){const o=e[u];if(a&&o===void 0)return;const s=typeof o;if(s!==i||o===null)throw new Error(`param "${u}" is invalid: expected ${i}, got ${s}`)}Object.entries(n).forEach(([u,i])=>r(u,i,!1)),Object.entries(t).forEach(([u,i])=>r(u,i,!0))}function A4(e){const n=new WeakMap;return(t,...r)=>{const u=n.get(t);if(u!==void 0)return u;const i=e(t,...r);return n.set(t,i),i}}var $r=BigInt(2**32-1),S4=BigInt(32);function C1(e,n=!1){return n?{h:Number(e&$r),l:Number(e>>S4&$r)}:{h:Number(e>>S4&$r)|0,l:Number(e&$r)|0}}function w4(e,n=!1){const t=e.length;let r=new Uint32Array(t),u=new Uint32Array(t);for(let i=0;i<t;i++){const{h:a,l:o}=C1(e[i],n);[r[i],u[i]]=[a,o]}return[r,u]}var C4=(e,n,t)=>e>>>t,$4=(e,n,t)=>e<<32-t|n>>>t,vt=(e,n,t)=>e>>>t|n<<32-t,pt=(e,n,t)=>e<<32-t|n>>>t,xr=(e,n,t)=>e<<64-t|n>>>t-32,Ir=(e,n,t)=>e>>>t-32|n<<64-t,$1=(e,n,t)=>e<<t|n>>>32-t,x1=(e,n,t)=>n<<t|e>>>32-t,I1=(e,n,t)=>n<<t-32|e>>>64-t,F1=(e,n,t)=>e<<t-32|n>>>64-t;function Qe(e,n,t,r){const u=(n>>>0)+(r>>>0);return{h:e+t+(u/2**32|0)|0,l:u|0}}var N1=(e,n,t)=>(e>>>0)+(n>>>0)+(t>>>0),T1=(e,n,t,r)=>n+t+r+(e/2**32|0)|0,O1=(e,n,t,r)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0),z1=(e,n,t,r,u)=>n+t+r+u+(e/2**32|0)|0,U1=(e,n,t,r,u)=>(e>>>0)+(n>>>0)+(t>>>0)+(r>>>0)+(u>>>0),P1=(e,n,t,r,u,i)=>n+t+r+u+i+(e/2**32|0)|0;/*! Bundled license information:
|
|
390
|
+
|
|
391
|
+
@noble/hashes/esm/utils.js:
|
|
392
|
+
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
393
|
+
|
|
394
|
+
@noble/curves/esm/utils.js:
|
|
395
|
+
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
396
|
+
*/function j1(e,n,t,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(n,t,r);const u=BigInt(32),i=BigInt(4294967295),a=Number(t>>u&i),o=Number(t&i),s=r?4:0,c=r?0:4;e.setUint32(n+s,a,r),e.setUint32(n+c,o,r)}function Fr(e,n,t){return e&n^~e&t}function x4(e,n,t){return e&n^e&t^n&t}var Xt=class extends Oo{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=No(this.buffer)}update(e){mt(this),e=Wt(e),fe(e);const{view:n,buffer:t,blockLen:r}=this,u=e.length;for(let i=0;i<u;){const a=Math.min(r-this.pos,u-i);if(a===r){const o=No(e);for(;r<=u-i;i+=r)this.process(o,i);continue}t.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){mt(this),h4(e,this),this.finished=!0;const{buffer:n,view:t,blockLen:r,isLE:u}=this;let{pos:i}=this;n[i++]=128,Be(this.buffer.subarray(i)),this.padOffset>r-i&&(this.process(t,0),i=0);for(let l=i;l<r;l++)n[l]=0;j1(t,r-8,BigInt(this.length*8),u),this.process(t,0);const a=No(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],u)}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:u,destroyed:i,pos:a}=this;return e.destroyed=i,e.finished=u,e.length=r,e.pos=a,r%n&&e.buffer.set(t),e}clone(){return this._cloneInto()}},sn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),cn=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),me=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),ve=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),R1=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]),ln=new Uint32Array(64),I4=class extends Xt{constructor(e=32){super(64,e,8,!1),this.A=sn[0]|0,this.B=sn[1]|0,this.C=sn[2]|0,this.D=sn[3]|0,this.E=sn[4]|0,this.F=sn[5]|0,this.G=sn[6]|0,this.H=sn[7]|0}get(){const{A:e,B:n,C:t,D:r,E:u,F:i,G:a,H:o}=this;return[e,n,t,r,u,i,a,o]}set(e,n,t,r,u,i,a,o){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=u|0,this.F=i|0,this.G=a|0,this.H=o|0}process(e,n){for(let l=0;l<16;l++,n+=4)ln[l]=e.getUint32(n,!1);for(let l=16;l<64;l++){const f=ln[l-15],m=ln[l-2],d=Me(f,7)^Me(f,18)^f>>>3,v=Me(m,17)^Me(m,19)^m>>>10;ln[l]=v+ln[l-7]+d+ln[l-16]|0}let{A:t,B:r,C:u,D:i,E:a,F:o,G:s,H:c}=this;for(let l=0;l<64;l++){const f=Me(a,6)^Me(a,11)^Me(a,25),m=c+f+Fr(a,o,s)+R1[l]+ln[l]|0,v=(Me(t,2)^Me(t,13)^Me(t,22))+x4(t,r,u)|0;c=s,s=o,o=a,a=i+m|0,i=u,u=r,r=t,t=m+v|0}t=t+this.A|0,r=r+this.B|0,u=u+this.C|0,i=i+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,u,i,a,o,s,c)}roundClean(){Be(ln)}destroy(){this.set(0,0,0,0,0,0,0,0),Be(this.buffer)}},L1=class extends I4{constructor(){super(28),this.A=cn[0]|0,this.B=cn[1]|0,this.C=cn[2]|0,this.D=cn[3]|0,this.E=cn[4]|0,this.F=cn[5]|0,this.G=cn[6]|0,this.H=cn[7]|0}},F4=w4(["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))),Z1=F4[0],V1=F4[1],dn=new Uint32Array(80),fn=new Uint32Array(80),Nr=class extends Xt{constructor(e=64){super(128,e,16,!1),this.Ah=ve[0]|0,this.Al=ve[1]|0,this.Bh=ve[2]|0,this.Bl=ve[3]|0,this.Ch=ve[4]|0,this.Cl=ve[5]|0,this.Dh=ve[6]|0,this.Dl=ve[7]|0,this.Eh=ve[8]|0,this.El=ve[9]|0,this.Fh=ve[10]|0,this.Fl=ve[11]|0,this.Gh=ve[12]|0,this.Gl=ve[13]|0,this.Hh=ve[14]|0,this.Hl=ve[15]|0}get(){const{Ah:e,Al:n,Bh:t,Bl:r,Ch:u,Cl:i,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,u,i,a,o,s,c,l,f,m,d,v,h]}set(e,n,t,r,u,i,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=u|0,this.Cl=i|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 E=0;E<16;E++,n+=4)dn[E]=e.getUint32(n),fn[E]=e.getUint32(n+=4);for(let E=16;E<80;E++){const k=dn[E-15]|0,w=fn[E-15]|0,_=vt(k,w,1)^vt(k,w,8)^C4(k,w,7),G=pt(k,w,1)^pt(k,w,8)^$4(k,w,7),V=dn[E-2]|0,F=fn[E-2]|0,g=vt(V,F,19)^xr(V,F,61)^C4(V,F,6),$=pt(V,F,19)^Ir(V,F,61)^$4(V,F,6),D=O1(G,$,fn[E-7],fn[E-16]),A=z1(D,_,g,dn[E-7],dn[E-16]);dn[E]=A|0,fn[E]=D|0}let{Ah:t,Al:r,Bh:u,Bl:i,Ch:a,Cl:o,Dh:s,Dl:c,Eh:l,El:f,Fh:m,Fl:d,Gh:v,Gl:h,Hh:b,Hl:y}=this;for(let E=0;E<80;E++){const k=vt(l,f,14)^vt(l,f,18)^xr(l,f,41),w=pt(l,f,14)^pt(l,f,18)^Ir(l,f,41),_=l&m^~l&v,G=f&d^~f&h,V=U1(y,w,G,V1[E],fn[E]),F=P1(V,b,k,_,Z1[E],dn[E]),g=V|0,$=vt(t,r,28)^xr(t,r,34)^xr(t,r,39),D=pt(t,r,28)^Ir(t,r,34)^Ir(t,r,39),A=t&u^t&a^u&a,I=r&i^r&o^i&o;b=v|0,y=h|0,v=m|0,h=d|0,m=l|0,d=f|0,{h:l,l:f}=Qe(s|0,c|0,F|0,g|0),s=a|0,c=o|0,a=u|0,o=i|0,u=t|0,i=r|0;const T=N1(g,D,I);t=T1(T,F,$,A),r=T|0}({h:t,l:r}=Qe(this.Ah|0,this.Al|0,t|0,r|0)),{h:u,l:i}=Qe(this.Bh|0,this.Bl|0,u|0,i|0),{h:a,l:o}=Qe(this.Ch|0,this.Cl|0,a|0,o|0),{h:s,l:c}=Qe(this.Dh|0,this.Dl|0,s|0,c|0),{h:l,l:f}=Qe(this.Eh|0,this.El|0,l|0,f|0),{h:m,l:d}=Qe(this.Fh|0,this.Fl|0,m|0,d|0),{h:v,l:h}=Qe(this.Gh|0,this.Gl|0,v|0,h|0),{h:b,l:y}=Qe(this.Hh|0,this.Hl|0,b|0,y|0),this.set(t,r,u,i,a,o,s,c,l,f,m,d,v,h,b,y)}roundClean(){Be(dn,fn)}destroy(){Be(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},M1=class extends Nr{constructor(){super(48),this.Ah=me[0]|0,this.Al=me[1]|0,this.Bh=me[2]|0,this.Bl=me[3]|0,this.Ch=me[4]|0,this.Cl=me[5]|0,this.Dh=me[6]|0,this.Dl=me[7]|0,this.Eh=me[8]|0,this.El=me[9]|0,this.Fh=me[10]|0,this.Fl=me[11]|0,this.Gh=me[12]|0,this.Gl=me[13]|0,this.Hh=me[14]|0,this.Hl=me[15]|0}},pe=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),he=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),q1=class extends Nr{constructor(){super(28),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}},G1=class extends Nr{constructor(){super(32),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}},Tr=qe(()=>new I4);qe(()=>new L1),qe(()=>new Nr),qe(()=>new M1),qe(()=>new G1),qe(()=>new q1);var N4=class extends Oo{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,E1(e);const t=Wt(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,u=new Uint8Array(r);u.set(t.length>r?e.create().update(t).digest():t);for(let i=0;i<u.length;i++)u[i]^=54;this.iHash.update(u),this.oHash=e.create();for(let i=0;i<u.length;i++)u[i]^=106;this.oHash.update(u),Be(u)}update(e){return mt(this),this.iHash.update(e),this}digestInto(e){mt(this),fe(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:u,blockLen:i,outputLen:a}=this;return e=e,e.finished=r,e.destroyed=u,e.blockLen=i,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()}},T4=(e,n,t)=>new N4(e,n).update(t).digest();T4.create=(e,n)=>new N4(e,n);var _e=BigInt(0),ke=BigInt(1),In=BigInt(2),J1=BigInt(3),O4=BigInt(4),z4=BigInt(5),U4=BigInt(8);function ge(e,n){const t=e%n;return t>=_e?t:n+t}function Fe(e,n,t){let r=e;for(;n-- >_e;)r*=r,r%=t;return r}function P4(e,n){if(e===_e)throw new Error("invert: expected non-zero number");if(n<=_e)throw new Error("invert: expected positive modulus, got "+n);let t=ge(e,n),r=n,u=_e,i=ke;for(;t!==_e;){const o=r/t,s=r%t,c=u-i*o;r=t,t=s,u=i,i=c}if(r!==ke)throw new Error("invert: does not exist");return ge(u,n)}function j4(e,n){const t=(e.ORDER+ke)/O4,r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}function H1(e,n){const t=(e.ORDER-z4)/U4,r=e.mul(n,In),u=e.pow(r,t),i=e.mul(n,u),a=e.mul(e.mul(i,In),u),o=e.mul(i,e.sub(a,e.ONE));if(!e.eql(e.sqr(o),n))throw new Error("Cannot find square root");return o}function K1(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let n=e-ke,t=0;for(;n%In===_e;)n/=In,t++;let r=In;const u=zr(e);for(;L4(u,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(t===1)return j4;let i=u.pow(r,n);const a=(n+ke)/In;return function(s,c){if(s.is0(c))return c;if(L4(s,c)!==1)throw new Error("Cannot find square root");let l=t,f=s.mul(s.ONE,i),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=ke<<BigInt(l-v-1),y=s.pow(f,b);l=v,f=s.sqr(y),m=s.mul(m,f),d=s.mul(d,y)}return d}}function Q1(e){return e%O4===J1?j4:e%U4===z4?H1:K1(e)}var W1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function R4(e){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},t=W1.reduce((r,u)=>(r[u]="function",r),n);return Cr(e,t),e}function Y1(e,n,t){if(t<_e)throw new Error("invalid exponent, negatives unsupported");if(t===_e)return e.ONE;if(t===ke)return n;let r=e.ONE,u=n;for(;t>_e;)t&ke&&(r=e.mul(r,u)),u=e.sqr(u),t>>=ke;return r}function Or(e,n,t=!1){const r=new Array(n.length).fill(t?e.ZERO:void 0),u=n.reduce((a,o,s)=>e.is0(o)?a:(r[s]=a,e.mul(a,o)),e.ONE),i=e.inv(u);return n.reduceRight((a,o,s)=>e.is0(o)?a:(r[s]=e.mul(a,r[s]),e.mul(a,o)),i),r}function L4(e,n){const t=(e.ORDER-ke)/In,r=e.pow(n,t),u=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),a=e.eql(r,e.neg(e.ONE));if(!u&&!i&&!a)throw new Error("invalid Legendre symbol result");return u?1:i?0:-1}function X1(e,n){n!==void 0&&Kt(n);const t=n!==void 0?n:e.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function zr(e,n,t=!1,r={}){if(e<=_e)throw new Error("invalid field: expected ORDER > 0, got "+e);let u,i;if(typeof n=="object"&&n!=null){if(r.sqrt||t)throw new Error("cannot specify opts in two arguments");const l=n;l.BITS&&(u=l.BITS),l.sqrt&&(i=l.sqrt),typeof l.isLE=="boolean"&&(t=l.isLE)}else typeof n=="number"&&(u=n),r.sqrt&&(i=r.sqrt);const{nBitLength:a,nByteLength:o}=X1(e,u);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:wr(a),ZERO:_e,ONE:ke,create:l=>ge(l,e),isValid:l=>{if(typeof l!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof l);return _e<=l&&l<e},is0:l=>l===_e,isValidNot0:l=>!c.is0(l)&&c.isValid(l),isOdd:l=>(l&ke)===ke,neg:l=>ge(-l,e),eql:(l,f)=>l===f,sqr:l=>ge(l*l,e),add:(l,f)=>ge(l+f,e),sub:(l,f)=>ge(l-f,e),mul:(l,f)=>ge(l*f,e),pow:(l,f)=>Y1(c,l,f),div:(l,f)=>ge(l*P4(f,e),e),sqrN:l=>l*l,addN:(l,f)=>l+f,subN:(l,f)=>l-f,mulN:(l,f)=>l*f,inv:l=>P4(l,e),sqrt:i||(l=>(s||(s=Q1(e)),s(c,l))),toBytes:l=>t?B4(l,o):Yt(l,o),fromBytes:l=>{if(l.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+l.length);return t?D4(l):xn(l)},invertBatch:l=>Or(c,l),cmov:(l,f,m)=>m?f:l});return Object.freeze(c)}function Z4(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 V4(e){const n=Z4(e);return n+Math.ceil(n/2)}function eE(e,n,t=!1){const r=e.length,u=Z4(n),i=V4(n);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);const a=t?D4(e):xn(e),o=ge(a,n-ke)+ke;return t?B4(o,u):Yt(o,u)}var ht=BigInt(0),Fn=BigInt(1);function eu(e,n){const t=n.negate();return e?t:n}function nE(e,n,t){const r=a=>a.pz,u=Or(e.Fp,t.map(r));return t.map((a,o)=>a.toAffine(u[o])).map(e.fromAffine)}function M4(e,n){if(!Number.isSafeInteger(e)||e<=0||e>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+e)}function Ro(e,n){M4(e,n);const t=Math.ceil(n/e)+1,r=2**(e-1),u=2**e,i=wr(e),a=BigInt(e);return{windows:t,windowSize:r,mask:i,maxNumber:u,shiftBy:a}}function q4(e,n,t){const{windowSize:r,mask:u,maxNumber:i,shiftBy:a}=t;let o=Number(e&u),s=e>>a;o>r&&(o-=i,s+=Fn);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 tE(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 uE(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 Lo=new WeakMap,G4=new WeakMap;function Zo(e){return G4.get(e)||1}function J4(e){if(e!==ht)throw new Error("invalid wNAF")}function rE(e,n){return{constTimeNegate:eu,hasPrecomputes(t){return Zo(t)!==1},unsafeLadder(t,r,u=e.ZERO){let i=t;for(;r>ht;)r&Fn&&(u=u.add(i)),i=i.double(),r>>=Fn;return u},precomputeWindow(t,r){const{windows:u,windowSize:i}=Ro(r,n),a=[];let o=t,s=o;for(let c=0;c<u;c++){s=o,a.push(s);for(let l=1;l<i;l++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,r,u){let i=e.ZERO,a=e.BASE;const o=Ro(t,n);for(let s=0;s<o.windows;s++){const{nextN:c,offset:l,isZero:f,isNeg:m,isNegF:d,offsetF:v}=q4(u,s,o);u=c,f?a=a.add(eu(d,r[v])):i=i.add(eu(m,r[l]))}return J4(u),{p:i,f:a}},wNAFUnsafe(t,r,u,i=e.ZERO){const a=Ro(t,n);for(let o=0;o<a.windows&&u!==ht;o++){const{nextN:s,offset:c,isZero:l,isNeg:f}=q4(u,o,a);if(u=s,!l){const m=r[c];i=i.add(f?m.negate():m)}}return J4(u),i},getPrecomputes(t,r,u){let i=Lo.get(r);return i||(i=this.precomputeWindow(r,t),t!==1&&(typeof u=="function"&&(i=u(i)),Lo.set(r,i))),i},wNAFCached(t,r,u){const i=Zo(t);return this.wNAF(i,this.getPrecomputes(i,t,u),r)},wNAFCachedUnsafe(t,r,u,i){const a=Zo(t);return a===1?this.unsafeLadder(t,r,i):this.wNAFUnsafe(a,this.getPrecomputes(a,t,u),r,i)},setWindowSize(t,r){M4(r,n),G4.set(t,r),Lo.delete(t)}}}function iE(e,n,t,r){let u=n,i=e.ZERO,a=e.ZERO;for(;t>ht||r>ht;)t&Fn&&(i=i.add(u)),r&Fn&&(a=a.add(u)),u=u.double(),t>>=Fn,r>>=Fn;return{p1:i,p2:a}}function aE(e,n,t,r){tE(t,e),uE(r,n);const u=t.length,i=r.length;if(u!==i)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,o=A1(BigInt(u));let s=1;o>12?s=o-3:o>4?s=o-2:o>0&&(s=2);const c=wr(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<i;h++){const b=r[h],y=Number(b>>BigInt(d)&c);l[y]=l[y].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 H4(e,n){if(n){if(n.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return R4(n),n}else return zr(e)}function oE(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>ht))throw new Error(`CURVE.${o} must be positive bigint`)}const r=H4(n.p,t.Fp),u=H4(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:u}}function K4(e){e.lowS!==void 0&&Ar("lowS",e.lowS),e.prehash!==void 0&&Ar("prehash",e.prehash)}var sE=class extends Error{constructor(e=""){super(e)}},We={Err:sE,_tlv:{encode:(e,n)=>{const{Err:t}=We;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,u=Sr(r);if(u.length/2&128)throw new t("tlv.encode: long form length too big");const i=r>127?Sr(u.length/2|128):"";return Sr(e)+i+u+n},decode(e,n){const{Err:t}=We;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 u=n[r++],i=!!(u&128);let a=0;if(!i)a=u;else{const s=u&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}=We;if(e<Nn)throw new n("integer: negative integers are not allowed");let t=Sr(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}=We;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 xn(e)}},toSig(e){const{Err:n,_int:t,_tlv:r}=We,u=ce("signature",e),{v:i,l:a}=r.decode(48,u);if(a.length)throw new n("invalid signature: left bytes after parsing");const{v:o,l:s}=r.decode(2,i),{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}=We,r=n.encode(2,t.encode(e.r)),u=n.encode(2,t.encode(e.s)),i=r+u;return n.encode(48,i)}},Nn=BigInt(0),De=BigInt(1),Ye=BigInt(2),gt=BigInt(3),Vo=BigInt(4);function cE(e,n,t){function r(u){const i=e.sqr(u),a=e.mul(i,u);return e.add(e.add(a,e.mul(u,n)),t)}return r}function Q4(e,n,t){const{BYTES:r}=e;function u(i){let a;if(typeof i=="bigint")a=i;else{let o=ce("private key",i);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 i}`)}}if(t&&(a=e.create(a)),!e.isValidNot0(a))throw new Error("invalid private key: out of range [1..N-1]");return a}return u}function lE(e,n={}){const{Fp:t,Fn:r}=oE("weierstrass",e,n),{h:u,n:i}=e;Cr(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,g,$){const{x:D,y:A}=g.toAffine(),I=t.toBytes(D);if(Ar("isCompressed",$),$){o();const T=!t.isOdd(A);return be(W4(T),I)}else return be(Uint8Array.of(4),I,t.toBytes(A))}function c(F){fe(F);const g=t.BYTES,$=g+1,D=2*g+1,A=F.length,I=F[0],T=F.subarray(1);if(A===$&&(I===2||I===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 P;try{P=t.sqrt(O)}catch(Q){const j=Q instanceof Error?": "+Q.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}o();const z=t.isOdd(P);return(I&1)===1!==z&&(P=t.neg(P)),{x:N,y:P}}else if(A===D&&I===4){const N=t.fromBytes(T.subarray(g*0,g*1)),O=t.fromBytes(T.subarray(g*1,g*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=cE(t,e.a,e.b);function d(F,g){const $=t.sqr(g),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,gt),Vo),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,g,$=!1){if(!t.isValid(g)||$&&t.is0(g))throw new Error(`bad point coordinate ${F}`);return g}function y(F){if(!(F instanceof _))throw new Error("ProjectivePoint expected")}const E=A4((F,g)=>{const{px:$,py:D,pz:A}=F;if(t.eql(A,t.ONE))return{x:$,y:D};const I=F.is0();g==null&&(g=I?t.ONE:t.inv(A));const T=t.mul($,g),N=t.mul(D,g),O=t.mul(A,g);if(I)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=A4(F=>{if(F.is0()){if(n.allowInfinityPoint&&!t.is0(F.py))return;throw new Error("bad point: ZERO")}const{x:g,y:$}=F.toAffine();if(!t.isValid(g)||!t.isValid($))throw new Error("bad point: x or y not field elements");if(!d(g,$))throw new Error("bad point: equation left != right");if(!F.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function w(F,g,$,D,A){return $=new _(t.mul($.px,F),$.py,$.pz),g=eu(D,g),$=eu(A,$),g.add($)}class _{constructor(g,$,D){this.px=b("x",g),this.py=b("y",$,!0),this.pz=b("z",D),Object.freeze(this)}static fromAffine(g){const{x:$,y:D}=g||{};if(!g||!t.isValid($)||!t.isValid(D))throw new Error("invalid affine point");if(g instanceof _)throw new Error("projective point not allowed");return t.is0($)&&t.is0(D)?_.ZERO:new _($,D,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(g){return nE(_,"pz",g)}static fromBytes(g){return fe(g),_.fromHex(g)}static fromHex(g){const $=_.fromAffine(f(ce("pointHex",g)));return $.assertValidity(),$}static fromPrivateKey(g){const $=Q4(r,n.allowedPrivateKeyLengths,n.wrapPrivateKey);return _.BASE.multiply($(g))}static msm(g,$){return aE(_,r,g,$)}precompute(g=8,$=!0){return V.setWindowSize(this,g),$||this.multiply(gt),this}_setWindowSize(g){this.precompute(g)}assertValidity(){k(this)}hasEvenY(){const{y:g}=this.toAffine();if(!t.isOdd)throw new Error("Field doesn't support isOdd");return!t.isOdd(g)}equals(g){y(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g,O=t.eql(t.mul($,N),t.mul(I,A)),P=t.eql(t.mul(D,N),t.mul(T,A));return O&&P}negate(){return new _(this.px,t.neg(this.py),this.pz)}double(){const{a:g,b:$}=e,D=t.mul($,gt),{px:A,py:I,pz:T}=this;let N=t.ZERO,O=t.ZERO,P=t.ZERO,z=t.mul(A,A),re=t.mul(I,I),Q=t.mul(T,T),j=t.mul(A,I);return j=t.add(j,j),P=t.mul(A,T),P=t.add(P,P),N=t.mul(g,P),O=t.mul(D,Q),O=t.add(N,O),N=t.sub(re,O),O=t.add(re,O),O=t.mul(N,O),N=t.mul(j,N),P=t.mul(D,P),Q=t.mul(g,Q),j=t.sub(z,Q),j=t.mul(g,j),j=t.add(j,P),P=t.add(z,z),z=t.add(P,z),z=t.add(z,Q),z=t.mul(z,j),O=t.add(O,z),Q=t.mul(I,T),Q=t.add(Q,Q),z=t.mul(Q,j),N=t.sub(N,z),P=t.mul(Q,re),P=t.add(P,P),P=t.add(P,P),new _(N,O,P)}add(g){y(g);const{px:$,py:D,pz:A}=this,{px:I,py:T,pz:N}=g;let O=t.ZERO,P=t.ZERO,z=t.ZERO;const re=e.a,Q=t.mul(e.b,gt);let j=t.mul($,I),ae=t.mul(D,T),oe=t.mul(A,N),le=t.add($,D),Y=t.add(I,T);le=t.mul(le,Y),Y=t.add(j,ae),le=t.sub(le,Y),Y=t.add($,A);let Ee=t.add(I,N);return Y=t.mul(Y,Ee),Ee=t.add(j,oe),Y=t.sub(Y,Ee),Ee=t.add(D,A),O=t.add(T,N),Ee=t.mul(Ee,O),O=t.add(ae,oe),Ee=t.sub(Ee,O),z=t.mul(re,Y),O=t.mul(Q,oe),z=t.add(O,z),O=t.sub(ae,z),z=t.add(ae,z),P=t.mul(O,z),ae=t.add(j,j),ae=t.add(ae,j),oe=t.mul(re,oe),Y=t.mul(Q,Y),ae=t.add(ae,oe),oe=t.sub(j,oe),oe=t.mul(re,oe),Y=t.add(Y,oe),j=t.mul(ae,Y),P=t.add(P,j),j=t.mul(Ee,Y),O=t.mul(le,O),O=t.sub(O,j),j=t.mul(le,ae),z=t.mul(Ee,z),z=t.add(z,j),new _(O,P,z)}subtract(g){return this.add(g.negate())}is0(){return this.equals(_.ZERO)}multiply(g){const{endo:$}=n;if(!r.isValidNot0(g))throw new Error("invalid scalar: out of range");let D,A;const I=T=>V.wNAFCached(this,T,_.normalizeZ);if($){const{k1neg:T,k1:N,k2neg:O,k2:P}=$.splitScalar(g),{p:z,f:re}=I(N),{p:Q,f:j}=I(P);A=re.add(j),D=w($.beta,z,Q,T,O)}else{const{p:T,f:N}=I(g);D=T,A=N}return _.normalizeZ([D,A])[0]}multiplyUnsafe(g){const{endo:$}=n,D=this;if(!r.isValid(g))throw new Error("invalid scalar: out of range");if(g===Nn||D.is0())return _.ZERO;if(g===De)return D;if(V.hasPrecomputes(this))return this.multiply(g);if($){const{k1neg:A,k1:I,k2neg:T,k2:N}=$.splitScalar(g),{p1:O,p2:P}=iE(_,D,I,N);return w($.beta,O,P,A,T)}else return V.wNAFCachedUnsafe(D,g)}multiplyAndAddUnsafe(g,$,D){const A=this.multiplyUnsafe($).add(g.multiplyUnsafe(D));return A.is0()?void 0:A}toAffine(g){return E(this,g)}isTorsionFree(){const{isTorsionFree:g}=n;return u===De?!0:g?g(_,this):V.wNAFCachedUnsafe(this,i).is0()}clearCofactor(){const{clearCofactor:g}=n;return u===De?this:g?g(_,this):this.multiplyUnsafe(u)}toBytes(g=!0){return Ar("isCompressed",g),this.assertValidity(),l(_,this,g)}toRawBytes(g=!0){return this.toBytes(g)}toHex(g=!0){return Qt(this.toBytes(g))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}_.BASE=new _(e.Gx,e.Gy,t.ONE),_.ZERO=new _(t.ZERO,t.ONE,t.ZERO),_.Fp=t,_.Fn=r;const G=r.BITS,V=rE(_,n.endo?Math.ceil(G/2):G);return _}function W4(e){return Uint8Array.of(e?2:3)}function dE(e,n,t={}){Cr(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||b4,u=n.hmac||((D,...A)=>T4(n.hash,D,be(...A))),{Fp:i,Fn:a}=e,{ORDER:o,BITS:s}=a;function c(D){const A=o>>De;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,I,T){f("r",A),f("s",I),this.r=A,this.s=I,T!=null&&(this.recovery=T),Object.freeze(this)}static fromCompact(A){const I=a.BYTES,T=ce("compactSignature",A,I*2);return new m(a.fromBytes(T.subarray(0,I)),a.fromBytes(T.subarray(I,I*2)))}static fromDER(A){const{r:I,s:T}=We.toSig(ce("DER",A));return new m(I,T)}assertValidity(){}addRecoveryBit(A){return new m(this.r,this.s,A)}recoverPublicKey(A){const I=i.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*Ye<I&&O>1)throw new Error("recovery id is ambiguous for h>1 curve");const z=O===2||O===3?T+o:T;if(!i.isValid(z))throw new Error("recovery id 2 or 3 invalid");const re=i.toBytes(z),Q=e.fromHex(be(W4((O&1)===0),re)),j=a.inv(z),ae=k(ce("msgHash",A)),oe=a.create(-ae*j),le=a.create(N*j),Y=e.BASE.multiplyUnsafe(oe).add(Q.multiplyUnsafe(le));if(Y.is0())throw new Error("point at infinify");return Y.assertValidity(),Y}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 be(a.toBytes(this.r),a.toBytes(this.s));if(A==="der")return To(We.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Qt(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Qt(this.toBytes("compact"))}}const d=Q4(a,t.allowedPrivateKeyLengths,t.wrapPrivateKey),v={isValidPrivateKey(D){try{return d(D),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const D=o;return eE(r(V4(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 I=ce("key",D).length,T=i.BYTES,N=T+1,O=2*T+1;if(!(t.allowedPrivateKeyLengths||a.BYTES===N))return I===N||I===O}function y(D,A,I=!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(I)}const E=n.bits2int||function(D){if(D.length>8192)throw new Error("input is too large");const A=xn(D),I=D.length*8-s;return I>0?A>>BigInt(I):A},k=n.bits2int_modN||function(D){return a.create(E(D))},w=wr(s);function _(D){return _4("num < 2^"+s,D,Nn,w),a.toBytes(D)}function G(D,A,I=V){if(["recovered","canonical"].some(le=>le in I))throw new Error("sign() legacy options not supported");const{hash:T}=n;let{lowS:N,prehash:O,extraEntropy:P}=I;N==null&&(N=!0),D=ce("msgHash",D),K4(I),O&&(D=ce("prehashed msgHash",T(D)));const z=k(D),re=d(A),Q=[_(re),_(z)];if(P!=null&&P!==!1){const le=P===!0?r(i.BYTES):P;Q.push(ce("extraEntropy",le))}const j=be(...Q),ae=z;function oe(le){const Y=E(le);if(!a.isValidNot0(Y))return;const Ee=a.inv(Y),Bt=e.BASE.multiply(Y).toAffine(),Tn=a.create(Bt.x);if(Tn===Nn)return;const gn=a.create(Ee*a.create(ae+Tn*re));if(gn===Nn)return;let ni=(Bt.x===Tn?0:2)|Number(Bt.y&De),On=gn;return N&&c(gn)&&(On=l(gn),ni^=1),new m(Tn,On,ni)}return{seed:j,k2sig:oe}}const V={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};function g(D,A,I=V){const{seed:T,k2sig:N}=G(D,A,I);return S1(n.hash.outputLen,a.BYTES,u)(T,N)}e.BASE.precompute(8);function $(D,A,I,T=F){const N=D;A=ce("msgHash",A),I=ce("publicKey",I),K4(T);const{lowS:O,prehash:P,format:z}=T;if("strict"in T)throw new Error("options.strict was renamed to lowS");if(z!==void 0&&!["compact","der","js"].includes(z))throw new Error('format must be "compact", "der" or "js"');const re=typeof N=="string"||Br(N),Q=!re&&!z&&typeof N=="object"&&N!==null&&typeof N.r=="bigint"&&typeof N.s=="bigint";if(!re&&!Q)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let j,ae;try{if(Q)if(z===void 0||z==="js")j=new m(N.r,N.s);else throw new Error("invalid format");if(re){try{z!=="compact"&&(j=m.fromDER(N))}catch(On){if(!(On instanceof We.Err))throw On}!j&&z!=="der"&&(j=m.fromCompact(N))}ae=e.fromHex(I)}catch{return!1}if(!j||O&&j.hasHighS())return!1;P&&(A=n.hash(A));const{r:oe,s:le}=j,Y=k(A),Ee=a.inv(le),Bt=a.create(Y*Ee),Tn=a.create(oe*Ee),gn=e.BASE.multiplyUnsafe(Bt).add(ae.multiplyUnsafe(Tn));return gn.is0()?!1:a.create(gn.x)===oe}return Object.freeze({getPublicKey:h,getSharedSecret:y,sign:g,verify:$,utils:v,Point:e,Signature:m})}function fE(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=zr(n.n,e.nBitLength),u={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:u}}function mE(e){const{CURVE:n,curveOpts:t}=fE(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 vE(e,n){return Object.assign({},n,{ProjectivePoint:n.Point,CURVE:e})}function pE(e){const{CURVE:n,curveOpts:t,ecdsaOpts:r}=mE(e),u=lE(n,t),i=dE(u,r,t);return vE(e,i)}function hE(e,n){const t=e.ORDER;let r=Nn;for(let v=t-De;v%Ye===Nn;v/=Ye)r+=De;const u=r,i=Ye<<u-De-De,a=i*Ye,o=(t-De)/a,s=(o-De)/Ye,c=a-De,l=i,f=e.pow(n,o),m=e.pow(n,(o+De)/Ye);let d=(v,h)=>{let b=f,y=e.pow(h,c),E=e.sqr(y);E=e.mul(E,h);let k=e.mul(v,E);k=e.pow(k,s),k=e.mul(k,y),y=e.mul(k,h),E=e.mul(k,v);let w=e.mul(E,y);k=e.pow(w,l);let _=e.eql(k,e.ONE);y=e.mul(E,m),k=e.mul(w,b),E=e.cmov(y,E,_),w=e.cmov(k,w,_);for(let G=u;G>De;G--){let V=G-Ye;V=Ye<<V-De;let F=e.pow(w,V);const g=e.eql(F,e.ONE);y=e.mul(E,b),b=e.mul(b,b),F=e.mul(w,b),E=e.cmov(y,E,g),w=e.cmov(F,w,g)}return{isValid:_,value:E}};if(e.ORDER%Vo===gt){const v=(e.ORDER-gt)/Vo,h=e.sqrt(e.neg(n));d=(b,y)=>{let E=e.sqr(y);const k=e.mul(b,y);E=e.mul(E,k);let w=e.pow(E,v);w=e.mul(w,k);const _=e.mul(w,h),G=e.mul(e.sqr(w),y),V=e.eql(G,b);let F=e.cmov(_,w,V);return{isValid:V,value:F}}}return d}function gE(e,n){R4(e);const{A:t,B:r,Z:u}=n;if(!e.isValid(t)||!e.isValid(r)||!e.isValid(u))throw new Error("mapToCurveSimpleSWU: invalid opts");const i=hE(e,u);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,u),s=e.sqr(o),s=e.add(s,o),c=e.add(s,e.ONE),c=e.mul(c,r),l=e.cmov(u,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}=i(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 y=e.isOdd(a)===e.isOdd(v);v=e.cmov(e.neg(v),v,y);const E=Or(e,[l],!0)[0];return d=e.mul(d,E),{x:d,y:v}}}function EE(e,n){const t=r=>pE({...e,hash:r});return{...t(n),create:t}}var yE=xn;function mn(e,n){if(nu(e),nu(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 bE(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 nu(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function kE(e,n,t,r){fe(e),fe(n),nu(t),n.length>255&&(n=r(be(_r("H2C-OVERSIZE-DST-"),n)));const{outputLen:u,blockLen:i}=r,a=Math.ceil(t/u);if(t>65535||a>255)throw new Error("expand_message_xmd: invalid lenInBytes");const o=be(n,mn(n.length,1)),s=mn(0,i),c=mn(t,2),l=new Array(a),f=r(be(s,e,c,mn(0,1),o));l[0]=r(be(f,mn(1,1),o));for(let d=1;d<=a;d++){const v=[bE(f,l[d-1]),mn(d+1,1),o];l[d]=r(be(...v))}return be(...l).slice(0,t)}function DE(e,n,t,r,u){if(fe(e),fe(n),nu(t),n.length>255){const i=Math.ceil(2*r/8);n=u.create({dkLen:i}).update(_r("H2C-OVERSIZE-DST-")).update(n).digest()}if(t>65535||n.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return u.create({dkLen:t}).update(e).update(mn(t,2)).update(n).update(mn(n.length,1)).digest()}function Y4(e,n,t){Cr(t,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:r,k:u,m:i,hash:a,expand:o,DST:s}=t;if(!Br(s)&&typeof s!="string")throw new Error("DST must be string or uint8array");if(!w1(t.hash))throw new Error("expected valid hash");fe(e),nu(n);const c=typeof s=="string"?_r(s):s,l=r.toString(2).length,f=Math.ceil((l+u)/8),m=n*i*f;let d;if(o==="xmd")d=kE(e,c,m,a);else if(o==="xof")d=DE(e,c,m,u,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(i);for(let y=0;y<i;y++){const E=f*(y+h*i),k=d.subarray(E,E+f);b[y]=ge(yE(k),r)}v[h]=b}return v}function BE(e,n){const t=n.map(r=>Array.from(r).reverse());return(r,u)=>{const[i,a,o,s]=t.map(f=>f.reduce((m,d)=>e.add(e.mul(m,r),d))),[c,l]=Or(e,[a,s],!0);return r=e.mul(i,c),u=e.mul(u,e.mul(o,l)),{x:r,y:u}}}function _E(e,n,t){if(typeof n!="function")throw new Error("mapToCurve() must be defined");function r(i){return e.fromAffine(n(i))}function u(i){const a=i.clearCofactor();return a.equals(e.ZERO)?e.ZERO:(a.assertValidity(),a)}return{defaults:t,hashToCurve(i,a){const o=t.DST?t.DST:{},s=Object.assign({},t,o,a),c=Y4(i,2,s),l=r(c[0]),f=r(c[1]);return u(l.add(f))},encodeToCurve(i,a){const o=t.encodeDST?t.encodeDST:{},s=Object.assign({},t,o,a),c=Y4(i,1,s);return u(r(c[0]))},mapToCurve(i){if(!Array.isArray(i))throw new Error("expected array of bigints");for(const a of i)if(typeof a!="bigint")throw new Error("expected array of bigints");return u(r(i))}}}var Xe={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},X4=BigInt(0),Ur=BigInt(1),Pr=BigInt(2),em=(e,n)=>(e+n/Pr)/n;function nm(e){const n=Xe.p,t=BigInt(3),r=BigInt(6),u=BigInt(11),i=BigInt(22),a=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%n,l=c*c*e%n,f=Fe(l,t,n)*l%n,m=Fe(f,t,n)*l%n,d=Fe(m,Pr,n)*c%n,v=Fe(d,u,n)*d%n,h=Fe(v,i,n)*v%n,b=Fe(h,o,n)*h%n,y=Fe(b,s,n)*b%n,E=Fe(y,o,n)*h%n,k=Fe(E,t,n)*l%n,w=Fe(k,a,n)*v%n,_=Fe(w,r,n)*c%n,G=Fe(_,Pr,n);if(!vn.eql(vn.sqr(G),e))throw new Error("Cannot find square root");return G}var vn=zr(Xe.p,void 0,void 0,{sqrt:nm}),jr=EE({...Xe,Fp:vn,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const n=Xe.n,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Ur*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),u=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=t,a=BigInt("0x100000000000000000000000000000000"),o=em(i*e,n),s=em(-r*e,n);let c=ge(e-o*t-s*u,n),l=ge(-o*r-s*i,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}}}},Tr),tm={};function Rr(e,...n){let t=tm[e];if(t===void 0){const r=Tr(Uint8Array.from(e,u=>u.charCodeAt(0)));t=be(r,r),tm[e]=t}return Tr(be(t,...n))}var Mo=e=>e.toBytes(!0).slice(1),qo=e=>Yt(e,32),Go=e=>ge(e,Xe.p),tu=e=>ge(e,Xe.n),Jo=jr.Point,Ho=e=>e%Pr===X4;function Ko(e){let n=jr.utils.normPrivateKeyToScalar(e),t=Jo.fromPrivateKey(n);return{scalar:Ho(t.y)?n:tu(-n),bytes:Mo(t)}}function um(e){_4("x",e,Ur,Xe.p);const n=Go(e*e),t=Go(n*e+BigInt(7));let r=nm(t);Ho(r)||(r=Go(-r));const u=Jo.fromAffine({x:e,y:r});return u.assertValidity(),u}var Et=xn;function rm(...e){return tu(Et(Rr("BIP0340/challenge",...e)))}function AE(e){return Ko(e).bytes}function SE(e,n,t=b4(32)){const r=ce("message",e),{bytes:u,scalar:i}=Ko(n),a=ce("auxRand",t,32),o=qo(i^Et(Rr("BIP0340/aux",a))),s=Rr("BIP0340/nonce",o,u,r),c=tu(Et(s));if(c===X4)throw new Error("sign failed: k is zero");const{bytes:l,scalar:f}=Ko(c),m=rm(l,u,r),d=new Uint8Array(64);if(d.set(l,0),d.set(qo(tu(f+m*i)),32),!im(d,r,u))throw new Error("sign: Invalid signature produced");return d}function im(e,n,t){const r=ce("signature",e,64),u=ce("message",n),i=ce("publicKey",t,32);try{const a=um(Et(i)),o=Et(r.subarray(0,32));if(!jo(o,Ur,Xe.p))return!1;const s=Et(r.subarray(32,64));if(!jo(s,Ur,Xe.n))return!1;const c=rm(qo(o),Mo(a),u),l=Jo.BASE.multiplyUnsafe(s).add(a.multiplyUnsafe(tu(-c))),{x:f,y:m}=l.toAffine();return!(l.is0()||!Ho(m)||f!==o)}catch{return!1}}({getPublicKey:AE,sign:SE,verify:im,utils:{randomPrivateKey:jr.utils.randomPrivateKey,lift_x:um,pointToBytes:Mo,numberToBytesBE:Yt,bytesToNumberBE:xn,taggedHash:Rr,mod:ge}});var wE=BE(vn,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(n=>BigInt(n)))),CE=gE(vn,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:vn.create(BigInt("-11"))});_E(jr.Point,e=>{const{x:n,y:t}=CE(vn.create(e[0]));return wE(n,t)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:vn.ORDER,m:1,k:128,expand:"xmd",hash:Tr});/*! Bundled license information:
|
|
397
|
+
|
|
398
|
+
@noble/curves/esm/abstract/modular.js:
|
|
399
|
+
@noble/curves/esm/abstract/curve.js:
|
|
400
|
+
@noble/curves/esm/abstract/weierstrass.js:
|
|
401
|
+
@noble/curves/esm/_shortw_utils.js:
|
|
402
|
+
@noble/curves/esm/secp256k1.js:
|
|
403
|
+
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
404
|
+
*/var $E="0.1.1";function xE(){return $E}var Ne=class ms extends Error{constructor(n,t={}){const r=(()=>{if(t.cause instanceof ms){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})(),u=t.cause instanceof ms&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${u??""}`,o=[n||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||u?["",r?`Details: ${r}`:void 0,u?`See: ${a}`:void 0]:[]].filter(s=>typeof s=="string").join(`
|
|
405
|
+
`);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@${xE()}`}),this.cause=t.cause,this.details=r,this.docs=a,this.docsPath=u,this.shortMessage=n}walk(n){return am(this,n)}};function am(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?am(e.cause,n):n?null:e}function IE(e,n){if(cm(e)>n)throw new jE({givenSize:cm(e),maxSize:n})}var en={zero:48,nine:57,A:65,F:70,a:97,f:102};function om(e){if(e>=en.zero&&e<=en.nine)return e-en.zero;if(e>=en.A&&e<=en.F)return e-(en.A-10);if(e>=en.a&&e<=en.f)return e-(en.a-10)}function FE(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;if(e.length>r)throw new RE({size:e.length,targetSize:r,type:"Bytes"});const u=new Uint8Array(r);for(let i=0;i<r;i++){const a=t==="right";u[a?i:r-i-1]=e[a?i:e.length-i-1]}return u}function Qo(e,n){if(Yo(e)>n)throw new JE({givenSize:Yo(e),maxSize:n})}function sm(e,n={}){const{dir:t,size:r=32}=n;if(r===0)return e;const u=e.replace("0x","");if(u.length>r*2)throw new HE({size:Math.ceil(u.length/2),targetSize:r,type:"Hex"});return`0x${u[t==="right"?"padEnd":"padStart"](r*2,"0")}`}new TextDecoder;var NE=new TextEncoder;function TE(e){return e instanceof Uint8Array?e:typeof e=="string"?zE(e):OE(e)}function OE(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function zE(e,n={}){const{size:t}=n;let r=e;t&&(Qo(e,t),r=Wo(e,t));let u=r.slice(2);u.length%2&&(u=`0${u}`);const i=u.length/2,a=new Uint8Array(i);for(let o=0,s=0;o<i;o++){const c=om(u.charCodeAt(s++)),l=om(u.charCodeAt(s++));if(c===void 0||l===void 0)throw new Ne(`Invalid byte sequence ("${u[s-2]}${u[s-1]}" in "${u}").`);a[o]=c*16+l}return a}function UE(e,n={}){const{size:t}=n,r=NE.encode(e);return typeof t=="number"?(IE(r,t),PE(r,t)):r}function PE(e,n){return FE(e,{dir:"right",size:n})}function cm(e){return e.length}var jE=class extends Ne{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"})}},RE=class extends Ne{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"})}},LE=new TextEncoder,ZE=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function lm(...e){return`0x${e.reduce((n,t)=>n+t.replace("0x",""),"")}`}function VE(e,n={}){const t=`0x${Number(e)}`;return typeof n.size=="number"?(Qo(t,n.size),Lr(t,n.size)):t}function dm(e,n={}){let t="";for(let u=0;u<e.length;u++)t+=ZE[e[u]];const r=`0x${t}`;return typeof n.size=="number"?(Qo(r,n.size),Wo(r,n.size)):r}function ME(e,n={}){const{signed:t,size:r}=n,u=BigInt(e);let i;r?t?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(i=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof i=="bigint"&&t?-i-1n:0;if(i&&u>i||u<a){const c=typeof e=="bigint"?"n":"";throw new GE({max:i?`${i}${c}`:void 0,min:`${a}${c}`,signed:t,size:r,value:`${e}${c}`})}const s=`0x${(t&&u<0?(1n<<BigInt(r*8))+BigInt(u):u).toString(16)}`;return r?Lr(s,r):s}function qE(e,n={}){return dm(LE.encode(e),n)}function Lr(e,n){return sm(e,{dir:"left",size:n})}function Wo(e,n){return sm(e,{dir:"right",size:n})}function Yo(e){return Math.ceil((e.length-2)/2)}var GE=class extends Ne{constructor({max:e,min:n,signed:t,size:r,value:u}){super(`Number \`${u}\` 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"})}},JE=class extends Ne{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"})}},HE=class extends Ne{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"})}},fm="2.31.7",Xo={getDocsUrl:({docsBaseUrl:e,docsPath:n="",docsSlug:t})=>n?`${e??"https://viem.sh"}${n}${t?`#${t}`:""}`:void 0,version:`viem@${fm}`},Zr=class vs extends Error{constructor(n,t={}){const r=t.cause instanceof vs?t.cause.details:t.cause?.message?t.cause.message:t.details,u=t.cause instanceof vs&&t.cause.docsPath||t.docsPath,i=Xo.getDocsUrl?.({...t,docsPath:u}),a=[n||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...r?[`Details: ${r}`]:[],...Xo.version?[`Version: ${Xo.version}`]:[]].join(`
|
|
406
|
+
`);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=u,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=n,this.version=fm}walk(n){return mm(this,n)}};function mm(e,n){return n?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?mm(e.cause,n):n?null:e}function es(e,{strict:n=!0}={}){return!e||typeof e!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function vm(e){return es(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var pm=class extends Zr{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 Vr(e,{dir:n,size:t=32}={}){return typeof e=="string"?KE(e,{dir:n,size:t}):QE(e,{dir:n,size:t})}function KE(e,{dir:n,size:t=32}={}){if(t===null)return e;const r=e.replace("0x","");if(r.length>t*2)throw new pm({size:Math.ceil(r.length/2),targetSize:t,type:"hex"});return`0x${r[n==="right"?"padEnd":"padStart"](t*2,"0")}`}function QE(e,{dir:n,size:t=32}={}){if(t===null)return e;if(e.length>t)throw new pm({size:e.length,targetSize:t,type:"bytes"});const r=new Uint8Array(t);for(let u=0;u<t;u++){const i=n==="right";r[i?u:t-u-1]=e[i?u:e.length-u-1]}return r}var WE=class extends Zr{constructor({max:e,min:n,signed:t,size:r,value:u}){super(`Number "${u}" is not in safe ${r?`${r*8}-bit ${t?"signed":"unsigned"} `:""}integer range ${e?`(${n} to ${e})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},YE=class extends Zr{constructor({givenSize:e,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}};function Mr(e,{size:n}){if(vm(e)>n)throw new YE({givenSize:vm(e),maxSize:n})}function XE(e,n={}){const{signed:t}=n;n.size&&Mr(e,{size:n.size});const r=BigInt(e);if(!t)return r;const u=(e.length-2)/2,i=(1n<<BigInt(u)*8n-1n)-1n;return r<=i?r:r-BigInt(`0x${"f".padStart(u*2,"f")}`)-1n}function ey(e,n={}){return Number(XE(e,n))}Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function ns(e,n={}){const{signed:t,size:r}=n,u=BigInt(e);let i;r?t?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(i=BigInt(Number.MAX_SAFE_INTEGER));const a=typeof i=="bigint"&&t?-i-1n:0;if(i&&u>i||u<a){const s=typeof e=="bigint"?"n":"";throw new WE({max:i?`${i}${s}`:void 0,min:`${a}${s}`,signed:t,size:r,value:`${e}${s}`})}const o=`0x${(t&&u<0?(1n<<BigInt(r*8))+BigInt(u):u).toString(16)}`;return r?Vr(o,{size:r}):o}new TextEncoder;var ny=new TextEncoder;function ty(e,n={}){return typeof e=="number"||typeof e=="bigint"?ry(e,n):typeof e=="boolean"?uy(e,n):es(e)?gm(e,n):Em(e,n)}function uy(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(Mr(t,{size:n.size}),Vr(t,{size:n.size})):t}var nn={zero:48,nine:57,A:65,F:70,a:97,f:102};function hm(e){if(e>=nn.zero&&e<=nn.nine)return e-nn.zero;if(e>=nn.A&&e<=nn.F)return e-(nn.A-10);if(e>=nn.a&&e<=nn.f)return e-(nn.a-10)}function gm(e,n={}){let t=e;n.size&&(Mr(t,{size:n.size}),t=Vr(t,{dir:"right",size:n.size}));let r=t.slice(2);r.length%2&&(r=`0${r}`);const u=r.length/2,i=new Uint8Array(u);for(let a=0,o=0;a<u;a++){const s=hm(r.charCodeAt(o++)),c=hm(r.charCodeAt(o++));if(s===void 0||c===void 0)throw new Zr(`Invalid byte sequence ("${r[o-2]}${r[o-1]}" in "${r}").`);i[a]=s*16+c}return i}function ry(e,n){const t=ns(e,n);return gm(t)}function Em(e,n={}){const t=ny.encode(e);return typeof n.size=="number"?(Mr(t,{size:n.size}),Vr(t,{dir:"right",size:n.size})):t}var iy=BigInt(0),uu=BigInt(1),ay=BigInt(2),oy=BigInt(7),sy=BigInt(256),cy=BigInt(113),ym=[],bm=[],km=[];for(let e=0,n=uu,t=1,r=0;e<24;e++){[t,r]=[r,(2*t+3*r)%5],ym.push(2*(5*r+t)),bm.push((e+1)*(e+2)/2%64);let u=iy;for(let i=0;i<7;i++)n=(n<<uu^(n>>oy)*cy)%sy,n&ay&&(u^=uu<<(uu<<BigInt(i))-uu);km.push(u)}var Dm=w4(km,!0),ly=Dm[0],dy=Dm[1],Bm=(e,n,t)=>t>32?I1(e,n,t):$1(e,n,t),_m=(e,n,t)=>t>32?F1(e,n,t):x1(e,n,t);function fy(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=Bm(c,l,1)^t[o],m=_m(c,l,1)^t[o+1];for(let d=0;d<50;d+=10)e[a+d]^=f,e[a+d+1]^=m}let u=e[2],i=e[3];for(let a=0;a<24;a++){const o=bm[a],s=Bm(u,i,o),c=_m(u,i,o),l=ym[a];u=e[l],i=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]^=ly[r],e[1]^=dy[r]}Be(t)}var Am=class Jm extends Oo{constructor(n,t,r,u=!1,i=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=u,this.rounds=i,Kt(r),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=y1(this.state)}clone(){return this._cloneInto()}keccak(){g4(this.state32),fy(this.state32,this.rounds),g4(this.state32),this.posOut=0,this.pos=0}update(n){mt(this),n=Wt(n),fe(n);const{blockLen:t,state:r}=this,u=n.length;for(let i=0;i<u;){const a=Math.min(t-this.pos,u-i);for(let o=0;o<a;o++)r[this.pos++]^=n[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:r,blockLen:u}=this;n[r]^=t,(t&128)!==0&&r===u-1&&this.keccak(),n[u-1]^=128,this.keccak()}writeInto(n){mt(this,!1),fe(n),this.finish();const t=this.state,{blockLen:r}=this;for(let u=0,i=n.length;u<i;){this.posOut>=r&&this.keccak();const a=Math.min(r-this.posOut,i-u);n.set(t.subarray(this.posOut,this.posOut+a),u),this.posOut+=a,u+=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 Kt(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(h4(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,Be(this.state)}_cloneInto(n){const{blockLen:t,suffix:r,outputLen:u,rounds:i,enableXOF:a}=this;return n||(n=new Jm(t,r,u,a,i)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=i,n.suffix=r,n.outputLen=u,n.enableXOF=a,n.destroyed=this.destroyed,n}},pn=(e,n,t)=>qe(()=>new Am(n,e,t));pn(6,144,224/8),pn(6,136,256/8),pn(6,104,384/8),pn(6,72,512/8),pn(1,144,224/8);var Sm=pn(1,136,256/8);pn(1,104,384/8),pn(1,72,512/8);var wm=(e,n,t)=>_1((r={})=>new Am(n,e,r.dkLen===void 0?t:r.dkLen,!0));wm(31,168,128/8),wm(31,136,256/8);function my(e,n){return Sm(es(e,{strict:!1})?ty(e):e)}var ru=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}},vy=/^0x[a-fA-F0-9]{40}$/,ts=new ru(8192);function py(e,n){const{strict:t=!0}={},r=`${e}.${t}`;if(ts.has(r))return ts.get(r);const u=vy.test(e)?e.toLowerCase()===e?!0:t?hy(e)===e:!0:!1;return ts.set(r,u),u}var us=new ru(8192);function hy(e,n){if(us.has(`${e}.${n}`))return us.get(`${e}.${n}`);const t=e.substring(2).toLowerCase(),r=my(Em(t)),u=t.split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&u[a]&&(u[a]=u[a].toUpperCase()),(r[a>>1]&15)>=8&&u[a+1]&&(u[a+1]=u[a+1].toUpperCase());const i=`0x${u.join("")}`;return us.set(`${e}.${n}`,i),i}async function gy(e,{address:n,blockTag:t="latest",blockNumber:r}){const u=await e.request({method:"eth_getTransactionCount",params:[n,typeof r=="bigint"?ns(r):t]},{dedupe:!!r});return ey(u)}new ru(128),ns(0,{size:32}),new ru(8192);var yt=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),hn=new Uint32Array(80),Ey=class extends Xt{constructor(){super(64,20,8,!1),this.A=yt[0]|0,this.B=yt[1]|0,this.C=yt[2]|0,this.D=yt[3]|0,this.E=yt[4]|0}get(){const{A:e,B:n,C:t,D:r,E:u}=this;return[e,n,t,r,u]}set(e,n,t,r,u){this.A=e|0,this.B=n|0,this.C=t|0,this.D=r|0,this.E=u|0}process(e,n){for(let o=0;o<16;o++,n+=4)hn[o]=e.getUint32(n,!1);for(let o=16;o<80;o++)hn[o]=on(hn[o-3]^hn[o-8]^hn[o-14]^hn[o-16],1);let{A:t,B:r,C:u,D:i,E:a}=this;for(let o=0;o<80;o++){let s,c;o<20?(s=Fr(r,u,i),c=1518500249):o<40?(s=r^u^i,c=1859775393):o<60?(s=x4(r,u,i),c=2400959708):(s=r^u^i,c=3395469782);const l=on(t,5)+s+a+c+hn[o]|0;a=i,i=u,u=on(r,30),r=t,t=l}t=t+this.A|0,r=r+this.B|0,u=u+this.C|0,i=i+this.D|0,a=a+this.E|0,this.set(t,r,u,i,a)}roundClean(){Be(hn)}destroy(){this.set(0,0,0,0,0),Be(this.buffer)}};qe(()=>new Ey);var yy=Math.pow(2,32),by=Array.from({length:64},(e,n)=>Math.floor(yy*Math.abs(Math.sin(n+1)))),qr=yt.slice(0,4),rs=new Uint32Array(16),ky=class extends Xt{constructor(){super(64,16,8,!0),this.A=qr[0]|0,this.B=qr[1]|0,this.C=qr[2]|0,this.D=qr[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)rs[a]=e.getUint32(n,!0);let{A:t,B:r,C:u,D:i}=this;for(let a=0;a<64;a++){let o,s,c;a<16?(o=Fr(r,u,i),s=a,c=[7,12,17,22]):a<32?(o=Fr(i,r,u),s=(5*a+1)%16,c=[5,9,14,20]):a<48?(o=r^u^i,s=(3*a+5)%16,c=[4,11,16,23]):(o=u^(r|~i),s=7*a%16,c=[6,10,15,21]),o=o+t+by[a]+rs[s],t=i,i=u,u=r,r=r+on(o,c[a%4])}t=t+this.A|0,r=r+this.B|0,u=u+this.C|0,i=i+this.D|0,this.set(t,r,u,i)}roundClean(){Be(rs)}destroy(){this.set(0,0,0,0),Be(this.buffer)}};qe(()=>new ky);var Dy=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Cm=Uint8Array.from(new Array(16).fill(0).map((e,n)=>n)),By=Cm.map(e=>(9*e+5)%16),$m=(()=>{const t=[[Cm],[By]];for(let r=0;r<4;r++)for(let u of t)u.push(u[r].map(i=>Dy[i]));return t})(),xm=$m[0],Im=$m[1],Fm=[[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)),_y=xm.map((e,n)=>e.map(t=>Fm[n][t])),Ay=Im.map((e,n)=>e.map(t=>Fm[n][t])),Sy=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),wy=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function Nm(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 Gr=new Uint32Array(16),Cy=class extends Xt{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:u}=this;return[e,n,t,r,u]}set(e,n,t,r,u){this.h0=e|0,this.h1=n|0,this.h2=t|0,this.h3=r|0,this.h4=u|0}process(e,n){for(let m=0;m<16;m++,n+=4)Gr[m]=e.getUint32(n,!0);let t=this.h0|0,r=t,u=this.h1|0,i=u,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=Sy[m],h=wy[m],b=xm[m],y=Im[m],E=_y[m],k=Ay[m];for(let w=0;w<16;w++){const _=on(t+Nm(m,u,a,s)+Gr[b[w]]+v,E[w])+l|0;t=l,l=s,s=on(a,10)|0,a=u,u=_}for(let w=0;w<16;w++){const _=on(r+Nm(d,i,o,c)+Gr[y[w]]+h,k[w])+f|0;r=f,f=c,c=on(o,10)|0,o=i,i=_}}this.set(this.h1+a+c|0,this.h2+s+f|0,this.h3+l+r|0,this.h4+t+i|0,this.h0+u+o|0)}roundClean(){Be(Gr)}destroy(){this.destroyed=!0,Be(this.buffer),this.set(0,0,0,0,0)}};qe(()=>new Cy);function $y(e){const{source:n}=e,t=new Map,r=new ru(8192),u=new Map,i=({address:a,chainId:o})=>`${a}.${o}`;return{async consume({address:a,chainId:o,client:s}){const c=i({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=i({address:a,chainId:o}),c=t.get(s)??0;t.set(s,c+1)},async get({address:a,chainId:o,client:s}){const c=i({address:a,chainId:o});let l=u.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})}})(),u.set(c,l)),(t.get(c)??0)+await l},reset({address:a,chainId:o}){const s=i({address:a,chainId:o});t.delete(s),u.delete(s)}}}function xy(){return{async get(e){const{address:n,client:t}=e;return gy(t,{address:n,blockTag:"pending"})},set(){}}}$y({source:xy()});function Iy(e,n={}){const{as:t=typeof e=="string"?"Hex":"Bytes"}=n,r=Sm(TE(e));return t==="Bytes"?r:dm(r)}var Fy=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}},Ny={checksum:new Fy(8192)},is=Ny.checksum,Ty=/^0x[a-fA-F0-9]{40}$/;function Tm(e,n={}){const{strict:t=!0}=n;if(!Ty.test(e))throw new Om({address:e,cause:new zy});if(t){if(e.toLowerCase()===e)return;if(Oy(e)!==e)throw new Om({address:e,cause:new Uy})}}function Oy(e){if(is.has(e))return is.get(e);Tm(e,{strict:!1});const n=e.substring(2).toLowerCase(),t=Iy(UE(n),{as:"Bytes"}),r=n.split("");for(let i=0;i<40;i+=2)t[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(t[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());const u=`0x${r.join("")}`;return is.set(e,u),u}var Om=class extends Ne{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"})}},zy=class extends Ne{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"})}},Uy=class extends Ne{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}},Py=/^(.*)\[([0-9]*)\]$/,jy=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ry=/^(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 as(e,n){if(e.length!==n.length)throw new Zy({expectedLength:e.length,givenLength:n.length});const t=[];for(let r=0;r<e.length;r++){const u=e[r],i=n[r];t.push(as.encode(u,i))}return lm(...t)}(function(e){function n(t,r,u=!1){if(t==="address"){const s=r;return Tm(s),Lr(s.toLowerCase(),u?32:0)}if(t==="string")return qE(r);if(t==="bytes")return r;if(t==="bool")return Lr(VE(r),u?32:1);const i=t.match(Ry);if(i){const[s,c,l="256"]=i,f=Number.parseInt(l)/8;return ME(r,{size:u?32:f,signed:c==="int"})}const a=t.match(jy);if(a){const[s,c]=a;if(Number.parseInt(c)!==(r.length-2)/2)throw new Ly({expectedSize:Number.parseInt(c),value:r});return Wo(r,u?32:0)}const o=t.match(Py);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":lm(...l)}throw new Vy(t)}e.encode=n})(as||(as={}));var Ly=class extends Ne{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${Yo(n)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}},Zy=class extends Ne{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${n}`].join(`
|
|
407
|
+
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}},Vy=class extends Ne{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 My(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:py(n)}const zm=e=>Math.round((e+Number.EPSILON)*100)/100;class qy{client;constructor(n){this.client=n}async create(n){return(await this.client.query({query:dt,variables:{createDirectPaymentInput:{...n,amount:zm(n.amount)}}}))?.createDirectPayment}async getWeb3PaymentParams(n){if(!My(n.paymentTokenAddress))throw new Error("Invalid token address");return(await this.client.query({query:kr,variables:{amount:zm(n.paymentRequest.amountDue),network:n.paymentRequest.network,tokenAddress:n.paymentTokenAddress,reference:n.paymentRequest.id}}))?.spritzPayParams}}var Jr={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:"sub"},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:"picture"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timezone"},arguments:[],directives:[]}]}}],loc:{start:0,end:135}};Jr.loc.source={body:`fragment UserFragment on User {
|
|
408
|
+
id
|
|
409
|
+
sub
|
|
410
|
+
email
|
|
411
|
+
firstName
|
|
412
|
+
lastName
|
|
413
|
+
picture
|
|
414
|
+
phone
|
|
415
|
+
createdAt
|
|
416
|
+
timezone
|
|
417
|
+
}
|
|
418
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Hr(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){Hr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Hr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Hr(r,n)})}var os={};(function(){Jr.definitions.forEach(function(n){if(n.name){var t=new Set;Hr(n,t),os[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 Gy(e,n){var t={kind:e.kind,definitions:[Um(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=os[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=os[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Um(e,o);s&&t.definitions.push(s)}),t}Gy(Jr,"UserFragment");var bt={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:[]}]}}]}}],loc:{start:0,end:95}};bt.loc.source={body:`#import "./userFragment.graphql"
|
|
419
|
+
|
|
420
|
+
query CurrentUser {
|
|
421
|
+
me {
|
|
422
|
+
...UserFragment
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Pm={};function Jy(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Pm[t]?!1:(Pm[t]=!0,!0)})}bt.definitions=bt.definitions.concat(Jy(Jr.definitions));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 ss={};(function(){bt.definitions.forEach(function(n){if(n.name){var t=new Set;Kr(n,t),ss[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 Hy(e,n){var t={kind:e.kind,definitions:[jm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ss[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=ss[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=jm(e,o);s&&t.definitions.push(s)}),t}Hy(bt,"CurrentUser");var Qr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserVerification"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"verification"},arguments:[],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:"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:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"completedAt"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:297}};Qr.loc.source={body:`query UserVerification {
|
|
426
|
+
verification {
|
|
427
|
+
userId
|
|
428
|
+
identity {
|
|
429
|
+
status
|
|
430
|
+
country
|
|
431
|
+
verificationUrl
|
|
432
|
+
user {
|
|
433
|
+
firstName
|
|
434
|
+
lastName
|
|
435
|
+
email
|
|
436
|
+
completedAt
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Wr(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){Wr(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){Wr(r,n)}),e.definitions&&e.definitions.forEach(function(r){Wr(r,n)})}var cs={};(function(){Qr.definitions.forEach(function(n){if(n.name){var t=new Set;Wr(n,t),cs[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 Ky(e,n){var t={kind:e.kind,definitions:[Rm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=cs[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=cs[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Rm(e,o);s&&t.definitions.push(s)}),t}Ky(Qr,"UserVerification");class Qy{client;constructor(n){this.client=n}async createUser(n){return 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 getCurrentUser(){return(await this.client.query({query:bt}))?.me??null}async getUserVerification(){return(await this.client.query({query:Qr}))?.verification??null}}var iu={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}};iu.loc.source={body:`fragment VirtualDebitCardFragment on VirtualCard {
|
|
442
|
+
id
|
|
443
|
+
name
|
|
444
|
+
userId
|
|
445
|
+
country
|
|
446
|
+
currency
|
|
447
|
+
createdAt
|
|
448
|
+
type
|
|
449
|
+
mask
|
|
450
|
+
balance
|
|
451
|
+
renderSecret
|
|
452
|
+
virtualCardType
|
|
453
|
+
billingInfo {
|
|
454
|
+
holder
|
|
455
|
+
phone
|
|
456
|
+
email
|
|
457
|
+
address {
|
|
458
|
+
street
|
|
459
|
+
street2
|
|
460
|
+
city
|
|
461
|
+
subdivision
|
|
462
|
+
postalCode
|
|
463
|
+
countryCode
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
paymentAddresses {
|
|
467
|
+
network
|
|
468
|
+
address
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
`,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 ls={};(function(){iu.definitions.forEach(function(n){if(n.name){var t=new Set;Yr(n,t),ls[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 Wy(e,n){var t={kind:e.kind,definitions:[Lm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ls[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=ls[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Lm(e,o);s&&t.definitions.push(s)}),t}Wy(iu,"VirtualDebitCardFragment");var kt={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}};kt.loc.source={body:`#import "../queries/virtualDebitCardFragment.graphql"
|
|
472
|
+
|
|
473
|
+
mutation CreateUSVirtualDebitCard {
|
|
474
|
+
createUSVirtualDebitCard {
|
|
475
|
+
...VirtualDebitCardFragment
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Zm={};function Yy(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Zm[t]?!1:(Zm[t]=!0,!0)})}kt.definitions=kt.definitions.concat(Yy(iu.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 ds={};(function(){kt.definitions.forEach(function(n){if(n.name){var t=new Set;Xr(n,t),ds[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 Xy(e,n){var t={kind:e.kind,definitions:[Vm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=ds[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=ds[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=Vm(e,o);s&&t.definitions.push(s)}),t}Xy(kt,"CreateUSVirtualDebitCard");var Dt={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}};Dt.loc.source={body:`#import "./virtualDebitCardFragment.graphql"
|
|
479
|
+
|
|
480
|
+
query UserVirtualDebitCard {
|
|
481
|
+
virtualDebitCard {
|
|
482
|
+
...VirtualDebitCardFragment
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};var Mm={};function eb(e){return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;var t=n.name.value;return Mm[t]?!1:(Mm[t]=!0,!0)})}Dt.definitions=Dt.definitions.concat(eb(iu.definitions));function ei(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){ei(r,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(r){ei(r,n)}),e.definitions&&e.definitions.forEach(function(r){ei(r,n)})}var fs={};(function(){Dt.definitions.forEach(function(n){if(n.name){var t=new Set;ei(n,t),fs[n.name.value]=t}})})();function qm(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 nb(e,n){var t={kind:e.kind,definitions:[qm(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var r=fs[n]||new Set,u=new Set,i=new Set;for(r.forEach(function(o){i.add(o)});i.size>0;){var a=i;i=new Set,a.forEach(function(o){if(!u.has(o)){u.add(o);var s=fs[o]||new Set;s.forEach(function(c){i.add(c)})}})}return u.forEach(function(o){var s=qm(e,o);s&&t.definitions.push(s)}),t}nb(Dt,"UserVirtualDebitCard");const tb={[po.USVirtualDebitCard]:e=>({query:kt,variables:void 0,response:"createUSVirtualDebitCard"})},ub=(e,n)=>tb[e]?.(n)??null;class rb{client;constructor(n){this.client=n}async fetch(){return(await this.client.query({query:Dt}))?.virtualDebitCard??null}async create(n,t){const r=ub(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}}class ib{client;constructor(n){this.client=n}async create(n){return this.client.request({method:"post",path:"/users/integrators/webhooks",body:n})}}class ps{environment;apiKey;integrationKey;client;user;bankAccount;paymentRequest;payment;onrampPayment;virtualCard;bill;institution;webhook;constructor(n,t,r,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(this.environment=n,this.apiKey=t,this.integrationKey=r,!u&&yp())throw new Error(`It seems you're operating within a browser environment.
|
|
486
|
+
|
|
487
|
+
By default, this is deactivated due to the potential risk of exposing your confidential integrator credentials.
|
|
488
|
+
If you're aware of these risks and have taken necessary security measures, you can enable the \`dangerouslyAllowBrowser\` option, e.g.,
|
|
489
|
+
|
|
490
|
+
SpritzApiClient.initialize({ apiKey, dangerouslyAllowBrowser: true });
|
|
491
|
+
`)}static initialize({environment:n=ti.Staging,apiKey:t,integrationKey:r,dangerouslyAllowBrowser:u=!1}){const i=new ps(n,t,r,u);return i.init(),i}init(){this.client=new Up({environment:this.environment,apiKey:this.apiKey,integrationKey:this.integrationKey}),this.user=new Qy(this.client),this.bankAccount=new j3(this.client),this.paymentRequest=new qy(this.client),this.payment=new m1(this.client),this.onrampPayment=new i1(this.client),this.virtualCard=new rb(this.client),this.bill=new J3(this.client),this.institution=new X3(this.client),this.webhook=new ib(this.client)}setApiKey(n){return this.apiKey=n,this.init(),this}}var Gm=(e=>(e.Ethereum="ethereum",e.Polygon="polygon",e.Optimism="optimism",e.Arbitrum="arbitrum",e.Binance="binance-smart-chain",e.Avalanche="avalanche",e.Bitcoin="bitcoin",e.BitcoinTestnet="bitcoin-testnet",e.Dash="dash",e.DashTestnet="dash-testnet",e))(Gm||{});exports.BankAccountSubType=Uf,exports.BankAccountType=Xn,exports.BillType=Pf,exports.Environment=ti,exports.PayableAccountType=Rf,exports.PaymentNetwork=Gm,exports.PaymentRequestStatus=jf,exports.PaymentStatus=Lf,exports.SpritzApiClient=ps,exports.VirtualCardType=po;
|