All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m59s
213 lines
714 KiB
JavaScript
213 lines
714 KiB
JavaScript
/*
|
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
|
if you want to view the source, please visit the github repository of this plugin
|
|
*/
|
|
|
|
var eN=Object.create;var ys=Object.defineProperty;var tN=Object.getOwnPropertyDescriptor;var nN=Object.getOwnPropertyNames;var iN=Object.getPrototypeOf,rN=Object.prototype.hasOwnProperty;var oN=(e,t,n)=>t in e?ys(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jn=(e,t)=>{for(var n in t)ys(e,n,{get:t[n],enumerable:!0})},L_=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nN(t))!rN.call(e,i)&&i!==n&&ys(e,i,{get:()=>t[i],enumerable:!(r=tN(t,i))||r.enumerable});return e};var J=(e,t,n)=>(n=e!=null?eN(iN(e)):{},L_(t||!e||!e.__esModule?ys(n,"default",{value:e,enumerable:!0}):n,e)),aN=e=>L_(ys({},"__esModule",{value:!0}),e);var Sc=(e,t,n)=>(oN(e,typeof t!="symbol"?t+"":t,n),n),Lm=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var te=(e,t,n)=>(Lm(e,t,"read from private field"),n?n.call(e):t.get(e)),nt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},kn=(e,t,n,r)=>(Lm(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Z_=(e,t,n,r)=>({set _(i){kn(e,t,i,n)},get _(){return te(e,t,r)}}),Pn=(e,t,n)=>(Lm(e,t,"access private method"),n);var bs=Q((lL,q_)=>{"use strict";var sN="2.0.0",lN=Number.MAX_SAFE_INTEGER||9007199254740991,cN=16,uN=256-6,dN=["major","premajor","minor","preminor","patch","prepatch","prerelease"];q_.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:cN,MAX_SAFE_BUILD_LENGTH:uN,MAX_SAFE_INTEGER:lN,RELEASE_TYPES:dN,SEMVER_SPEC_VERSION:sN,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ss=Q((cL,V_)=>{"use strict";var fN=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};V_.exports=fN});var zo=Q((Ln,H_)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Zm,MAX_SAFE_BUILD_LENGTH:mN,MAX_LENGTH:pN}=bs(),gN=Ss();Ln=H_.exports={};var hN=Ln.re=[],vN=Ln.safeRe=[],F=Ln.src=[],yN=Ln.safeSrc=[],X=Ln.t={},bN=0,qm="[a-zA-Z0-9-]",SN=[["\\s",1],["\\d",pN],[qm,mN]],xN=e=>{for(let[t,n]of SN)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},oe=(e,t,n)=>{let r=xN(t),i=bN++;gN(e,i,t),X[e]=i,F[i]=t,yN[i]=r,hN[i]=new RegExp(t,n?"g":void 0),vN[i]=new RegExp(r,n?"g":void 0)};oe("NUMERICIDENTIFIER","0|[1-9]\\d*");oe("NUMERICIDENTIFIERLOOSE","\\d+");oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${qm}*`);oe("MAINVERSION",`(${F[X.NUMERICIDENTIFIER]})\\.(${F[X.NUMERICIDENTIFIER]})\\.(${F[X.NUMERICIDENTIFIER]})`);oe("MAINVERSIONLOOSE",`(${F[X.NUMERICIDENTIFIERLOOSE]})\\.(${F[X.NUMERICIDENTIFIERLOOSE]})\\.(${F[X.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASEIDENTIFIER",`(?:${F[X.NONNUMERICIDENTIFIER]}|${F[X.NUMERICIDENTIFIER]})`);oe("PRERELEASEIDENTIFIERLOOSE",`(?:${F[X.NONNUMERICIDENTIFIER]}|${F[X.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASE",`(?:-(${F[X.PRERELEASEIDENTIFIER]}(?:\\.${F[X.PRERELEASEIDENTIFIER]})*))`);oe("PRERELEASELOOSE",`(?:-?(${F[X.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${F[X.PRERELEASEIDENTIFIERLOOSE]})*))`);oe("BUILDIDENTIFIER",`${qm}+`);oe("BUILD",`(?:\\+(${F[X.BUILDIDENTIFIER]}(?:\\.${F[X.BUILDIDENTIFIER]})*))`);oe("FULLPLAIN",`v?${F[X.MAINVERSION]}${F[X.PRERELEASE]}?${F[X.BUILD]}?`);oe("FULL",`^${F[X.FULLPLAIN]}$`);oe("LOOSEPLAIN",`[v=\\s]*${F[X.MAINVERSIONLOOSE]}${F[X.PRERELEASELOOSE]}?${F[X.BUILD]}?`);oe("LOOSE",`^${F[X.LOOSEPLAIN]}$`);oe("GTLT","((?:<|>)?=?)");oe("XRANGEIDENTIFIERLOOSE",`${F[X.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);oe("XRANGEIDENTIFIER",`${F[X.NUMERICIDENTIFIER]}|x|X|\\*`);oe("XRANGEPLAIN",`[v=\\s]*(${F[X.XRANGEIDENTIFIER]})(?:\\.(${F[X.XRANGEIDENTIFIER]})(?:\\.(${F[X.XRANGEIDENTIFIER]})(?:${F[X.PRERELEASE]})?${F[X.BUILD]}?)?)?`);oe("XRANGEPLAINLOOSE",`[v=\\s]*(${F[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${F[X.XRANGEIDENTIFIERLOOSE]})(?:\\.(${F[X.XRANGEIDENTIFIERLOOSE]})(?:${F[X.PRERELEASELOOSE]})?${F[X.BUILD]}?)?)?`);oe("XRANGE",`^${F[X.GTLT]}\\s*${F[X.XRANGEPLAIN]}$`);oe("XRANGELOOSE",`^${F[X.GTLT]}\\s*${F[X.XRANGEPLAINLOOSE]}$`);oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Zm}})(?:\\.(\\d{1,${Zm}}))?(?:\\.(\\d{1,${Zm}}))?`);oe("COERCE",`${F[X.COERCEPLAIN]}(?:$|[^\\d])`);oe("COERCEFULL",F[X.COERCEPLAIN]+`(?:${F[X.PRERELEASE]})?(?:${F[X.BUILD]})?(?:$|[^\\d])`);oe("COERCERTL",F[X.COERCE],!0);oe("COERCERTLFULL",F[X.COERCEFULL],!0);oe("LONETILDE","(?:~>?)");oe("TILDETRIM",`(\\s*)${F[X.LONETILDE]}\\s+`,!0);Ln.tildeTrimReplace="$1~";oe("TILDE",`^${F[X.LONETILDE]}${F[X.XRANGEPLAIN]}$`);oe("TILDELOOSE",`^${F[X.LONETILDE]}${F[X.XRANGEPLAINLOOSE]}$`);oe("LONECARET","(?:\\^)");oe("CARETTRIM",`(\\s*)${F[X.LONECARET]}\\s+`,!0);Ln.caretTrimReplace="$1^";oe("CARET",`^${F[X.LONECARET]}${F[X.XRANGEPLAIN]}$`);oe("CARETLOOSE",`^${F[X.LONECARET]}${F[X.XRANGEPLAINLOOSE]}$`);oe("COMPARATORLOOSE",`^${F[X.GTLT]}\\s*(${F[X.LOOSEPLAIN]})$|^$`);oe("COMPARATOR",`^${F[X.GTLT]}\\s*(${F[X.FULLPLAIN]})$|^$`);oe("COMPARATORTRIM",`(\\s*)${F[X.GTLT]}\\s*(${F[X.LOOSEPLAIN]}|${F[X.XRANGEPLAIN]})`,!0);Ln.comparatorTrimReplace="$1$2$3";oe("HYPHENRANGE",`^\\s*(${F[X.XRANGEPLAIN]})\\s+-\\s+(${F[X.XRANGEPLAIN]})\\s*$`);oe("HYPHENRANGELOOSE",`^\\s*(${F[X.XRANGEPLAINLOOSE]})\\s+-\\s+(${F[X.XRANGEPLAINLOOSE]})\\s*$`);oe("STAR","(<|>)?=?\\s*\\*");oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var xc=Q((uL,B_)=>{"use strict";var _N=Object.freeze({loose:!0}),$N=Object.freeze({}),wN=e=>e?typeof e!="object"?_N:e:$N;B_.exports=wN});var Vm=Q((dL,X_)=>{"use strict";var G_=/^[0-9]+$/,F_=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=G_.test(e),r=G_.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},EN=(e,t)=>F_(t,e);X_.exports={compareIdentifiers:F_,rcompareIdentifiers:EN}});var Et=Q((fL,Y_)=>{"use strict";var _c=Ss(),{MAX_LENGTH:J_,MAX_SAFE_INTEGER:$c}=bs(),{safeRe:wc,t:Ec}=zo(),AN=xc(),{compareIdentifiers:Hm}=Vm(),Wt=class{constructor(t,n){if(n=AN(n),t instanceof Wt){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>J_)throw new TypeError(`version is longer than ${J_} characters`);_c("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=t.trim().match(n.loose?wc[Ec.LOOSE]:wc[Ec.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>$c||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$c||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$c||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let o=+i;if(o>=0&&o<$c)return o}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(_c("SemVer.compare",this.version,this.options,t),!(t instanceof Wt)){if(typeof t=="string"&&t===this.version)return 0;t=new Wt(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Wt||(t=new Wt(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof Wt||(t=new Wt(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let r=this.prerelease[n],i=t.prerelease[n];if(_c("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return Hm(r,i)}while(++n)}compareBuild(t){t instanceof Wt||(t=new Wt(t,this.options));let n=0;do{let r=this.build[n],i=t.build[n];if(_c("build compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return Hm(r,i)}while(++n)}inc(t,n,r){if(t.startsWith("pre")){if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let i=`-${n}`.match(this.options.loose?wc[Ec.PRERELEASELOOSE]:wc[Ec.PRERELEASE]);if(!i||i[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let o=[n,i];r===!1&&(o=[n]),Hm(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Y_.exports=Wt});var Rr=Q((mL,Q_)=>{"use strict";var K_=Et(),zN=(e,t,n=!1)=>{if(e instanceof K_)return e;try{return new K_(e,t)}catch(r){if(!n)return null;throw r}};Q_.exports=zN});var e$=Q((pL,W_)=>{"use strict";var CN=Rr(),kN=(e,t)=>{let n=CN(e,t);return n?n.version:null};W_.exports=kN});var n$=Q((gL,t$)=>{"use strict";var TN=Rr(),IN=(e,t)=>{let n=TN(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};t$.exports=IN});var o$=Q((hL,r$)=>{"use strict";var i$=Et(),NN=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new i$(e instanceof i$?e.version:e,n).inc(t,r,i).version}catch(o){return null}};r$.exports=NN});var l$=Q((vL,s$)=>{"use strict";var a$=Rr(),ON=(e,t)=>{let n=a$(e,null,!0),r=a$(t,null,!0),i=n.compare(r);if(i===0)return null;let o=i>0,a=o?n:r,s=o?r:n,c=!!a.prerelease.length;if(!!s.prerelease.length&&!c){if(!s.patch&&!s.minor)return"major";if(s.compareMain(a)===0)return s.minor&&!s.patch?"minor":"patch"}let m=c?"pre":"";return n.major!==r.major?m+"major":n.minor!==r.minor?m+"minor":n.patch!==r.patch?m+"patch":"prerelease"};s$.exports=ON});var u$=Q((yL,c$)=>{"use strict";var DN=Et(),RN=(e,t)=>new DN(e,t).major;c$.exports=RN});var f$=Q((bL,d$)=>{"use strict";var MN=Et(),UN=(e,t)=>new MN(e,t).minor;d$.exports=UN});var p$=Q((SL,m$)=>{"use strict";var jN=Et(),PN=(e,t)=>new jN(e,t).patch;m$.exports=PN});var h$=Q((xL,g$)=>{"use strict";var LN=Rr(),ZN=(e,t)=>{let n=LN(e,t);return n&&n.prerelease.length?n.prerelease:null};g$.exports=ZN});var pn=Q((_L,y$)=>{"use strict";var v$=Et(),qN=(e,t,n)=>new v$(e,n).compare(new v$(t,n));y$.exports=qN});var S$=Q(($L,b$)=>{"use strict";var VN=pn(),HN=(e,t,n)=>VN(t,e,n);b$.exports=HN});var _$=Q((wL,x$)=>{"use strict";var BN=pn(),GN=(e,t)=>BN(e,t,!0);x$.exports=GN});var Ac=Q((EL,w$)=>{"use strict";var $$=Et(),FN=(e,t,n)=>{let r=new $$(e,n),i=new $$(t,n);return r.compare(i)||r.compareBuild(i)};w$.exports=FN});var A$=Q((AL,E$)=>{"use strict";var XN=Ac(),JN=(e,t)=>e.sort((n,r)=>XN(n,r,t));E$.exports=JN});var C$=Q((zL,z$)=>{"use strict";var YN=Ac(),KN=(e,t)=>e.sort((n,r)=>YN(r,n,t));z$.exports=KN});var xs=Q((CL,k$)=>{"use strict";var QN=pn(),WN=(e,t,n)=>QN(e,t,n)>0;k$.exports=WN});var zc=Q((kL,T$)=>{"use strict";var eO=pn(),tO=(e,t,n)=>eO(e,t,n)<0;T$.exports=tO});var Bm=Q((TL,I$)=>{"use strict";var nO=pn(),iO=(e,t,n)=>nO(e,t,n)===0;I$.exports=iO});var Gm=Q((IL,N$)=>{"use strict";var rO=pn(),oO=(e,t,n)=>rO(e,t,n)!==0;N$.exports=oO});var Cc=Q((NL,O$)=>{"use strict";var aO=pn(),sO=(e,t,n)=>aO(e,t,n)>=0;O$.exports=sO});var kc=Q((OL,D$)=>{"use strict";var lO=pn(),cO=(e,t,n)=>lO(e,t,n)<=0;D$.exports=cO});var Fm=Q((DL,R$)=>{"use strict";var uO=Bm(),dO=Gm(),fO=xs(),mO=Cc(),pO=zc(),gO=kc(),hO=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return uO(e,n,r);case"!=":return dO(e,n,r);case">":return fO(e,n,r);case">=":return mO(e,n,r);case"<":return pO(e,n,r);case"<=":return gO(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};R$.exports=hO});var U$=Q((RL,M$)=>{"use strict";var vO=Et(),yO=Rr(),{safeRe:Tc,t:Ic}=zo(),bO=(e,t)=>{if(e instanceof vO)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?Tc[Ic.COERCEFULL]:Tc[Ic.COERCE]);else{let c=t.includePrerelease?Tc[Ic.COERCERTLFULL]:Tc[Ic.COERCERTL],d;for(;(d=c.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||d.index+d[0].length!==n.index+n[0].length)&&(n=d),c.lastIndex=d.index+d[1].length+d[2].length;c.lastIndex=-1}if(n===null)return null;let r=n[2],i=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return yO(`${r}.${i}.${o}${a}${s}`,t)};M$.exports=bO});var P$=Q((ML,j$)=>{"use strict";var Xm=class{constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,n)}return this}};j$.exports=Xm});var gn=Q((UL,V$)=>{"use strict";var SO=/\s+/g,Mr=class{constructor(t,n){if(n=_O(n),t instanceof Mr)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new Mr(t.raw,n);if(t instanceof Jm)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(SO," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(i=>!Z$(i[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&kO(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let n=this.set[t];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=" "),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let r=((this.options.includePrerelease&&zO)|(this.options.loose&&CO))+":"+t,i=L$.get(r);if(i)return i;let o=this.options.loose,a=o?It[At.HYPHENRANGELOOSE]:It[At.HYPHENRANGE];t=t.replace(a,PO(this.options.includePrerelease)),De("hyphen replace",t),t=t.replace(It[At.COMPARATORTRIM],wO),De("comparator trim",t),t=t.replace(It[At.TILDETRIM],EO),De("tilde trim",t),t=t.replace(It[At.CARETTRIM],AO),De("caret trim",t);let s=t.split(" ").map(l=>TO(l,this.options)).join(" ").split(/\s+/).map(l=>jO(l,this.options));o&&(s=s.filter(l=>(De("loose invalid filter",l,this.options),!!l.match(It[At.COMPARATORLOOSE])))),De("range list",s);let c=new Map,d=s.map(l=>new Jm(l,this.options));for(let l of d){if(Z$(l))return[l];c.set(l.value,l)}c.size>1&&c.has("")&&c.delete("");let m=[...c.values()];return L$.set(r,m),m}intersects(t,n){if(!(t instanceof Mr))throw new TypeError("a Range is required");return this.set.some(r=>q$(r,n)&&t.set.some(i=>q$(i,n)&&r.every(o=>i.every(a=>o.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new $O(t,this.options)}catch(n){return!1}for(let n=0;n<this.set.length;n++)if(LO(this.set[n],t,this.options))return!0;return!1}};V$.exports=Mr;var xO=P$(),L$=new xO,_O=xc(),Jm=_s(),De=Ss(),$O=Et(),{safeRe:It,t:At,comparatorTrimReplace:wO,tildeTrimReplace:EO,caretTrimReplace:AO}=zo(),{FLAG_INCLUDE_PRERELEASE:zO,FLAG_LOOSE:CO}=bs(),Z$=e=>e.value==="<0.0.0-0",kO=e=>e.value==="",q$=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(o=>i.intersects(o,t)),i=r.pop();return n},TO=(e,t)=>(e=e.replace(It[At.BUILD],""),De("comp",e,t),e=OO(e,t),De("caret",e),e=IO(e,t),De("tildes",e),e=RO(e,t),De("xrange",e),e=UO(e,t),De("stars",e),e),Nt=e=>!e||e.toLowerCase()==="x"||e==="*",IO=(e,t)=>e.trim().split(/\s+/).map(n=>NO(n,t)).join(" "),NO=(e,t)=>{let n=t.loose?It[At.TILDELOOSE]:It[At.TILDE];return e.replace(n,(r,i,o,a,s)=>{De("tilde",e,r,i,o,a,s);let c;return Nt(i)?c="":Nt(o)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:Nt(a)?c=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`:s?(De("replaceTilde pr",s),c=`>=${i}.${o}.${a}-${s} <${i}.${+o+1}.0-0`):c=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,De("tilde return",c),c})},OO=(e,t)=>e.trim().split(/\s+/).map(n=>DO(n,t)).join(" "),DO=(e,t)=>{De("caret",e,t);let n=t.loose?It[At.CARETLOOSE]:It[At.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(i,o,a,s,c)=>{De("caret",e,i,o,a,s,c);let d;return Nt(o)?d="":Nt(a)?d=`>=${o}.0.0${r} <${+o+1}.0.0-0`:Nt(s)?o==="0"?d=`>=${o}.${a}.0${r} <${o}.${+a+1}.0-0`:d=`>=${o}.${a}.0${r} <${+o+1}.0.0-0`:c?(De("replaceCaret pr",c),o==="0"?a==="0"?d=`>=${o}.${a}.${s}-${c} <${o}.${a}.${+s+1}-0`:d=`>=${o}.${a}.${s}-${c} <${o}.${+a+1}.0-0`:d=`>=${o}.${a}.${s}-${c} <${+o+1}.0.0-0`):(De("no pr"),o==="0"?a==="0"?d=`>=${o}.${a}.${s}${r} <${o}.${a}.${+s+1}-0`:d=`>=${o}.${a}.${s}${r} <${o}.${+a+1}.0-0`:d=`>=${o}.${a}.${s} <${+o+1}.0.0-0`),De("caret return",d),d})},RO=(e,t)=>(De("replaceXRanges",e,t),e.split(/\s+/).map(n=>MO(n,t)).join(" ")),MO=(e,t)=>{e=e.trim();let n=t.loose?It[At.XRANGELOOSE]:It[At.XRANGE];return e.replace(n,(r,i,o,a,s,c)=>{De("xRange",e,r,i,o,a,s,c);let d=Nt(o),m=d||Nt(a),l=m||Nt(s),f=l;return i==="="&&f&&(i=""),c=t.includePrerelease?"-0":"",d?i===">"||i==="<"?r="<0.0.0-0":r="*":i&&f?(m&&(a=0),s=0,i===">"?(i=">=",m?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):i==="<="&&(i="<",m?o=+o+1:a=+a+1),i==="<"&&(c="-0"),r=`${i+o}.${a}.${s}${c}`):m?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:l&&(r=`>=${o}.${a}.0${c} <${o}.${+a+1}.0-0`),De("xRange return",r),r})},UO=(e,t)=>(De("replaceStars",e,t),e.trim().replace(It[At.STAR],"")),jO=(e,t)=>(De("replaceGTE0",e,t),e.trim().replace(It[t.includePrerelease?At.GTE0PRE:At.GTE0],"")),PO=e=>(t,n,r,i,o,a,s,c,d,m,l,f)=>(Nt(r)?n="":Nt(i)?n=`>=${r}.0.0${e?"-0":""}`:Nt(o)?n=`>=${r}.${i}.0${e?"-0":""}`:a?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,Nt(d)?c="":Nt(m)?c=`<${+d+1}.0.0-0`:Nt(l)?c=`<${d}.${+m+1}.0-0`:f?c=`<=${d}.${m}.${l}-${f}`:e?c=`<${d}.${m}.${+l+1}-0`:c=`<=${c}`,`${n} ${c}`.trim()),LO=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let r=0;r<e.length;r++)if(De(e[r].semver),e[r].semver!==Jm.ANY&&e[r].semver.prerelease.length>0){let i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var _s=Q((jL,J$)=>{"use strict";var $s=Symbol("SemVer ANY"),Co=class{static get ANY(){return $s}constructor(t,n){if(n=H$(n),t instanceof Co){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Km("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===$s?this.value="":this.value=this.operator+this.semver.version,Km("comp",this)}parse(t){let n=this.options.loose?B$[G$.COMPARATORLOOSE]:B$[G$.COMPARATOR],r=t.match(n);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new F$(r[2],this.options.loose):this.semver=$s}toString(){return this.value}test(t){if(Km("Comparator.test",t,this.options.loose),this.semver===$s||t===$s)return!0;if(typeof t=="string")try{t=new F$(t,this.options)}catch(n){return!1}return Ym(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof Co))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new X$(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new X$(this.value,n).test(t.semver):(n=H$(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||Ym(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Ym(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};J$.exports=Co;var H$=xc(),{safeRe:B$,t:G$}=zo(),Ym=Fm(),Km=Ss(),F$=Et(),X$=gn()});var ws=Q((PL,Y$)=>{"use strict";var ZO=gn(),qO=(e,t,n)=>{try{t=new ZO(t,n)}catch(r){return!1}return t.test(e)};Y$.exports=qO});var Q$=Q((LL,K$)=>{"use strict";var VO=gn(),HO=(e,t)=>new VO(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));K$.exports=HO});var ew=Q((ZL,W$)=>{"use strict";var BO=Et(),GO=gn(),FO=(e,t,n)=>{let r=null,i=null,o=null;try{o=new GO(t,n)}catch(a){return null}return e.forEach(a=>{o.test(a)&&(!r||i.compare(a)===-1)&&(r=a,i=new BO(r,n))}),r};W$.exports=FO});var nw=Q((qL,tw)=>{"use strict";var XO=Et(),JO=gn(),YO=(e,t,n)=>{let r=null,i=null,o=null;try{o=new JO(t,n)}catch(a){return null}return e.forEach(a=>{o.test(a)&&(!r||i.compare(a)===1)&&(r=a,i=new XO(r,n))}),r};tw.exports=YO});var ow=Q((VL,rw)=>{"use strict";var Qm=Et(),KO=gn(),iw=xs(),QO=(e,t)=>{e=new KO(e,t);let n=new Qm("0.0.0");if(e.test(n)||(n=new Qm("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){let i=e.set[r],o=null;i.forEach(a=>{let s=new Qm(a.semver.version);switch(a.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!o||iw(s,o))&&(o=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!n||iw(n,o))&&(n=o)}return n&&e.test(n)?n:null};rw.exports=QO});var sw=Q((HL,aw)=>{"use strict";var WO=gn(),eD=(e,t)=>{try{return new WO(e,t).range||"*"}catch(n){return null}};aw.exports=eD});var Nc=Q((BL,dw)=>{"use strict";var tD=Et(),uw=_s(),{ANY:nD}=uw,iD=gn(),rD=ws(),lw=xs(),cw=zc(),oD=kc(),aD=Cc(),sD=(e,t,n,r)=>{e=new tD(e,r),t=new iD(t,r);let i,o,a,s,c;switch(n){case">":i=lw,o=oD,a=cw,s=">",c=">=";break;case"<":i=cw,o=aD,a=lw,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(rD(e,t,r))return!1;for(let d=0;d<t.set.length;++d){let m=t.set[d],l=null,f=null;if(m.forEach(p=>{p.semver===nD&&(p=new uw(">=0.0.0")),l=l||p,f=f||p,i(p.semver,l.semver,r)?l=p:a(p.semver,f.semver,r)&&(f=p)}),l.operator===s||l.operator===c||(!f.operator||f.operator===s)&&o(e,f.semver))return!1;if(f.operator===c&&a(e,f.semver))return!1}return!0};dw.exports=sD});var mw=Q((GL,fw)=>{"use strict";var lD=Nc(),cD=(e,t,n)=>lD(e,t,">",n);fw.exports=cD});var gw=Q((FL,pw)=>{"use strict";var uD=Nc(),dD=(e,t,n)=>uD(e,t,"<",n);pw.exports=dD});var yw=Q((XL,vw)=>{"use strict";var hw=gn(),fD=(e,t,n)=>(e=new hw(e,n),t=new hw(t,n),e.intersects(t,n));vw.exports=fD});var Sw=Q((JL,bw)=>{"use strict";var mD=ws(),pD=pn();bw.exports=(e,t,n)=>{let r=[],i=null,o=null,a=e.sort((m,l)=>pD(m,l,n));for(let m of a)mD(m,t,n)?(o=m,i||(i=m)):(o&&r.push([i,o]),o=null,i=null);i&&r.push([i,null]);let s=[];for(let[m,l]of r)m===l?s.push(m):!l&&m===a[0]?s.push("*"):l?m===a[0]?s.push(`<=${l}`):s.push(`${m} - ${l}`):s.push(`>=${m}`);let c=s.join(" || "),d=typeof t.raw=="string"?t.raw:String(t);return c.length<d.length?c:t}});var Aw=Q((YL,Ew)=>{"use strict";var xw=gn(),ep=_s(),{ANY:Wm}=ep,Es=ws(),tp=pn(),gD=(e,t,n={})=>{if(e===t)return!0;e=new xw(e,n),t=new xw(t,n);let r=!1;e:for(let i of e.set){for(let o of t.set){let a=vD(i,o,n);if(r=r||a!==null,a)continue e}if(r)return!1}return!0},hD=[new ep(">=0.0.0-0")],_w=[new ep(">=0.0.0")],vD=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Wm){if(t.length===1&&t[0].semver===Wm)return!0;n.includePrerelease?e=hD:e=_w}if(t.length===1&&t[0].semver===Wm){if(n.includePrerelease)return!0;t=_w}let r=new Set,i,o;for(let p of e)p.operator===">"||p.operator===">="?i=$w(i,p,n):p.operator==="<"||p.operator==="<="?o=ww(o,p,n):r.add(p.semver);if(r.size>1)return null;let a;if(i&&o){if(a=tp(i.semver,o.semver,n),a>0)return null;if(a===0&&(i.operator!==">="||o.operator!=="<="))return null}for(let p of r){if(i&&!Es(p,String(i),n)||o&&!Es(p,String(o),n))return null;for(let h of t)if(!Es(p,String(h),n))return!1;return!0}let s,c,d,m,l=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,f=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&o.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let p of t){if(m=m||p.operator===">"||p.operator===">=",d=d||p.operator==="<"||p.operator==="<=",i){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator===">"||p.operator===">="){if(s=$w(i,p,n),s===p&&s!==i)return!1}else if(i.operator===">="&&!Es(i.semver,String(p),n))return!1}if(o){if(l&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===l.major&&p.semver.minor===l.minor&&p.semver.patch===l.patch&&(l=!1),p.operator==="<"||p.operator==="<="){if(c=ww(o,p,n),c===p&&c!==o)return!1}else if(o.operator==="<="&&!Es(o.semver,String(p),n))return!1}if(!p.operator&&(o||i)&&a!==0)return!1}return!(i&&d&&!o&&a!==0||o&&m&&!i&&a!==0||f||l)},$w=(e,t,n)=>{if(!e)return t;let r=tp(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},ww=(e,t,n)=>{if(!e)return t;let r=tp(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};Ew.exports=gD});var Tw=Q((KL,kw)=>{"use strict";var np=zo(),zw=bs(),yD=Et(),Cw=Vm(),bD=Rr(),SD=e$(),xD=n$(),_D=o$(),$D=l$(),wD=u$(),ED=f$(),AD=p$(),zD=h$(),CD=pn(),kD=S$(),TD=_$(),ID=Ac(),ND=A$(),OD=C$(),DD=xs(),RD=zc(),MD=Bm(),UD=Gm(),jD=Cc(),PD=kc(),LD=Fm(),ZD=U$(),qD=_s(),VD=gn(),HD=ws(),BD=Q$(),GD=ew(),FD=nw(),XD=ow(),JD=sw(),YD=Nc(),KD=mw(),QD=gw(),WD=yw(),e4=Sw(),t4=Aw();kw.exports={parse:bD,valid:SD,clean:xD,inc:_D,diff:$D,major:wD,minor:ED,patch:AD,prerelease:zD,compare:CD,rcompare:kD,compareLoose:TD,compareBuild:ID,sort:ND,rsort:OD,gt:DD,lt:RD,eq:MD,neq:UD,gte:jD,lte:PD,cmp:LD,coerce:ZD,Comparator:qD,Range:VD,satisfies:HD,toComparators:BD,maxSatisfying:GD,minSatisfying:FD,minVersion:XD,validRange:JD,outside:YD,gtr:KD,ltr:QD,intersects:WD,simplifyRange:e4,subset:t4,SemVer:yD,re:np.re,src:np.src,tokens:np.t,SEMVER_SPEC_VERSION:zw.SEMVER_SPEC_VERSION,RELEASE_TYPES:zw.RELEASE_TYPES,compareIdentifiers:Cw.compareIdentifiers,rcompareIdentifiers:Cw.rcompareIdentifiers}});var Zw=Q(ae=>{"use strict";var op=Symbol.for("react.transitional.element"),n4=Symbol.for("react.portal"),i4=Symbol.for("react.fragment"),r4=Symbol.for("react.strict_mode"),o4=Symbol.for("react.profiler"),a4=Symbol.for("react.consumer"),s4=Symbol.for("react.context"),l4=Symbol.for("react.forward_ref"),c4=Symbol.for("react.suspense"),u4=Symbol.for("react.memo"),Rw=Symbol.for("react.lazy"),d4=Symbol.for("react.activity"),Iw=Symbol.iterator;function f4(e){return e===null||typeof e!="object"?null:(e=Iw&&e[Iw]||e["@@iterator"],typeof e=="function"?e:null)}var Mw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uw=Object.assign,jw={};function To(e,t,n){this.props=e,this.context=t,this.refs=jw,this.updater=n||Mw}To.prototype.isReactComponent={};To.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};To.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pw(){}Pw.prototype=To.prototype;function ap(e,t,n){this.props=e,this.context=t,this.refs=jw,this.updater=n||Mw}var sp=ap.prototype=new Pw;sp.constructor=ap;Uw(sp,To.prototype);sp.isPureReactComponent=!0;var Nw=Array.isArray;function rp(){}var Re={H:null,A:null,T:null,S:null},Lw=Object.prototype.hasOwnProperty;function lp(e,t,n){var r=n.ref;return{$$typeof:op,type:e,key:t,ref:r!==void 0?r:null,props:n}}function m4(e,t){return lp(e.type,t,e.props)}function cp(e){return typeof e=="object"&&e!==null&&e.$$typeof===op}function p4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ow=/\/+/g;function ip(e,t){return typeof e=="object"&&e!==null&&e.key!=null?p4(""+e.key):t.toString(36)}function g4(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(rp,rp):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ko(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case op:case n4:a=!0;break;case Rw:return a=e._init,ko(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+ip(e,0):r,Nw(i)?(n="",a!=null&&(n=a.replace(Ow,"$&/")+"/"),ko(i,t,n,"",function(d){return d})):i!=null&&(cp(i)&&(i=m4(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(Ow,"$&/")+"/")+a)),t.push(i)),1;a=0;var s=r===""?".":r+":";if(Nw(e))for(var c=0;c<e.length;c++)r=e[c],o=s+ip(r,c),a+=ko(r,t,n,o,i);else if(c=f4(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,o=s+ip(r,c++),a+=ko(r,t,n,o,i);else if(o==="object"){if(typeof e.then=="function")return ko(g4(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function Oc(e,t,n){if(e==null)return e;var r=[],i=0;return ko(e,r,"","",function(o){return t.call(n,o,i++)}),r}function h4(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Dw=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},v4={map:Oc,forEach:function(e,t,n){Oc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Oc(e,function(){t++}),t},toArray:function(e){return Oc(e,function(t){return t})||[]},only:function(e){if(!cp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Activity=d4;ae.Children=v4;ae.Component=To;ae.Fragment=i4;ae.Profiler=o4;ae.PureComponent=ap;ae.StrictMode=r4;ae.Suspense=c4;ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Re;ae.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Re.H.useMemoCache(e)}};ae.cache=function(e){return function(){return e.apply(null,arguments)}};ae.cacheSignal=function(){return null};ae.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=Uw({},e.props),i=e.key;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)!Lw.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return lp(e.type,i,r)};ae.createContext=function(e){return e={$$typeof:s4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:a4,_context:e},e};ae.createElement=function(e,t,n){var r,i={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)Lw.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return lp(e,o,i)};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:l4,render:e}};ae.isValidElement=cp;ae.lazy=function(e){return{$$typeof:Rw,_payload:{_status:-1,_result:e},_init:h4}};ae.memo=function(e,t){return{$$typeof:u4,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Re.T,n={};Re.T=n;try{var r=e(),i=Re.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(rp,Dw)}catch(o){Dw(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Re.T=t}};ae.unstable_useCacheRefresh=function(){return Re.H.useCacheRefresh()};ae.use=function(e){return Re.H.use(e)};ae.useActionState=function(e,t,n){return Re.H.useActionState(e,t,n)};ae.useCallback=function(e,t){return Re.H.useCallback(e,t)};ae.useContext=function(e){return Re.H.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e,t){return Re.H.useDeferredValue(e,t)};ae.useEffect=function(e,t){return Re.H.useEffect(e,t)};ae.useEffectEvent=function(e){return Re.H.useEffectEvent(e)};ae.useId=function(){return Re.H.useId()};ae.useImperativeHandle=function(e,t,n){return Re.H.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return Re.H.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return Re.H.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return Re.H.useMemo(e,t)};ae.useOptimistic=function(e,t){return Re.H.useOptimistic(e,t)};ae.useReducer=function(e,t,n){return Re.H.useReducer(e,t,n)};ae.useRef=function(e){return Re.H.useRef(e)};ae.useState=function(e){return Re.H.useState(e)};ae.useSyncExternalStore=function(e,t,n){return Re.H.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return Re.H.useTransition()};ae.version="19.2.3"});var Ne=Q((WL,qw)=>{"use strict";qw.exports=Zw()});var Qw=Q(qe=>{"use strict";function mp(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<Dc(i,t))e[r]=t,e[n]=i,n=r;else break e}}function Zn(e){return e.length===0?null:e[0]}function Mc(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,s=e[a],c=a+1,d=e[c];if(0>Dc(s,n))c<i&&0>Dc(d,s)?(e[r]=d,e[c]=n,r=c):(e[r]=s,e[a]=n,r=a);else if(c<i&&0>Dc(d,n))e[r]=d,e[c]=n,r=c;else break e}}return t}function Dc(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}qe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Vw=performance,qe.unstable_now=function(){return Vw.now()}):(up=Date,Hw=up.now(),qe.unstable_now=function(){return up.now()-Hw});var Vw,up,Hw,ii=[],Pi=[],y4=1,hn=null,zt=3,pp=!1,As=!1,zs=!1,gp=!1,Fw=typeof setTimeout=="function"?setTimeout:null,Xw=typeof clearTimeout=="function"?clearTimeout:null,Bw=typeof setImmediate!="undefined"?setImmediate:null;function Rc(e){for(var t=Zn(Pi);t!==null;){if(t.callback===null)Mc(Pi);else if(t.startTime<=e)Mc(Pi),t.sortIndex=t.expirationTime,mp(ii,t);else break;t=Zn(Pi)}}function hp(e){if(zs=!1,Rc(e),!As)if(Zn(ii)!==null)As=!0,No||(No=!0,Io());else{var t=Zn(Pi);t!==null&&vp(hp,t.startTime-e)}}var No=!1,Cs=-1,Jw=5,Yw=-1;function Kw(){return gp?!0:!(qe.unstable_now()-Yw<Jw)}function dp(){if(gp=!1,No){var e=qe.unstable_now();Yw=e;var t=!0;try{e:{As=!1,zs&&(zs=!1,Xw(Cs),Cs=-1),pp=!0;var n=zt;try{t:{for(Rc(e),hn=Zn(ii);hn!==null&&!(hn.expirationTime>e&&Kw());){var r=hn.callback;if(typeof r=="function"){hn.callback=null,zt=hn.priorityLevel;var i=r(hn.expirationTime<=e);if(e=qe.unstable_now(),typeof i=="function"){hn.callback=i,Rc(e),t=!0;break t}hn===Zn(ii)&&Mc(ii),Rc(e)}else Mc(ii);hn=Zn(ii)}if(hn!==null)t=!0;else{var o=Zn(Pi);o!==null&&vp(hp,o.startTime-e),t=!1}}break e}finally{hn=null,zt=n,pp=!1}t=void 0}}finally{t?Io():No=!1}}}var Io;typeof Bw=="function"?Io=function(){Bw(dp)}:typeof MessageChannel!="undefined"?(fp=new MessageChannel,Gw=fp.port2,fp.port1.onmessage=dp,Io=function(){Gw.postMessage(null)}):Io=function(){Fw(dp,0)};var fp,Gw;function vp(e,t){Cs=Fw(function(){e(qe.unstable_now())},t)}qe.unstable_IdlePriority=5;qe.unstable_ImmediatePriority=1;qe.unstable_LowPriority=4;qe.unstable_NormalPriority=3;qe.unstable_Profiling=null;qe.unstable_UserBlockingPriority=2;qe.unstable_cancelCallback=function(e){e.callback=null};qe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Jw=0<e?Math.floor(1e3/e):5};qe.unstable_getCurrentPriorityLevel=function(){return zt};qe.unstable_next=function(e){switch(zt){case 1:case 2:case 3:var t=3;break;default:t=zt}var n=zt;zt=t;try{return e()}finally{zt=n}};qe.unstable_requestPaint=function(){gp=!0};qe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=zt;zt=e;try{return t()}finally{zt=n}};qe.unstable_scheduleCallback=function(e,t,n){var r=qe.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:y4++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,mp(Pi,e),Zn(ii)===null&&e===Zn(Pi)&&(zs?(Xw(Cs),Cs=-1):zs=!0,vp(hp,n-r))):(e.sortIndex=i,mp(ii,e),As||pp||(As=!0,No||(No=!0,Io()))),e};qe.unstable_shouldYield=Kw;qe.unstable_wrapCallback=function(e){var t=zt;return function(){var n=zt;zt=t;try{return e.apply(this,arguments)}finally{zt=n}}}});var e0=Q((tZ,Ww)=>{"use strict";Ww.exports=Qw()});var n0=Q(Dt=>{"use strict";var b4=Ne();function t0(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Li(){}var Ot={d:{f:Li,r:function(){throw Error(t0(522))},D:Li,C:Li,L:Li,m:Li,X:Li,S:Li,M:Li},p:0,findDOMNode:null},S4=Symbol.for("react.portal");function x4(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S4,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var ks=b4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Uc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ot;Dt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(t0(299));return x4(e,t,null,n)};Dt.flushSync=function(e){var t=ks.T,n=Ot.p;try{if(ks.T=null,Ot.p=2,e)return e()}finally{ks.T=t,Ot.p=n,Ot.d.f()}};Dt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ot.d.C(e,t))};Dt.prefetchDNS=function(e){typeof e=="string"&&Ot.d.D(e)};Dt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Uc(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Ot.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n==="script"&&Ot.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Dt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Uc(t.as,t.crossOrigin);Ot.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Ot.d.M(e)};Dt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Uc(n,t.crossOrigin);Ot.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Dt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Uc(t.as,t.crossOrigin);Ot.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Ot.d.m(e)};Dt.requestFormReset=function(e){Ot.d.r(e)};Dt.unstable_batchedUpdates=function(e,t){return e(t)};Dt.useFormState=function(e,t,n){return ks.H.useFormState(e,t,n)};Dt.useFormStatus=function(){return ks.H.useHostTransitionStatus()};Dt.version="19.2.3"});var yp=Q((iZ,r0)=>{"use strict";function i0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i0)}catch(e){console.error(e)}}i0(),r0.exports=n0()});var hC=Q(ld=>{"use strict";var rt=e0(),TE=Ne(),_4=yp();function k(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function IE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function NE(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function OE(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function o0(e){if(gl(e)!==e)throw Error(k(188))}function $4(e){var t=e.alternate;if(!t){if(t=gl(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return o0(i),e;if(o===r)return o0(i),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function DE(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=DE(e),t!==null)return t;e=e.sibling}return null}var je=Object.assign,w4=Symbol.for("react.element"),jc=Symbol.for("react.transitional.element"),Us=Symbol.for("react.portal"),jo=Symbol.for("react.fragment"),RE=Symbol.for("react.strict_mode"),Qp=Symbol.for("react.profiler"),ME=Symbol.for("react.consumer"),di=Symbol.for("react.context"),Fg=Symbol.for("react.forward_ref"),Wp=Symbol.for("react.suspense"),eg=Symbol.for("react.suspense_list"),Xg=Symbol.for("react.memo"),Zi=Symbol.for("react.lazy");Symbol.for("react.scope");var tg=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var E4=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var a0=Symbol.iterator;function Ts(e){return e===null||typeof e!="object"?null:(e=a0&&e[a0]||e["@@iterator"],typeof e=="function"?e:null)}var A4=Symbol.for("react.client.reference");function ng(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===A4?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case jo:return"Fragment";case Qp:return"Profiler";case RE:return"StrictMode";case Wp:return"Suspense";case eg:return"SuspenseList";case tg:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Us:return"Portal";case di:return e.displayName||"Context";case ME:return(e._context.displayName||"Context")+".Consumer";case Fg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xg:return t=e.displayName||null,t!==null?t:ng(e.type)||"Memo";case Zi:t=e._payload,e=e._init;try{return ng(e(t))}catch(n){}}return null}var js=Array.isArray,ne=TE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve=_4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qr={pending:!1,data:null,method:null,action:null},ig=[],Po=-1;function Gn(e){return{current:e}}function ft(e){0>Po||(e.current=ig[Po],ig[Po]=null,Po--)}function Oe(e,t){Po++,ig[Po]=e.current,e.current=t}var Bn=Gn(null),tl=Gn(null),Qi=Gn(null),vu=Gn(null);function yu(e,t){switch(Oe(Qi,t),Oe(tl,e),Oe(Bn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mE(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mE(t),e=nC(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ft(Bn),Oe(Bn,e)}function ia(){ft(Bn),ft(tl),ft(Qi)}function rg(e){e.memoizedState!==null&&Oe(vu,e);var t=Bn.current,n=nC(t,e.type);t!==n&&(Oe(tl,e),Oe(Bn,n))}function bu(e){tl.current===e&&(ft(Bn),ft(tl)),vu.current===e&&(ft(vu),fl._currentValue=qr)}var bp,s0;function jr(e){if(bp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bp=t&&t[1]||"",s0=-1<n.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+bp+e+s0}var Sp=!1;function xp(e,t){if(!e||Sp)return"";Sp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(p){var f=p}Reflect.construct(e,[],l)}else{try{l.call()}catch(p){f=p}e.call(l.prototype)}}else{try{throw Error()}catch(p){f=p}(l=e())&&typeof l.catch=="function"&&l.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack=="string")return[p.stack,f.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var c=a.split(`
|
|
`),d=s.split(`
|
|
`);for(i=r=0;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;for(;i<d.length&&!d[i].includes("DetermineComponentFrameRoot");)i++;if(r===c.length||i===d.length)for(r=c.length-1,i=d.length-1;1<=r&&0<=i&&c[r]!==d[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==d[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==d[i]){var m=`
|
|
`+c[r].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=r&&0<=i);break}}}finally{Sp=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?jr(n):""}function z4(e,t){switch(e.tag){case 26:case 27:case 5:return jr(e.type);case 16:return jr("Lazy");case 13:return e.child!==t&&t!==null?jr("Suspense Fallback"):jr("Suspense");case 19:return jr("SuspenseList");case 0:case 15:return xp(e.type,!1);case 11:return xp(e.type.render,!1);case 1:return xp(e.type,!0);case 31:return jr("Activity");default:return""}}function l0(e){try{var t="",n=null;do t+=z4(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
|
|
Error generating stack: `+r.message+`
|
|
`+r.stack}}var og=Object.prototype.hasOwnProperty,Jg=rt.unstable_scheduleCallback,_p=rt.unstable_cancelCallback,C4=rt.unstable_shouldYield,k4=rt.unstable_requestPaint,on=rt.unstable_now,T4=rt.unstable_getCurrentPriorityLevel,UE=rt.unstable_ImmediatePriority,jE=rt.unstable_UserBlockingPriority,Su=rt.unstable_NormalPriority,I4=rt.unstable_LowPriority,PE=rt.unstable_IdlePriority,N4=rt.log,O4=rt.unstable_setDisableYieldValue,hl=null,an=null;function Fi(e){if(typeof N4=="function"&&O4(e),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(hl,e)}catch(t){}}var sn=Math.clz32?Math.clz32:M4,D4=Math.log,R4=Math.LN2;function M4(e){return e>>>=0,e===0?32:31-(D4(e)/R4|0)|0}var Pc=256,Lc=262144,Zc=4194304;function Pr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Gu(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s!==0?(r=s&~o,r!==0?i=Pr(r):(a&=s,a!==0?i=Pr(a):n||(n=s&~e,n!==0&&(i=Pr(n))))):(s=r&~o,s!==0?i=Pr(s):a!==0?i=Pr(a):n||(n=r&~e,n!==0&&(i=Pr(n)))),i===0?0:t!==0&&t!==i&&!(t&o)&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function vl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function U4(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function LE(){var e=Zc;return Zc<<=1,!(Zc&62914560)&&(Zc=4194304),e}function $p(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function j4(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,d=e.hiddenUpdates;for(n=a&~n;0<n;){var m=31-sn(n),l=1<<m;s[m]=0,c[m]=-1;var f=d[m];if(f!==null)for(d[m]=null,m=0;m<f.length;m++){var p=f[m];p!==null&&(p.lane&=-536870913)}n&=~l}r!==0&&ZE(e,r,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function ZE(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-sn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function qE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-sn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function VE(e,t){var n=t&-t;return n=n&42?1:Yg(n),n&(e.suspendedLanes|t)?0:n}function Yg(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Kg(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function HE(){var e=ve.p;return e!==0?e:(e=window.event,e===void 0?32:mC(e.type))}function c0(e,t){var n=ve.p;try{return ve.p=e,t()}finally{ve.p=n}}var dr=Math.random().toString(36).slice(2),ht="__reactFiber$"+dr,Gt="__reactProps$"+dr,pa="__reactContainer$"+dr,ag="__reactEvents$"+dr,P4="__reactListeners$"+dr,L4="__reactHandles$"+dr,u0="__reactResources$"+dr,bl="__reactMarker$"+dr;function Qg(e){delete e[ht],delete e[Gt],delete e[ag],delete e[P4],delete e[L4]}function Lo(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pa]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yE(e);e!==null;){if(n=e[ht])return n;e=yE(e)}return t}e=n,n=e.parentNode}return null}function ga(e){if(e=e[ht]||e[pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ps(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(k(33))}function Yo(e){var t=e[u0];return t||(t=e[u0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[bl]=!0}var BE=new Set,GE={};function Qr(e,t){ra(e,t),ra(e+"Capture",t)}function ra(e,t){for(GE[e]=t,e=0;e<t.length;e++)BE.add(t[e])}var Z4=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),d0={},f0={};function q4(e){return og.call(f0,e)?!0:og.call(d0,e)?!1:Z4.test(e)?f0[e]=!0:(d0[e]=!0,!1)}function nu(e,t,n){if(q4(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function qc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ri(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function yn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function FE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function V4(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sg(e){if(!e._valueTracker){var t=FE(e)?"checked":"value";e._valueTracker=V4(e,t,""+e[t])}}function XE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=FE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xu(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var H4=/[\n"\\]/g;function xn(e){return e.replace(H4,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function lg(e,t,n,r,i,o,a,s){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+yn(t)):e.value!==""+yn(t)&&(e.value=""+yn(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?cg(e,a,yn(t)):n!=null?cg(e,a,yn(n)):r!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+yn(s):e.removeAttribute("name")}function JE(e,t,n,r,i,o,a,s){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){sg(e);return}n=n!=null?""+yn(n):"",t=t!=null?""+yn(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r=r!=null?r:i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a),sg(e)}function cg(e,t,n){t==="number"&&xu(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ko(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function YE(e,t,n){if(t!=null&&(t=""+yn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+yn(n):""}function KE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(k(92));if(js(r)){if(1<r.length)throw Error(k(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=yn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),sg(e)}function oa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var B4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function m0(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||B4.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function QE(e,t,n){if(t!=null&&typeof t!="object")throw Error(k(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&m0(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&m0(e,o,t[o])}function Wg(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var G4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),F4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function iu(e){return F4.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fi(){}var ug=null;function eh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zo=null,Qo=null;function p0(e){var t=ga(e);if(t&&(e=t.stateNode)){var n=e[Gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(lg(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+xn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Gt]||null;if(!i)throw Error(k(90));lg(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&XE(r)}break e;case"textarea":YE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ko(e,!!n.multiple,t,!1)}}}var wp=!1;function WE(e,t,n){if(wp)return e(t,n);wp=!0;try{var r=e(t);return r}finally{if(wp=!1,(Zo!==null||Qo!==null)&&(rd(),Zo&&(t=Zo,e=Qo,Qo=Zo=null,p0(t),e)))for(t=0;t<e.length;t++)p0(e[t])}}function nl(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Gt]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(k(231,t,typeof n));return n}var vi=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),dg=!1;if(vi)try{Oo={},Object.defineProperty(Oo,"passive",{get:function(){dg=!0}}),window.addEventListener("test",Oo,Oo),window.removeEventListener("test",Oo,Oo)}catch(e){dg=!1}var Oo,Xi=null,th=null,ru=null;function eA(){if(ru)return ru;var e,t=th,n=t.length,r,i="value"in Xi?Xi.value:Xi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return ru=i.slice(e,1<r?1-r:void 0)}function ou(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vc(){return!0}function g0(){return!1}function Ft(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Vc:g0,this.isPropagationStopped=g0,this}return je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vc)},persist:function(){},isPersistent:Vc}),t}var Wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fu=Ft(Wr),Sl=je({},Wr,{view:0,detail:0}),X4=Ft(Sl),Ep,Ap,Is,Xu=je({},Sl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Is&&(Is&&e.type==="mousemove"?(Ep=e.screenX-Is.screenX,Ap=e.screenY-Is.screenY):Ap=Ep=0,Is=e),Ep)},movementY:function(e){return"movementY"in e?e.movementY:Ap}}),h0=Ft(Xu),J4=je({},Xu,{dataTransfer:0}),Y4=Ft(J4),K4=je({},Sl,{relatedTarget:0}),zp=Ft(K4),Q4=je({},Wr,{animationName:0,elapsedTime:0,pseudoElement:0}),W4=Ft(Q4),eR=je({},Wr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tR=Ft(eR),nR=je({},Wr,{data:0}),v0=Ft(nR),iR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rR={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=oR[e])?!!t[e]:!1}function nh(){return aR}var sR=je({},Sl,{key:function(e){if(e.key){var t=iR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ou(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nh,charCode:function(e){return e.type==="keypress"?ou(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ou(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lR=Ft(sR),cR=je({},Xu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),y0=Ft(cR),uR=je({},Sl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nh}),dR=Ft(uR),fR=je({},Wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),mR=Ft(fR),pR=je({},Xu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gR=Ft(pR),hR=je({},Wr,{newState:0,oldState:0}),vR=Ft(hR),yR=[9,13,27,32],ih=vi&&"CompositionEvent"in window,qs=null;vi&&"documentMode"in document&&(qs=document.documentMode);var bR=vi&&"TextEvent"in window&&!qs,tA=vi&&(!ih||qs&&8<qs&&11>=qs),b0=String.fromCharCode(32),S0=!1;function nA(e,t){switch(e){case"keyup":return yR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qo=!1;function SR(e,t){switch(e){case"compositionend":return iA(t);case"keypress":return t.which!==32?null:(S0=!0,b0);case"textInput":return e=t.data,e===b0&&S0?null:e;default:return null}}function xR(e,t){if(qo)return e==="compositionend"||!ih&&nA(e,t)?(e=eA(),ru=th=Xi=null,qo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return tA&&t.locale!=="ko"?null:t.data;default:return null}}var _R={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function x0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_R[e.type]:t==="textarea"}function rA(e,t,n,r){Zo?Qo?Qo.push(r):Qo=[r]:Zo=r,t=Pu(t,"onChange"),0<t.length&&(n=new Fu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vs=null,il=null;function $R(e){Wz(e,0)}function Ju(e){var t=Ps(e);if(XE(t))return e}function _0(e,t){if(e==="change")return t}var oA=!1;vi&&(vi?(Bc="oninput"in document,Bc||(Cp=document.createElement("div"),Cp.setAttribute("oninput","return;"),Bc=typeof Cp.oninput=="function"),Hc=Bc):Hc=!1,oA=Hc&&(!document.documentMode||9<document.documentMode));var Hc,Bc,Cp;function $0(){Vs&&(Vs.detachEvent("onpropertychange",aA),il=Vs=null)}function aA(e){if(e.propertyName==="value"&&Ju(il)){var t=[];rA(t,il,e,eh(e)),WE($R,t)}}function wR(e,t,n){e==="focusin"?($0(),Vs=t,il=n,Vs.attachEvent("onpropertychange",aA)):e==="focusout"&&$0()}function ER(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ju(il)}function AR(e,t){if(e==="click")return Ju(t)}function zR(e,t){if(e==="input"||e==="change")return Ju(t)}function CR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cn=typeof Object.is=="function"?Object.is:CR;function rl(e,t){if(cn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!og.call(t,i)||!cn(e[i],t[i]))return!1}return!0}function w0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function E0(e,t){var n=w0(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=w0(n)}}function sA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lA(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xu(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=xu(e.document)}return t}function rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var kR=vi&&"documentMode"in document&&11>=document.documentMode,Vo=null,fg=null,Hs=null,mg=!1;function A0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mg||Vo==null||Vo!==xu(r)||(r=Vo,"selectionStart"in r&&rh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hs&&rl(Hs,r)||(Hs=r,r=Pu(fg,"onSelect"),0<r.length&&(t=new Fu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Vo)))}function Ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ho={animationend:Ur("Animation","AnimationEnd"),animationiteration:Ur("Animation","AnimationIteration"),animationstart:Ur("Animation","AnimationStart"),transitionrun:Ur("Transition","TransitionRun"),transitionstart:Ur("Transition","TransitionStart"),transitioncancel:Ur("Transition","TransitionCancel"),transitionend:Ur("Transition","TransitionEnd")},kp={},cA={};vi&&(cA=document.createElement("div").style,"AnimationEvent"in window||(delete Ho.animationend.animation,delete Ho.animationiteration.animation,delete Ho.animationstart.animation),"TransitionEvent"in window||delete Ho.transitionend.transition);function eo(e){if(kp[e])return kp[e];if(!Ho[e])return e;var t=Ho[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cA)return kp[e]=t[n];return e}var uA=eo("animationend"),dA=eo("animationiteration"),fA=eo("animationstart"),TR=eo("transitionrun"),IR=eo("transitionstart"),NR=eo("transitioncancel"),mA=eo("transitionend"),pA=new Map,pg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");pg.push("scrollEnd");function Nn(e,t){pA.set(e,t),Qr(t,[e])}var _u=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},vn=[],Bo=0,oh=0;function Yu(){for(var e=Bo,t=oh=Bo=0;t<e;){var n=vn[t];vn[t++]=null;var r=vn[t];vn[t++]=null;var i=vn[t];vn[t++]=null;var o=vn[t];if(vn[t++]=null,r!==null&&i!==null){var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}o!==0&&gA(n,i,o)}}function Ku(e,t,n,r){vn[Bo++]=e,vn[Bo++]=t,vn[Bo++]=n,vn[Bo++]=r,oh|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ah(e,t,n,r){return Ku(e,t,n,r),$u(e)}function to(e,t){return Ku(e,null,null,t),$u(e)}function gA(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-sn(n),e=o.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),o):null}function $u(e){if(50<Ws)throw Ws=0,Rg=null,Error(k(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Go={};function OR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,n,r){return new OR(e,t,n,r)}function sh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pi(e,t){var n=e.alternate;return n===null?(n=nn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function hA(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function au(e,t,n,r,i,o){var a=0;if(r=e,typeof e=="function")sh(e)&&(a=1);else if(typeof e=="string")a=MM(e,n,Bn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case tg:return e=nn(31,n,t,i),e.elementType=tg,e.lanes=o,e;case jo:return Vr(n.children,i,o,t);case RE:a=8,i|=24;break;case Qp:return e=nn(12,n,t,i|2),e.elementType=Qp,e.lanes=o,e;case Wp:return e=nn(13,n,t,i),e.elementType=Wp,e.lanes=o,e;case eg:return e=nn(19,n,t,i),e.elementType=eg,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case di:a=10;break e;case ME:a=9;break e;case Fg:a=11;break e;case Xg:a=14;break e;case Zi:a=16,r=null;break e}a=29,n=Error(k(130,e===null?"null":typeof e,"")),r=null}return t=nn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Vr(e,t,n,r){return e=nn(7,e,r,t),e.lanes=n,e}function Tp(e,t,n){return e=nn(6,e,null,t),e.lanes=n,e}function vA(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function Ip(e,t,n){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var z0=new WeakMap;function _n(e,t){if(typeof e=="object"&&e!==null){var n=z0.get(e);return n!==void 0?n:(t={value:e,source:t,stack:l0(t)},z0.set(e,t),t)}return{value:e,source:t,stack:l0(t)}}var Fo=[],Xo=0,wu=null,ol=0,bn=[],Sn=0,sr=null,qn=1,Vn="";function ci(e,t){Fo[Xo++]=ol,Fo[Xo++]=wu,wu=e,ol=t}function yA(e,t,n){bn[Sn++]=qn,bn[Sn++]=Vn,bn[Sn++]=sr,sr=e;var r=qn;e=Vn;var i=32-sn(r)-1;r&=~(1<<i),n+=1;var o=32-sn(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,qn=1<<32-sn(t)+i|n<<i|r,Vn=o+e}else qn=1<<o|n<<i|r,Vn=e}function lh(e){e.return!==null&&(ci(e,1),yA(e,1,0))}function ch(e){for(;e===wu;)wu=Fo[--Xo],Fo[Xo]=null,ol=Fo[--Xo],Fo[Xo]=null;for(;e===sr;)sr=bn[--Sn],bn[Sn]=null,Vn=bn[--Sn],bn[Sn]=null,qn=bn[--Sn],bn[Sn]=null}function bA(e,t){bn[Sn++]=qn,bn[Sn++]=Vn,bn[Sn++]=sr,qn=t.id,Vn=t.overflow,sr=e}var vt=null,Ue=null,ge=!1,Wi=null,$n=!1,gg=Error(k(519));function lr(e){var t=Error(k(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw al(_n(t,e)),gg}function C0(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ht]=e,t[Gt]=r,n){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(n=0;n<ul.length;n++)de(ul[n],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),JE(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),KE(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||tC(t.textContent,n)?(r.popover!=null&&(de("beforetoggle",t),de("toggle",t)),r.onScroll!=null&&de("scroll",t),r.onScrollEnd!=null&&de("scrollend",t),r.onClick!=null&&(t.onclick=fi),t=!0):t=!1,t||lr(e,!0)}function k0(e){for(vt=e.return;vt;)switch(vt.tag){case 5:case 31:case 13:$n=!1;return;case 27:case 3:$n=!0;return;default:vt=vt.return}}function Do(e){if(e!==vt)return!1;if(!ge)return k0(e),ge=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Lg(e.type,e.memoizedProps)),n=!n),n&&Ue&&lr(e),k0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));Ue=vE(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));Ue=vE(e)}else t===27?(t=Ue,fr(e.type)?(e=Hg,Hg=null,Ue=e):Ue=t):Ue=vt?En(e.stateNode.nextSibling):null;return!0}function Fr(){Ue=vt=null,ge=!1}function Np(){var e=Wi;return e!==null&&(Ht===null?Ht=e:Ht.push.apply(Ht,e),Wi=null),e}function al(e){Wi===null?Wi=[e]:Wi.push(e)}var hg=Gn(null),no=null,mi=null;function Vi(e,t,n){Oe(hg,t._currentValue),t._currentValue=n}function gi(e){e._currentValue=hg.current,ft(hg)}function vg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yg(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var a=i.child;o=o.firstContext;e:for(;o!==null;){var s=o;o=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),vg(o.return,n,e),r||(a=null);break e}o=s.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(k(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),vg(a,n,e),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function ha(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(k(387));if(a=a.memoizedProps,a!==null){var s=i.type;cn(i.pendingProps.value,a.value)||(e!==null?e.push(s):e=[s])}}else if(i===vu.current){if(a=i.alternate,a===null)throw Error(k(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(fl):e=[fl])}i=i.return}e!==null&&yg(t,e,n,r),t.flags|=262144}function Eu(e){for(e=e.firstContext;e!==null;){if(!cn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xr(e){no=e,mi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return SA(no,e)}function Gc(e,t){return no===null&&Xr(e),SA(e,t)}function SA(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},mi===null){if(e===null)throw Error(k(308));mi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else mi=mi.next=t;return n}var DR=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},RR=rt.unstable_scheduleCallback,MR=rt.unstable_NormalPriority,Qe={$$typeof:di,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uh(){return{controller:new DR,data:new Map,refCount:0}}function xl(e){e.refCount--,e.refCount===0&&RR(MR,function(){e.controller.abort()})}var Bs=null,bg=0,aa=0,Wo=null;function UR(e,t){if(Bs===null){var n=Bs=[];bg=0,aa=Rh(),Wo={status:"pending",value:void 0,then:function(r){n.push(r)}}}return bg++,t.then(T0,T0),t}function T0(){if(--bg===0&&Bs!==null){Wo!==null&&(Wo.status="fulfilled");var e=Bs;Bs=null,aa=0,Wo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function jR(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var I0=ne.S;ne.S=function(e,t){Dz=on(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&UR(e,t),I0!==null&&I0(e,t)};var Hr=Gn(null);function dh(){var e=Hr.current;return e!==null?e:ke.pooledCache}function su(e,t){t===null?Oe(Hr,Hr.current):Oe(Hr,t.pool)}function xA(){var e=dh();return e===null?null:{parent:Qe._currentValue,pool:e}}var va=Error(k(460)),fh=Error(k(474)),Qu=Error(k(542)),Au={then:function(){}};function N0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _A(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(fi,fi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,D0(e),e;default:if(typeof t.status=="string")t.then(fi,fi);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(k(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,D0(e),e}throw Br=t,va}}function Lr(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Br=n,va):n}}var Br=null;function O0(){if(Br===null)throw Error(k(459));var e=Br;return Br=null,e}function D0(e){if(e===va||e===Qu)throw Error(k(483))}var ea=null,sl=0;function Fc(e){var t=sl;return sl+=1,ea===null&&(ea=[]),_A(ea,e,t)}function Ns(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xc(e,t){throw t.$$typeof===w4?Error(k(525)):(e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $A(e){function t(v,g){if(e){var b=v.deletions;b===null?(v.deletions=[g],v.flags|=16):b.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v){for(var g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function i(v,g){return v=pi(v,g),v.index=0,v.sibling=null,v}function o(v,g,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<g?(v.flags|=67108866,g):b):(v.flags|=67108866,g)):(v.flags|=1048576,g)}function a(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function s(v,g,b,S){return g===null||g.tag!==6?(g=Tp(b,v.mode,S),g.return=v,g):(g=i(g,b),g.return=v,g)}function c(v,g,b,S){var $=b.type;return $===jo?m(v,g,b.props.children,S,b.key):g!==null&&(g.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Zi&&Lr($)===g.type)?(g=i(g,b.props),Ns(g,b),g.return=v,g):(g=au(b.type,b.key,b.props,null,v.mode,S),Ns(g,b),g.return=v,g)}function d(v,g,b,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=Ip(b,v.mode,S),g.return=v,g):(g=i(g,b.children||[]),g.return=v,g)}function m(v,g,b,S,$){return g===null||g.tag!==7?(g=Vr(b,v.mode,S,$),g.return=v,g):(g=i(g,b),g.return=v,g)}function l(v,g,b){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Tp(""+g,v.mode,b),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case jc:return b=au(g.type,g.key,g.props,null,v.mode,b),Ns(b,g),b.return=v,b;case Us:return g=Ip(g,v.mode,b),g.return=v,g;case Zi:return g=Lr(g),l(v,g,b)}if(js(g)||Ts(g))return g=Vr(g,v.mode,b,null),g.return=v,g;if(typeof g.then=="function")return l(v,Fc(g),b);if(g.$$typeof===di)return l(v,Gc(v,g),b);Xc(v,g)}return null}function f(v,g,b,S){var $=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return $!==null?null:s(v,g,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case jc:return b.key===$?c(v,g,b,S):null;case Us:return b.key===$?d(v,g,b,S):null;case Zi:return b=Lr(b),f(v,g,b,S)}if(js(b)||Ts(b))return $!==null?null:m(v,g,b,S,null);if(typeof b.then=="function")return f(v,g,Fc(b),S);if(b.$$typeof===di)return f(v,g,Gc(v,b),S);Xc(v,b)}return null}function p(v,g,b,S,$){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return v=v.get(b)||null,s(g,v,""+S,$);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case jc:return v=v.get(S.key===null?b:S.key)||null,c(g,v,S,$);case Us:return v=v.get(S.key===null?b:S.key)||null,d(g,v,S,$);case Zi:return S=Lr(S),p(v,g,b,S,$)}if(js(S)||Ts(S))return v=v.get(b)||null,m(g,v,S,$,null);if(typeof S.then=="function")return p(v,g,b,Fc(S),$);if(S.$$typeof===di)return p(v,g,b,Gc(g,S),$);Xc(g,S)}return null}function h(v,g,b,S){for(var $=null,M=null,z=g,q=g=0,A=null;z!==null&&q<b.length;q++){z.index>q?(A=z,z=null):A=z.sibling;var T=f(v,z,b[q],S);if(T===null){z===null&&(z=A);break}e&&z&&T.alternate===null&&t(v,z),g=o(T,g,q),M===null?$=T:M.sibling=T,M=T,z=A}if(q===b.length)return n(v,z),ge&&ci(v,q),$;if(z===null){for(;q<b.length;q++)z=l(v,b[q],S),z!==null&&(g=o(z,g,q),M===null?$=z:M.sibling=z,M=z);return ge&&ci(v,q),$}for(z=r(z);q<b.length;q++)A=p(z,v,q,b[q],S),A!==null&&(e&&A.alternate!==null&&z.delete(A.key===null?q:A.key),g=o(A,g,q),M===null?$=A:M.sibling=A,M=A);return e&&z.forEach(function(I){return t(v,I)}),ge&&ci(v,q),$}function y(v,g,b,S){if(b==null)throw Error(k(151));for(var $=null,M=null,z=g,q=g=0,A=null,T=b.next();z!==null&&!T.done;q++,T=b.next()){z.index>q?(A=z,z=null):A=z.sibling;var I=f(v,z,T.value,S);if(I===null){z===null&&(z=A);break}e&&z&&I.alternate===null&&t(v,z),g=o(I,g,q),M===null?$=I:M.sibling=I,M=I,z=A}if(T.done)return n(v,z),ge&&ci(v,q),$;if(z===null){for(;!T.done;q++,T=b.next())T=l(v,T.value,S),T!==null&&(g=o(T,g,q),M===null?$=T:M.sibling=T,M=T);return ge&&ci(v,q),$}for(z=r(z);!T.done;q++,T=b.next())T=p(z,v,q,T.value,S),T!==null&&(e&&T.alternate!==null&&z.delete(T.key===null?q:T.key),g=o(T,g,q),M===null?$=T:M.sibling=T,M=T);return e&&z.forEach(function(G){return t(v,G)}),ge&&ci(v,q),$}function x(v,g,b,S){if(typeof b=="object"&&b!==null&&b.type===jo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case jc:e:{for(var $=b.key;g!==null;){if(g.key===$){if($=b.type,$===jo){if(g.tag===7){n(v,g.sibling),S=i(g,b.props.children),S.return=v,v=S;break e}}else if(g.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Zi&&Lr($)===g.type){n(v,g.sibling),S=i(g,b.props),Ns(S,b),S.return=v,v=S;break e}n(v,g);break}else t(v,g);g=g.sibling}b.type===jo?(S=Vr(b.props.children,v.mode,S,b.key),S.return=v,v=S):(S=au(b.type,b.key,b.props,null,v.mode,S),Ns(S,b),S.return=v,v=S)}return a(v);case Us:e:{for($=b.key;g!==null;){if(g.key===$)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(v,g.sibling),S=i(g,b.children||[]),S.return=v,v=S;break e}else{n(v,g);break}else t(v,g);g=g.sibling}S=Ip(b,v.mode,S),S.return=v,v=S}return a(v);case Zi:return b=Lr(b),x(v,g,b,S)}if(js(b))return h(v,g,b,S);if(Ts(b)){if($=Ts(b),typeof $!="function")throw Error(k(150));return b=$.call(b),y(v,g,b,S)}if(typeof b.then=="function")return x(v,g,Fc(b),S);if(b.$$typeof===di)return x(v,g,Gc(v,b),S);Xc(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,g!==null&&g.tag===6?(n(v,g.sibling),S=i(g,b),S.return=v,v=S):(n(v,g),S=Tp(b,v.mode,S),S.return=v,v=S),a(v)):n(v,g)}return function(v,g,b,S){try{sl=0;var $=x(v,g,b,S);return ea=null,$}catch(z){if(z===va||z===Qu)throw z;var M=nn(29,z,null,v.mode);return M.lanes=S,M.return=v,M}finally{}}}var Jr=$A(!0),wA=$A(!1),qi=!1;function mh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function er(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,he&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$u(e),gA(e,null,n),t}return Ku(e,r,t,n),$u(e)}function Gs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qE(e,n)}}function Op(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xg=!1;function Fs(){if(xg){var e=Wo;if(e!==null)throw e}}function Xs(e,t,n,r){xg=!1;var i=e.updateQueue;qi=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,d=c.next;c.next=null,a===null?o=d:a.next=d,a=c;var m=e.alternate;m!==null&&(m=m.updateQueue,s=m.lastBaseUpdate,s!==a&&(s===null?m.firstBaseUpdate=d:s.next=d,m.lastBaseUpdate=c))}if(o!==null){var l=i.baseState;a=0,m=d=c=null,s=o;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(pe&f)===f:(r&f)===f){f!==0&&f===aa&&(xg=!0),m!==null&&(m=m.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var h=e,y=s;f=t;var x=n;switch(y.tag){case 1:if(h=y.payload,typeof h=="function"){l=h.call(x,l,f);break e}l=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=y.payload,f=typeof h=="function"?h.call(x,l,f):h,f==null)break e;l=je({},l,f);break e;case 2:qi=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},m===null?(d=m=p,c=l):m=m.next=p,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);m===null&&(c=l),i.baseState=c,i.firstBaseUpdate=d,i.lastBaseUpdate=m,o===null&&(i.shared.lanes=0),ur|=a,e.lanes=a,e.memoizedState=l}}function EA(e,t){if(typeof e!="function")throw Error(k(191,e));e.call(t)}function AA(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)EA(n[e],t)}var sa=Gn(null),zu=Gn(0);function R0(e,t){e=xi,Oe(zu,e),Oe(sa,t),xi=e|t.baseLanes}function _g(){Oe(zu,xi),Oe(sa,sa.current)}function ph(){xi=zu.current,ft(sa),ft(zu)}var un=Gn(null),wn=null;function Hi(e){var t=e.alternate;Oe(Xe,Xe.current&1),Oe(un,e),wn===null&&(t===null||sa.current!==null||t.memoizedState!==null)&&(wn=e)}function $g(e){Oe(Xe,Xe.current),Oe(un,e),wn===null&&(wn=e)}function zA(e){e.tag===22?(Oe(Xe,Xe.current),Oe(un,e),wn===null&&(wn=e)):Bi(e)}function Bi(){Oe(Xe,Xe.current),Oe(un,un.current)}function tn(e){ft(un),wn===e&&(wn=null),ft(Xe)}var Xe=Gn(0);function Cu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||qg(n)||Vg(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yi=0,le=null,Ae=null,Ye=null,ku=!1,ta=!1,Yr=!1,Tu=0,ll=0,na=null,PR=0;function Be(){throw Error(k(321))}function gh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cn(e[n],t[n]))return!1;return!0}function hh(e,t,n,r,i,o){return yi=o,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ne.H=e===null||e.memoizedState===null?rz:zh,Yr=!1,o=n(r,i),Yr=!1,ta&&(o=kA(t,n,r,i)),CA(e),o}function CA(e){ne.H=cl;var t=Ae!==null&&Ae.next!==null;if(yi=0,Ye=Ae=le=null,ku=!1,ll=0,na=null,t)throw Error(k(300));e===null||We||(e=e.dependencies,e!==null&&Eu(e)&&(We=!0))}function kA(e,t,n,r){le=e;var i=0;do{if(ta&&(na=null),ll=0,ta=!1,25<=i)throw Error(k(301));if(i+=1,Ye=Ae=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ne.H=oz,o=t(n,r)}while(ta);return o}function LR(){var e=ne.H,t=e.useState()[0];return t=typeof t.then=="function"?_l(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(le.flags|=1024),t}function vh(){var e=Tu!==0;return Tu=0,e}function yh(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function bh(e){if(ku){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ku=!1}yi=0,Ye=Ae=le=null,ta=!1,ll=Tu=0,na=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?le.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Je(){if(Ae===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Ye===null?le.memoizedState:Ye.next;if(t!==null)Ye=t,Ae=e;else{if(e===null)throw le.alternate===null?Error(k(467)):Error(k(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Ye===null?le.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function Wu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _l(e){var t=ll;return ll+=1,na===null&&(na=[]),e=_A(na,e,t),t=le,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,ne.H=t===null||t.memoizedState===null?rz:zh),e}function ed(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return _l(e);if(e.$$typeof===di)return yt(e)}throw Error(k(438,String(e)))}function Sh(e){var t=null,n=le.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=le.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Wu(),le.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=E4;return t.index++,n}function bi(e,t){return typeof t=="function"?t(e):t}function lu(e){var t=Je();return xh(t,Ae,e)}function xh(e,t,n){var r=e.queue;if(r===null)throw Error(k(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var s=a=null,c=null,d=t,m=!1;do{var l=d.lane&-536870913;if(l!==d.lane?(pe&l)===l:(yi&l)===l){var f=d.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),l===aa&&(m=!0);else if((yi&f)===f){d=d.next,f===aa&&(m=!0);continue}else l={lane:0,revertLane:d.revertLane,gesture:null,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},c===null?(s=c=l,a=o):c=c.next=l,le.lanes|=f,ur|=f;l=d.action,Yr&&n(o,l),o=d.hasEagerState?d.eagerState:n(o,l)}else f={lane:l,revertLane:d.revertLane,gesture:d.gesture,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},c===null?(s=c=f,a=o):c=c.next=f,le.lanes|=l,ur|=l;d=d.next}while(d!==null&&d!==t);if(c===null?a=o:c.next=s,!cn(o,e.memoizedState)&&(We=!0,m&&(n=Wo,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=c,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Dp(e){var t=Je(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);cn(o,t.memoizedState)||(We=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function TA(e,t,n){var r=le,i=Je(),o=ge;if(o){if(n===void 0)throw Error(k(407));n=n()}else n=t();var a=!cn((Ae||i).memoizedState,n);if(a&&(i.memoizedState=n,We=!0),i=i.queue,_h(OA.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||Ye!==null&&Ye.memoizedState.tag&1){if(r.flags|=2048,la(9,{destroy:void 0},NA.bind(null,r,i,n,t),null),ke===null)throw Error(k(349));o||yi&127||IA(r,t,n)}return n}function IA(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=le.updateQueue,t===null?(t=Wu(),le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function NA(e,t,n,r){t.value=n,t.getSnapshot=r,DA(t)&&RA(e)}function OA(e,t,n){return n(function(){DA(t)&&RA(e)})}function DA(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cn(e,n)}catch(r){return!0}}function RA(e){var t=to(e,2);t!==null&&Bt(t,e,2)}function wg(e){var t=Rt();if(typeof e=="function"){var n=e;if(e=n(),Yr){Fi(!0);try{n()}finally{Fi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:e},t}function MA(e,t,n,r){return e.baseState=n,xh(e,Ae,typeof r=="function"?r:bi)}function ZR(e,t,n,r,i){if(nd(e))throw Error(k(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};ne.T!==null?n(!0):o.isTransition=!1,r(o),n=t.pending,n===null?(o.next=t.pending=o,UA(t,o)):(o.next=n.next,t.pending=n.next=o)}}function UA(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=ne.T,a={};ne.T=a;try{var s=n(i,r),c=ne.S;c!==null&&c(a,s),M0(e,t,s)}catch(d){Eg(e,t,d)}finally{o!==null&&a.types!==null&&(o.types=a.types),ne.T=o}}else try{o=n(i,r),M0(e,t,o)}catch(d){Eg(e,t,d)}}function M0(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){U0(e,t,r)},function(r){return Eg(e,t,r)}):U0(e,t,n)}function U0(e,t,n){t.status="fulfilled",t.value=n,jA(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,UA(e,n)))}function Eg(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,jA(t),t=t.next;while(t!==r)}e.action=null}function jA(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function PA(e,t){return t}function j0(e,t){if(ge){var n=ke.formState;if(n!==null){e:{var r=le;if(ge){if(Ue){t:{for(var i=Ue,o=$n;i.nodeType!==8;){if(!o){i=null;break t}if(i=En(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Ue=En(i.nextSibling),r=i.data==="F!";break e}}lr(r)}r=!1}r&&(t=n[0])}}return n=Rt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:PA,lastRenderedState:t},n.queue=r,n=tz.bind(null,le,r),r.dispatch=n,r=wg(!1),o=Ah.bind(null,le,!1,r.queue),r=Rt(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ZR.bind(null,le,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function P0(e){var t=Je();return LA(t,Ae,e)}function LA(e,t,n){if(t=xh(e,t,PA)[0],e=lu(bi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=_l(t)}catch(a){throw a===va?Qu:a}else r=t;t=Je();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(le.flags|=2048,la(9,{destroy:void 0},qR.bind(null,i,n),null)),[r,o,e]}function qR(e,t){e.action=t}function L0(e){var t=Je(),n=Ae;if(n!==null)return LA(t,n,e);Je(),t=t.memoizedState,n=Je();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function la(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=le.updateQueue,t===null&&(t=Wu(),le.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ZA(){return Je().memoizedState}function cu(e,t,n,r){var i=Rt();le.flags|=e,i.memoizedState=la(1|t,{destroy:void 0},n,r===void 0?null:r)}function td(e,t,n,r){var i=Je();r=r===void 0?null:r;var o=i.memoizedState.inst;Ae!==null&&r!==null&&gh(r,Ae.memoizedState.deps)?i.memoizedState=la(t,o,n,r):(le.flags|=e,i.memoizedState=la(1|t,o,n,r))}function Z0(e,t){cu(8390656,8,e,t)}function _h(e,t){td(2048,8,e,t)}function VR(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=Wu(),le.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function qA(e){var t=Je().memoizedState;return VR({ref:t,nextImpl:e}),function(){if(he&2)throw Error(k(440));return t.impl.apply(void 0,arguments)}}function VA(e,t){return td(4,2,e,t)}function HA(e,t){return td(4,4,e,t)}function BA(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function GA(e,t,n){n=n!=null?n.concat([e]):null,td(4,4,BA.bind(null,t,e),n)}function $h(){}function FA(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&gh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function XA(e,t){var n=Je();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&gh(t,r[1]))return r[0];if(r=e(),Yr){Fi(!0);try{e()}finally{Fi(!1)}}return n.memoizedState=[r,t],r}function wh(e,t,n){return n===void 0||yi&1073741824&&!(pe&261930)?e.memoizedState=t:(e.memoizedState=n,e=Mz(),le.lanes|=e,ur|=e,n)}function JA(e,t,n,r){return cn(n,t)?n:sa.current!==null?(e=wh(e,n,r),cn(e,t)||(We=!0),e):!(yi&42)||yi&1073741824&&!(pe&261930)?(We=!0,e.memoizedState=n):(e=Mz(),le.lanes|=e,ur|=e,t)}function YA(e,t,n,r,i){var o=ve.p;ve.p=o!==0&&8>o?o:8;var a=ne.T,s={};ne.T=s,Ah(e,!1,t,n);try{var c=i(),d=ne.S;if(d!==null&&d(s,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var m=jR(c,r);Js(e,t,m,ln(e))}else Js(e,t,r,ln(e))}catch(l){Js(e,t,{then:function(){},status:"rejected",reason:l},ln())}finally{ve.p=o,a!==null&&s.types!==null&&(a.types=s.types),ne.T=a}}function HR(){}function Ag(e,t,n,r){if(e.tag!==5)throw Error(k(476));var i=KA(e).queue;YA(e,i,t,qr,n===null?HR:function(){return QA(e),n(r)})}function KA(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:qr,baseState:qr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:qr},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function QA(e){var t=KA(e);t.next===null&&(t=e.alternate.memoizedState),Js(e,t.next.queue,{},ln())}function Eh(){return yt(fl)}function WA(){return Je().memoizedState}function ez(){return Je().memoizedState}function BR(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ln();e=er(n);var r=tr(t,e,n);r!==null&&(Bt(r,t,n),Gs(r,t,n)),t={cache:uh()},e.payload=t;return}t=t.return}}function GR(e,t,n){var r=ln();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},nd(e)?nz(t,n):(n=ah(e,t,n,r),n!==null&&(Bt(n,e,r),iz(n,t,r)))}function tz(e,t,n){var r=ln();Js(e,t,n,r)}function Js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(nd(e))nz(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,cn(s,a))return Ku(e,t,i,0),ke===null&&Yu(),!1}catch(c){}finally{}if(n=ah(e,t,i,r),n!==null)return Bt(n,e,r),iz(n,t,r),!0}return!1}function Ah(e,t,n,r){if(r={lane:2,revertLane:Rh(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},nd(e)){if(t)throw Error(k(479))}else t=ah(e,n,r,2),t!==null&&Bt(t,e,2)}function nd(e){var t=e.alternate;return e===le||t!==null&&t===le}function nz(e,t){ta=ku=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function iz(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qE(e,n)}}var cl={readContext:yt,use:ed,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useInsertionEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useSyncExternalStore:Be,useId:Be,useHostTransitionStatus:Be,useFormState:Be,useActionState:Be,useOptimistic:Be,useMemoCache:Be,useCacheRefresh:Be};cl.useEffectEvent=Be;var rz={readContext:yt,use:ed,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Z0,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,cu(4194308,4,BA.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cu(4194308,4,e,t)},useInsertionEffect:function(e,t){cu(4,2,e,t)},useMemo:function(e,t){var n=Rt();t=t===void 0?null:t;var r=e();if(Yr){Fi(!0);try{e()}finally{Fi(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Rt();if(n!==void 0){var i=n(t);if(Yr){Fi(!0);try{n(t)}finally{Fi(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=GR.bind(null,le,e),[r.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=wg(e);var t=e.queue,n=tz.bind(null,le,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:$h,useDeferredValue:function(e,t){var n=Rt();return wh(n,e,t)},useTransition:function(){var e=wg(!1);return e=YA.bind(null,le,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=le,i=Rt();if(ge){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ke===null)throw Error(k(349));pe&127||IA(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Z0(OA.bind(null,r,o,e),[e]),r.flags|=2048,la(9,{destroy:void 0},NA.bind(null,r,o,n,t),null),n},useId:function(){var e=Rt(),t=ke.identifierPrefix;if(ge){var n=Vn,r=qn;n=(r&~(1<<32-sn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Tu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=PR++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Eh,useFormState:j0,useActionState:j0,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ah.bind(null,le,!0,n),n.dispatch=t,[e,t]},useMemoCache:Sh,useCacheRefresh:function(){return Rt().memoizedState=BR.bind(null,le)},useEffectEvent:function(e){var t=Rt(),n={impl:e};return t.memoizedState=n,function(){if(he&2)throw Error(k(440));return n.impl.apply(void 0,arguments)}}},zh={readContext:yt,use:ed,useCallback:FA,useContext:yt,useEffect:_h,useImperativeHandle:GA,useInsertionEffect:VA,useLayoutEffect:HA,useMemo:XA,useReducer:lu,useRef:ZA,useState:function(){return lu(bi)},useDebugValue:$h,useDeferredValue:function(e,t){var n=Je();return JA(n,Ae.memoizedState,e,t)},useTransition:function(){var e=lu(bi)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:_l(e),t]},useSyncExternalStore:TA,useId:WA,useHostTransitionStatus:Eh,useFormState:P0,useActionState:P0,useOptimistic:function(e,t){var n=Je();return MA(n,Ae,e,t)},useMemoCache:Sh,useCacheRefresh:ez};zh.useEffectEvent=qA;var oz={readContext:yt,use:ed,useCallback:FA,useContext:yt,useEffect:_h,useImperativeHandle:GA,useInsertionEffect:VA,useLayoutEffect:HA,useMemo:XA,useReducer:Dp,useRef:ZA,useState:function(){return Dp(bi)},useDebugValue:$h,useDeferredValue:function(e,t){var n=Je();return Ae===null?wh(n,e,t):JA(n,Ae.memoizedState,e,t)},useTransition:function(){var e=Dp(bi)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:_l(e),t]},useSyncExternalStore:TA,useId:WA,useHostTransitionStatus:Eh,useFormState:L0,useActionState:L0,useOptimistic:function(e,t){var n=Je();return Ae!==null?MA(n,Ae,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Sh,useCacheRefresh:ez};oz.useEffectEvent=qA;function Rp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:je({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zg={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ln(),i=er(r);i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,r),t!==null&&(Bt(t,e,r),Gs(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ln(),i=er(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=tr(e,i,r),t!==null&&(Bt(t,e,r),Gs(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ln(),r=er(n);r.tag=2,t!=null&&(r.callback=t),t=tr(e,r,n),t!==null&&(Bt(t,e,n),Gs(t,e,n))}};function q0(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!rl(n,r)||!rl(i,o):!0}function V0(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zg.enqueueReplaceState(t,t.state,null)}function Kr(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=je({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function az(e){_u(e)}function sz(e){console.error(e)}function lz(e){_u(e)}function Iu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function H0(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Cg(e,t,n){return n=er(n),n.tag=3,n.payload={element:null},n.callback=function(){Iu(e,t)},n}function cz(e){return e=er(e),e.tag=3,e}function uz(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){H0(t,n,r)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){H0(t,n,r),typeof i!="function"&&(nr===null?nr=new Set([this]):nr.add(this));var s=r.stack;this.componentDidCatch(r.value,{componentStack:s!==null?s:""})})}function FR(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&ha(t,n,i,!0),n=un.current,n!==null){switch(n.tag){case 31:case 13:return wn===null?Mu():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Au?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gp(e,r,i)),!1;case 22:return n.flags|=65536,r===Au?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gp(e,r,i)),!1}throw Error(k(435,n.tag))}return Gp(e,r,i),Mu(),!1}if(ge)return t=un.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==gg&&(e=Error(k(422),{cause:r}),al(_n(e,n)))):(r!==gg&&(t=Error(k(423),{cause:r}),al(_n(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=_n(r,n),i=Cg(e.stateNode,r,i),Op(e,i),Ge!==4&&(Ge=2)),!1;var o=Error(k(520),{cause:r});if(o=_n(o,n),Qs===null?Qs=[o]:Qs.push(o),Ge!==4&&(Ge=2),t===null)return!0;r=_n(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Cg(n.stateNode,r,e),Op(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(nr===null||!nr.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=cz(i),uz(i,e,n,r),Op(n,i),!1}n=n.return}while(n!==null);return!1}var Ch=Error(k(461)),We=!1;function gt(e,t,n,r){t.child=e===null?wA(t,null,n,r):Jr(t,e.child,n,r)}function B0(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var s in r)s!=="ref"&&(a[s]=r[s])}else a=r;return Xr(t),r=hh(e,t,n,a,o,i),s=vh(),e!==null&&!We?(yh(e,t,i),Si(e,t,i)):(ge&&s&&lh(t),t.flags|=1,gt(e,t,r,i),t.child)}function G0(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!sh(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,dz(e,t,o,r,i)):(e=au(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!kh(e,i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:rl,n(a,r)&&e.ref===t.ref)return Si(e,t,i)}return t.flags|=1,e=pi(o,r),e.ref=t.ref,e.return=t,t.child=e}function dz(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(rl(o,r)&&e.ref===t.ref)if(We=!1,t.pendingProps=r=o,kh(e,i))e.flags&131072&&(We=!0);else return t.lanes=e.lanes,Si(e,t,i)}return kg(e,t,n,r,i)}function fz(e,t,n,r){var i=r.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(o=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return F0(e,t,o,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&su(t,o!==null?o.cachePool:null),o!==null?R0(t,o):_g(),zA(t);else return r=t.lanes=536870912,F0(e,t,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(su(t,o.cachePool),R0(t,o),Bi(t),t.memoizedState=null):(e!==null&&su(t,null),_g(),Bi(t));return gt(e,t,i,n),t.child}function Ls(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function F0(e,t,n,r,i){var o=dh();return o=o===null?null:{parent:Qe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&su(t,null),_g(),zA(t),e!==null&&ha(e,t,r,!0),t.childLanes=i,null}function uu(e,t){return t=Nu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function X0(e,t,n){return Jr(t,e.child,null,n),e=uu(t,t.pendingProps),e.flags|=2,tn(t),t.memoizedState=null,e}function XR(e,t,n){var r=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ge){if(r.mode==="hidden")return e=uu(t,r),t.lanes=536870912,Ls(null,e);if($g(t),(e=Ue)?(e=rC(e,$n),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sr!==null?{id:qn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},n=vA(e),n.return=t,t.child=n,vt=t,Ue=null)):e=null,e===null)throw lr(t);return t.lanes=536870912,null}return uu(t,r)}var o=e.memoizedState;if(o!==null){var a=o.dehydrated;if($g(t),i)if(t.flags&256)t.flags&=-257,t=X0(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(k(558));else if(We||ha(e,t,n,!1),i=(n&e.childLanes)!==0,We||i){if(r=ke,r!==null&&(a=VE(r,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,to(e,a),Bt(r,e,a),Ch;Mu(),t=X0(e,t,n)}else e=o.treeContext,Ue=En(a.nextSibling),vt=t,ge=!0,Wi=null,$n=!1,e!==null&&bA(t,e),t=uu(t,r),t.flags|=4096;return t}return e=pi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function du(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(k(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function kg(e,t,n,r,i){return Xr(t),n=hh(e,t,n,r,void 0,i),r=vh(),e!==null&&!We?(yh(e,t,i),Si(e,t,i)):(ge&&r&&lh(t),t.flags|=1,gt(e,t,n,i),t.child)}function J0(e,t,n,r,i,o){return Xr(t),t.updateQueue=null,n=kA(t,r,n,i),CA(e),r=vh(),e!==null&&!We?(yh(e,t,o),Si(e,t,o)):(ge&&r&&lh(t),t.flags|=1,gt(e,t,n,o),t.child)}function Y0(e,t,n,r,i){if(Xr(t),t.stateNode===null){var o=Go,a=n.contextType;typeof a=="object"&&a!==null&&(o=yt(a)),o=new n(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=zg,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},mh(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?yt(a):Go,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(Rp(t,n,a,r),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&zg.enqueueReplaceState(o,o.state,null),Xs(t,r,o,i),Fs(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var s=t.memoizedProps,c=Kr(n,s);o.props=c;var d=o.context,m=n.contextType;a=Go,typeof m=="object"&&m!==null&&(a=yt(m));var l=n.getDerivedStateFromProps;m=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s||d!==a)&&V0(t,o,r,a),qi=!1;var f=t.memoizedState;o.state=f,Xs(t,r,o,i),Fs(),d=t.memoizedState,s||f!==d||qi?(typeof l=="function"&&(Rp(t,n,l,r),d=t.memoizedState),(c=qi||q0(t,n,c,r,f,d,a))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=d),o.props=r,o.state=d,o.context=a,r=c):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Sg(e,t),a=t.memoizedProps,m=Kr(n,a),o.props=m,l=t.pendingProps,f=o.context,d=n.contextType,c=Go,typeof d=="object"&&d!==null&&(c=yt(d)),s=n.getDerivedStateFromProps,(d=typeof s=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==l||f!==c)&&V0(t,o,r,c),qi=!1,f=t.memoizedState,o.state=f,Xs(t,r,o,i),Fs();var p=t.memoizedState;a!==l||f!==p||qi||e!==null&&e.dependencies!==null&&Eu(e.dependencies)?(typeof s=="function"&&(Rp(t,n,s,r),p=t.memoizedState),(m=qi||q0(t,n,m,r,f,p,c)||e!==null&&e.dependencies!==null&&Eu(e.dependencies))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=c,r=m):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,du(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=Jr(t,e.child,null,i),t.child=Jr(t,null,n,i)):gt(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Si(e,t,i),e}function K0(e,t,n,r){return Fr(),t.flags|=256,gt(e,t,n,r),t.child}var Mp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Up(e){return{baseLanes:e,cachePool:xA()}}function jp(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=rn),e}function mz(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),a&&(i=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(i?Hi(t):Bi(t),(e=Ue)?(e=rC(e,$n),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sr!==null?{id:qn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},n=vA(e),n.return=t,t.child=n,vt=t,Ue=null)):e=null,e===null)throw lr(t);return Vg(e)?t.lanes=32:t.lanes=536870912,null}var s=r.children;return r=r.fallback,i?(Bi(t),i=t.mode,s=Nu({mode:"hidden",children:s},i),r=Vr(r,i,n,null),s.return=t,r.return=t,s.sibling=r,t.child=s,r=t.child,r.memoizedState=Up(n),r.childLanes=jp(e,a,n),t.memoizedState=Mp,Ls(null,r)):(Hi(t),Tg(t,s))}var c=e.memoizedState;if(c!==null&&(s=c.dehydrated,s!==null)){if(o)t.flags&256?(Hi(t),t.flags&=-257,t=Pp(e,t,n)):t.memoizedState!==null?(Bi(t),t.child=e.child,t.flags|=128,t=null):(Bi(t),s=r.fallback,i=t.mode,r=Nu({mode:"visible",children:r.children},i),s=Vr(s,i,n,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,Jr(t,e.child,null,n),r=t.child,r.memoizedState=Up(n),r.childLanes=jp(e,a,n),t.memoizedState=Mp,t=Ls(null,r));else if(Hi(t),Vg(s)){if(a=s.nextSibling&&s.nextSibling.dataset,a)var d=a.dgst;a=d,r=Error(k(419)),r.stack="",r.digest=a,al({value:r,source:null,stack:null}),t=Pp(e,t,n)}else if(We||ha(e,t,n,!1),a=(n&e.childLanes)!==0,We||a){if(a=ke,a!==null&&(r=VE(a,n),r!==0&&r!==c.retryLane))throw c.retryLane=r,to(e,r),Bt(a,e,r),Ch;qg(s)||Mu(),t=Pp(e,t,n)}else qg(s)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,Ue=En(s.nextSibling),vt=t,ge=!0,Wi=null,$n=!1,e!==null&&bA(t,e),t=Tg(t,r.children),t.flags|=4096);return t}return i?(Bi(t),s=r.fallback,i=t.mode,c=e.child,d=c.sibling,r=pi(c,{mode:"hidden",children:r.children}),r.subtreeFlags=c.subtreeFlags&65011712,d!==null?s=pi(d,s):(s=Vr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,Ls(null,r),r=t.child,s=e.child.memoizedState,s===null?s=Up(n):(i=s.cachePool,i!==null?(c=Qe._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=xA(),s={baseLanes:s.baseLanes|n,cachePool:i}),r.memoizedState=s,r.childLanes=jp(e,a,n),t.memoizedState=Mp,Ls(e.child,r)):(Hi(t),n=e.child,e=n.sibling,n=pi(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Tg(e,t){return t=Nu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nu(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function Pp(e,t,n){return Jr(t,e.child,null,n),e=Tg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Q0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vg(e.return,t,n)}function Lp(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function pz(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=Xe.current,s=(a&2)!==0;if(s?(a=a&1|2,t.flags|=128):a&=1,Oe(Xe,a),gt(e,t,r,n),r=ge?ol:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Q0(e,n,t);else if(e.tag===19)Q0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Cu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Lp(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Cu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Lp(t,!0,n,null,o,r);break;case"together":Lp(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Si(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ur|=t.lanes,!(n&t.childLanes))if(e!==null){if(ha(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=pi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kh(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Eu(e)))}function JR(e,t,n){switch(t.tag){case 3:yu(t,t.stateNode.containerInfo),Vi(t,Qe,e.memoizedState.cache),Fr();break;case 27:case 5:rg(t);break;case 4:yu(t,t.stateNode.containerInfo);break;case 10:Vi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$g(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Hi(t),t.flags|=128,null):n&t.child.childLanes?mz(e,t,n):(Hi(t),e=Si(e,t,n),e!==null?e.sibling:null);Hi(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(ha(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return pz(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Oe(Xe,Xe.current),r)break;return null;case 22:return t.lanes=0,fz(e,t,n,t.pendingProps);case 24:Vi(t,Qe,e.memoizedState.cache)}return Si(e,t,n)}function gz(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!kh(e,n)&&!(t.flags&128))return We=!1,JR(e,t,n);We=!!(e.flags&131072)}else We=!1,ge&&t.flags&1048576&&yA(t,ol,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Lr(t.elementType),t.type=e,typeof e=="function")sh(e)?(r=Kr(e,r),t.tag=1,t=Y0(null,t,e,r,n)):(t.tag=0,t=kg(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===Fg){t.tag=11,t=B0(null,t,e,r,n);break e}else if(i===Xg){t.tag=14,t=G0(null,t,e,r,n);break e}}throw t=ng(e)||e,Error(k(306,t,""))}}return t;case 0:return kg(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Kr(r,t.pendingProps),Y0(e,t,r,i,n);case 3:e:{if(yu(t,t.stateNode.containerInfo),e===null)throw Error(k(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,Sg(e,t),Xs(t,r,null,n);var a=t.memoizedState;if(r=a.cache,Vi(t,Qe,r),r!==o.cache&&yg(t,[Qe],n,!0),Fs(),r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=K0(e,t,r,n);break e}else if(r!==i){i=_n(Error(k(424)),t),al(i),t=K0(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ue=En(e.firstChild),vt=t,ge=!0,Wi=null,$n=!0,n=wA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fr(),r===i){t=Si(e,t,n);break e}gt(e,t,r,n)}t=t.child}return t;case 26:return du(e,t),e===null?(n=SE(t.type,null,t.pendingProps,null))?t.memoizedState=n:ge||(n=t.type,e=t.pendingProps,r=Lu(Qi.current).createElement(n),r[ht]=t,r[Gt]=e,bt(r,n,e),dt(r),t.stateNode=r):t.memoizedState=SE(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rg(t),e===null&&ge&&(r=t.stateNode=oC(t.type,t.pendingProps,Qi.current),vt=t,$n=!0,i=Ue,fr(t.type)?(Hg=i,Ue=En(r.firstChild)):Ue=i),gt(e,t,t.pendingProps.children,n),du(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((i=r=Ue)&&(r=$M(r,t.type,t.pendingProps,$n),r!==null?(t.stateNode=r,vt=t,Ue=En(r.firstChild),$n=!1,i=!0):i=!1),i||lr(t)),rg(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,r=o.children,Lg(i,o)?r=null:a!==null&&Lg(i,a)&&(t.flags|=32),t.memoizedState!==null&&(i=hh(e,t,LR,null,null,n),fl._currentValue=i),du(e,t),gt(e,t,r,n),t.child;case 6:return e===null&&ge&&((e=n=Ue)&&(n=wM(n,t.pendingProps,$n),n!==null?(t.stateNode=n,vt=t,Ue=null,e=!0):e=!1),e||lr(t)),null;case 13:return mz(e,t,n);case 4:return yu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Jr(t,null,r,n):gt(e,t,r,n),t.child;case 11:return B0(e,t,t.type,t.pendingProps,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Vi(t,t.type,r.value),gt(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Xr(t),i=yt(i),r=r(i),t.flags|=1,gt(e,t,r,n),t.child;case 14:return G0(e,t,t.type,t.pendingProps,n);case 15:return dz(e,t,t.type,t.pendingProps,n);case 19:return pz(e,t,n);case 31:return XR(e,t,n);case 22:return fz(e,t,n,t.pendingProps);case 24:return Xr(t),r=yt(Qe),e===null?(i=dh(),i===null&&(i=ke,o=uh(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},mh(t),Vi(t,Qe,i)):(e.lanes&n&&(Sg(e,t),Xs(t,null,null,n),Fs()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Vi(t,Qe,r)):(r=o.cache,Vi(t,Qe,r),r!==i.cache&&yg(t,[Qe],n,!0))),gt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(k(156,t.tag))}function oi(e){e.flags|=4}function Zp(e,t,n,r,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Pz())e.flags|=8192;else throw Br=Au,fh}else e.flags&=-16777217}function W0(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!lC(t))if(Pz())e.flags|=8192;else throw Br=Au,fh}function Jc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?LE():536870912,e.lanes|=t,ca|=t)}function Os(e,t){if(!ge)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function YR(e,t,n){var r=t.pendingProps;switch(ch(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),gi(Qe),ia(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Do(t)?oi(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Np())),Me(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(oi(t),o!==null?(Me(t),W0(t,o)):(Me(t),Zp(t,i,null,r,n))):o?o!==e.memoizedState?(oi(t),Me(t),W0(t,o)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&oi(t),Me(t),Zp(t,i,e,r,n)),null;case 27:if(bu(t),n=Qi.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&oi(t);else{if(!r){if(t.stateNode===null)throw Error(k(166));return Me(t),null}e=Bn.current,Do(t)?C0(t,e):(e=oC(i,r,n),t.stateNode=e,oi(t))}return Me(t),null;case 5:if(bu(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&oi(t);else{if(!r){if(t.stateNode===null)throw Error(k(166));return Me(t),null}if(o=Bn.current,Do(t))C0(t,o);else{var a=Lu(Qi.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?a.createElement(i,{is:r.is}):a.createElement(i)}}o[ht]=t,o[Gt]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(bt(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&oi(t)}}return Me(t),Zp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&oi(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(e=Qi.current,Do(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=vt,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||tC(e.nodeValue,n)),e||lr(t,!0)}else e=Lu(e).createTextNode(r),e[ht]=t,t.stateNode=e}return Me(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Do(t),n!==null){if(e===null){if(!r)throw Error(k(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(557));e[ht]=t}else Fr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else n=Np(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(tn(t),t):(tn(t),null);if(t.flags&128)throw Error(k(558))}return Me(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Do(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(k(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(k(317));i[ht]=t}else Fr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),i=!1}else i=Np(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(tn(t),t):(tn(t),null)}return tn(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Jc(t,t.updateQueue),Me(t),null);case 4:return ia(),e===null&&Mh(t.stateNode.containerInfo),Me(t),null;case 10:return gi(t.type),Me(t),null;case 19:if(ft(Xe),r=t.memoizedState,r===null)return Me(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)Os(r,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Cu(e),o!==null){for(t.flags|=128,Os(r,!1),e=o.updateQueue,t.updateQueue=e,Jc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hA(n,e),n=n.sibling;return Oe(Xe,Xe.current&1|2),ge&&ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&on()>Du&&(t.flags|=128,i=!0,Os(r,!1),t.lanes=4194304)}else{if(!i)if(e=Cu(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Jc(t,e),Os(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!ge)return Me(t),null}else 2*on()-r.renderingStartTime>Du&&n!==536870912&&(t.flags|=128,i=!0,Os(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=on(),e.sibling=null,n=Xe.current,Oe(Xe,i?n&1|2:n&1),ge&&ci(t,r.treeForkCount),e):(Me(t),null);case 22:case 23:return tn(t),ph(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),n=t.updateQueue,n!==null&&Jc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ft(Hr),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gi(Qe),Me(t),null;case 25:return null;case 30:return null}throw Error(k(156,t.tag))}function KR(e,t){switch(ch(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gi(Qe),ia(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bu(t),null;case 31:if(t.memoizedState!==null){if(tn(t),t.alternate===null)throw Error(k(340));Fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(tn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Fr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ft(Xe),null;case 4:return ia(),null;case 10:return gi(t.type),null;case 22:case 23:return tn(t),ph(),e!==null&&ft(Hr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gi(Qe),null;case 25:return null;default:return null}}function hz(e,t){switch(ch(t),t.tag){case 3:gi(Qe),ia();break;case 26:case 27:case 5:bu(t);break;case 4:ia();break;case 31:t.memoizedState!==null&&tn(t);break;case 13:tn(t);break;case 19:ft(Xe);break;case 10:gi(t.type);break;case 22:case 23:tn(t),ph(),e!==null&&ft(Hr);break;case 24:gi(Qe)}}function $l(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(s){$e(t,t.return,s)}}function cr(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(s!==void 0){a.destroy=void 0,i=t;var c=n,d=s;try{d()}catch(m){$e(i,c,m)}}}r=r.next}while(r!==o)}}catch(m){$e(t,t.return,m)}}function vz(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{AA(t,n)}catch(r){$e(e,e.return,r)}}}function yz(e,t,n){n.props=Kr(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){$e(e,t,r)}}function Ys(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){$e(e,t,i)}}function Hn(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){$e(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){$e(e,t,i)}else n.current=null}function bz(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){$e(e,e.return,i)}}function qp(e,t,n){try{var r=e.stateNode;vM(r,e.type,n,t),r[Gt]=t}catch(i){$e(e,e.return,i)}}function Sz(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fr(e.type)||e.tag===4}function Vp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&fr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ig(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fi));else if(r!==4&&(r===27&&fr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ig(e,t,n),e=e.sibling;e!==null;)Ig(e,t,n),e=e.sibling}function Ou(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&fr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ou(e,t,n),e=e.sibling;e!==null;)Ou(e,t,n),e=e.sibling}function xz(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);bt(t,r,n),t[ht]=e,t[Gt]=n}catch(o){$e(e,e.return,o)}}var ui=!1,Ke=!1,Hp=!1,eE=typeof WeakSet=="function"?WeakSet:Set,ut=null;function QR(e,t){if(e=e.containerInfo,jg=Hu,e=lA(e),rh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(y){n=null;break e}var a=0,s=-1,c=-1,d=0,m=0,l=e,f=null;t:for(;;){for(var p;l!==n||i!==0&&l.nodeType!==3||(s=a+i),l!==o||r!==0&&l.nodeType!==3||(c=a+r),l.nodeType===3&&(a+=l.nodeValue.length),(p=l.firstChild)!==null;)f=l,l=p;for(;;){if(l===e)break t;if(f===n&&++d===i&&(s=a),f===o&&++m===r&&(c=a),(p=l.nextSibling)!==null)break;l=f,f=l.parentNode}l=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pg={focusedElem:e,selectionRange:n},Hu=!1,ut=t;ut!==null;)if(t=ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ut=e;else for(;ut!==null;){switch(t=ut,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Kr(n.type,i);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){$e(n,n.return,y)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Zg(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zg(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(k(163))}if(e=t.sibling,e!==null){e.return=t.return,ut=e;break}ut=t.return}}function _z(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:si(e,n),r&4&&$l(5,n);break;case 1:if(si(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){$e(n,n.return,a)}else{var i=Kr(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){$e(n,n.return,a)}}r&64&&vz(n),r&512&&Ys(n,n.return);break;case 3:if(si(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{AA(e,t)}catch(a){$e(n,n.return,a)}}break;case 27:t===null&&r&4&&xz(n);case 26:case 5:si(e,n),t===null&&r&4&&bz(n),r&512&&Ys(n,n.return);break;case 12:si(e,n);break;case 31:si(e,n),r&4&&Ez(e,n);break;case 13:si(e,n),r&4&&Az(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sM.bind(null,n),EM(e,n))));break;case 22:if(r=n.memoizedState!==null||ui,!r){t=t!==null&&t.memoizedState!==null||Ke,i=ui;var o=Ke;ui=r,(Ke=t)&&!o?li(e,n,(n.subtreeFlags&8772)!==0):si(e,n),ui=i,Ke=o}break;case 30:break;default:si(e,n)}}function $z(e){var t=e.alternate;t!==null&&(e.alternate=null,$z(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,Vt=!1;function ai(e,t,n){for(n=n.child;n!==null;)wz(e,t,n),n=n.sibling}function wz(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(hl,n)}catch(o){}switch(n.tag){case 26:Ke||Hn(n,t),ai(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ke||Hn(n,t);var r=Ve,i=Vt;fr(n.type)&&(Ve=n.stateNode,Vt=!1),ai(e,t,n),el(n.stateNode),Ve=r,Vt=i;break;case 5:Ke||Hn(n,t);case 6:if(r=Ve,i=Vt,Ve=null,ai(e,t,n),Ve=r,Vt=i,Ve!==null)if(Vt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(n.stateNode)}catch(o){$e(n,t,o)}else try{Ve.removeChild(n.stateNode)}catch(o){$e(n,t,o)}break;case 18:Ve!==null&&(Vt?(e=Ve,gE(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ma(e)):gE(Ve,n.stateNode));break;case 4:r=Ve,i=Vt,Ve=n.stateNode.containerInfo,Vt=!0,ai(e,t,n),Ve=r,Vt=i;break;case 0:case 11:case 14:case 15:cr(2,n,t),Ke||cr(4,n,t),ai(e,t,n);break;case 1:Ke||(Hn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&yz(n,t,r)),ai(e,t,n);break;case 21:ai(e,t,n);break;case 22:Ke=(r=Ke)||n.memoizedState!==null,ai(e,t,n),Ke=r;break;default:ai(e,t,n)}}function Ez(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ma(e)}catch(n){$e(t,t.return,n)}}}function Az(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ma(e)}catch(n){$e(t,t.return,n)}}function WR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new eE),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new eE),t;default:throw Error(k(435,e.tag))}}function Yc(e,t){var n=WR(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var i=lM.bind(null,e,r);r.then(i,i)}})}function Zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 27:if(fr(s.type)){Ve=s.stateNode,Vt=!1;break e}break;case 5:Ve=s.stateNode,Vt=!1;break e;case 3:case 4:Ve=s.stateNode.containerInfo,Vt=!0;break e}s=s.return}if(Ve===null)throw Error(k(160));wz(o,a,i),Ve=null,Vt=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zz(t,e),t=t.sibling}var In=null;function zz(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zt(t,e),qt(e),r&4&&(cr(3,e,e.return),$l(3,e),cr(5,e,e.return));break;case 1:Zt(t,e),qt(e),r&512&&(Ke||n===null||Hn(n,n.return)),r&64&&ui&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=In;if(Zt(t,e),qt(e),r&512&&(Ke||n===null||Hn(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[bl]||o[ht]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),bt(o,r,n),o[ht]=e,dt(o),r=o;break e;case"link":var a=_E("link","href",i).get(r+(n.href||""));if(a){for(var s=0;s<a.length;s++)if(o=a[s],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(s,1);break t}}o=i.createElement(r),bt(o,r,n),i.head.appendChild(o);break;case"meta":if(a=_E("meta","content",i).get(r+(n.content||""))){for(s=0;s<a.length;s++)if(o=a[s],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(s,1);break t}}o=i.createElement(r),bt(o,r,n),i.head.appendChild(o);break;default:throw Error(k(468,r))}o[ht]=e,dt(o),r=o}e.stateNode=r}else $E(i,e.type,e.stateNode);else e.stateNode=xE(i,r,e.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?$E(i,e.type,e.stateNode):xE(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&qp(e,e.memoizedProps,n.memoizedProps)}break;case 27:Zt(t,e),qt(e),r&512&&(Ke||n===null||Hn(n,n.return)),n!==null&&r&4&&qp(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Zt(t,e),qt(e),r&512&&(Ke||n===null||Hn(n,n.return)),e.flags&32){i=e.stateNode;try{oa(i,"")}catch(h){$e(e,e.return,h)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,qp(e,i,n!==null?n.memoizedProps:i)),r&1024&&(Hp=!0);break;case 6:if(Zt(t,e),qt(e),r&4){if(e.stateNode===null)throw Error(k(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(h){$e(e,e.return,h)}}break;case 3:if(pu=null,i=In,In=Zu(t.containerInfo),Zt(t,e),In=i,qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ma(t.containerInfo)}catch(h){$e(e,e.return,h)}Hp&&(Hp=!1,Cz(e));break;case 4:r=In,In=Zu(e.stateNode.containerInfo),Zt(t,e),qt(e),In=r;break;case 12:Zt(t,e),qt(e);break;case 31:Zt(t,e),qt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Yc(e,r)));break;case 13:Zt(t,e),qt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(id=on()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Yc(e,r)));break;case 22:i=e.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,d=ui,m=Ke;if(ui=d||i,Ke=m||c,Zt(t,e),Ke=m,ui=d,qt(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||c||ui||Ke||Zr(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){c=n=t;try{if(o=c.stateNode,i)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{s=c.stateNode;var l=c.memoizedProps.style,f=l!=null&&l.hasOwnProperty("display")?l.display:null;s.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(h){$e(c,c.return,h)}}}else if(t.tag===6){if(n===null){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(h){$e(c,c.return,h)}}}else if(t.tag===18){if(n===null){c=t;try{var p=c.stateNode;i?hE(p,!0):hE(c.stateNode,!1)}catch(h){$e(c,c.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Yc(e,n))));break;case 19:Zt(t,e),qt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Yc(e,r)));break;case 30:break;case 21:break;default:Zt(t,e),qt(e)}}function qt(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Sz(r)){n=r;break}r=r.return}if(n==null)throw Error(k(160));switch(n.tag){case 27:var i=n.stateNode,o=Vp(e);Ou(e,o,i);break;case 5:var a=n.stateNode;n.flags&32&&(oa(a,""),n.flags&=-33);var s=Vp(e);Ou(e,s,a);break;case 3:case 4:var c=n.stateNode.containerInfo,d=Vp(e);Ig(e,d,c);break;default:throw Error(k(161))}}catch(m){$e(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cz(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cz(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function si(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_z(e,t.alternate,t),t=t.sibling}function Zr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cr(4,t,t.return),Zr(t);break;case 1:Hn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&yz(t,t.return,n),Zr(t);break;case 27:el(t.stateNode);case 26:case 5:Hn(t,t.return),Zr(t);break;case 22:t.memoizedState===null&&Zr(t);break;case 30:Zr(t);break;default:Zr(t)}e=e.sibling}}function li(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:li(i,o,n),$l(4,o);break;case 1:if(li(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(d){$e(r,r.return,d)}if(r=o,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)EA(c[i],s)}catch(d){$e(r,r.return,d)}}n&&a&64&&vz(o),Ys(o,o.return);break;case 27:xz(o);case 26:case 5:li(i,o,n),n&&r===null&&a&4&&bz(o),Ys(o,o.return);break;case 12:li(i,o,n);break;case 31:li(i,o,n),n&&a&4&&Ez(i,o);break;case 13:li(i,o,n),n&&a&4&&Az(i,o);break;case 22:o.memoizedState===null&&li(i,o,n),Ys(o,o.return);break;case 30:break;default:li(i,o,n)}t=t.sibling}}function Th(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&xl(n))}function Ih(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xl(e))}function Tn(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kz(e,t,n,r),t=t.sibling}function kz(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tn(e,t,n,r),i&2048&&$l(9,t);break;case 1:Tn(e,t,n,r);break;case 3:Tn(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xl(e)));break;case 12:if(i&2048){Tn(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,s=o.onPostCommit;typeof s=="function"&&s(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){$e(t,t.return,c)}}else Tn(e,t,n,r);break;case 31:Tn(e,t,n,r);break;case 13:Tn(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,t.memoizedState!==null?o._visibility&2?Tn(e,t,n,r):Ks(e,t):o._visibility&2?Tn(e,t,n,r):(o._visibility|=2,Mo(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Th(a,t);break;case 24:Tn(e,t,n,r),i&2048&&Ih(t.alternate,t);break;default:Tn(e,t,n,r)}}function Mo(e,t,n,r,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,a=t,s=n,c=r,d=a.flags;switch(a.tag){case 0:case 11:case 15:Mo(o,a,s,c,i),$l(8,a);break;case 23:break;case 22:var m=a.stateNode;a.memoizedState!==null?m._visibility&2?Mo(o,a,s,c,i):Ks(o,a):(m._visibility|=2,Mo(o,a,s,c,i)),i&&d&2048&&Th(a.alternate,a);break;case 24:Mo(o,a,s,c,i),i&&d&2048&&Ih(a.alternate,a);break;default:Mo(o,a,s,c,i)}t=t.sibling}}function Ks(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ks(n,r),i&2048&&Th(r.alternate,r);break;case 24:Ks(n,r),i&2048&&Ih(r.alternate,r);break;default:Ks(n,r)}t=t.sibling}}var Zs=8192;function Ro(e,t,n){if(e.subtreeFlags&Zs)for(e=e.child;e!==null;)Tz(e,t,n),e=e.sibling}function Tz(e,t,n){switch(e.tag){case 26:Ro(e,t,n),e.flags&Zs&&e.memoizedState!==null&&UM(n,In,e.memoizedState,e.memoizedProps);break;case 5:Ro(e,t,n);break;case 3:case 4:var r=In;In=Zu(e.stateNode.containerInfo),Ro(e,t,n),In=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Zs,Zs=16777216,Ro(e,t,n),Zs=r):Ro(e,t,n));break;default:Ro(e,t,n)}}function Iz(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ds(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ut=r,Oz(r,e)}Iz(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nz(e),e=e.sibling}function Nz(e){switch(e.tag){case 0:case 11:case 15:Ds(e),e.flags&2048&&cr(9,e,e.return);break;case 3:Ds(e);break;case 12:Ds(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fu(e)):Ds(e);break;default:Ds(e)}}function fu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ut=r,Oz(r,e)}Iz(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:cr(8,t,t.return),fu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fu(t));break;default:fu(t)}e=e.sibling}}function Oz(e,t){for(;ut!==null;){var n=ut;switch(n.tag){case 0:case 11:case 15:cr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:xl(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ut=r;else e:for(n=e;ut!==null;){r=ut;var i=r.sibling,o=r.return;if($z(r),r===n){ut=null;break e}if(i!==null){i.return=o,ut=i;break e}ut=o}}}var eM={getCacheForType:function(e){var t=yt(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return yt(Qe).controller.signal}},tM=typeof WeakMap=="function"?WeakMap:Map,he=0,ke=null,fe=null,pe=0,_e=0,en=null,Ji=!1,ya=!1,Nh=!1,xi=0,Ge=0,ur=0,Gr=0,Oh=0,rn=0,ca=0,Qs=null,Ht=null,Ng=!1,id=0,Dz=0,Du=1/0,Ru=null,nr=null,it=0,ir=null,ua=null,hi=0,Og=0,Dg=null,Rz=null,Ws=0,Rg=null;function ln(){return he&2&&pe!==0?pe&-pe:ne.T!==null?Rh():HE()}function Mz(){if(rn===0)if(!(pe&536870912)||ge){var e=Lc;Lc<<=1,!(Lc&3932160)&&(Lc=262144),rn=e}else rn=536870912;return e=un.current,e!==null&&(e.flags|=32),rn}function Bt(e,t,n){(e===ke&&(_e===2||_e===9)||e.cancelPendingCommit!==null)&&(da(e,0),Yi(e,pe,rn,!1)),yl(e,n),(!(he&2)||e!==ke)&&(e===ke&&(!(he&2)&&(Gr|=n),Ge===4&&Yi(e,pe,rn,!1)),Fn(e))}function Uz(e,t,n){if(he&6)throw Error(k(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||vl(e,t),i=r?rM(e,t):Bp(e,t,!0),o=r;do{if(i===0){ya&&!r&&Yi(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!nM(n)){i=Bp(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var s=e;i=Qs;var c=s.current.memoizedState.isDehydrated;if(c&&(da(s,a).flags|=256),a=Bp(s,a,!1),a!==2){if(Nh&&!c){s.errorRecoveryDisabledLanes|=o,Gr|=o,i=4;break e}o=Ht,Ht=i,o!==null&&(Ht===null?Ht=o:Ht.push.apply(Ht,o))}i=a}if(o=!1,i!==2)continue}}if(i===1){da(e,0),Yi(e,t,0,!0);break}e:{switch(r=e,o=i,o){case 0:case 1:throw Error(k(345));case 4:if((t&4194048)!==t)break;case 6:Yi(r,t,rn,!Ji);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(k(329))}if((t&62914560)===t&&(i=id+300-on(),10<i)){if(Yi(r,t,rn,!Ji),Gu(r,0,!0)!==0)break e;hi=t,r.timeoutHandle=iC(tE.bind(null,r,n,Ht,Ru,Ng,t,rn,Gr,ca,Ji,o,"Throttled",-0,0),i);break e}tE(r,n,Ht,Ru,Ng,t,rn,Gr,ca,Ji,o,null,-0,0)}}break}while(1);Fn(e)}function tE(e,t,n,r,i,o,a,s,c,d,m,l,f,p){if(e.timeoutHandle=-1,l=t.subtreeFlags,l&8192||(l&16785408)===16785408){l={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fi},Tz(t,o,l);var h=(o&62914560)===o?id-on():(o&4194048)===o?Dz-on():0;if(h=jM(l,h),h!==null){hi=o,e.cancelPendingCommit=h(iE.bind(null,e,t,o,n,r,i,a,s,c,m,l,null,f,p)),Yi(e,o,a,!d);return}}iE(e,t,o,n,r,i,a,s,c)}function nM(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!cn(o(),i))return!1}catch(a){return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yi(e,t,n,r){t&=~Oh,t&=~Gr,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-sn(i),a=1<<o;r[o]=-1,i&=~a}n!==0&&ZE(e,n,t)}function rd(){return he&6?!0:(wl(0,!1),!1)}function Dh(){if(fe!==null){if(_e===0)var e=fe.return;else e=fe,mi=no=null,bh(e),ea=null,sl=0,e=fe;for(;e!==null;)hz(e.alternate,e),e=e.return;fe=null}}function da(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,SM(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),hi=0,Dh(),ke=e,fe=n=pi(e.current,null),pe=t,_e=0,en=null,Ji=!1,ya=vl(e,t),Nh=!1,ca=rn=Oh=Gr=ur=Ge=0,Ht=Qs=null,Ng=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-sn(r),o=1<<i;t|=e[i],r&=~o}return xi=t,Yu(),n}function jz(e,t){le=null,ne.H=cl,t===va||t===Qu?(t=O0(),_e=3):t===fh?(t=O0(),_e=4):_e=t===Ch?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,en=t,fe===null&&(Ge=1,Iu(e,_n(t,e.current)))}function Pz(){var e=un.current;return e===null?!0:(pe&4194048)===pe?wn===null:(pe&62914560)===pe||pe&536870912?e===wn:!1}function Lz(){var e=ne.H;return ne.H=cl,e===null?cl:e}function Zz(){var e=ne.A;return ne.A=eM,e}function Mu(){Ge=4,Ji||(pe&4194048)!==pe&&un.current!==null||(ya=!0),!(ur&134217727)&&!(Gr&134217727)||ke===null||Yi(ke,pe,rn,!1)}function Bp(e,t,n){var r=he;he|=2;var i=Lz(),o=Zz();(ke!==e||pe!==t)&&(Ru=null,da(e,t)),t=!1;var a=Ge;e:do try{if(_e!==0&&fe!==null){var s=fe,c=en;switch(_e){case 8:Dh(),a=6;break e;case 3:case 2:case 9:case 6:un.current===null&&(t=!0);var d=_e;if(_e=0,en=null,Jo(e,s,c,d),n&&ya){a=0;break e}break;default:d=_e,_e=0,en=null,Jo(e,s,c,d)}}iM(),a=Ge;break}catch(m){jz(e,m)}while(1);return t&&e.shellSuspendCounter++,mi=no=null,he=r,ne.H=i,ne.A=o,fe===null&&(ke=null,pe=0,Yu()),a}function iM(){for(;fe!==null;)qz(fe)}function rM(e,t){var n=he;he|=2;var r=Lz(),i=Zz();ke!==e||pe!==t?(Ru=null,Du=on()+500,da(e,t)):ya=vl(e,t);e:do try{if(_e!==0&&fe!==null){t=fe;var o=en;t:switch(_e){case 1:_e=0,en=null,Jo(e,t,o,1);break;case 2:case 9:if(N0(o)){_e=0,en=null,nE(t);break}t=function(){_e!==2&&_e!==9||ke!==e||(_e=7),Fn(e)},o.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:N0(o)?(_e=0,en=null,nE(t)):(_e=0,en=null,Jo(e,t,o,7));break;case 5:var a=null;switch(fe.tag){case 26:a=fe.memoizedState;case 5:case 27:var s=fe;if(a?lC(a):s.stateNode.complete){_e=0,en=null;var c=s.sibling;if(c!==null)fe=c;else{var d=s.return;d!==null?(fe=d,od(d)):fe=null}break t}}_e=0,en=null,Jo(e,t,o,5);break;case 6:_e=0,en=null,Jo(e,t,o,6);break;case 8:Dh(),Ge=6;break e;default:throw Error(k(462))}}oM();break}catch(m){jz(e,m)}while(1);return mi=no=null,ne.H=r,ne.A=i,he=n,fe!==null?0:(ke=null,pe=0,Yu(),Ge)}function oM(){for(;fe!==null&&!C4();)qz(fe)}function qz(e){var t=gz(e.alternate,e,xi);e.memoizedProps=e.pendingProps,t===null?od(e):fe=t}function nE(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=J0(n,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=J0(n,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:bh(t);default:hz(n,t),t=fe=hA(t,xi),t=gz(n,t,xi)}e.memoizedProps=e.pendingProps,t===null?od(e):fe=t}function Jo(e,t,n,r){mi=no=null,bh(t),ea=null,sl=0;var i=t.return;try{if(FR(e,i,t,n,pe)){Ge=1,Iu(e,_n(n,e.current)),fe=null;return}}catch(o){if(i!==null)throw fe=i,o;Ge=1,Iu(e,_n(n,e.current)),fe=null;return}t.flags&32768?(ge||r===1?e=!0:ya||pe&536870912?e=!1:(Ji=e=!0,(r===2||r===9||r===3||r===6)&&(r=un.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vz(t,e)):od(t)}function od(e){var t=e;do{if(t.flags&32768){Vz(t,Ji);return}e=t.return;var n=YR(t.alternate,t,xi);if(n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ge===0&&(Ge=5)}function Vz(e,t){do{var n=KR(e.alternate,e);if(n!==null){n.flags&=32767,fe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=n}while(e!==null);Ge=6,fe=null}function iE(e,t,n,r,i,o,a,s,c){e.cancelPendingCommit=null;do ad();while(it!==0);if(he&6)throw Error(k(327));if(t!==null){if(t===e.current)throw Error(k(177));if(o=t.lanes|t.childLanes,o|=oh,j4(e,n,o,a,s,c),e===ke&&(fe=ke=null,pe=0),ua=t,ir=e,hi=n,Og=o,Dg=i,Rz=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,cM(Su,function(){return Xz(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=ne.T,ne.T=null,i=ve.p,ve.p=2,a=he,he|=4;try{QR(e,t,n)}finally{he=a,ve.p=i,ne.T=r}}it=1,Hz(),Bz(),Gz()}}function Hz(){if(it===1){it=0;var e=ir,t=ua,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=ne.T,ne.T=null;var r=ve.p;ve.p=2;var i=he;he|=4;try{zz(t,e);var o=Pg,a=lA(e.containerInfo),s=o.focusedElem,c=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&sA(s.ownerDocument.documentElement,s)){if(c!==null&&rh(s)){var d=c.start,m=c.end;if(m===void 0&&(m=d),"selectionStart"in s)s.selectionStart=d,s.selectionEnd=Math.min(m,s.value.length);else{var l=s.ownerDocument||document,f=l&&l.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,y=Math.min(c.start,h),x=c.end===void 0?y:Math.min(c.end,h);!p.extend&&y>x&&(a=x,x=y,y=a);var v=E0(s,y),g=E0(s,x);if(v&&g&&(p.rangeCount!==1||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==g.node||p.focusOffset!==g.offset)){var b=l.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),y>x?(p.addRange(b),p.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),p.addRange(b))}}}}for(l=[],p=s;p=p.parentNode;)p.nodeType===1&&l.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<l.length;s++){var S=l[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Hu=!!jg,Pg=jg=null}finally{he=i,ve.p=r,ne.T=n}}e.current=t,it=2}}function Bz(){if(it===2){it=0;var e=ir,t=ua,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=ne.T,ne.T=null;var r=ve.p;ve.p=2;var i=he;he|=4;try{_z(e,t.alternate,t)}finally{he=i,ve.p=r,ne.T=n}}it=3}}function Gz(){if(it===4||it===3){it=0,k4();var e=ir,t=ua,n=hi,r=Rz;t.subtreeFlags&10256||t.flags&10256?it=5:(it=0,ua=ir=null,Fz(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(nr=null),Kg(n),t=t.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(hl,t,void 0,(t.current.flags&128)===128)}catch(c){}if(r!==null){t=ne.T,i=ve.p,ve.p=2,ne.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{ne.T=t,ve.p=i}}hi&3&&ad(),Fn(e),i=e.pendingLanes,n&261930&&i&42?e===Rg?Ws++:(Ws=0,Rg=e):Ws=0,wl(0,!1)}}function Fz(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xl(t)))}function ad(){return Hz(),Bz(),Gz(),Xz()}function Xz(){if(it!==5)return!1;var e=ir,t=Og;Og=0;var n=Kg(hi),r=ne.T,i=ve.p;try{ve.p=32>n?32:n,ne.T=null,n=Dg,Dg=null;var o=ir,a=hi;if(it=0,ua=ir=null,hi=0,he&6)throw Error(k(331));var s=he;if(he|=4,Nz(o.current),kz(o,o.current,a,n),he=s,wl(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(hl,o)}catch(c){}return!0}finally{ve.p=i,ne.T=r,Fz(e,t)}}function rE(e,t,n){t=_n(n,t),t=Cg(e.stateNode,t,2),e=tr(e,t,2),e!==null&&(yl(e,2),Fn(e))}function $e(e,t,n){if(e.tag===3)rE(e,e,n);else for(;t!==null;){if(t.tag===3){rE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(nr===null||!nr.has(r))){e=_n(n,e),n=cz(2),r=tr(t,n,2),r!==null&&(uz(n,r,t,e),yl(r,2),Fn(r));break}}t=t.return}}function Gp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new tM;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Nh=!0,i.add(n),e=aM.bind(null,e,t,n),t.then(e,e))}function aM(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ke===e&&(pe&n)===n&&(Ge===4||Ge===3&&(pe&62914560)===pe&&300>on()-id?!(he&2)&&da(e,0):Oh|=n,ca===pe&&(ca=0)),Fn(e)}function Jz(e,t){t===0&&(t=LE()),e=to(e,t),e!==null&&(yl(e,t),Fn(e))}function sM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jz(e,n)}function lM(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(k(314))}r!==null&&r.delete(t),Jz(e,n)}function cM(e,t){return Jg(e,t)}var Uu=null,Uo=null,Mg=!1,ju=!1,Fp=!1,Ki=0;function Fn(e){e!==Uo&&e.next===null&&(Uo===null?Uu=Uo=e:Uo=Uo.next=e),ju=!0,Mg||(Mg=!0,dM())}function wl(e,t){if(!Fp&&ju){Fp=!0;do for(var n=!1,r=Uu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-sn(42|e)+1)-1,o&=i&~(a&~s),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,oE(r,o))}else o=pe,o=Gu(r,r===ke?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(o&3)||vl(r,o)||(n=!0,oE(r,o));r=r.next}while(n);Fp=!1}}function uM(){Yz()}function Yz(){ju=Mg=!1;var e=0;Ki!==0&&bM()&&(e=Ki);for(var t=on(),n=null,r=Uu;r!==null;){var i=r.next,o=Kz(r,t);o===0?(r.next=null,n===null?Uu=i:n.next=i,i===null&&(Uo=n)):(n=r,(e!==0||o&3)&&(ju=!0)),r=i}it!==0&&it!==5||wl(e,!1),Ki!==0&&(Ki=0)}function Kz(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-sn(o),s=1<<a,c=i[a];c===-1?(!(s&n)||s&r)&&(i[a]=U4(s,t)):c<=t&&(e.expiredLanes|=s),o&=~s}if(t=ke,n=pe,n=Gu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&_p(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||vl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&_p(r),Kg(n)){case 2:case 8:n=jE;break;case 32:n=Su;break;case 268435456:n=PE;break;default:n=Su}return r=Qz.bind(null,e),n=Jg(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&_p(r),e.callbackPriority=2,e.callbackNode=null,2}function Qz(e,t){if(it!==0&&it!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ad()&&e.callbackNode!==n)return null;var r=pe;return r=Gu(e,e===ke?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Uz(e,r,t),Kz(e,on()),e.callbackNode!=null&&e.callbackNode===n?Qz.bind(null,e):null)}function oE(e,t){if(ad())return null;Uz(e,t,!0)}function dM(){xM(function(){he&6?Jg(UE,uM):Yz()})}function Rh(){if(Ki===0){var e=aa;e===0&&(e=Pc,Pc<<=1,!(Pc&261888)&&(Pc=256)),Ki=e}return Ki}function aE(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:iu(""+e)}function sE(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function fM(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var o=aE((i[Gt]||null).action),a=r.submitter;a&&(t=(t=a[Gt]||null)?aE(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var s=new Fu("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ki!==0){var c=a?sE(i,a):new FormData(i);Ag(n,{pending:!0,data:c,method:i.method,action:o},null,c)}}else typeof o=="function"&&(s.preventDefault(),c=a?sE(i,a):new FormData(i),Ag(n,{pending:!0,data:c,method:i.method,action:o},o,c))},currentTarget:i}]})}}for(Kc=0;Kc<pg.length;Kc++)Qc=pg[Kc],lE=Qc.toLowerCase(),cE=Qc[0].toUpperCase()+Qc.slice(1),Nn(lE,"on"+cE);var Qc,lE,cE,Kc;Nn(uA,"onAnimationEnd");Nn(dA,"onAnimationIteration");Nn(fA,"onAnimationStart");Nn("dblclick","onDoubleClick");Nn("focusin","onFocus");Nn("focusout","onBlur");Nn(TR,"onTransitionRun");Nn(IR,"onTransitionStart");Nn(NR,"onTransitionCancel");Nn(mA,"onTransitionEnd");ra("onMouseEnter",["mouseout","mouseover"]);ra("onMouseLeave",["mouseout","mouseover"]);ra("onPointerEnter",["pointerout","pointerover"]);ra("onPointerLeave",["pointerout","pointerover"]);Qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ul="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ul));function Wz(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,d=s.currentTarget;if(s=s.listener,c!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=d;try{o(i)}catch(m){_u(m)}i.currentTarget=null,o=c}else for(a=0;a<r.length;a++){if(s=r[a],c=s.instance,d=s.currentTarget,s=s.listener,c!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=d;try{o(i)}catch(m){_u(m)}i.currentTarget=null,o=c}}}}function de(e,t){var n=t[ag];n===void 0&&(n=t[ag]=new Set);var r=e+"__bubble";n.has(r)||(eC(t,e,2,!1),n.add(r))}function Xp(e,t,n){var r=0;t&&(r|=4),eC(n,e,r,t)}var Wc="_reactListening"+Math.random().toString(36).slice(2);function Mh(e){if(!e[Wc]){e[Wc]=!0,BE.forEach(function(n){n!=="selectionchange"&&(mM.has(n)||Xp(n,!1,e),Xp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wc]||(t[Wc]=!0,Xp("selectionchange",!1,t))}}function eC(e,t,n,r){switch(mC(t)){case 2:var i=ZM;break;case 8:i=qM;break;default:i=Lh}n=i.bind(null,t,n,e),i=void 0,!dg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Jp(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&a.stateNode.containerInfo===i)return;a=a.return}for(;s!==null;){if(a=Lo(s),a===null)return;if(c=a.tag,c===5||c===6||c===26||c===27){r=o=a;continue e}s=s.parentNode}}r=r.return}WE(function(){var d=o,m=eh(n),l=[];e:{var f=pA.get(e);if(f!==void 0){var p=Fu,h=e;switch(e){case"keypress":if(ou(n)===0)break e;case"keydown":case"keyup":p=lR;break;case"focusin":h="focus",p=zp;break;case"focusout":h="blur",p=zp;break;case"beforeblur":case"afterblur":p=zp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=h0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Y4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=dR;break;case uA:case dA:case fA:p=W4;break;case mA:p=mR;break;case"scroll":case"scrollend":p=X4;break;case"wheel":p=gR;break;case"copy":case"cut":case"paste":p=tR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=y0;break;case"toggle":case"beforetoggle":p=vR}var y=(t&4)!==0,x=!y&&(e==="scroll"||e==="scrollend"),v=y?f!==null?f+"Capture":null:f;y=[];for(var g=d,b;g!==null;){var S=g;if(b=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||b===null||v===null||(S=nl(g,v),S!=null&&y.push(dl(g,S,b))),x)break;g=g.return}0<y.length&&(f=new p(f,h,null,n,m),l.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==ug&&(h=n.relatedTarget||n.fromElement)&&(Lo(h)||h[pa]))break e;if((p||f)&&(f=m.window===m?m:(f=m.ownerDocument)?f.defaultView||f.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=d,h=h?Lo(h):null,h!==null&&(x=gl(h),y=h.tag,h!==x||y!==5&&y!==27&&y!==6)&&(h=null)):(p=null,h=d),p!==h)){if(y=h0,S="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=y0,S="onPointerLeave",v="onPointerEnter",g="pointer"),x=p==null?f:Ps(p),b=h==null?f:Ps(h),f=new y(S,g+"leave",p,n,m),f.target=x,f.relatedTarget=b,S=null,Lo(m)===d&&(y=new y(v,g+"enter",h,n,m),y.target=b,y.relatedTarget=x,S=y),x=S,p&&h)t:{for(y=pM,v=p,g=h,b=0,S=v;S;S=y(S))b++;S=0;for(var $=g;$;$=y($))S++;for(;0<b-S;)v=y(v),b--;for(;0<S-b;)g=y(g),S--;for(;b--;){if(v===g||g!==null&&v===g.alternate){y=v;break t}v=y(v),g=y(g)}y=null}else y=null;p!==null&&uE(l,f,p,y,!1),h!==null&&x!==null&&uE(l,x,h,y,!0)}}e:{if(f=d?Ps(d):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var M=_0;else if(x0(f))if(oA)M=zR;else{M=ER;var z=wR}else p=f.nodeName,!p||p.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?d&&Wg(d.elementType)&&(M=_0):M=AR;if(M&&(M=M(e,d))){rA(l,M,n,m);break e}z&&z(e,f,d),e==="focusout"&&d&&f.type==="number"&&d.memoizedProps.value!=null&&cg(f,"number",f.value)}switch(z=d?Ps(d):window,e){case"focusin":(x0(z)||z.contentEditable==="true")&&(Vo=z,fg=d,Hs=null);break;case"focusout":Hs=fg=Vo=null;break;case"mousedown":mg=!0;break;case"contextmenu":case"mouseup":case"dragend":mg=!1,A0(l,n,m);break;case"selectionchange":if(kR)break;case"keydown":case"keyup":A0(l,n,m)}var q;if(ih)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else qo?nA(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(tA&&n.locale!=="ko"&&(qo||A!=="onCompositionStart"?A==="onCompositionEnd"&&qo&&(q=eA()):(Xi=m,th="value"in Xi?Xi.value:Xi.textContent,qo=!0)),z=Pu(d,A),0<z.length&&(A=new v0(A,e,null,n,m),l.push({event:A,listeners:z}),q?A.data=q:(q=iA(n),q!==null&&(A.data=q)))),(q=bR?SR(e,n):xR(e,n))&&(A=Pu(d,"onBeforeInput"),0<A.length&&(z=new v0("onBeforeInput","beforeinput",null,n,m),l.push({event:z,listeners:A}),z.data=q)),fM(l,e,d,n,m)}Wz(l,t)})}function dl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pu(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=nl(e,n),i!=null&&r.unshift(dl(e,i,o)),i=nl(e,t),i!=null&&r.push(dl(e,i,o))),e.tag===3)return r;e=e.return}return[]}function pM(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function uE(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,c=s.alternate,d=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||d===null||(c=d,i?(d=nl(n,o),d!=null&&a.unshift(dl(n,d,c))):i||(d=nl(n,o),d!=null&&a.push(dl(n,d,c)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var gM=/\r\n?/g,hM=/\u0000|\uFFFD/g;function dE(e){return(typeof e=="string"?e:""+e).replace(gM,`
|
|
`).replace(hM,"")}function tC(e,t){return t=dE(t),dE(e)===t}function Ee(e,t,n,r,i,o){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||oa(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&oa(e,""+r);break;case"className":qc(e,"class",r);break;case"tabIndex":qc(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":qc(e,n,r);break;case"style":QE(e,r,o);break;case"data":if(t!=="object"){qc(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=iu(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Ee(e,t,"name",i.name,i,null),Ee(e,t,"formEncType",i.formEncType,i,null),Ee(e,t,"formMethod",i.formMethod,i,null),Ee(e,t,"formTarget",i.formTarget,i,null)):(Ee(e,t,"encType",i.encType,i,null),Ee(e,t,"method",i.method,i,null),Ee(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=iu(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=fi);break;case"onScroll":r!=null&&de("scroll",e);break;case"onScrollEnd":r!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(k(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(k(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=iu(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":de("beforetoggle",e),de("toggle",e),nu(e,"popover",r);break;case"xlinkActuate":ri(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ri(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ri(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ri(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ri(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ri(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ri(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ri(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ri(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":nu(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=G4.get(n)||n,nu(e,n,r))}}function Ug(e,t,n,r,i,o){switch(n){case"style":QE(e,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(k(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(k(60));e.innerHTML=n}}break;case"children":typeof r=="string"?oa(e,r):(typeof r=="number"||typeof r=="bigint")&&oa(e,""+r);break;case"onScroll":r!=null&&de("scroll",e);break;case"onScrollEnd":r!=null&&de("scrollend",e);break;case"onClick":r!=null&&(e.onclick=fi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!GE.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[Gt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):nu(e,n,r)}}}function bt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(k(137,t));default:Ee(e,t,o,a,n,null)}}i&&Ee(e,t,"srcSet",n.srcSet,n,null),r&&Ee(e,t,"src",n.src,n,null);return;case"input":de("invalid",e);var s=o=a=i=null,c=null,d=null;for(r in n)if(n.hasOwnProperty(r)){var m=n[r];if(m!=null)switch(r){case"name":i=m;break;case"type":a=m;break;case"checked":c=m;break;case"defaultChecked":d=m;break;case"value":o=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(k(137,t));break;default:Ee(e,t,r,m,n,null)}}JE(e,o,s,c,d,a,i,!1);return;case"select":de("invalid",e),r=a=o=null;for(i in n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case"value":o=s;break;case"defaultValue":a=s;break;case"multiple":r=s;default:Ee(e,t,i,s,n,null)}t=o,n=a,e.multiple=!!r,t!=null?Ko(e,!!r,t,!1):n!=null&&Ko(e,!!r,n,!0);return;case"textarea":de("invalid",e),o=i=r=null;for(a in n)if(n.hasOwnProperty(a)&&(s=n[a],s!=null))switch(a){case"value":r=s;break;case"defaultValue":i=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(k(91));break;default:Ee(e,t,a,s,n,null)}KE(e,r,i,o);return;case"option":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ee(e,t,c,r,n,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(r=0;r<ul.length;r++)de(ul[r],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(d in n)if(n.hasOwnProperty(d)&&(r=n[d],r!=null))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(k(137,t));default:Ee(e,t,d,r,n,null)}return;default:if(Wg(t)){for(m in n)n.hasOwnProperty(m)&&(r=n[m],r!==void 0&&Ug(e,t,m,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&Ee(e,t,s,r,n,null))}function vM(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,s=null,c=null,d=null,m=null;for(p in n){var l=n[p];if(n.hasOwnProperty(p)&&l!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":c=l;default:r.hasOwnProperty(p)||Ee(e,t,p,null,r,l)}}for(var f in r){var p=r[f];if(l=n[f],r.hasOwnProperty(f)&&(p!=null||l!=null))switch(f){case"type":o=p;break;case"name":i=p;break;case"checked":d=p;break;case"defaultChecked":m=p;break;case"value":a=p;break;case"defaultValue":s=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(k(137,t));break;default:p!==l&&Ee(e,t,f,p,r,l)}}lg(e,a,s,c,d,m,o,i);return;case"select":p=a=s=f=null;for(o in n)if(c=n[o],n.hasOwnProperty(o)&&c!=null)switch(o){case"value":break;case"multiple":p=c;default:r.hasOwnProperty(o)||Ee(e,t,o,null,r,c)}for(i in r)if(o=r[i],c=n[i],r.hasOwnProperty(i)&&(o!=null||c!=null))switch(i){case"value":f=o;break;case"defaultValue":s=o;break;case"multiple":a=o;default:o!==c&&Ee(e,t,i,o,r,c)}t=s,n=a,r=p,f!=null?Ko(e,!!n,f,!1):!!r!=!!n&&(t!=null?Ko(e,!!n,t,!0):Ko(e,!!n,n?[]:"",!1));return;case"textarea":p=f=null;for(s in n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Ee(e,t,s,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case"value":f=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(k(91));break;default:i!==o&&Ee(e,t,a,i,r,o)}YE(e,f,p);return;case"option":for(var h in n)if(f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h))switch(h){case"selected":e.selected=!1;break;default:Ee(e,t,h,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ee(e,t,c,f,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in n)f=n[y],n.hasOwnProperty(y)&&f!=null&&!r.hasOwnProperty(y)&&Ee(e,t,y,null,r,f);for(d in r)if(f=r[d],p=n[d],r.hasOwnProperty(d)&&f!==p&&(f!=null||p!=null))switch(d){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(k(137,t));break;default:Ee(e,t,d,f,r,p)}return;default:if(Wg(t)){for(var x in n)f=n[x],n.hasOwnProperty(x)&&f!==void 0&&!r.hasOwnProperty(x)&&Ug(e,t,x,void 0,r,f);for(m in r)f=r[m],p=n[m],!r.hasOwnProperty(m)||f===p||f===void 0&&p===void 0||Ug(e,t,m,f,r,p);return}}for(var v in n)f=n[v],n.hasOwnProperty(v)&&f!=null&&!r.hasOwnProperty(v)&&Ee(e,t,v,null,r,f);for(l in r)f=r[l],p=n[l],!r.hasOwnProperty(l)||f===p||f==null&&p==null||Ee(e,t,l,f,r,p)}function fE(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yM(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,s=i.duration;if(o&&s&&fE(a)){for(a=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],d=c.startTime;if(d>s)break;var m=c.transferSize,l=c.initiatorType;m&&fE(l)&&(c=c.responseEnd,a+=m*(c<s?1:(s-d)/(c-d)))}if(--r,t+=8*(o+a)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var jg=null,Pg=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function mE(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function nC(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Lg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yp=null;function bM(){var e=window.event;return e&&e.type==="popstate"?e===Yp?!1:(Yp=e,!0):(Yp=null,!1)}var iC=typeof setTimeout=="function"?setTimeout:void 0,SM=typeof clearTimeout=="function"?clearTimeout:void 0,pE=typeof Promise=="function"?Promise:void 0,xM=typeof queueMicrotask=="function"?queueMicrotask:typeof pE!="undefined"?function(e){return pE.resolve(null).then(e).catch(_M)}:iC;function _M(e){setTimeout(function(){throw e})}function fr(e){return e==="head"}function gE(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(i),ma(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")el(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,el(n);for(var o=n.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[bl]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&el(e.ownerDocument.body);n=i}while(n);ma(t)}function hE(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function Zg(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Zg(n),Qg(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function $M(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[bl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=En(e.nextSibling),e===null)break}return null}function wM(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=En(e.nextSibling),e===null))return null;return e}function rC(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=En(e.nextSibling),e===null))return null;return e}function qg(e){return e.data==="$?"||e.data==="$~"}function Vg(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function EM(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function En(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Hg=null;function vE(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return En(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function yE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function oC(e,t,n){switch(t=Lu(n),e){case"html":if(e=t.documentElement,!e)throw Error(k(452));return e;case"head":if(e=t.head,!e)throw Error(k(453));return e;case"body":if(e=t.body,!e)throw Error(k(454));return e;default:throw Error(k(451))}}function el(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qg(e)}var An=new Map,bE=new Set;function Zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _i=ve.d;ve.d={f:AM,r:zM,D:CM,C:kM,L:TM,m:IM,X:OM,S:NM,M:DM};function AM(){var e=_i.f(),t=rd();return e||t}function zM(e){var t=ga(e);t!==null&&t.tag===5&&t.type==="form"?QA(t):_i.r(e)}var ba=typeof document=="undefined"?null:document;function aC(e,t,n){var r=ba;if(r&&typeof t=="string"&&t){var i=xn(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),bE.has(i)||(bE.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),bt(t,"link",e),dt(t),r.head.appendChild(t)))}}function CM(e){_i.D(e),aC("dns-prefetch",e,null)}function kM(e,t){_i.C(e,t),aC("preconnect",e,t)}function TM(e,t,n){_i.L(e,t,n);var r=ba;if(r&&e&&t){var i='link[rel="preload"][as="'+xn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+xn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+xn(n.imageSizes)+'"]')):i+='[href="'+xn(e)+'"]';var o=i;switch(t){case"style":o=fa(e);break;case"script":o=Sa(e)}An.has(o)||(e=je({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),An.set(o,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(El(o))||t==="script"&&r.querySelector(Al(o))||(t=r.createElement("link"),bt(t,"link",e),dt(t),r.head.appendChild(t)))}}function IM(e,t){_i.m(e,t);var n=ba;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+xn(r)+'"][href="'+xn(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Sa(e)}if(!An.has(o)&&(e=je({rel:"modulepreload",href:e},t),An.set(o,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Al(o)))return}r=n.createElement("link"),bt(r,"link",e),dt(r),n.head.appendChild(r)}}}function NM(e,t,n){_i.S(e,t,n);var r=ba;if(r&&e){var i=Yo(r).hoistableStyles,o=fa(e);t=t||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(El(o)))s.loading=5;else{e=je({rel:"stylesheet",href:e,"data-precedence":t},n),(n=An.get(o))&&Uh(e,n);var c=a=r.createElement("link");dt(c),bt(c,"link",e),c._p=new Promise(function(d,m){c.onload=d,c.onerror=m}),c.addEventListener("load",function(){s.loading|=1}),c.addEventListener("error",function(){s.loading|=2}),s.loading|=4,mu(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}}function OM(e,t){_i.X(e,t);var n=ba;if(n&&e){var r=Yo(n).hoistableScripts,i=Sa(e),o=r.get(i);o||(o=n.querySelector(Al(i)),o||(e=je({src:e,async:!0},t),(t=An.get(i))&&jh(e,t),o=n.createElement("script"),dt(o),bt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function DM(e,t){_i.M(e,t);var n=ba;if(n&&e){var r=Yo(n).hoistableScripts,i=Sa(e),o=r.get(i);o||(o=n.querySelector(Al(i)),o||(e=je({src:e,async:!0,type:"module"},t),(t=An.get(i))&&jh(e,t),o=n.createElement("script"),dt(o),bt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function SE(e,t,n,r){var i=(i=Qi.current)?Zu(i):null;if(!i)throw Error(k(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=fa(n.href),n=Yo(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=fa(n.href);var o=Yo(i).hoistableStyles,a=o.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=i.querySelector(El(e)))&&!o._p&&(a.instance=o,a.state.loading=5),An.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},An.set(e,n),o||RM(i,e,n,a.state))),t&&r===null)throw Error(k(528,""));return a}if(t&&r!==null)throw Error(k(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sa(n),n=Yo(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(k(444,e))}}function fa(e){return'href="'+xn(e)+'"'}function El(e){return'link[rel="stylesheet"]['+e+"]"}function sC(e){return je({},e,{"data-precedence":e.precedence,precedence:null})}function RM(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),bt(t,"link",n),dt(t),e.head.appendChild(t))}function Sa(e){return'[src="'+xn(e)+'"]'}function Al(e){return"script[async]"+e}function xE(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+xn(n.href)+'"]');if(r)return t.instance=r,dt(r),r;var i=je({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),dt(r),bt(r,"style",i),mu(r,n.precedence,e),t.instance=r;case"stylesheet":i=fa(n.href);var o=e.querySelector(El(i));if(o)return t.state.loading|=4,t.instance=o,dt(o),o;r=sC(n),(i=An.get(i))&&Uh(r,i),o=(e.ownerDocument||e).createElement("link"),dt(o);var a=o;return a._p=new Promise(function(s,c){a.onload=s,a.onerror=c}),bt(o,"link",r),t.state.loading|=4,mu(o,n.precedence,e),t.instance=o;case"script":return o=Sa(n.src),(i=e.querySelector(Al(o)))?(t.instance=i,dt(i),i):(r=n,(i=An.get(o))&&(r=je({},n),jh(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),dt(i),bt(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(k(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,mu(r,n.precedence,e));return t.instance}function mu(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Uh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pu=null;function _E(e,t,n){if(pu===null){var r=new Map,i=pu=new Map;i.set(n,r)}else i=pu,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[bl]||o[ht]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function $E(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function MM(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lC(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function UM(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var i=fa(r.href),o=t.querySelector(El(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,dt(o);return}o=t.ownerDocument||t,r=sC(r),(i=An.get(i))&&Uh(r,i),o=o.createElement("link"),dt(o);var a=o;a._p=new Promise(function(s,c){a.onload=s,a.onerror=c}),bt(o,"link",r),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=qu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Kp=0;function jM(e,t){return e.stylesheets&&e.count===0&&gu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&gu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Kp===0&&(Kp=62500*yM());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&gu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Kp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function qu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vu=null;function gu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vu=new Map,t.forEach(PM,e),Vu=null,qu.call(e))}function PM(e,t){if(!(t.state.loading&4)){var n=Vu.get(e);if(n)var r=n.get(null);else{n=new Map,Vu.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}i=t.instance,a=i.getAttribute("data-precedence"),o=n.get(a)||r,o===r&&n.set(null,i),n.set(a,i),this.count++,r=qu.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var fl={$$typeof:di,Provider:null,Consumer:null,_currentValue:qr,_currentValue2:qr,_threadCount:0};function LM(e,t,n,r,i,o,a,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$p(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$p(0),this.hiddenUpdates=$p(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function cC(e,t,n,r,i,o,a,s,c,d,m,l){return e=new LM(e,t,n,a,c,d,m,l,s),t=1,o===!0&&(t|=24),o=nn(3,null,null,t),e.current=o,o.stateNode=e,t=uh(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},mh(o),e}function uC(e){return e?(e=Go,e):Go}function dC(e,t,n,r,i,o){i=uC(i),r.context===null?r.context=i:r.pendingContext=i,r=er(t),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=tr(e,r,t),n!==null&&(Bt(n,e,t),Gs(n,e,t))}function wE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ph(e,t){wE(e,t),(e=e.alternate)&&wE(e,t)}function fC(e){if(e.tag===13||e.tag===31){var t=to(e,67108864);t!==null&&Bt(t,e,67108864),Ph(e,67108864)}}function EE(e){if(e.tag===13||e.tag===31){var t=ln();t=Yg(t);var n=to(e,t);n!==null&&Bt(n,e,t),Ph(e,t)}}var Hu=!0;function ZM(e,t,n,r){var i=ne.T;ne.T=null;var o=ve.p;try{ve.p=2,Lh(e,t,n,r)}finally{ve.p=o,ne.T=i}}function qM(e,t,n,r){var i=ne.T;ne.T=null;var o=ve.p;try{ve.p=8,Lh(e,t,n,r)}finally{ve.p=o,ne.T=i}}function Lh(e,t,n,r){if(Hu){var i=Bg(r);if(i===null)Jp(e,t,r,Bu,n),AE(e,r);else if(HM(i,e,t,n,r))r.stopPropagation();else if(AE(e,r),t&4&&-1<VM.indexOf(e)){for(;i!==null;){var o=ga(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=Pr(o.pendingLanes);if(a!==0){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var c=1<<31-sn(a);s.entanglements[1]|=c,a&=~c}Fn(o),!(he&6)&&(Du=on()+500,wl(0,!1))}}break;case 31:case 13:s=to(o,2),s!==null&&Bt(s,o,2),rd(),Ph(o,2)}if(o=Bg(r),o===null&&Jp(e,t,r,Bu,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Jp(e,t,r,null,n)}}function Bg(e){return e=eh(e),Zh(e)}var Bu=null;function Zh(e){if(Bu=null,e=Lo(e),e!==null){var t=gl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=NE(t),e!==null)return e;e=null}else if(n===31){if(e=OE(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Bu=e,null}function mC(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(T4()){case UE:return 2;case jE:return 8;case Su:case I4:return 32;case PE:return 268435456;default:return 32}default:return 32}}var Gg=!1,rr=null,or=null,ar=null,ml=new Map,pl=new Map,Gi=[],VM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function AE(e,t){switch(e){case"focusin":case"focusout":rr=null;break;case"dragenter":case"dragleave":or=null;break;case"mouseover":case"mouseout":ar=null;break;case"pointerover":case"pointerout":ml.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pl.delete(t.pointerId)}}function Rs(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ga(t),t!==null&&fC(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function HM(e,t,n,r,i){switch(t){case"focusin":return rr=Rs(rr,e,t,n,r,i),!0;case"dragenter":return or=Rs(or,e,t,n,r,i),!0;case"mouseover":return ar=Rs(ar,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ml.set(o,Rs(ml.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,pl.set(o,Rs(pl.get(o)||null,e,t,n,r,i)),!0}return!1}function pC(e){var t=Lo(e.target);if(t!==null){var n=gl(t);if(n!==null){if(t=n.tag,t===13){if(t=NE(n),t!==null){e.blockedOn=t,c0(e.priority,function(){EE(n)});return}}else if(t===31){if(t=OE(n),t!==null){e.blockedOn=t,c0(e.priority,function(){EE(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bg(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ug=r,n.target.dispatchEvent(r),ug=null}else return t=ga(n),t!==null&&fC(t),e.blockedOn=n,!1;t.shift()}return!0}function zE(e,t,n){hu(e)&&n.delete(t)}function BM(){Gg=!1,rr!==null&&hu(rr)&&(rr=null),or!==null&&hu(or)&&(or=null),ar!==null&&hu(ar)&&(ar=null),ml.forEach(zE),pl.forEach(zE)}function eu(e,t){e.blockedOn===t&&(e.blockedOn=null,Gg||(Gg=!0,rt.unstable_scheduleCallback(rt.unstable_NormalPriority,BM)))}var tu=null;function CE(e){tu!==e&&(tu=e,rt.unstable_scheduleCallback(rt.unstable_NormalPriority,function(){tu===e&&(tu=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(Zh(r||n)===null)continue;break}var o=ga(n);o!==null&&(e.splice(t,3),t-=3,Ag(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function ma(e){function t(c){return eu(c,e)}rr!==null&&eu(rr,e),or!==null&&eu(or,e),ar!==null&&eu(ar,e),ml.forEach(t),pl.forEach(t);for(var n=0;n<Gi.length;n++){var r=Gi[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Gi.length&&(n=Gi[0],n.blockedOn===null);)pC(n),n.blockedOn===null&&Gi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[Gt]||null;if(typeof o=="function")a||CE(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[Gt]||null)s=a.formAction;else if(Zh(i)!==null)continue}else s=a.action;typeof s=="function"?n[r+1]=s:(n.splice(r,3),r-=3),CE(n)}}}function gC(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return i=a})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function qh(e){this._internalRoot=e}sd.prototype.render=qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));var n=t.current,r=ln();dC(n,r,e,t,null,null)};sd.prototype.unmount=qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dC(e.current,2,null,e,null,null),rd(),t[pa]=null}};function sd(e){this._internalRoot=e}sd.prototype.unstable_scheduleHydration=function(e){if(e){var t=HE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gi.length&&t!==0&&t<Gi[n].priority;n++);Gi.splice(n,0,e),n===0&&pC(e)}};var kE=TE.version;if(kE!=="19.2.3")throw Error(k(527,kE,"19.2.3"));ve.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=$4(t),e=e!==null?DE(e):null,e=e===null?null:e.stateNode,e};var GM={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:ne,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&(Ms=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ms.isDisabled&&Ms.supportsFiber))try{hl=Ms.inject(GM),an=Ms}catch(e){}var Ms;ld.createRoot=function(e,t){if(!IE(e))throw Error(k(299));var n=!1,r="",i=az,o=sz,a=lz;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=cC(e,1,!1,null,null,n,r,null,i,o,a,gC),e[pa]=t.current,Mh(e),new qh(t)};ld.hydrateRoot=function(e,t,n){if(!IE(e))throw Error(k(299));var r=!1,i="",o=az,a=sz,s=lz,c=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=cC(e,1,!0,t,n!=null?n:null,r,i,c,o,a,s,gC),t.context=uC(null),n=t.current,r=ln(),r=Yg(r),i=er(r),i.callback=null,tr(n,i,r),n=r,t.current.lanes=n,yl(t,n),Fn(t),e[pa]=t.current,Mh(e),new sd(t)};ld.version="19.2.3"});var Vh=Q((oZ,yC)=>{"use strict";function vC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vC)}catch(e){console.error(e)}}vC(),yC.exports=hC()});var SC=Q(cd=>{"use strict";var FM=Symbol.for("react.transitional.element"),XM=Symbol.for("react.fragment");function bC(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:FM,type:e,key:r,ref:t!==void 0?t:null,props:n}}cd.Fragment=XM;cd.jsx=bC;cd.jsxs=bC});var me=Q((sZ,xC)=>{"use strict";xC.exports=SC()});var aL={};jn(aL,{default:()=>vc});module.exports=aN(aL);var pt=require("obsidian"),ei=J(Tw());var xt=require("obsidian"),Y6=J(Ne()),Rk=J(Vh());var JM=J(Ne()),_C=require("obsidian"),$C=J(me()),{useRef:YM,useEffect:KM,useImperativeHandle:QM,forwardRef:WM}=JM,zl=WM(function({iconName:t,tooltip:n,onClick:r},i){let o=YM(null);return QM(i,()=>o.current,[]),KM(()=>{o.current&&(0,_C.setIcon)(o.current,t)},[t]),(0,$C.jsx)("button",{ref:o,title:n,onClick:r,className:"agent-client-header-button"})});var On=J(me());function wC({agentLabel:e,isUpdateAvailable:t,hasHistoryCapability:n=!1,onNewChat:r,onExportChat:i,onToggleMenu:o,onOpenHistory:a,menuButtonRef:s}){return(0,On.jsxs)("div",{className:"agent-client-chat-view-header",children:[(0,On.jsx)("div",{className:"agent-client-chat-view-header-main",children:(0,On.jsx)("h3",{className:"agent-client-chat-view-header-title",children:e})}),t&&(0,On.jsx)("p",{className:"agent-client-chat-view-header-update",children:"Update available!"}),(0,On.jsxs)("div",{className:"agent-client-chat-view-header-actions",children:[(0,On.jsx)(zl,{iconName:"plus",tooltip:"New chat",onClick:r}),a&&(0,On.jsx)(zl,{iconName:"history",tooltip:"Session history",onClick:a}),(0,On.jsx)(zl,{iconName:"save",tooltip:"Export chat to Markdown",onClick:i}),(0,On.jsx)(zl,{ref:s,iconName:"more-vertical",tooltip:"More",onClick:o})]})]})}var x6=J(Ne());var e6=J(Ne()),ud=require("obsidian"),EC=J(me()),{useRef:t6,useEffect:n6}=e6;function dd({text:e,plugin:t}){let n=t6(null);return n6(()=>{var a;let r=n.current;if(!r)return;(a=r.empty)==null||a.call(r),r.classList.add("markdown-rendered");let i=new ud.Component;i.load(),ud.MarkdownRenderer.render(t.app,e,r,"",i);let o=s=>{let d=s.target.closest("a.internal-link");if(d){s.preventDefault();let m=d.getAttribute("data-href");m&&t.app.workspace.openLinkText(m,"")}};return r.addEventListener("click",o),()=>{r.removeEventListener("click",o),i.unload()}},[e,t]),(0,EC.jsx)("div",{ref:n,className:"agent-client-markdown-text-renderer"})}var i6=J(Ne());var io=J(me()),{useState:r6}=i6;function AC({text:e,plugin:t}){let[n,r]=r6(!1),i=t.settings.displaySettings.showEmojis;return(0,io.jsxs)("div",{className:"agent-client-collapsible-thought",onClick:()=>r(!n),children:[(0,io.jsxs)("div",{className:"agent-client-collapsible-thought-header",children:[i&&"\u{1F4A1}","Thinking",(0,io.jsx)("span",{className:"agent-client-collapsible-thought-icon",children:n?"\u25BC":"\u25B6"})]}),n&&(0,io.jsx)("div",{className:"agent-client-collapsible-thought-content",children:(0,io.jsx)(dd,{text:e,plugin:t})})]})}var o6=J(Ne());var Pe=class{constructor(t){this.plugin=t}log(...t){this.plugin.settings.debugMode&&console.debug(...t)}error(...t){this.plugin.settings.debugMode&&console.error(...t)}warn(...t){this.plugin.settings.debugMode&&console.warn(...t)}info(...t){this.plugin.settings.debugMode&&console.debug(...t)}};var $i=J(me()),{useState:fd,useRef:a6,useEffect:zC,useMemo:s6}=o6;function md({terminalId:e,acpClient:t,plugin:n}){let r=s6(()=>new Pe(n),[n]),[i,o]=fd(""),[a,s]=fd(null),[c,d]=fd(!0),[m,l]=fd(!1),f=a6(null);r.log(`[TerminalRenderer] Component rendered for terminal ${e}, acpClient: ${!!t}`),zC(()=>{if(r.log(`[TerminalRenderer] useEffect triggered for ${e}, acpClient: ${!!t}`),!e||!t)return;let h=async()=>{var y,x;try{let v=await t.terminalOutput({terminalId:e,sessionId:""});r.log(`[TerminalRenderer] Poll result for ${e}:`,v),o(v.output),v.exitStatus&&(s({exitCode:(y=v.exitStatus.exitCode)!=null?y:null,signal:(x=v.exitStatus.signal)!=null?x:null}),d(!1),f.current&&(window.clearInterval(f.current),f.current=null))}catch(v){let g=v instanceof Error?v.message:String(v);r.log(`[TerminalRenderer] Polling error for terminal ${e}: ${g}`),g.includes("not found")&&!a&&l(!0),d(!1),f.current&&(window.clearInterval(f.current),f.current=null)}};return h(),f.current=window.setInterval(()=>{h()},100),()=>{f.current&&(window.clearInterval(f.current),f.current=null)}},[e,t,r]),zC(()=>{!c&&f.current&&(window.clearInterval(f.current),f.current=null)},[c]);let p=n.settings.displaySettings.showEmojis;return(0,$i.jsxs)("div",{className:"agent-client-terminal-renderer",children:[(0,$i.jsxs)("div",{className:"agent-client-terminal-renderer-header",children:[p&&"\u{1F5A5}\uFE0F ","Terminal ",e.slice(0,8),c?(0,$i.jsx)("span",{className:"agent-client-terminal-status agent-client-running",children:"\u25CF RUNNING"}):m?(0,$i.jsx)("span",{className:"agent-client-terminal-status agent-client-cancelled",children:"\u25CF CANCELLED"}):(0,$i.jsx)("span",{className:"agent-client-terminal-status agent-client-finished",children:"\u25CF FINISHED"})]}),(0,$i.jsx)("div",{className:"agent-client-terminal-renderer-output",children:i||(c?"Waiting for output...":"No output")}),a&&(0,$i.jsxs)("div",{className:`agent-client-terminal-renderer-exit ${a.exitCode===0?"agent-client-success":"agent-client-error"}`,children:["Exit Code: ",a.exitCode,a.signal&&` | Signal: ${a.signal}`]})]})}var Cl=J(me());function Hh({text:e,plugin:t,autoMentionContext:n}){let r=/@\[\[([^\]]+)\]\]/g,i=[];if(n){let s=n.selection?`@${n.noteName}:${n.selection.fromLine}-${n.selection.toLine}`:`@${n.noteName}`;i.push((0,Cl.jsx)("span",{className:"agent-client-text-mention",onClick:()=>{t.app.workspace.openLinkText(n.notePath,"")},children:s},"auto-mention")),i.push(`
|
|
`)}let o=0,a;for(;(a=r.exec(e))!==null;){a.index>o&&i.push(e.slice(o,a.index));let s=a[1],c=t.app.vault.getMarkdownFiles().find(d=>d.basename===s);c?i.push((0,Cl.jsxs)("span",{className:"agent-client-text-mention",onClick:()=>{t.app.workspace.openLinkText(c.path,"")},children:["@",s]},a.index)):i.push(`@${s}`),o=a.index+a[0].length}return o<e.length&&i.push(e.slice(o)),(0,Cl.jsx)("div",{className:"agent-client-text-with-mentions",children:i})}var tv=J(Ne());var l6=J(Ne());var ro=J(me()),{useMemo:c6}=l6;function CC({permissionRequest:e,toolCallId:t,plugin:n,onApprovePermission:r,onOptionSelected:i}){let o=c6(()=>new Pe(n),[n]),a=n.settings.displaySettings.showEmojis,s=e.selectedOptionId!==void 0,c=e.isCancelled===!0,d=e.isActive!==!1,m=e.options.find(l=>l.optionId===e.selectedOptionId);return(0,ro.jsxs)("div",{className:"agent-client-message-permission-request",children:[d&&!s&&!c&&(0,ro.jsx)("div",{className:"agent-client-message-permission-request-options",children:e.options.map(l=>(0,ro.jsx)("button",{className:`agent-client-permission-option ${l.kind?`agent-client-permission-kind-${l.kind}`:""}`,onClick:()=>{i&&i(l.optionId),r?r(e.requestId,l.optionId):o.warn("Cannot handle permission response: missing onApprovePermission callback")},children:l.name},l.optionId))}),s&&m&&(0,ro.jsxs)("div",{className:"agent-client-message-permission-request-result agent-client-selected",children:[a&&"\u2713 ","Selected: ",m.name]}),c&&(0,ro.jsxs)("div",{className:"agent-client-message-permission-request-result agent-client-cancelled",children:[a&&"\u26A0 ","Cancelled: Permission request was cancelled"]})]})}function xa(e){if(!e)return null;let t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return t<=0?null:e.slice(0,t)}function kC(e,t){let n=t.replace(/\/+$/,""),r=e.replace(/\/+$/,"");return r.startsWith(n+"/")?r.slice(n.length+1):e}function Bh(e){let t=e.replace(/\\/g,"/");return/^[A-Za-z]:/.test(t)?`file:///${t}`:`file://${t}`}var mr=class{diff(t,n,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);let o=this.castInput(t,r),a=this.castInput(n,r),s=this.removeEmpty(this.tokenize(o,r)),c=this.removeEmpty(this.tokenize(a,r));return this.diffWithOptionsObj(s,c,r,i)}diffWithOptionsObj(t,n,r,i){var o;let a=g=>{if(g=this.postProcess(g,r),i){setTimeout(function(){i(g)},0);return}else return g},s=n.length,c=t.length,d=1,m=s+c;r.maxEditLength!=null&&(m=Math.min(m,r.maxEditLength));let l=(o=r.timeout)!==null&&o!==void 0?o:1/0,f=Date.now()+l,p=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(p[0],n,t,0,r);if(p[0].oldPos+1>=c&&h+1>=s)return a(this.buildValues(p[0].lastComponent,n,t));let y=-1/0,x=1/0,v=()=>{for(let g=Math.max(y,-d);g<=Math.min(x,d);g+=2){let b,S=p[g-1],$=p[g+1];S&&(p[g-1]=void 0);let M=!1;if($){let q=$.oldPos-g;M=$&&0<=q&&q<s}let z=S&&S.oldPos+1<c;if(!M&&!z){p[g]=void 0;continue}if(!z||M&&S.oldPos<$.oldPos?b=this.addToPath($,!0,!1,0,r):b=this.addToPath(S,!1,!0,1,r),h=this.extractCommon(b,n,t,g,r),b.oldPos+1>=c&&h+1>=s)return a(this.buildValues(b.lastComponent,n,t))||!0;p[g]=b,b.oldPos+1>=c&&(x=Math.min(x,g-1)),h+1>=s&&(y=Math.max(y,g+1))}d++};if(i)(function g(){setTimeout(function(){if(d>m||Date.now()>f)return i(void 0);v()||g()},0)})();else for(;d<=m&&Date.now()<=f;){let g=v();if(g)return g}}addToPath(t,n,r,i,o){let a=t.lastComponent;return a&&!o.oneChangePerToken&&a.added===n&&a.removed===r?{oldPos:t.oldPos+i,lastComponent:{count:a.count+1,added:n,removed:r,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:a}}}extractCommon(t,n,r,i,o){let a=n.length,s=r.length,c=t.oldPos,d=c-i,m=0;for(;d+1<a&&c+1<s&&this.equals(r[c+1],n[d+1],o);)d++,c++,m++,o.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return m&&!o.oneChangePerToken&&(t.lastComponent={count:m,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=c,d}equals(t,n,r){return r.comparator?r.comparator(t,n):t===n||!!r.ignoreCase&&t.toLowerCase()===n.toLowerCase()}removeEmpty(t){let n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n}castInput(t,n){return t}tokenize(t,n){return Array.from(t)}join(t){return t.join("")}postProcess(t,n){return t}get useLongestToken(){return!1}buildValues(t,n,r){let i=[],o;for(;t;)i.push(t),o=t.previousComponent,delete t.previousComponent,t=o;i.reverse();let a=i.length,s=0,c=0,d=0;for(;s<a;s++){let m=i[s];if(m.removed)m.value=this.join(r.slice(d,d+m.count)),d+=m.count;else{if(!m.added&&this.useLongestToken){let l=n.slice(c,c+m.count);l=l.map(function(f,p){let h=r[d+p];return h.length>f.length?h:f}),m.value=this.join(l)}else m.value=this.join(n.slice(c,c+m.count));c+=m.count,m.added||(d+=m.count)}}return i}};function Gh(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function Fh(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function pd(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function gd(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function _a(e,t){return pd(e,t,"")}function kl(e,t){return gd(e,t,"")}function Xh(e,t){return t.slice(0,u6(e,t))}function u6(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),o=0;i[0]=0;for(let a=1;a<r;a++){for(t[a]==t[o]?i[a]=i[o]:i[a]=o;o>0&&t[a]!=t[o];)o=i[o];t[a]==t[o]&&o++}o=0;for(let a=n;a<e.length;a++){for(;o>0&&e[a]!=t[o];)o=i[o];e[a]==t[o]&&o++}return o}function $a(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function wi(e){let t=e.match(/^\s*/);return t?t[0]:""}var hd="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",d6=new RegExp(`[${hd}]+|\\s+|[^${hd}]`,"ug"),Jh=class extends mr{equals(t,n,r){return r.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase()),t.trim()===n.trim()}tokenize(t,n={}){let r;if(n.intlSegmenter){let a=n.intlSegmenter;if(a.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=[];for(let s of Array.from(a.segment(t))){let c=s.segment;r.length&&/\s/.test(r[r.length-1])&&/\s/.test(c)?r[r.length-1]+=c:r.push(c)}}else r=t.match(d6)||[];let i=[],o=null;return r.forEach(a=>{/\s/.test(a)?o==null?i.push(a):i.push(i.pop()+a):o!=null&&/\s/.test(o)?i[i.length-1]==o?i.push(i.pop()+a):i.push(o+a):i.push(a),o=a}),i}join(t){return t.map((n,r)=>r==0?n:n.replace(/^\s+/,"")).join("")}postProcess(t,n){if(!t||n.oneChangePerToken)return t;let r=null,i=null,o=null;return t.forEach(a=>{a.added?i=a:a.removed?o=a:((i||o)&&TC(r,o,i,a),r=a,i=null,o=null)}),(i||o)&&TC(r,o,i,null),t}},IC=new Jh;function Kh(e,t,n){return(n==null?void 0:n.ignoreWhitespace)!=null&&!n.ignoreWhitespace?OC(e,t,n):IC.diff(e,t,n)}function TC(e,t,n,r){if(t&&n){let i=wi(t.value),o=$a(t.value),a=wi(n.value),s=$a(n.value);if(e){let c=Gh(i,a);e.value=gd(e.value,a,c),t.value=_a(t.value,c),n.value=_a(n.value,c)}if(r){let c=Fh(o,s);r.value=pd(r.value,s,c),t.value=kl(t.value,c),n.value=kl(n.value,c)}}else if(n){if(e){let i=wi(n.value);n.value=n.value.substring(i.length)}if(r){let i=wi(r.value);r.value=r.value.substring(i.length)}}else if(e&&r){let i=wi(r.value),o=wi(t.value),a=$a(t.value),s=Gh(i,o);t.value=_a(t.value,s);let c=Fh(_a(i,s),a);t.value=kl(t.value,c),r.value=pd(r.value,i,c),e.value=gd(e.value,i,i.slice(0,i.length-c.length))}else if(r){let i=wi(r.value),o=$a(t.value),a=Xh(o,i);t.value=kl(t.value,a)}else if(e){let i=$a(e.value),o=wi(t.value),a=Xh(i,o);t.value=_a(t.value,a)}}var Yh=class extends mr{tokenize(t){let n=new RegExp(`(\\r?\\n)|[${hd}]+|[^\\S\\n\\r]+|[^${hd}]`,"ug");return t.match(n)||[]}},NC=new Yh;function OC(e,t,n){return NC.diff(e,t,n)}var Qh=class extends mr{constructor(){super(...arguments),this.tokenize=m6}equals(t,n,r){return r.ignoreWhitespace?((!r.newlineIsToken||!t.includes(`
|
|
`))&&(t=t.trim()),(!r.newlineIsToken||!n.includes(`
|
|
`))&&(n=n.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(t.endsWith(`
|
|
`)&&(t=t.slice(0,-1)),n.endsWith(`
|
|
`)&&(n=n.slice(0,-1))),super.equals(t,n,r)}},f6=new Qh;function Wh(e,t,n){return f6.diff(e,t,n)}function m6(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let i=0;i<r.length;i++){let o=r[i];i%2&&!t.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n}function ev(e,t,n,r,i,o,a){let s;a?typeof a=="function"?s={callback:a}:s=a:s={},typeof s.context=="undefined"&&(s.context=4);let c=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){let{callback:m}=s;Wh(n,r,Object.assign(Object.assign({},s),{callback:l=>{let f=d(l);m(f)}}))}else return d(Wh(n,r,s));function d(m){if(!m)return;m.push({value:"",lines:[]});function l(g){return g.map(function(b){return" "+b})}let f=[],p=0,h=0,y=[],x=1,v=1;for(let g=0;g<m.length;g++){let b=m[g],S=b.lines||p6(b.value);if(b.lines=S,b.added||b.removed){if(!p){let $=m[g-1];p=x,h=v,$&&(y=c>0?l($.lines.slice(-c)):[],p-=y.length,h-=y.length)}for(let $ of S)y.push((b.added?"+":"-")+$);b.added?v+=S.length:x+=S.length}else{if(p)if(S.length<=c*2&&g<m.length-2)for(let $ of l(S))y.push($);else{let $=Math.min(S.length,c);for(let z of l(S.slice(0,$)))y.push(z);let M={oldStart:p,oldLines:x-p+$,newStart:h,newLines:v-h+$,lines:y};f.push(M),p=0,h=0,y=[]}x+=S.length,v+=S.length}}for(let g of f)for(let b=0;b<g.lines.length;b++)g.lines[b].endsWith(`
|
|
`)?g.lines[b]=g.lines[b].slice(0,-1):(g.lines.splice(b+1,0,"\\ No newline at end of file"),b++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:f}}}function p6(e){let t=e.endsWith(`
|
|
`),n=e.split(`
|
|
`).map(r=>r+`
|
|
`);return t?n.pop():n.push(n.pop().slice(0,-1)),n}var be=J(me()),{useState:RC,useMemo:MC}=tv;function UC({content:e,plugin:t,acpClient:n,onApprovePermission:r}){let{kind:i,title:o,status:a,toolCallId:s,permissionRequest:c,locations:d,content:m}=e,[l,f]=RC(c==null?void 0:c.selectedOptionId);tv.useEffect(()=>{(c==null?void 0:c.selectedOptionId)!==l&&f(c==null?void 0:c.selectedOptionId)},[c==null?void 0:c.selectedOptionId]);let p=MC(()=>t.app.vault.adapter.basePath||"",[t]),h=t.settings.displaySettings.showEmojis;return(0,be.jsxs)("div",{className:"agent-client-message-tool-call",children:[(0,be.jsxs)("div",{className:"agent-client-message-tool-call-header",children:[(0,be.jsxs)("div",{className:"agent-client-message-tool-call-title",children:[h&&(0,be.jsx)("span",{className:"agent-client-message-tool-call-icon",children:(x=>{if(!h)return null;switch(x){case"read":return"\u{1F4D6}";case"edit":return"\u270F\uFE0F";case"delete":return"\u{1F5D1}\uFE0F";case"move":return"\u{1F4E6}";case"search":return"\u{1F50D}";case"execute":return"\u{1F4BB}";case"think":return"\u{1F4AD}";case"fetch":return"\u{1F310}";case"switch_mode":return"\u{1F504}";default:return"\u{1F527}"}})(i)}),o]}),d&&d.length>0&&(0,be.jsx)("div",{className:"agent-client-message-tool-call-locations",children:d.map((x,v)=>(0,be.jsxs)("span",{className:"agent-client-message-tool-call-location",children:[kC(x.path,p),x.line!=null&&`:${x.line}`]},v))}),(0,be.jsxs)("div",{className:"agent-client-message-tool-call-status",children:["Status: ",a]})]}),m&&m.map((x,v)=>x.type==="terminal"?(0,be.jsx)(md,{terminalId:x.terminalId,acpClient:n||null,plugin:t},v):x.type==="diff"?(0,be.jsx)(b6,{diff:x,plugin:t,autoCollapse:t.settings.displaySettings.autoCollapseDiffs,collapseThreshold:t.settings.displaySettings.diffCollapseThreshold},v):null),c&&(0,be.jsx)(CC,{permissionRequest:{...c,selectedOptionId:l},toolCallId:s,plugin:t,onApprovePermission:r,onOptionSelected:f})]})}function DC(e){return e.oldText===null||e.oldText===void 0||e.oldText===""}function h6(e){return e.map(t=>({type:t.added?"added":t.removed?"removed":"context",value:t.value}))}function v6(e,t){let n=e.filter(r=>!(t==="removed"&&r.type==="added"||t==="added"&&r.type==="removed"));return(0,be.jsx)(be.Fragment,{children:n.map((r,i)=>r.type==="added"?(0,be.jsx)("span",{className:"agent-client-diff-word-added",children:r.value},i):r.type==="removed"?(0,be.jsx)("span",{className:"agent-client-diff-word-removed",children:r.value},i):(0,be.jsx)("span",{children:r.value},i))})}var y6=3;function b6({diff:e,autoCollapse:t=!1,collapseThreshold:n=10}){let r=MC(()=>{if(DC(e))return e.newText.split(`
|
|
`).map((x,v)=>({type:"added",newLineNumber:v+1,content:x}));let m=e.oldText||"",l=ev("old","new",m,e.newText,"","",{context:y6}),f=[],p=0,h=0;for(let y of l.hunks){l.hunks.length>1&&f.push({type:"context",content:`@@ -${y.oldStart},${y.oldLines} +${y.newStart},${y.newLines} @@`}),p=y.oldStart,h=y.newStart;for(let x of y.lines){let v=x[0],g=x.substring(1);v==="+"?f.push({type:"added",newLineNumber:h++,content:g}):v==="-"?f.push({type:"removed",oldLineNumber:p++,content:g}):f.push({type:"context",oldLineNumber:p++,newLineNumber:h++,content:g})}}for(let y=0;y<f.length-1;y++){let x=f[y],v=f[y+1];if(x.type==="removed"&&v.type==="added"){let g=Kh(x.content,v.content),b=h6(g);x.wordDiff=b,v.wordDiff=b}}return f},[e.oldText,e.newText]),i=(m,l)=>{var y,x;if(m.type==="context"&&m.content.startsWith("@@"))return(0,be.jsx)("div",{className:"agent-client-diff-hunk-header",children:m.content},l);let p="agent-client-diff-line",h=" ";return m.type==="added"?(p+=" agent-client-diff-line-added",h="+"):m.type==="removed"?(p+=" agent-client-diff-line-removed",h="-"):p+=" agent-client-diff-line-context",(0,be.jsxs)("div",{className:p,children:[(0,be.jsx)("span",{className:"agent-client-diff-line-number agent-client-diff-line-number-old",children:(y=m.oldLineNumber)!=null?y:""}),(0,be.jsx)("span",{className:"agent-client-diff-line-number agent-client-diff-line-number-new",children:(x=m.newLineNumber)!=null?x:""}),(0,be.jsx)("span",{className:"agent-client-diff-line-marker",children:h}),(0,be.jsx)("span",{className:"agent-client-diff-line-content",children:m.wordDiff&&(m.type==="added"||m.type==="removed")?v6(m.wordDiff,m.type):m.content})]},l)},o=t&&r.length>n,[a,s]=RC(o),c=a?r.slice(0,n):r,d=r.length-n;return(0,be.jsxs)("div",{className:"agent-client-tool-call-diff",children:[DC(e)?(0,be.jsx)("div",{className:"agent-client-diff-line-info",children:"New file"}):null,(0,be.jsx)("div",{className:"agent-client-tool-call-diff-content",children:c.map((m,l)=>i(m,l))}),o&&(0,be.jsxs)("div",{className:"agent-client-diff-expand-bar",onClick:()=>s(!a),children:[(0,be.jsx)("span",{className:"agent-client-diff-expand-text",children:a?`${d} more lines`:"Collapse"}),(0,be.jsx)("span",{className:"agent-client-diff-expand-icon",children:a?"\u25B6":"\u25B2"})]})]})}var Mt=J(me());function nv({content:e,plugin:t,messageId:n,messageRole:r,acpClient:i,onApprovePermission:o}){switch(e.type){case"text":return r==="user"?(0,Mt.jsx)(Hh,{text:e.text,plugin:t}):(0,Mt.jsx)(dd,{text:e.text,plugin:t});case"text_with_context":return(0,Mt.jsx)(Hh,{text:e.text,autoMentionContext:e.autoMentionContext,plugin:t});case"agent_thought":return(0,Mt.jsx)(AC,{text:e.text,plugin:t});case"tool_call":return(0,Mt.jsx)(UC,{content:e,plugin:t,acpClient:i,onApprovePermission:o});case"plan":{let a=t.settings.displaySettings.showEmojis;return(0,Mt.jsxs)("div",{className:"agent-client-message-plan",children:[(0,Mt.jsxs)("div",{className:"agent-client-message-plan-title",children:[a&&"\u{1F4CB} ","Plan"]}),e.entries.map((s,c)=>(0,Mt.jsxs)("div",{className:`agent-client-message-plan-entry agent-client-plan-status-${s.status}`,children:[a&&(0,Mt.jsx)("span",{className:`agent-client-message-plan-entry-icon agent-client-status-${s.status}`,children:s.status==="completed"?"\u2713":s.status==="in_progress"?"\u23F3":"\u2B55"})," ",s.content]},c))]})}case"terminal":return(0,Mt.jsx)(md,{terminalId:e.terminalId,acpClient:i||null,plugin:t});case"image":return(0,Mt.jsx)("div",{className:"agent-client-message-image",children:(0,Mt.jsx)("img",{src:`data:${e.mimeType};base64,${e.data}`,alt:"Attached image",className:"agent-client-message-image-thumbnail"})});default:return(0,Mt.jsx)("span",{children:"Unsupported content type"})}}var wa=J(me());function S6(e){let t=[],n=[];for(let r of e)r.type==="image"?n.push(r):(n.length>0&&(t.push({type:"images",items:n}),n=[]),t.push({type:"single",item:r}));return n.length>0&&t.push({type:"images",items:n}),t}function jC({message:e,plugin:t,acpClient:n,onApprovePermission:r}){let i=S6(e.content);return(0,wa.jsx)("div",{className:`agent-client-message-renderer ${e.role==="user"?"agent-client-message-user":"agent-client-message-assistant"}`,children:i.map((o,a)=>o.type==="images"?(0,wa.jsx)("div",{className:"agent-client-message-images-strip",children:o.items.map((s,c)=>(0,wa.jsx)(nv,{content:s,plugin:t,messageId:e.id,messageRole:e.role,acpClient:n,onApprovePermission:r},c))},a):(0,wa.jsx)("div",{children:(0,wa.jsx)(nv,{content:o.item,plugin:t,messageId:e.id,messageRole:e.role,acpClient:n,onApprovePermission:r})},a))})}var ot=J(me()),{useRef:_6,useState:$6,useEffect:PC,useCallback:LC}=x6;function ZC({messages:e,isSending:t,isSessionReady:n,isRestoringSession:r,agentLabel:i,plugin:o,view:a,acpClient:s,onApprovePermission:c}){let d=_6(null),[m,l]=$6(!0),f=LC(()=>{let h=d.current;if(!h)return!0;let y=50,x=h.scrollTop+h.clientHeight>=h.scrollHeight-y;return l(x),x},[]),p=LC(()=>{let h=d.current;h&&(h.scrollTop=h.scrollHeight)},[]);return PC(()=>{m&&e.length>0&&window.setTimeout(()=>{p()},0)},[e,m,p]),PC(()=>{let h=d.current;if(!h)return;let y=()=>{f()};a.registerDomEvent(h,"scroll",y),f()},[a,f]),(0,ot.jsx)("div",{ref:d,className:"agent-client-chat-view-messages",children:e.length===0?(0,ot.jsx)("div",{className:"agent-client-chat-empty-state",children:r?"Restoring session...":n?`Start a conversation with ${i}...`:`Connecting to ${i}...`}):(0,ot.jsxs)(ot.Fragment,{children:[e.map(h=>(0,ot.jsx)(jC,{message:h,plugin:o,acpClient:s,onApprovePermission:c},h.id)),t&&(0,ot.jsx)("div",{className:"agent-client-loading-indicator",children:(0,ot.jsxs)("div",{className:"agent-client-loading-dots",children:[(0,ot.jsx)("div",{className:"agent-client-loading-dot"}),(0,ot.jsx)("div",{className:"agent-client-loading-dot"}),(0,ot.jsx)("div",{className:"agent-client-loading-dot"}),(0,ot.jsx)("div",{className:"agent-client-loading-dot"}),(0,ot.jsx)("div",{className:"agent-client-loading-dot"}),(0,ot.jsx)("div",{className:"agent-client-loading-dot"}),(0,ot.jsx)("div",{className:"agent-client-loading-dot"}),(0,ot.jsx)("div",{className:"agent-client-loading-dot"}),(0,ot.jsx)("div",{className:"agent-client-loading-dot"})]})})]})})}var k6=J(Ne()),Ut=require("obsidian");var w6=J(Ne());var Ei=J(me()),{useRef:E6,useEffect:qC,useMemo:A6}=w6;function iv({type:e,items:t,selectedIndex:n,onSelect:r,onClose:i,plugin:o,view:a}){let s=E6(null);if(A6(()=>new Pe(o),[o]).log(`[DEBUG] SuggestionDropdown (${e}) rendering with:`,{itemsCount:t.length,selectedIndex:n}),qC(()=>{let m=l=>{s.current&&!s.current.contains(l.target)&&i()};a.registerDomEvent(document,"mousedown",m)},[i,a]),qC(()=>{if(!s.current)return;let m=s.current.children[n];m==null||m.scrollIntoView({block:"nearest"})},[n]),t.length===0)return null;let d=(m,l)=>{let f=l===n,p=l<t.length-1;if(e==="mention"){let h=m;return(0,Ei.jsxs)("div",{className:`agent-client-mention-dropdown-item ${f?"agent-client-selected":""} ${p?"agent-client-has-border":""}`,onClick:()=>r(h),onMouseEnter:()=>{},children:[(0,Ei.jsx)("div",{className:"agent-client-mention-dropdown-item-name",children:h.name}),(0,Ei.jsx)("div",{className:"agent-client-mention-dropdown-item-path",children:h.path})]},h.path)}else{let h=m;return(0,Ei.jsxs)("div",{className:`agent-client-mention-dropdown-item ${f?"agent-client-selected":""} ${p?"agent-client-has-border":""}`,onClick:()=>r(h),onMouseEnter:()=>{},children:[(0,Ei.jsxs)("div",{className:"agent-client-mention-dropdown-item-name",children:["/",h.name]}),(0,Ei.jsxs)("div",{className:"agent-client-mention-dropdown-item-path",children:[h.description,h.hint&&` (${h.hint})`]})]},h.name)}};return(0,Ei.jsx)("div",{ref:s,className:"agent-client-mention-dropdown",children:t.map((m,l)=>d(m,l))})}var z6=J(Ne()),HC=require("obsidian"),pr=J(me()),{useRef:C6,useEffect:VC}=z6;function BC({errorInfo:e,onClose:t,showEmojis:n,view:r}){let i=C6(null);return VC(()=>{let o=a=>{i.current&&!i.current.contains(a.target)&&t()};r.registerDomEvent(document,"mousedown",o)},[t,r]),VC(()=>{let o=a=>{a.key==="Escape"&&(t(),a.preventDefault())};r.registerDomEvent(document,"keydown",o)},[t,r]),(0,pr.jsxs)("div",{ref:i,className:"agent-client-error-overlay",children:[(0,pr.jsxs)("div",{className:"agent-client-error-overlay-header",children:[(0,pr.jsx)("h4",{className:"agent-client-error-overlay-title",children:e.title}),(0,pr.jsx)("button",{className:"agent-client-error-overlay-close",onClick:t,"aria-label":"Close error",type:"button",ref:o=>{o&&(0,HC.setIcon)(o,"x")}})]}),(0,pr.jsx)("p",{className:"agent-client-error-overlay-message",children:e.message}),e.suggestion&&(0,pr.jsxs)("p",{className:"agent-client-error-overlay-suggestion",children:[n&&"\u{1F4A1} ",e.suggestion]})]})}var GC=require("obsidian"),Ea=J(me());function FC({images:e,onRemove:t}){return e.length===0?null:(0,Ea.jsx)("div",{className:"agent-client-image-preview-strip",children:e.map(n=>(0,Ea.jsxs)("div",{className:"agent-client-image-preview-item",children:[(0,Ea.jsx)("img",{src:`data:${n.mimeType};base64,${n.data}`,alt:"Attached image",className:"agent-client-image-preview-thumbnail"}),(0,Ea.jsx)("button",{className:"agent-client-image-preview-remove",onClick:()=>t(n.id),title:"Remove image",type:"button",ref:r=>{r&&(0,GC.setIcon)(r,"x")}})]},n.id))})}var XC=J(Ne());function vd(e){return(0,XC.useSyncExternalStore)(e.settingsStore.subscribe,e.settingsStore.getSnapshot,e.settingsStore.getSnapshot)}var Le=J(me()),{useRef:Ai,useState:rv,useEffect:Xn,useCallback:mt,useMemo:T6}=k6,YC=5,I6=YC*1024*1024,ov=10,JC=["image/png","image/jpeg","image/gif","image/webp"];function KC({isSending:e,isSessionReady:t,isRestoringSession:n,agentLabel:r,availableCommands:i,autoMentionEnabled:o,restoredMessage:a,mentions:s,slashCommands:c,autoMention:d,plugin:m,view:l,onSendMessage:f,onStopGeneration:p,onRestoredMessageConsumed:h,modes:y,onModeChange:x,models:v,onModelChange:g,supportsImages:b=!1,agentId:S,inputValue:$,onInputChange:M,attachedImages:z,onAttachedImagesChange:q,errorInfo:A,onClearError:T}){var fs,ms,ps,gs,hs;let I=T6(()=>new Pe(m),[m]),G=vd(m),H=m.settings.displaySettings.showEmojis,V=(fs=m.app.vault.getConfig("spellcheck"))!=null?fs:!0,[C,P]=rv(null),[ee,re]=rv(""),[we,Z]=rv(!1),B=Ai(null),Ie=Ai(0),ye=Ai(null),ti=Ai(null),$t=Ai(null),Di=Ai(null),Qt=Ai(null);Xn(()=>{q([])},[S,q]);let _o=mt(N=>{z.length>=ov||q([...z,N])},[z,q]),Tr=mt(N=>{q(z.filter(w=>w.id!==N))},[z,q]),yc=mt(async N=>new Promise((w,U)=>{let Y=new FileReader;Y.onload=()=>{let wt=Y.result.split(",")[1];w(wt)},Y.onerror=U,Y.readAsDataURL(N)}),[]),$o=mt(async N=>{let w=0;for(let U of N){if(z.length+w>=ov){new Ut.Notice(`[Agent Client] Maximum ${ov} images allowed`);break}if(U.size>I6){new Ut.Notice(`[Agent Client] Image too large (max ${YC}MB)`);continue}try{let Y=await yc(U);_o({id:crypto.randomUUID(),data:Y,mimeType:U.type}),w++}catch(Y){console.error("Failed to convert image:",Y),new Ut.Notice("[Agent Client] Failed to attach image")}}},[z.length,_o,yc]),Om=mt(async N=>{var Y;let w=(Y=N.clipboardData)==null?void 0:Y.items;if(!w)return;let U=[];for(let Cn of Array.from(w))if(JC.includes(Cn.type)){let wt=Cn.getAsFile();wt&&U.push(wt)}if(U.length!==0){if(N.preventDefault(),!b){new Ut.Notice("[Agent Client] This agent does not support image attachments");return}await $o(U)}},[b,$o]),Dm=mt(N=>{var w;(w=N.dataTransfer)!=null&&w.types.includes("Files")&&(N.preventDefault(),N.dataTransfer.dropEffect="copy")},[]),Rm=mt(N=>{var w;(w=N.dataTransfer)!=null&&w.types.includes("Files")&&(N.preventDefault(),Ie.current++,Ie.current===1&&Z(!0))},[]),Mm=mt(N=>{Ie.current--,Ie.current===0&&Z(!1)},[]),Um=mt(async N=>{var Y;Ie.current=0,Z(!1);let w=(Y=N.dataTransfer)==null?void 0:Y.files;if(!w||w.length===0)return;let U=Array.from(w).filter(Cn=>JC.includes(Cn.type));if(U.length!==0){if(N.preventDefault(),!b){new Ut.Notice("[Agent Client] This agent does not support image attachments");return}await $o(U)}},[b,$o]),Ir=mt(N=>{M(N),window.setTimeout(()=>{let w=B.current;if(w){let U=N.length;w.selectionStart=U,w.selectionEnd=U,w.focus()}},0)},[M]),Ri=mt(N=>{let w=s.selectSuggestion($,N);Ir(w)},[s,$,Ir]),Mi=mt(N=>{let w=c.selectSuggestion($,N);if(M(w),N.hint){let U=`/${N.name} `;re(U),P(N.hint)}else P(null),re("");window.setTimeout(()=>{let U=B.current;if(U){let Y=N.hint?`/${N.name} `.length:w.length;U.selectionStart=Y,U.selectionEnd=Y,U.focus()}},0)},[c,$,M]),Nr=mt(()=>{let N=B.current;if(N){N.classList.remove("agent-client-textarea-auto-height","agent-client-textarea-expanded"),N.classList.add("agent-client-textarea-auto-height");let w=N.scrollHeight,U=80,Cn=Math.max(U,Math.min(w,300));Cn>U?(N.classList.add("agent-client-textarea-expanded"),N.style.setProperty("--textarea-height",`${Cn}px`)):N.style.removeProperty("--textarea-height"),N.classList.remove("agent-client-textarea-auto-height")}},[]),ni=mt(N=>{if(N.classList.remove("agent-client-icon-sending","agent-client-icon-active","agent-client-icon-inactive"),e)N.classList.add("agent-client-icon-sending");else{let w=$.trim()!==""||z.length>0;N.classList.add(w?"agent-client-icon-active":"agent-client-icon-inactive")}},[e,$,z.length]),ds=mt(async()=>{if(e){await p();return}if(!$.trim()&&z.length===0)return;let N=$.trim(),w=z.map(U=>({type:"image",data:U.data,mimeType:U.mimeType}));M(""),q([]),P(null),re(""),await f(N,w.length>0?w:void 0)},[e,$,z,f,p,M,q]),wo=mt(N=>{let w=c.isOpen,U=s.isOpen;if(!w&&!U)return!1;if(N.key==="ArrowDown")return N.preventDefault(),w?c.navigate("down"):s.navigate("down"),!0;if(N.key==="ArrowUp")return N.preventDefault(),w?c.navigate("up"):s.navigate("up"),!0;if(N.key==="Enter"||N.key==="Tab"){if(N.key==="Enter"&&N.nativeEvent.isComposing)return!1;if(N.preventDefault(),w){let Y=c.suggestions[c.selectedIndex];Y&&Mi(Y)}else{let Y=s.suggestions[s.selectedIndex];Y&&Ri(Y)}return!0}return N.key==="Escape"?(N.preventDefault(),w?c.close():s.close(),!0):!1},[c,s,Mi,Ri]),Un=!e&&($.trim()===""&&z.length===0||!t||n),jm=mt(N=>{wo(N)||N.key==="Enter"&&!N.nativeEvent.isComposing&&(G.sendMessageShortcut==="enter"?!N.shiftKey:N.metaKey||N.ctrlKey)&&(N.preventDefault(),!Un&&!e&&ds())},[wo,e,Un,ds,G.sendMessageShortcut]),Pm=mt(N=>{let w=N.target.value,U=N.target.selectionStart||0;if(I.log("[DEBUG] Input changed:",w,"cursor:",U),M(w),C){let Y=ee+C;w!==Y&&(P(null),re(""))}s.updateSuggestions(w,U),c.updateSuggestions(w,U)},[I,C,ee,s,c,M]);Xn(()=>{Nr()},[$,Nr]),Xn(()=>{if(ye.current){let N=e?"square":"send-horizontal";(0,Ut.setIcon)(ye.current,N);let w=ye.current.querySelector("svg");w&&ni(w)}},[e,ni]),Xn(()=>{if(ye.current){let N=ye.current.querySelector("svg");N&&ni(N)}},[$,z.length,ni]),Xn(()=>{window.setTimeout(()=>{B.current&&B.current.focus()},0)},[]),Xn(()=>{a&&($.trim()||(M(a),window.setTimeout(()=>{B.current&&(B.current.focus(),B.current.selectionStart=a.length,B.current.selectionEnd=a.length)},0)),h())},[a,h,$,M]);let Eo=Ai(x);Eo.current=x;let Or=y==null?void 0:y.availableModes,Ui=y==null?void 0:y.currentModeId;Xn(()=>{let N=ti.current;if(N){if(!Or||Or.length<=1){$t.current&&(N.empty(),$t.current=null);return}if(!$t.current){let w=new Ut.DropdownComponent(N);$t.current=w;for(let U of Or)w.addOption(U.id,U.name);Ui&&w.setValue(Ui),w.onChange(U=>{Eo.current&&Eo.current(U)})}return()=>{$t.current&&(N.empty(),$t.current=null)}}},[Or]),Xn(()=>{$t.current&&Ui&&$t.current.setValue(Ui)},[Ui]);let Ao=Ai(g);Ao.current=g;let Dr=v==null?void 0:v.availableModels,ji=v==null?void 0:v.currentModelId;Xn(()=>{let N=Di.current;if(N){if(!Dr||Dr.length<=1){Qt.current&&(N.empty(),Qt.current=null);return}if(!Qt.current){let w=new Ut.DropdownComponent(N);Qt.current=w;for(let U of Dr)w.addOption(U.modelId,U.name);ji&&w.setValue(ji),w.onChange(U=>{Ao.current&&Ao.current(U)})}return()=>{Qt.current&&(N.empty(),Qt.current=null)}}},[Dr]),Xn(()=>{Qt.current&&ji&&Qt.current.setValue(ji)},[ji]);let bc=`Message ${r} - @ to mention notes${i.length>0?", / for commands":""}`;return(0,Le.jsxs)("div",{className:"agent-client-chat-input-container",children:[A&&(0,Le.jsx)(BC,{errorInfo:A,onClose:T,showEmojis:H,view:l}),s.isOpen&&(0,Le.jsx)(iv,{type:"mention",items:s.suggestions,selectedIndex:s.selectedIndex,onSelect:Ri,onClose:s.close,plugin:m,view:l}),c.isOpen&&(0,Le.jsx)(iv,{type:"slash-command",items:c.suggestions,selectedIndex:c.selectedIndex,onSelect:Mi,onClose:c.close,plugin:m,view:l}),(0,Le.jsxs)("div",{className:`agent-client-chat-input-box ${we?"agent-client-dragging-over":""}`,onDragOver:Dm,onDragEnter:Rm,onDragLeave:Mm,onDrop:N=>void Um(N),children:[o&&d.activeNote&&(0,Le.jsxs)("div",{className:"agent-client-auto-mention-inline",children:[(0,Le.jsxs)("span",{className:`agent-client-mention-badge ${d.isDisabled?"agent-client-disabled":""}`,children:["@",d.activeNote.name,d.activeNote.selection&&(0,Le.jsxs)("span",{className:"agent-client-selection-indicator",children:[":",d.activeNote.selection.from.line+1,"-",d.activeNote.selection.to.line+1]})]}),(0,Le.jsx)("button",{className:"agent-client-auto-mention-toggle-btn",onClick:N=>{let w=!d.isDisabled;d.toggle(w);let U=w?"x":"plus";(0,Ut.setIcon)(N.currentTarget,U)},title:d.isDisabled?"Enable auto-mention":"Temporarily disable auto-mention",ref:N=>{if(N){let w=d.isDisabled?"plus":"x";(0,Ut.setIcon)(N,w)}}})]}),(0,Le.jsxs)("div",{className:"agent-client-textarea-wrapper",children:[(0,Le.jsx)("textarea",{ref:B,value:$,onChange:Pm,onKeyDown:jm,onPaste:N=>void Om(N),placeholder:bc,className:`agent-client-chat-input-textarea ${o&&d.activeNote?"has-auto-mention":""}`,rows:1,spellCheck:V}),C&&(0,Le.jsxs)("div",{className:"agent-client-hint-overlay","aria-hidden":"true",children:[(0,Le.jsx)("span",{className:"agent-client-invisible",children:ee}),(0,Le.jsx)("span",{className:"agent-client-hint-text",children:C})]})]}),b&&(0,Le.jsx)(FC,{images:z,onRemove:Tr}),(0,Le.jsxs)("div",{className:"agent-client-chat-input-actions",children:[y&&y.availableModes.length>1&&(0,Le.jsxs)("div",{className:"agent-client-mode-selector",title:(ps=(ms=y.availableModes.find(N=>N.id===y.currentModeId))==null?void 0:ms.description)!=null?ps:"Select mode",children:[(0,Le.jsx)("div",{ref:ti}),(0,Le.jsx)("span",{className:"agent-client-mode-selector-icon",ref:N=>{N&&(0,Ut.setIcon)(N,"chevron-down")}})]}),v&&v.availableModels.length>1&&(0,Le.jsxs)("div",{className:"agent-client-model-selector",title:(hs=(gs=v.availableModels.find(N=>N.modelId===v.currentModelId))==null?void 0:gs.description)!=null?hs:"Select model",children:[(0,Le.jsx)("div",{ref:Di}),(0,Le.jsx)("span",{className:"agent-client-model-selector-icon",ref:N=>{N&&(0,Ut.setIcon)(N,"chevron-down")}})]}),(0,Le.jsx)("button",{ref:ye,onClick:()=>void ds(),disabled:Un,className:`agent-client-chat-send-button ${e?"sending":""} ${Un?"agent-client-disabled":""}`,title:t?e?"Stop generation":"Send message":"Connecting..."})]})]})]})}var ek=require("obsidian"),tk=J(Ne()),nk=J(Vh());var Tl=J(Ne()),QC=require("obsidian"),W=J(me()),{useState:sv,useCallback:oo}=Tl;function av({iconName:e,label:t,className:n,onClick:r}){let i=Tl.useRef(null);return Tl.useEffect(()=>{i.current&&(0,QC.setIcon)(i.current,e)},[e]),(0,W.jsx)("div",{ref:i,className:n,"aria-label":t,onClick:r})}function N6(e){let t=Date.now(),n=e.getTime(),r=t-n,i=Math.floor(r/1e3),o=Math.floor(i/60),a=Math.floor(o/60),s=Math.floor(a/24);if(o<1)return"just now";if(o<60)return`${o} minute${o===1?"":"s"} ago`;if(a<24)return`${a} hour${a===1?"":"s"} ago`;if(s===1)return"yesterday";if(s<7)return`${s} days ago`;{let c=e.toLocaleString("default",{month:"short"}),d=e.getDate(),m=e.getFullYear();return`${c} ${d}, ${m}`}}function O6(e){return e.length<=50?e:e.slice(0,50)+"..."}function D6({currentCwd:e,onRestoreSession:t,onForkSession:n,onClose:r}){let[i,o]=sv(""),[a,s]=sv(e),c=oo(()=>{i.trim()&&(r(),t(i.trim(),a.trim()||e))},[i,a,e,t,r]),d=oo(()=>{i.trim()&&(r(),n(i.trim(),a.trim()||e))},[i,a,e,n,r]);return(0,W.jsxs)("div",{className:"agent-client-session-history-debug",children:[(0,W.jsx)("h3",{children:"Debug: Manual Session Input"}),(0,W.jsxs)("div",{className:"agent-client-session-history-debug-group",children:[(0,W.jsx)("label",{htmlFor:"debug-session-id",children:"Session ID:"}),(0,W.jsx)("input",{id:"debug-session-id",type:"text",placeholder:"Enter session ID...",className:"agent-client-session-history-debug-input",value:i,onChange:m=>o(m.target.value)})]}),(0,W.jsxs)("div",{className:"agent-client-session-history-debug-group",children:[(0,W.jsx)("label",{htmlFor:"debug-cwd",children:"Working Directory (cwd):"}),(0,W.jsx)("input",{id:"debug-cwd",type:"text",placeholder:"Enter working directory...",className:"agent-client-session-history-debug-input",value:a,onChange:m=>s(m.target.value)})]}),(0,W.jsxs)("div",{className:"agent-client-session-history-debug-actions",children:[(0,W.jsx)("button",{className:"agent-client-session-history-debug-button",onClick:c,children:"Restore"}),(0,W.jsx)("button",{className:"agent-client-session-history-debug-button",onClick:d,children:"Fork"})]}),(0,W.jsx)("hr",{className:"agent-client-session-history-debug-separator"})]})}function R6({session:e,canRestore:t,canFork:n,onRestoreSession:r,onForkSession:i,onDeleteSession:o,onClose:a}){var m;let s=oo(()=>{a(),r(e.sessionId,e.cwd)},[e,r,a]),c=oo(()=>{a(),i(e.sessionId,e.cwd)},[e,i,a]),d=oo(()=>{o(e.sessionId)},[e.sessionId,o]);return(0,W.jsxs)("div",{className:"agent-client-session-history-item",children:[(0,W.jsxs)("div",{className:"agent-client-session-history-item-content",children:[(0,W.jsx)("div",{className:"agent-client-session-history-item-title",children:(0,W.jsx)("span",{children:O6((m=e.title)!=null?m:"Untitled Session")})}),(0,W.jsx)("div",{className:"agent-client-session-history-item-metadata",children:e.updatedAt&&(0,W.jsx)("span",{className:"agent-client-session-history-item-timestamp",children:N6(new Date(e.updatedAt))})})]}),(0,W.jsxs)("div",{className:"agent-client-session-history-item-actions",children:[t&&(0,W.jsx)(av,{iconName:"play",label:"Restore session",className:"agent-client-session-history-action-icon agent-client-session-history-restore-icon",onClick:s}),n&&(0,W.jsx)(av,{iconName:"git-branch",label:"Fork session (create new branch)",className:"agent-client-session-history-action-icon agent-client-session-history-fork-icon",onClick:c}),(0,W.jsx)(av,{iconName:"trash-2",label:"Delete session",className:"agent-client-session-history-action-icon agent-client-session-history-delete-icon",onClick:d})]})]})}function WC({sessions:e,loading:t,error:n,hasMore:r,currentCwd:i,canList:o,canRestore:a,canFork:s,isUsingLocalSessions:c,isAgentReady:d,debugMode:m,onRestoreSession:l,onForkSession:f,onDeleteSession:p,onLoadMore:h,onFetchSessions:y,onClose:x}){let[v,g]=sv(!0),b=oo(z=>{let q=z.target.checked;g(q),y(q?i:void 0)},[i,y]),S=oo(()=>{y(v?i:void 0)},[v,i,y]);if(!d)return(0,W.jsx)("div",{className:"agent-client-session-history-loading",children:(0,W.jsx)("p",{children:"Preparing agent..."})});let $=a||s,M=o||c||!$;return(0,W.jsxs)(W.Fragment,{children:[m&&(0,W.jsx)(D6,{currentCwd:i,onRestoreSession:l,onForkSession:f,onClose:x}),!$&&(0,W.jsx)("div",{className:"agent-client-session-history-warning-banner",children:(0,W.jsx)("p",{children:"This agent does not support session restoration."})}),(c||!$)&&(0,W.jsx)("div",{className:"agent-client-session-history-local-banner",children:(0,W.jsx)("span",{children:"These sessions are saved in the plugin."})}),!M&&!m&&(0,W.jsxs)("div",{className:"agent-client-session-history-empty",children:[(0,W.jsx)("p",{className:"agent-client-session-history-empty-text",children:"Session list is not available for this agent."}),(0,W.jsx)("p",{className:"agent-client-session-history-empty-text",children:"Enable Debug Mode in settings to manually enter session IDs."})]}),M&&(0,W.jsxs)(W.Fragment,{children:[o&&!c&&(0,W.jsx)("div",{className:"agent-client-session-history-filter",children:(0,W.jsxs)("label",{className:"agent-client-session-history-filter-label",children:[(0,W.jsx)("input",{type:"checkbox",checked:v,onChange:b}),(0,W.jsx)("span",{children:"Show current vault only"})]})}),n&&(0,W.jsxs)("div",{className:"agent-client-session-history-error",children:[(0,W.jsx)("p",{className:"agent-client-session-history-error-text",children:n}),(0,W.jsx)("button",{className:"agent-client-session-history-retry-button",onClick:S,children:"Retry"})]}),!n&&t&&e.length===0&&(0,W.jsx)("div",{className:"agent-client-session-history-loading",children:(0,W.jsx)("p",{children:"Loading sessions..."})}),!n&&!t&&e.length===0&&(0,W.jsx)("div",{className:"agent-client-session-history-empty",children:(0,W.jsx)("p",{className:"agent-client-session-history-empty-text",children:"No previous sessions"})}),!n&&e.length>0&&(0,W.jsx)("div",{className:"agent-client-session-history-list",children:e.map(z=>(0,W.jsx)(R6,{session:z,canRestore:a,canFork:s,onRestoreSession:l,onForkSession:f,onDeleteSession:p,onClose:x},z.sessionId))}),!n&&r&&(0,W.jsx)("div",{className:"agent-client-session-history-load-more",children:(0,W.jsx)("button",{className:"agent-client-session-history-load-more-button",disabled:t,onClick:h,children:t?"Loading...":"Load more"})})]})]})}var yd=class extends ek.Modal{constructor(n,r){super(n);this.root=null;this.props=r}updateProps(n){this.props=n,this.renderContent()}onOpen(){let{contentEl:n}=this;n.empty(),n.createEl("h2",{text:"Session history"});let r=n.createDiv();this.root=(0,nk.createRoot)(r),this.renderContent()}renderContent(){this.root&&this.root.render(tk.createElement(WC,{...this.props,onClose:()=>this.close()}))}onClose(){this.root&&(this.root.unmount(),this.root=null);let{contentEl:n}=this;n.empty()}};var ik=require("obsidian"),bd=class extends ik.Modal{constructor(n,r,i){super(n);this.sessionTitle=r,this.onConfirm=i}onOpen(){let{contentEl:n}=this;n.empty(),n.createEl("h2",{text:"Delete session?"}),n.createEl("p",{text:`Are you sure you want to delete "${this.sessionTitle}"?`,cls:"agent-client-confirm-delete-message"}),n.createEl("p",{text:"This only removes the session from this plugin. The session data will remain on the agent side.",cls:"agent-client-confirm-delete-warning"});let r=n.createDiv({cls:"agent-client-confirm-delete-buttons"});r.createEl("button",{text:"Cancel",cls:"agent-client-confirm-delete-cancel"}).addEventListener("click",()=>{this.close()}),r.createEl("button",{text:"Delete",cls:"agent-client-confirm-delete-confirm mod-warning"}).addEventListener("click",()=>{this.close(),this.onConfirm()})}onClose(){let{contentEl:n}=this;n.empty()}};var M6=J(Ne()),rk=J(yp()),uv=require("obsidian"),Ct=J(me()),{useRef:lv,useEffect:cv}=M6;function ok({anchorRef:e,currentAgentId:t,availableAgents:n,onSwitchAgent:r,onOpenNewView:i,onOpenPluginSettings:o,onClose:a}){let s=lv(null),c=lv(null),d=lv(null);cv(()=>{c.current&&(0,uv.setIcon)(c.current,"plus"),d.current&&(0,uv.setIcon)(d.current,"settings")},[]),cv(()=>{let l=f=>{s.current&&!s.current.contains(f.target)&&e.current&&!e.current.contains(f.target)&&a()};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[a,e]),cv(()=>{let l=f=>{f.key==="Escape"&&(a(),f.preventDefault())};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[a]);let m=(()=>{if(!e.current)return{};let l=e.current.getBoundingClientRect(),f=l.bottom+4,p=window.innerHeight-f-16;return{position:"fixed",top:f,right:window.innerWidth-l.right,maxHeight:Math.max(p,100),overflowY:"auto"}})();return rk.createPortal((0,Ct.jsxs)("div",{ref:s,className:"agent-client-header-menu",style:m,children:[(0,Ct.jsx)("div",{className:"agent-client-header-menu-header",children:"Switch agent"}),n.map(l=>(0,Ct.jsxs)("div",{className:`agent-client-header-menu-item ${l.id===t?"agent-client-current":""}`,onClick:()=>{r(l.id),a()},children:[(0,Ct.jsx)("span",{className:"agent-client-header-menu-icon"}),(0,Ct.jsx)("span",{children:l.displayName}),l.id===t&&(0,Ct.jsx)("span",{className:"agent-client-header-menu-check",children:"\u2713"})]},l.id)),(0,Ct.jsx)("div",{className:"agent-client-header-menu-separator"}),(0,Ct.jsxs)("div",{className:"agent-client-header-menu-item",onClick:()=>{i(),a()},children:[(0,Ct.jsx)("span",{ref:c,className:"agent-client-header-menu-icon"}),(0,Ct.jsx)("span",{children:"Open new view"})]}),(0,Ct.jsx)("div",{className:"agent-client-header-menu-separator"}),(0,Ct.jsxs)("div",{className:"agent-client-header-menu-item",onClick:()=>{o(),a()},children:[(0,Ct.jsx)("span",{ref:d,className:"agent-client-header-menu-icon"}),(0,Ct.jsx)("span",{children:"Plugin settings"})]})]}),document.body)}var Il=require("obsidian");var Sd=class{constructor(t){this.files=[];this.lastBuild=0;this.eventRefs=[];this.plugin=t,this.logger=new Pe(t),this.rebuildIndex(),this.eventRefs.push(this.plugin.app.vault.on("create",n=>{n instanceof Il.TFile&&n.extension==="md"&&this.rebuildIndex()})),this.eventRefs.push(this.plugin.app.vault.on("delete",()=>this.rebuildIndex())),this.eventRefs.push(this.plugin.app.vault.on("rename",n=>{n instanceof Il.TFile&&n.extension==="md"&&this.rebuildIndex()}))}destroy(){for(let t of this.eventRefs)this.plugin.app.vault.offref(t);this.eventRefs=[]}rebuildIndex(){this.files=this.plugin.app.vault.getMarkdownFiles(),this.lastBuild=Date.now(),this.logger.log(`[NoteMentionService] Rebuilt index with ${this.files.length} files`)}searchNotes(t){if(this.logger.log("[DEBUG] NoteMentionService.searchNotes called with:",t),this.logger.log("[DEBUG] Total files indexed:",this.files.length),!t.trim()){this.logger.log("[DEBUG] Empty query, returning recent files");let i=this.files.slice().sort((o,a)=>{var s,c;return(((s=a.stat)==null?void 0:s.mtime)||0)-(((c=o.stat)==null?void 0:c.mtime)||0)}).slice(0,20);return this.logger.log("[DEBUG] Recent files:",i.map(o=>o.name)),i}this.logger.log("[DEBUG] Preparing fuzzy search for:",t.trim());let n=(0,Il.prepareFuzzySearch)(t.trim());return this.files.map(i=>{var f;let o=i.basename,a=i.path,s=this.plugin.app.metadataCache.getFileCache(i),c=(f=s==null?void 0:s.frontmatter)==null?void 0:f.aliases,d=Array.isArray(c)?c:c?[c]:[],m=[o,a,...d],l=-1/0;for(let p of m){let h=n(p);h&&h.score>l&&(l=h.score)}return{file:i,score:l}}).filter(i=>i.score>-1/0).sort((i,o)=>o.score-i.score).slice(0,20).map(i=>i.file)}getAllFiles(){return this.files}getFileByPath(t){return this.files.find(n=>n.path===t)||null}};var dv=require("obsidian"),Aa=class{constructor(t){this.plugin=t;this.logger=new Pe(t)}async exportToMarkdown(t,n,r,i,o,a=!0){let s=this.plugin.settings.exportSettings,c=t.length>0?t[0].timestamp:o,d=this.generateFileName(c),m=s.defaultFolder||"Agent Client";await this.ensureFolderExists(m);let l=`${m}/${d}.md`;try{let f=this.generateFrontmatter(n,r,i,c),p=await this.convertMessagesToMarkdown(t,n,l),h=`${f}
|
|
|
|
${p}`,y=this.plugin.app.vault.getAbstractFileByPath(l),x;return y instanceof dv.TFile?(await this.plugin.app.vault.modify(y,h),x=y):x=await this.plugin.app.vault.create(l,h),a&&await this.plugin.app.workspace.getLeaf(!1).openFile(x),this.logger.log(`Chat exported to: ${l}`),l}catch(f){throw this.logger.error("Export error:",f),f}}async ensureFolderExists(t){this.plugin.app.vault.getAbstractFileByPath(t)||await this.plugin.app.vault.createFolder(t)}generateFileName(t){let r=this.plugin.settings.exportSettings.filenameTemplate||"agent_client_{date}_{time}",i=t.getFullYear(),o=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),s=`${i}${o}${a}`,c=String(t.getHours()).padStart(2,"0"),d=String(t.getMinutes()).padStart(2,"0"),m=String(t.getSeconds()).padStart(2,"0"),l=`${c}${d}${m}`;return r.replace("{date}",s).replace("{time}",l)}generateFrontmatter(t,n,r,i){let o=this.plugin.settings.exportSettings,a=i.getFullYear(),s=String(i.getMonth()+1).padStart(2,"0"),c=String(i.getDate()).padStart(2,"0"),d=String(i.getHours()).padStart(2,"0"),m=String(i.getMinutes()).padStart(2,"0"),l=String(i.getSeconds()).padStart(2,"0"),f=`${a}-${s}-${c}T${d}:${m}:${l}`,p=o.frontmatterTag.trim()?`
|
|
tags: [${o.frontmatterTag.trim()}]`:"";return`---
|
|
created: ${f}
|
|
agentDisplayName: ${t}
|
|
agentId: ${n}
|
|
session_id: ${r}${p}
|
|
---`}async convertMessagesToMarkdown(t,n,r){let i=this.plugin.settings.exportSettings,o={exportFilePath:r,imageIndex:0,includeImages:i.includeImages,imageLocation:i.imageLocation,imageCustomFolder:i.imageCustomFolder},a=`# ${n}
|
|
|
|
`;for(let s of t){let c=s.timestamp.toLocaleTimeString(),d=s.role==="user"?"User":"Assistant";a+=`## ${c} - ${d}
|
|
|
|
`;for(let m of s.content)a+=await this.convertContentToMarkdown(m,o);a+=`
|
|
---
|
|
|
|
`}return a}async convertContentToMarkdown(t,n){switch(t.type){case"text":return t.text+`
|
|
|
|
`;case"text_with_context":{let r="";if(t.autoMentionContext){let{noteName:i,selection:o}=t.autoMentionContext;o?r+=`@[[${i}]]:${o.fromLine}-${o.toLine}
|
|
`:r+=`@[[${i}]]
|
|
`}return r+=t.text+`
|
|
|
|
`,r}case"agent_thought":return`> [!info]- Thinking
|
|
> ${t.text.split(`
|
|
`).join(`
|
|
> `)}
|
|
|
|
`;case"tool_call":return this.convertToolCallToMarkdown(t);case"terminal":return`### \u{1F5A5}\uFE0F Terminal: ${t.terminalId.slice(0,8)}
|
|
|
|
`;case"plan":return this.convertPlanToMarkdown(t);case"permission_request":return this.convertPermissionRequestToMarkdown(t);case"image":if(!n.includeImages)return"";if(t.uri)return`
|
|
|
|
`;if(n.imageLocation==="base64")return`
|
|
|
|
`;try{return n.imageIndex++,`![[${(await this.saveImageAsAttachment(t.data,t.mimeType,n.exportFilePath,n.imageIndex,n.imageLocation,n.imageCustomFolder)).split("/").pop()}]]
|
|
|
|
`}catch(r){return this.logger.error(`Failed to save image as attachment: ${r}`),`
|
|
|
|
`}default:return""}}convertToolCallToMarkdown(t){let n=`### \u{1F527} ${t.title||"Tool"}
|
|
|
|
`;if(t.locations&&t.locations.length>0){let r=t.locations.map(i=>i.line!=null?`\`${i.path}:${i.line}\``:`\`${i.path}\``);n+=`**Locations**: ${r.join(", ")}
|
|
|
|
`}if(n+=`**Status**: ${t.status}
|
|
|
|
`,t.content&&t.content.length>0)for(let r of t.content)r.type==="diff"&&(n+=this.convertDiffToMarkdown(r));return n}convertDiffToMarkdown(t){let n=`**File**: \`${t.path}\`
|
|
|
|
`;if(t.oldText===null||t.oldText===void 0||t.oldText==="")return n+="```diff\n",t.newText.split(`
|
|
`).forEach(o=>{n+=`+ ${o}
|
|
`}),n+="```\n\n",n;let r=t.oldText.split(`
|
|
`),i=t.newText.split(`
|
|
`);return n+="```diff\n",r.forEach(o=>{n+=`- ${o}
|
|
`}),i.forEach(o=>{n+=`+ ${o}
|
|
`}),n+="```\n\n",n}convertPlanToMarkdown(t){let n=`> [!plan] Plan
|
|
`;for(let r of t.entries){let i=r.status==="completed"?"\u2705":r.status==="in_progress"?"\u{1F504}":"\u23F3";n+=`> ${i} ${r.content}
|
|
`}return n+=`
|
|
`,n}convertPermissionRequestToMarkdown(t){let n=t.isCancelled?"Cancelled":"Requested";return`### \u26A0\uFE0F Permission: ${t.toolCall.title||"Unknown"} (${n})
|
|
|
|
`}async saveImageAsAttachment(t,n,r,i,o,a){let s=this.getExtensionFromMimeType(n),m=`${r.replace(/\.md$/,"").split("/").pop()||"image"}_${String(i).padStart(3,"0")}.${s}`,l;if(o==="custom"){let p=a||"Agent Client";if(await this.ensureFolderExists(p),l=`${p}/${m}`,this.plugin.app.vault.getAbstractFileByPath(l)instanceof dv.TFile)return this.logger.log(`Image already exists, skipping: ${l}`),l}else if(l=await this.plugin.app.fileManager.getAvailablePathForAttachment(m,r),!l.endsWith(m)){let p=l.replace(/ \d+(\.[^.]+)$/,"$1");return this.logger.log(`Image already exists, skipping: ${p}`),p}let f=this.base64ToArrayBuffer(t);return await this.plugin.app.vault.createBinary(l,f),this.logger.log(`Image saved as attachment: ${l}`),l}getExtensionFromMimeType(t){return{"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp"}[t]||"png"}base64ToArrayBuffer(t){let n=atob(t),r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r.buffer}};var za=require("obsidian"),ak=require("@codemirror/view"),_d=require("@codemirror/state"),xd=class{constructor(t,n){this.plugin=t;this.currentSelection=null;this.selectionListeners=new Set;this.activeLeafRef=null;this.detachEditorListenerFn=null;this.selectionCompartment=null;this.lastSelectionKey="";this.mentionService=n}async readNote(t){let n=this.plugin.app.vault.getAbstractFileByPath(t);if(!(n instanceof za.TFile))throw new Error(`File not found: ${t}`);return await this.plugin.app.vault.read(n)}searchNotes(t){let n=this.mentionService.searchNotes(t);return Promise.resolve(n.map(r=>this.convertToMetadata(r)))}getActiveNote(){let t=this.plugin.app.workspace.getActiveFile();if(!t)return Promise.resolve(null);let n=this.convertToMetadata(t);return this.currentSelection&&this.currentSelection.filePath===t.path&&(n.selection=this.currentSelection.selection),Promise.resolve(n)}subscribeSelectionChanges(t){return this.selectionListeners.add(t),this.ensureSelectionTracking(),()=>{this.selectionListeners.delete(t),this.selectionListeners.size===0&&this.teardownSelectionTracking()}}ensureSelectionTracking(){if(this.activeLeafRef)return;let t=this.plugin.app.workspace.getActiveViewOfType(za.MarkdownView);this.attachToView(t!=null?t:null),this.activeLeafRef=this.plugin.app.workspace.on("active-leaf-change",n=>{let r=(n==null?void 0:n.view)instanceof za.MarkdownView?n.view:this.plugin.app.workspace.getActiveViewOfType(za.MarkdownView);this.attachToView(r!=null?r:null)})}teardownSelectionTracking(){this.detachEditorListener(),this.activeLeafRef&&(this.plugin.app.workspace.offref(this.activeLeafRef),this.activeLeafRef=null),this.lastSelectionKey=""}detachEditorListener(){this.detachEditorListenerFn&&(this.detachEditorListenerFn(),this.detachEditorListenerFn=null),this.selectionCompartment=null}attachToView(t){if(this.detachEditorListener(),!(t!=null&&t.file))return;let{editor:n,file:r}=t,i=r.path;this.lastSelectionKey&&!this.lastSelectionKey.startsWith(`${i}:`)&&this.handleSelectionChange(i,null);let o=()=>{if(n.somethingSelected()){let c=n.listSelections();if(c.length>0){let d=this.normalizeSelection(c[0]);this.handleSelectionChange(i,{from:{line:d.anchor.line,ch:d.anchor.ch},to:{line:d.head.line,ch:d.head.ch}});return}}n.hasFocus()&&this.handleSelectionChange(i,null)},a=n.cm;if(o(),!a){console.warn("[ObsidianVaultAdapter] CodeMirror 6 API not available. Selection change tracking will not work. This may be due to an Obsidian version change.");return}{let s=new _d.Compartment;this.selectionCompartment=s,a.dispatch({effects:_d.StateEffect.appendConfig.of(s.of(ak.EditorView.updateListener.of(c=>{c.selectionSet&&o()})))}),this.detachEditorListenerFn=()=>{this.selectionCompartment&&a.dispatch({effects:this.selectionCompartment.reconfigure([])}),this.selectionCompartment=null}}}normalizeSelection(t){var o;let n=t.anchor,r=(o=t.head)!=null?o:t.anchor;return n.line<r.line||n.line===r.line&&n.ch<=r.ch?{anchor:n,head:r}:{anchor:r,head:n}}handleSelectionChange(t,n){let r=t?n?`${t}:${n.from.line}:${n.from.ch}-${n.to.line}:${n.to.ch}`:`${t}:none`:"none";r!==this.lastSelectionKey&&(this.lastSelectionKey=r,t&&n?this.currentSelection={filePath:t,selection:n}:this.currentSelection&&(t===null||this.currentSelection.filePath===t)&&(this.currentSelection=null),this.notifySelectionListeners())}notifySelectionListeners(){for(let t of this.selectionListeners)try{t()}catch(n){console.error("[ObsidianVaultAdapter] Selection listener error",n)}}listNotes(){let t=this.mentionService.getAllFiles();return Promise.resolve(t.map(n=>this.convertToMetadata(n)))}convertToMetadata(t){var i;let n=this.plugin.app.metadataCache.getFileCache(t),r=(i=n==null?void 0:n.frontmatter)==null?void 0:i.aliases;return{path:t.path,name:t.basename,extension:t.extension,created:t.stat.ctime,modified:t.stat.mtime,aliases:Array.isArray(r)?r:r?[r]:void 0}}};var zi=J(Ne());function sk(e,t,n){let r=new Pe(n);if(r.log("[DEBUG] detectMention called with:",{text:e,cursorPosition:t}),t<0||t>e.length)return r.log("[DEBUG] Invalid cursor position"),null;let i=e.slice(0,t);r.log("[DEBUG] Text up to cursor:",i);let o=i.lastIndexOf("@");if(r.log("[DEBUG] @ index found:",o),o===-1)return r.log("[DEBUG] No @ symbol found"),null;let a=i.slice(o+1);r.log("[DEBUG] Text after @:",a);let s="",c=t;if(a.startsWith("[[")){let m=a.indexOf("]]");if(m===-1)s=a.slice(2),c=t;else{let l=o+1+m+1;if(t>l)return r.log("[DEBUG] Cursor is after closing ]], stopping mention detection"),null;s=a.slice(2,m),c=l+1}}else{if(a.includes(" ")||a.includes(" ")||a.includes(`
|
|
`))return r.log("[DEBUG] Mention ended by whitespace (simple format)"),null;s=a,c=t}let d={start:o,end:c,query:s};return r.log("[DEBUG] Mention context created:",d),d}function lk(e,t,n){let r=e.slice(0,t.start),i=e.slice(t.end),o=` @[[${n}]] `,a=r+o+i,s=t.start+o.length;return{newText:a,newCursorPos:s}}function ck(e,t){let n=/@\[\[([^\]]+)\]\]/g,r=Array.from(e.matchAll(n)),i=[],o=new Set;for(let a of r){let s=a[1];if(o.has(s))continue;o.add(s);let c=t.getAllFiles().find(d=>d.basename===s);i.push({noteTitle:s,file:c})}return i}function uk(e,t){let[n,r]=(0,zi.useState)([]),[i,o]=(0,zi.useState)(0),[a,s]=(0,zi.useState)(null),c=n.length>0&&a!==null,d=(0,zi.useCallback)(async(p,h)=>{let y=sk(p,h,t);if(!y){r([]),o(0),s(null);return}let x=await e.searchNotes(y.query);r(x),o(0),s(y)},[e,t]),m=(0,zi.useCallback)((p,h)=>{if(!a)return p;let{newText:y}=lk(p,a,h.name);return r([]),o(0),s(null),y},[a]),l=(0,zi.useCallback)(p=>{if(!c)return;let h=n.length-1;o(y=>p==="down"?Math.min(y+1,h):Math.max(y-1,0))},[c,n.length]),f=(0,zi.useCallback)(()=>{r([]),o(0),s(null)},[]);return{suggestions:n,selectedIndex:i,isOpen:c,context:a,updateSuggestions:d,selectSuggestion:m,navigate:l,close:f}}var gr=J(Ne());function dk(e,t){let[n,r]=(0,gr.useState)([]),[i,o]=(0,gr.useState)(0),a=n.length>0,s=(0,gr.useCallback)((l,f)=>{let p=n.length>0;if(!l.startsWith("/")){p&&(t==null||t(!1)),r([]),o(0);return}let y=l.slice(0,f).slice(1);if(y.includes(" ")){r([]),o(0),t==null||t(!0);return}let x=y.toLowerCase(),v=e.filter(g=>g.name.toLowerCase().includes(x));r(v),o(0),t==null||t(!0)},[e,t,n.length]),c=(0,gr.useCallback)((l,f)=>{let p=`/${f.name} `;return r([]),o(0),p},[]),d=(0,gr.useCallback)(l=>{if(n.length===0)return;let f=n.length-1;o(p=>l==="down"?Math.min(p+1,f):Math.max(p-1,0))},[n.length]),m=(0,gr.useCallback)(()=>{r([]),o(0)},[]);return{suggestions:n,selectedIndex:i,isOpen:a,updateSuggestions:s,selectSuggestion:c,navigate:d,close:m}}var Ca=J(Ne());function fk(e){let[t,n]=(0,Ca.useState)(null),[r,i]=(0,Ca.useState)(!1),o=(0,Ca.useCallback)(s=>{i(s===void 0?c=>!c:s)},[]),a=(0,Ca.useCallback)(async()=>{let s=await e.getActiveNote();n(s)},[e]);return{activeNote:t,isDisabled:r,toggle:o,updateActiveNote:a}}var St=J(Ne());var Nl=e=>Array.isArray(e)?e.map(t=>typeof t=="string"?t.trim():"").filter(t=>t.length>0):typeof e=="string"?e.split(/\r?\n/).map(t=>t.trim()).filter(t=>t.length>0):[],ao=e=>{let t=[];if(!e)return t;if(Array.isArray(e)){for(let r of e)if(r&&typeof r=="object"){let i=r,o="key"in i?i.key:void 0,a="value"in i?i.value:void 0;typeof o=="string"&&o.trim().length>0&&t.push({key:o.trim(),value:typeof a=="string"?a:""})}}else if(typeof e=="object")for(let[r,i]of Object.entries(e))typeof r=="string"&&r.trim().length>0&&t.push({key:r.trim(),value:typeof i=="string"?i:""});let n=new Set;return t.filter(r=>n.has(r.key)?!1:(n.add(r.key),!0))},mk=e=>{let t=e&&typeof e.id=="string"&&e.id.trim().length>0?e.id.trim():"custom-agent",n=e&&typeof e.displayName=="string"&&e.displayName.trim().length>0?e.displayName.trim():t;return{id:t,displayName:n,command:e&&typeof e.command=="string"&&e.command.trim().length>0?e.command.trim():"",args:Nl(e==null?void 0:e.args),env:ao(e==null?void 0:e.env)}},pk=e=>{let t=new Set;return e.map(n=>{let r=n.id&&n.id.trim().length>0?n.id.trim():"custom-agent",i=r,o=2;for(;t.has(i);)i=`${r}-${o}`,o+=1;return t.add(i),{...n,id:i}})},gk=(e,t)=>{let n=e.env.reduce((r,{key:i,value:o})=>(r[i]=o,r),{});return{id:e.id,displayName:e.displayName,command:e.command,args:e.args,env:n,workingDirectory:t}};function $d(e){return e.defaultAgentId||e.claude.id}function yk(e){return[{id:e.claude.id,displayName:e.claude.displayName||e.claude.id},{id:e.codex.id,displayName:e.codex.displayName||e.codex.id},{id:e.gemini.id,displayName:e.gemini.displayName||e.gemini.id},...e.customAgents.map(t=>({id:t.id,displayName:t.displayName||t.id}))]}function fv(e,t){let n=t||$d(e);return yk(e).find(i=>i.id===n)||{id:n,displayName:n}}function hk(e,t){return t===e.claude.id?e.claude:t===e.codex.id?e.codex:t===e.gemini.id?e.gemini:e.customAgents.find(r=>r.id===t)||null}function vk(e,t,n,r){let i=gk(t,r);if(n===e.claude.id){let o=t;return{...i,env:{...i.env,ANTHROPIC_API_KEY:o.apiKey}}}if(n===e.codex.id){let o=t;return{...i,env:{...i.env,OPENAI_API_KEY:o.apiKey}}}if(n===e.gemini.id){let o=t;return{...i,env:{...i.env,GOOGLE_API_KEY:o.apiKey}}}return i}function U6(e,t,n){return{sessionId:null,state:"disconnected",agentId:e,agentDisplayName:t,authMethods:[],availableCommands:void 0,modes:void 0,models:void 0,createdAt:new Date,lastActivityAt:new Date,workingDirectory:n}}function bk(e,t,n,r){var z,q;let i=t.getSnapshot(),o=r||$d(i),a=fv(i,o),[s,c]=(0,St.useState)(()=>U6(o,a.displayName,n)),[d,m]=(0,St.useState)(null),l=s.state==="ready",f=(0,St.useCallback)(async A=>{let T=t.getSnapshot(),I=A||$d(T),G=fv(T,I);c(H=>({...H,sessionId:null,state:"initializing",agentId:I,agentDisplayName:G.displayName,authMethods:[],availableCommands:void 0,modes:void 0,models:void 0,promptCapabilities:H.promptCapabilities,agentCapabilities:H.agentCapabilities,agentInfo:H.agentInfo,createdAt:new Date,lastActivityAt:new Date})),m(null);try{let H=hk(T,I);if(!H){c(B=>({...B,state:"error"})),m({title:"Agent Not Found",message:`Agent with ID "${I}" not found in settings`,suggestion:"Please check your agent configuration in settings."});return}let V=vk(T,H,I,n),C=!e.isInitialized()||e.getCurrentAgentId()!==I,P=[],ee,re,we;if(C){let B=await e.initialize(V);P=B.authMethods,ee=B.promptCapabilities,re=B.agentCapabilities,we=B.agentInfo}let Z=await e.newSession(n);c(B=>({...B,sessionId:Z.sessionId,state:"ready",authMethods:P,modes:Z.modes,models:Z.models,promptCapabilities:C?ee:B.promptCapabilities,agentCapabilities:C?re:B.agentCapabilities,agentInfo:C?we:B.agentInfo,lastActivityAt:new Date}))}catch(H){c(V=>({...V,state:"error"})),m({title:"Session Creation Failed",message:`Failed to create new session: ${H instanceof Error?H.message:String(H)}`,suggestion:"Please check the agent configuration and try again."})}},[e,t,n]),p=(0,St.useCallback)(async A=>{let T=t.getSnapshot(),I=$d(T),G=fv(T);c(H=>({...H,sessionId:null,state:"initializing",agentId:I,agentDisplayName:G.displayName,authMethods:[],availableCommands:void 0,modes:void 0,models:void 0,promptCapabilities:H.promptCapabilities,createdAt:new Date,lastActivityAt:new Date})),m(null);try{let H=hk(T,I);if(!H){c(Z=>({...Z,state:"error"})),m({title:"Agent Not Found",message:`Agent with ID "${I}" not found in settings`,suggestion:"Please check your agent configuration in settings."});return}let V=vk(T,H,I,n),C=!e.isInitialized()||e.getCurrentAgentId()!==I,P=[],ee,re;if(C){let Z=await e.initialize(V);P=Z.authMethods,ee=Z.promptCapabilities,re=Z.agentCapabilities}let we=await e.loadSession(A,n);c(Z=>({...Z,sessionId:we.sessionId,state:"ready",authMethods:P,modes:we.modes,models:we.models,promptCapabilities:C?ee:Z.promptCapabilities,agentCapabilities:C?re:Z.agentCapabilities,lastActivityAt:new Date}))}catch(H){c(V=>({...V,state:"error"})),m({title:"Session Loading Failed",message:`Failed to load session: ${H instanceof Error?H.message:String(H)}`,suggestion:"Please try again or create a new session."})}},[e,t,n]),h=(0,St.useCallback)(async A=>{await f(A)},[f]),y=(0,St.useCallback)(async()=>{if(s.sessionId)try{await e.cancel(s.sessionId)}catch(A){console.warn("Failed to cancel session:",A)}try{await e.disconnect()}catch(A){console.warn("Failed to disconnect:",A)}c(A=>({...A,sessionId:null,state:"disconnected"}))},[e,s.sessionId]),x=(0,St.useCallback)(async()=>{if(s.sessionId)try{await e.cancel(s.sessionId),c(A=>({...A,state:"ready"}))}catch(A){console.warn("Failed to cancel operation:",A),c(T=>({...T,state:"ready"}))}},[e,s.sessionId]),v=(0,St.useCallback)(()=>{let A=t.getSnapshot();return yk(A)},[t]),g=(0,St.useCallback)(A=>{c(T=>({...T,availableCommands:A}))},[]),b=(0,St.useCallback)(A=>{c(T=>T.modes?{...T,modes:{...T.modes,currentModeId:A}}:T)},[]),S=(0,St.useCallback)(async A=>{var I;if(!s.sessionId){console.warn("Cannot set mode: no active session");return}let T=(I=s.modes)==null?void 0:I.currentModeId;c(G=>G.modes?{...G,modes:{...G.modes,currentModeId:A}}:G);try{await e.setSessionMode(s.sessionId,A)}catch(G){console.error("Failed to set mode:",G),T&&c(H=>H.modes?{...H,modes:{...H.modes,currentModeId:T}}:H)}},[e,s.sessionId,(z=s.modes)==null?void 0:z.currentModeId]),$=(0,St.useCallback)(async A=>{var I;if(!s.sessionId){console.warn("Cannot set model: no active session");return}let T=(I=s.models)==null?void 0:I.currentModelId;c(G=>G.models?{...G,models:{...G.models,currentModelId:A}}:G);try{await e.setSessionModel(s.sessionId,A)}catch(G){console.error("Failed to set model:",G),T&&c(H=>H.models?{...H,models:{...H.models,currentModelId:T}}:H)}},[e,s.sessionId,(q=s.models)==null?void 0:q.currentModelId]);(0,St.useEffect)(()=>{e.onError(A=>{c(T=>({...T,state:"error"})),m({title:A.title||"Agent Error",message:A.message||"An error occurred",suggestion:A.suggestion})})},[e]);let M=(0,St.useCallback)((A,T,I)=>{c(G=>({...G,sessionId:A,state:"ready",modes:T!=null?T:G.modes,models:I!=null?I:G.models,lastActivityAt:new Date}))},[]);return{session:s,isReady:l,errorInfo:d,createSession:f,loadSession:p,restartSession:h,closeSession:y,cancelOperation:x,getAvailableAgents:v,updateSessionFromLoad:M,updateAvailableCommands:g,updateCurrentMode:b,setMode:S,setModel:$}}var st=J(Ne());var at={PARSE_ERROR:-32700,INVALID_REQUEST:-32600,METHOD_NOT_FOUND:-32601,INVALID_PARAMS:-32602,INTERNAL_ERROR:-32603,AUTHENTICATION_REQUIRED:-32e3,RESOURCE_NOT_FOUND:-32002};function wd(e){if(e&&typeof e=="object"&&"code"in e){let t=e.code;if(typeof t=="number")return t}}function Sk(e){if(!e||typeof e!="object")return"An unexpected error occurred.";if("data"in e){let t=e.data;if(t&&typeof t=="object"&&"details"in t){let n=t.details;if(typeof n=="string")return n}}if("message"in e){let t=e.message;if(typeof t=="string")return t}return"An unexpected error occurred."}function j6(e){if(e&&typeof e=="object"&&"data"in e)return e.data}function P6(e){switch(e){case at.PARSE_ERROR:return"Protocol Error";case at.INVALID_REQUEST:return"Invalid Request";case at.METHOD_NOT_FOUND:return"Method Not Supported";case at.INVALID_PARAMS:return"Invalid Parameters";case at.INTERNAL_ERROR:return"Internal Error";case at.AUTHENTICATION_REQUIRED:return"Authentication Required";case at.RESOURCE_NOT_FOUND:return"Resource Not Found";default:return"Agent Error"}}function L6(e,t){if(e===at.INTERNAL_ERROR){let n=t.toLowerCase();if(n.includes("context")||n.includes("token")||n.includes("max_tokens")||n.includes("too long"))return"The conversation is too long. Try using a compact command if available, or start a new chat.";if(n.includes("overloaded")||n.includes("capacity"))return"The service is busy. Please wait a moment and try again."}switch(e){case at.PARSE_ERROR:case at.INVALID_REQUEST:case at.METHOD_NOT_FOUND:return"Try restarting the agent session.";case at.INVALID_PARAMS:return"Check your agent configuration in settings.";case at.INTERNAL_ERROR:return"Try again or restart the agent session.";case at.AUTHENTICATION_REQUIRED:return"Check if you are logged in or if your API key is set correctly.";case at.RESOURCE_NOT_FOUND:return"Check if the file or resource exists.";default:return"Try again or restart the agent session."}}function Ed(e,t){var o;let n=(o=wd(e))!=null?o:-1,r=Sk(e),i=j6(e);return{code:n,message:r,data:i,sessionId:t,originalError:e,title:P6(n),suggestion:L6(n,r)}}function xk(e){return wd(e)!==at.INTERNAL_ERROR?!1:Sk(e).includes("empty response text")}function Ci(e){let n=e.replace(/\\/g,"/").match(/^([A-Za-z]):(\/.*)/);if(n){let r=n[1].toLowerCase(),i=n[2];return`/mnt/${r}${i}`}return e}function Ad(e,t,n,r,i){if(/^\\\\/.test(n))throw new Error(`UNC paths are not supported in WSL mode: ${n}. Please use a local drive path.`);let o=Ci(n);if(o===n&&/^[A-Za-z]:[\\/]/.test(n))throw new Error(`Failed to convert Windows path to WSL format: ${n}`);let a=[];if(r){if(!/^[a-zA-Z0-9_-]+$/.test(r))throw new Error(`Invalid WSL distribution name: ${r}`);a.push("-d",r)}let s=t.map(_k).join(" "),c=s.length>0?` ${s}`:"",d="";if(i){let l=Ci(i);d=`export PATH="${Z6(l)}:$PATH"; `}let m=`${d}cd ${_k(o)} && ${e}${c}`;return a.push("bash","-l","-c",m),{command:"C:\\Windows\\System32\\wsl.exe",args:a}}function _k(e){return`'${e.replace(/'/g,"'\\''")}'`}function Z6(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}var $k=1e4,wk=1e4;async function Ek(e,t,n){let r=ck(e.message,n);return e.supportsEmbeddedContext?q6(e,t,r):V6(e,t,r)}async function q6(e,t,n){var d,m,l;let r=[];for(let{file:f}of n)if(f)try{let p=await t.readNote(f.path),h=(d=e.maxNoteLength)!=null?d:$k,y=p;p.length>h&&(y=p.substring(0,h)+`
|
|
|
|
[Note: Truncated from ${p.length} to ${h} characters]`);let x=e.vaultBasePath?`${e.vaultBasePath}/${f.path}`:f.path;e.convertToWsl&&(x=Ci(x)),r.push({type:"resource",resource:{uri:Bh(x),mimeType:"text/markdown",text:y},annotations:{audience:["assistant"],priority:1,lastModified:new Date(f.stat.mtime).toISOString()}})}catch(p){console.error(`Failed to read note ${f.path}:`,p)}let i=[];if(e.activeNote&&!e.isAutoMentionDisabled){let f=await H6(e.activeNote,e.vaultBasePath,t,(m=e.convertToWsl)!=null?m:!1,(l=e.maxSelectionLength)!=null?l:wk);i.push(...f)}let o=[...e.message?[{type:"text",text:e.message}]:[],...e.images||[]],a=e.activeNote&&!e.isAutoMentionDisabled?e.activeNote.selection?`@[[${e.activeNote.name}]]:${e.activeNote.selection.from.line+1}-${e.activeNote.selection.to.line+1}
|
|
`:`@[[${e.activeNote.name}]]
|
|
`:"",s=[...r,...i,...e.message||a?[{type:"text",text:a+e.message}]:[],...e.images||[]],c=e.activeNote&&!e.isAutoMentionDisabled?{noteName:e.activeNote.name,notePath:e.activeNote.path,selection:e.activeNote.selection?{fromLine:e.activeNote.selection.from.line+1,toLine:e.activeNote.selection.to.line+1}:void 0}:void 0;return{displayContent:o,agentContent:s,autoMentionContext:c}}async function V6(e,t,n){var d,m,l;let r=[];for(let{file:f}of n)if(f)try{let p=await t.readNote(f.path),h=(d=e.maxNoteLength)!=null?d:$k,y=p,x="";p.length>h&&(y=p.substring(0,h),x=`
|
|
|
|
[Note: This note was truncated. Original length: ${p.length} characters, showing first ${h} characters]`);let v=e.vaultBasePath?`${e.vaultBasePath}/${f.path}`:f.path;e.convertToWsl&&(v=Ci(v));let g=`<obsidian_mentioned_note ref="${v}">
|
|
${y}${x}
|
|
</obsidian_mentioned_note>`;r.push(g)}catch(p){console.error(`Failed to read note ${f.path}:`,p)}if(e.activeNote&&!e.isAutoMentionDisabled){let f=await B6(e.activeNote.path,e.vaultBasePath,t,(m=e.convertToWsl)!=null?m:!1,e.activeNote.selection,(l=e.maxSelectionLength)!=null?l:wk);r.push(f)}let i=e.activeNote&&!e.isAutoMentionDisabled?e.activeNote.selection?`@[[${e.activeNote.name}]]:${e.activeNote.selection.from.line+1}-${e.activeNote.selection.to.line+1}
|
|
`:`@[[${e.activeNote.name}]]
|
|
`:"",o=r.length>0?r.join(`
|
|
`)+`
|
|
|
|
`+i+e.message:i+e.message,a=[...e.message?[{type:"text",text:e.message}]:[],...e.images||[]],s=[...o?[{type:"text",text:o}]:[],...e.images||[]],c=e.activeNote&&!e.isAutoMentionDisabled?{noteName:e.activeNote.name,notePath:e.activeNote.path,selection:e.activeNote.selection?{fromLine:e.activeNote.selection.from.line+1,toLine:e.activeNote.selection.to.line+1}:void 0}:void 0;return{displayContent:a,agentContent:s,autoMentionContext:c}}async function H6(e,t,n,r,i){let o=t?`${t}/${e.path}`:e.path;r&&(o=Ci(o));let a=Bh(o);if(e.selection){let s=e.selection.from.line+1,c=e.selection.to.line+1;try{let l=(await n.readNote(e.path)).split(`
|
|
`).slice(e.selection.from.line,e.selection.to.line+1),f=l.join(`
|
|
`);return f.length>i&&(f=f.substring(0,i)+`
|
|
|
|
[Note: Truncated from ${l.join(`
|
|
`).length} to ${i} characters]`),[{type:"resource",resource:{uri:a,mimeType:"text/markdown",text:f},annotations:{audience:["assistant"],priority:.8,lastModified:new Date(e.modified).toISOString()}},{type:"text",text:`The user has selected lines ${s}-${c} in the above note. This is what they are currently focusing on.`}]}catch(d){return console.error(`Failed to read selection from ${e.path}:`,d),[{type:"text",text:`The user has selected lines ${s}-${c} in ${a}. If relevant, use the Read tool to examine the specific lines.`}]}}return[{type:"text",text:`The user has opened the note ${a} in Obsidian. This may or may not be related to the current conversation. If it seems relevant, consider using the Read tool to examine its content.`}]}async function B6(e,t,n,r,i,o){let a=t?`${t}/${e}`:e;if(r&&(a=Ci(a)),i){let s=i.from.line+1,c=i.to.line+1;try{let l=(await n.readNote(e)).split(`
|
|
`).slice(i.from.line,i.to.line+1),f=l.join(`
|
|
`),p="";return f.length>o&&(f=f.substring(0,o),p=`
|
|
|
|
[Note: The selection was truncated. Original length: ${l.join(`
|
|
`).length} characters, showing first ${o} characters]`),`<obsidian_opened_note selection="lines ${s}-${c}">
|
|
The user opened the note ${a} in Obsidian and selected the following text (lines ${s}-${c}):
|
|
|
|
${f}${p}
|
|
|
|
This is what the user is currently focusing on.
|
|
</obsidian_opened_note>`}catch(d){return console.error(`Failed to read selection from ${e}:`,d),`<obsidian_opened_note selection="lines ${s}-${c}">The user opened the note ${a} in Obsidian and is focusing on lines ${s}-${c}. This may or may not be related to the current conversation. If it seems relevant, consider using the Read tool to examine the specific lines.</obsidian_opened_note>`}}return`<obsidian_opened_note>The user opened the note ${a} in Obsidian. This may or may not be related to the current conversation. If it seems relevant, consider using the Read tool to examine the content.</obsidian_opened_note>`}async function Ak(e,t){try{return await t.sendPrompt(e.sessionId,e.agentContent),{success:!0,displayContent:e.displayContent,agentContent:e.agentContent}}catch(n){return await G6(n,e.sessionId,e.agentContent,e.displayContent,e.authMethods,t)}}async function G6(e,t,n,r,i,o){if(xk(e))return{success:!0,displayContent:r,agentContent:n};if(wd(e)===at.AUTHENTICATION_REQUIRED&&i&&i.length>0){if(i.length===1){let s=await F6(t,n,r,i[0].id,o);if(s)return s}return{success:!1,displayContent:r,agentContent:n,requiresAuth:!0,error:Ed(e,t)}}return{success:!1,displayContent:r,agentContent:n,error:Ed(e,t)}}async function F6(e,t,n,r,i){try{return await i.authenticate(r)?(await i.sendPrompt(e,t),{success:!0,displayContent:n,agentContent:t,retriedSuccessfully:!0}):null}catch(o){return{success:!1,displayContent:n,agentContent:t,error:Ed(o,e)}}}var Ck=require("obsidian");function zk(e,t){let n=e.content||[];if(t.content!==void 0){let r=t.content||[];r.some(o=>o.type==="diff")&&(n=n.filter(o=>o.type!=="diff")),n=[...n,...r]}return{...e,toolCallId:t.toolCallId,title:t.title!==void 0?t.title:e.title,kind:t.kind!==void 0?t.kind:e.kind,status:t.status!==void 0?t.status:e.status,content:n,locations:t.locations!==void 0?t.locations:e.locations,permissionRequest:t.permissionRequest!==void 0?t.permissionRequest:e.permissionRequest}}function kk(e,t,n,r,i){let[o,a]=(0,st.useState)([]),[s,c]=(0,st.useState)(!1),[d,m]=(0,st.useState)(null),[l,f]=(0,st.useState)(null),p=(0,st.useCallback)(A=>{a(T=>[...T,A])},[]),h=(0,st.useCallback)(A=>{a(T=>{if(T.length===0||T[T.length-1].role!=="assistant"){let H={id:crypto.randomUUID(),role:"assistant",content:[A],timestamp:new Date};return[...T,H]}let G={...T[T.length-1]};if(A.type==="text"||A.type==="agent_thought"){let H=G.content.findIndex(V=>V.type===A.type);if(H>=0){let V=G.content[H];(V.type==="text"||V.type==="agent_thought")&&(G.content[H]={type:A.type,text:V.text+A.text})}else G.content.push(A)}else{let H=G.content.findIndex(V=>V.type===A.type);H>=0?G.content[H]=A:G.content.push(A)}return[...T.slice(0,-1),G]})},[]),y=(0,st.useCallback)(A=>{a(T=>{if(T.length===0||T[T.length-1].role!=="user"){let H={id:crypto.randomUUID(),role:"user",content:[A],timestamp:new Date};return[...T,H]}let G={...T[T.length-1]};if(A.type==="text"){let H=G.content.findIndex(V=>V.type==="text");if(H>=0){let V=G.content[H];V.type==="text"&&(G.content[H]={type:"text",text:V.text+A.text})}else G.content.push(A)}else{let H=G.content.findIndex(V=>V.type===A.type);H>=0?G.content[H]=A:G.content.push(A)}return[...T.slice(0,-1),G]})},[]),x=(0,st.useCallback)((A,T)=>{T.type==="tool_call"&&a(I=>I.map(G=>({...G,content:G.content.map(H=>H.type==="tool_call"&&H.toolCallId===A?zk(H,T):H)})))},[]),v=(0,st.useCallback)((A,T)=>{T.type==="tool_call"&&a(I=>{let G=!1,H=I.map(V=>({...V,content:V.content.map(C=>C.type==="tool_call"&&C.toolCallId===A?(G=!0,zk(C,T)):C)}));return G?H:[...I,{id:crypto.randomUUID(),role:"assistant",content:[T],timestamp:new Date}]})},[]),g=(0,st.useCallback)(A=>{switch(A.type){case"agent_message_chunk":h({type:"text",text:A.text});break;case"agent_thought_chunk":h({type:"agent_thought",text:A.text});break;case"user_message_chunk":y({type:"text",text:A.text});break;case"tool_call":case"tool_call_update":v(A.toolCallId,{type:"tool_call",toolCallId:A.toolCallId,title:A.title,status:A.status||"pending",kind:A.kind,content:A.content,locations:A.locations,permissionRequest:A.permissionRequest});break;case"plan":h({type:"plan",entries:A.entries});break;case"available_commands_update":case"current_mode_update":break}},[h,v]),b=(0,st.useCallback)(()=>{a([]),m(null),c(!1),f(null)},[]),S=(0,st.useCallback)(A=>{let T=A.map(I=>({id:crypto.randomUUID(),role:I.role,content:I.content.map(G=>({type:G.type,text:G.text})),timestamp:I.timestamp?new Date(I.timestamp):new Date}));a(T),c(!1),f(null)},[]),$=(0,st.useCallback)(A=>{a(A),c(!1),f(null)},[]),M=(0,st.useCallback)(()=>{f(null)},[]),z=(0,st.useMemo)(()=>Ck.Platform.isWin&&i.windowsWslMode,[i.windowsWslMode]),q=(0,st.useCallback)(async(A,T)=>{var V,C;if(!r.sessionId){f({title:"Cannot Send Message",message:"No active session. Please wait for connection."});return}let I=await Ek({message:A,images:T.images,activeNote:T.activeNote,vaultBasePath:T.vaultBasePath,isAutoMentionDisabled:T.isAutoMentionDisabled,convertToWsl:z,supportsEmbeddedContext:(C=(V=r.promptCapabilities)==null?void 0:V.embeddedContext)!=null?C:!1,maxNoteLength:i.maxNoteLength,maxSelectionLength:i.maxSelectionLength},t,n),G=[];if(I.autoMentionContext?G.push({type:"text_with_context",text:A,autoMentionContext:I.autoMentionContext}):G.push({type:"text",text:A}),T.images&&T.images.length>0)for(let P of T.images)G.push({type:"image",data:P.data,mimeType:P.mimeType});let H={id:crypto.randomUUID(),role:"user",content:G,timestamp:new Date};p(H),c(!0),m(A);try{let P=await Ak({sessionId:r.sessionId,agentContent:I.agentContent,displayContent:I.displayContent,authMethods:r.authMethods},e);P.success?(c(!1),m(null)):(c(!1),f(P.error?{title:P.error.title,message:P.error.message,suggestion:P.error.suggestion}:{title:"Send Message Failed",message:"Failed to send message"}))}catch(P){c(!1),f({title:"Send Message Failed",message:`Failed to send message: ${P instanceof Error?P.message:String(P)}`})}},[e,t,n,r.sessionId,r.authMethods,r.promptCapabilities,z,p]);return{messages:o,isSending:s,lastUserMessage:d,errorInfo:l,sendMessage:q,clearMessages:b,setInitialMessages:S,setMessagesFromLocal:$,clearError:M,addMessage:p,updateLastMessage:h,updateMessage:x,upsertToolCall:v,handleSessionUpdate:g}}var ki=J(Ne());function X6(e){for(let t of e)for(let n of t.content)if(n.type==="tool_call"){let r=n.permissionRequest;if(r!=null&&r.isActive)return{requestId:r.requestId,toolCallId:n.toolCallId,options:r.options}}return null}function Tk(e,t,n){for(let r of t){let i=e.find(o=>o.kind===r);if(i)return i}if(n){let r=e.find(n);if(r)return r}return e[0]}function Ik(e,t){let[n,r]=(0,ki.useState)(null),i=(0,ki.useMemo)(()=>X6(t),[t]),o=(0,ki.useCallback)(async(d,m)=>{try{await e.respondToPermission(d,m)}catch(l){r({title:"Permission Error",message:`Failed to respond to permission request: ${l instanceof Error?l.message:String(l)}`})}},[e]),a=(0,ki.useCallback)(async()=>{if(!i||i.options.length===0)return!1;let d=Tk(i.options,["allow_once","allow_always"]);return d?(await o(i.requestId,d.optionId),!0):!1},[i,o]),s=(0,ki.useCallback)(async()=>{if(!i||i.options.length===0)return!1;let d=Tk(i.options,["reject_once","reject_always"],m=>m.name.toLowerCase().includes("reject")||m.name.toLowerCase().includes("deny"));return d?(await o(i.requestId,d.optionId),!0):!1},[i,o]),c=(0,ki.useCallback)(()=>{r(null)},[]);return{activePermission:i,errorInfo:n,approvePermission:o,approveActivePermission:a,rejectActivePermission:s,clearError:c}}var Ol=J(Ne());var mv=require("obsidian");function Nk(e){let t=(0,Ol.useRef)(new Pe(e)),n=(0,Ol.useCallback)(async(i,o)=>{if(i.length===0||!o.sessionId)return null;try{let a=new Aa(e),s=e.settings.exportSettings.openFileAfterExport;return await a.exportToMarkdown(i,o.agentDisplayName,o.agentId,o.sessionId,o.createdAt,s)}catch(a){throw t.current.error("Export failed:",a),a}},[e]);return{autoExportIfEnabled:(0,Ol.useCallback)(async(i,o,a)=>{if((i==="newChat"?e.settings.exportSettings.autoExportOnNewChat:e.settings.exportSettings.autoExportOnCloseChat)&&o.length!==0&&a.sessionId)try{let c=await n(o,a);if(c){new mv.Notice(`[Agent Client] Chat exported to ${c}`);let d=i==="newChat"?"new session":"closing chat";t.current.log(`Chat auto-exported before ${d}`)}}catch(c){new mv.Notice("[Agent Client] Failed to export chat")}},[e,n]),exportChat:n}}var et=J(Ne());function Ok(e){let t=e==null?void 0:e.sessionCapabilities;return{canLoad:(e==null?void 0:e.loadSession)===!0,canResume:(t==null?void 0:t.resume)!==void 0,canFork:(t==null?void 0:t.fork)!==void 0,canList:(t==null?void 0:t.list)!==void 0}}var J6=5*60*1e3;function Dk(e){let{agentClient:t,session:n,settingsAccess:r,cwd:i,onSessionLoad:o,onMessagesRestore:a,onLoadStart:s,onLoadEnd:c}=e,d=(0,et.useMemo)(()=>Ok(n.agentCapabilities),[n.agentCapabilities]),[m,l]=(0,et.useState)([]),[f,p]=(0,et.useState)(!1),[h,y]=(0,et.useState)(null),[x,v]=(0,et.useState)(void 0),g=(0,et.useRef)(null),b=(0,et.useRef)(void 0),S=(0,et.useCallback)(V=>!g.current||g.current.cwd!==V?!1:Date.now()-g.current.timestamp<J6,[]),$=(0,et.useCallback)(()=>{g.current=null},[]),M=d.canLoad||d.canResume||d.canFork,z=(0,et.useCallback)(async V=>{if(!d.canList||!M){let ee=r.getSavedSessions(n.agentId,V).map(re=>({sessionId:re.sessionId,cwd:re.cwd,title:re.title,updatedAt:re.updatedAt}));l(ee),v(void 0),y(null);return}if(S(V)){l(g.current.sessions),v(g.current.nextCursor),y(null);return}p(!0),y(null),b.current=V;try{let P=await t.listSessions(V);l(P.sessions),v(P.nextCursor),g.current={sessions:P.sessions,nextCursor:P.nextCursor,cwd:V,timestamp:Date.now()}}catch(P){let ee=P instanceof Error?P.message:String(P);y(`Failed to fetch sessions: ${ee}`),l([]),v(void 0)}finally{p(!1)}},[t,d.canList,M,S,r,n.agentId]),q=(0,et.useCallback)(async()=>{if(!(!x||!d.canList)){p(!0),y(null);try{let V=await t.listSessions(b.current,x);l(C=>[...C,...V.sessions]),v(V.nextCursor),g.current&&(g.current={...g.current,sessions:[...g.current.sessions,...V.sessions],nextCursor:V.nextCursor,timestamp:Date.now()})}catch(V){let C=V instanceof Error?V.message:String(V);y(`Failed to load more sessions: ${C}`)}finally{p(!1)}}},[t,d.canList,x]),A=(0,et.useCallback)(async(V,C)=>{p(!0),y(null);try{if(o(V,void 0,void 0),d.canLoad){s==null||s();try{let P=r.loadSessionMessages(V),ee=await t.loadSession(V,C);o(ee.sessionId,ee.modes,ee.models);let re=await P;re&&a&&a(re)}finally{c==null||c()}}else if(d.canResume){let P=await t.resumeSession(V,C);o(P.sessionId,P.modes,P.models);let ee=await r.loadSessionMessages(V);ee&&a&&a(ee)}else throw new Error("Session restoration is not supported")}catch(P){let ee=P instanceof Error?P.message:String(P);throw y(`Failed to restore session: ${ee}`),P}finally{p(!1)}},[t,d.canLoad,d.canResume,o,r,a,s,c]),T=(0,et.useCallback)(async(V,C)=>{var P;p(!0),y(null);try{let ee=await t.forkSession(V,C);o(ee.sessionId,ee.modes,ee.models);let re=await r.loadSessionMessages(V);if(re&&a&&a(re),n.agentId){let we=m.find(Qt=>Qt.sessionId===V),Z=(P=we==null?void 0:we.title)!=null?P:"Session",B=50,Ie="Fork: ",ye=B-Ie.length,ti=Z.length>ye?Z.substring(0,ye)+"...":Z,$t=`${Ie}${ti}`,Di=new Date().toISOString();await r.saveSession({sessionId:ee.sessionId,agentId:n.agentId,cwd:C,title:$t,createdAt:Di,updatedAt:Di}),re&&r.saveSessionMessages(ee.sessionId,n.agentId,re)}$()}catch(ee){let re=ee instanceof Error?ee.message:String(ee);throw y(`Failed to fork session: ${re}`),ee}finally{p(!1)}},[t,o,r,a,$,n.agentId,m]),I=(0,et.useCallback)(async V=>{try{await r.deleteSession(V),l(C=>C.filter(P=>P.sessionId!==V)),$()}catch(C){let P=C instanceof Error?C.message:String(C);throw y(`Failed to delete session: ${P}`),C}},[r,$]),G=(0,et.useCallback)(async(V,C)=>{if(!n.agentId)return;let P=C.length>50?C.substring(0,50)+"...":C;await r.saveSession({sessionId:V,agentId:n.agentId,cwd:i,title:P,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()})},[n.agentId,i,r]),H=(0,et.useCallback)((V,C)=>{!n.agentId||C.length===0||r.saveSessionMessages(V,n.agentId,C)},[n.agentId,r]);return{sessions:m,loading:f,error:h,hasMore:x!==void 0,canShowSessionHistory:d.canList||d.canLoad||d.canResume||d.canFork,canRestore:d.canLoad||d.canResume,canFork:d.canFork,canList:d.canList,isUsingLocalSessions:!d.canList,fetchSessions:z,loadMoreSessions:q,restoreSession:A,forkSession:T,deleteSession:I,saveSessionLocally:G,saveSessionMessages:H,invalidateCache:$}}var hr=J(me()),{useState:so,useRef:Ti,useEffect:kt,useMemo:lo,useCallback:Ze}=Y6,vr="agent-client-chat-view";function K6({plugin:e,view:t,viewId:n}){var gs,hs,N;if(!xt.Platform.isDesktopApp)throw new Error("Agent Client is only available on desktop");let r=lo(()=>new Pe(e),[e]),i=lo(()=>e.app.vault.adapter.basePath||process.cwd(),[e]),o=lo(()=>new Sd(e),[e]);kt(()=>()=>{o.destroy()},[o]),kt(()=>{let w=()=>{e.setLastActiveChatViewId(n)},U=t.containerEl;return U.addEventListener("focus",w,!0),U.addEventListener("click",w),e.setLastActiveChatViewId(n),()=>{U.removeEventListener("focus",w,!0),U.removeEventListener("click",w)}},[e,n,t.containerEl]);let a=lo(()=>e.getOrCreateAdapter(n),[e,n]),s=Ti(a),c=lo(()=>new xd(e,o),[e,o]),d=vd(e),[m,l]=so((gs=t.getInitialAgentId())!=null?gs:void 0);kt(()=>t.onAgentIdRestored(U=>{r.log(`[ChatView] Agent ID restored from workspace: ${U}`),l(U)}),[t,r]);let f=bk(a,e.settingsStore,i,m),{session:p,errorInfo:h,isReady:y}=f,x=kk(a,c,o,{sessionId:p.sessionId,authMethods:p.authMethods,promptCapabilities:p.promptCapabilities},{windowsWslMode:d.windowsWslMode,maxNoteLength:d.displaySettings.maxNoteLength,maxSelectionLength:d.displaySettings.maxSelectionLength}),{messages:v,isSending:g}=x,b=Ik(a,v),S=uk(c,e),$=fk(c),M=dk(p.availableCommands||[],$.toggle),z=Nk(e),q=Ze((w,U,Y)=>{r.log(`[ChatView] Session loaded/resumed/forked: ${w}`,{modes:U,models:Y}),f.updateSessionFromLoad(w,U,Y)},[r,f]),A=Ze(()=>{r.log("[ChatView] session/load started, ignoring history replay"),re(!0),x.clearMessages()},[r,x]),T=Ze(()=>{r.log("[ChatView] session/load ended, resuming normal processing"),re(!1)},[r]),I=Dk({agentClient:a,session:p,settingsAccess:e.settingsStore,cwd:i,onSessionLoad:q,onMessagesRestore:x.setMessagesFromLocal,onLoadStart:A,onLoadEnd:T}),G=h||x.errorInfo||b.errorInfo,[H,V]=so(!1),[C,P]=so(null),[ee,re]=so(!1),[we,Z]=so(!1),[B,Ie]=so(""),[ye,ti]=so([]),$t=Ti(null),Di=Ti(null),Qt=Ti(!1),_o=lo(()=>{let w=p.agentId;if(w===e.settings.claude.id)return e.settings.claude.displayName||e.settings.claude.id;if(w===e.settings.codex.id)return e.settings.codex.displayName||e.settings.codex.id;if(w===e.settings.gemini.id)return e.settings.gemini.displayName||e.settings.gemini.id;let U=e.settings.customAgents.find(Y=>Y.id===w);return(U==null?void 0:U.displayName)||(U==null?void 0:U.id)||w},[p.agentId,e.settings]),Tr=Ze(async w=>{let U=w&&w!==p.agentId;if(v.length===0&&!U){new xt.Notice("[Agent Client] Already a new session");return}x.isSending&&await f.cancelOperation(),r.log(`[Debug] Creating new session${U?` with agent: ${w}`:""}...`),v.length>0&&await z.autoExportIfEnabled("newChat",v,p),$.toggle(!1),x.clearMessages();let Y=U?w:p.agentId;await f.restartSession(Y),Y&&t.setAgentId(Y),I.invalidateCache()},[v,p,r,z,$,x,f,I,t]),yc=Ze(async()=>{if(v.length===0){new xt.Notice("[Agent Client] No messages to export");return}try{let w=new Aa(e),U=e.settings.exportSettings.openFileAfterExport,Y=await w.exportToMarkdown(v,p.agentDisplayName,p.agentId,p.sessionId||"unknown",p.createdAt,U);new xt.Notice(`[Agent Client] Chat exported to ${Y}`)}catch(w){new xt.Notice("[Agent Client] Failed to export chat"),r.error("Export error:",w)}},[v,p,e,r]),$o=Ze(()=>{let w=e.app;w.setting.open(),w.setting.openTabById(e.manifest.id)},[e]),Om=Ze(()=>{Z(w=>!w)},[]),Dm=Ze(()=>{Z(!1)},[]),Rm=Ze(w=>{Z(!1),w!==p.agentId&&Tr(w)},[p.agentId,Tr]),Mm=Ze(()=>{Z(!1),e.openNewChatViewWithAgent(e.settings.defaultAgentId)},[e]),Um=lo(()=>e.getAvailableAgents(),[e]),Ir=Ze(async(w,U)=>{try{r.log(`[ChatView] Restoring session: ${w}`),x.clearMessages(),await I.restoreSession(w,U),new xt.Notice("[Agent Client] Session restored")}catch(Y){new xt.Notice("[Agent Client] Failed to restore session"),r.error("Session restore error:",Y)}},[r,x,I]),Ri=Ze(async(w,U)=>{try{r.log(`[ChatView] Forking session: ${w}`),x.clearMessages(),await I.forkSession(w,U),new xt.Notice("[Agent Client] Session forked")}catch(Y){new xt.Notice("[Agent Client] Failed to fork session"),r.error("Session fork error:",Y)}},[r,x,I]),Mi=Ze(w=>{var wt;let U=I.sessions.find(vs=>vs.sessionId===w),Y=(wt=U==null?void 0:U.title)!=null?wt:"Untitled Session";new bd(e.app,Y,async()=>{try{r.log(`[ChatView] Deleting session: ${w}`),await I.deleteSession(w),new xt.Notice("[Agent Client] Session deleted")}catch(vs){new xt.Notice("[Agent Client] Failed to delete session"),r.error("Session delete error:",vs)}}).open()},[e.app,I,r]),Nr=Ze(()=>{I.loadMoreSessions()},[I]),ni=Ze(w=>{I.fetchSessions(w)},[I]),ds=Ze(()=>{$t.current||($t.current=new yd(e.app,{sessions:I.sessions,loading:I.loading,error:I.error,hasMore:I.hasMore,currentCwd:i,canList:I.canList,canRestore:I.canRestore,canFork:I.canFork,isUsingLocalSessions:I.isUsingLocalSessions,isAgentReady:y,debugMode:d.debugMode,onRestoreSession:Ir,onForkSession:Ri,onDeleteSession:Mi,onLoadMore:Nr,onFetchSessions:ni})),$t.current.open(),I.fetchSessions(i)},[e.app,I,i,y,d.debugMode,Ir,Ri,Mi,Nr,ni]);kt(()=>{$t.current&&$t.current.updateProps({sessions:I.sessions,loading:I.loading,error:I.error,hasMore:I.hasMore,currentCwd:i,canList:I.canList,canRestore:I.canRestore,canFork:I.canFork,isUsingLocalSessions:I.isUsingLocalSessions,isAgentReady:y,debugMode:d.debugMode,onRestoreSession:Ir,onForkSession:Ri,onDeleteSession:Mi,onLoadMore:Nr,onFetchSessions:ni})},[I.sessions,I.loading,I.error,I.hasMore,I.canList,I.canRestore,I.canFork,I.isUsingLocalSessions,i,y,d.debugMode,Ir,Ri,Mi,Nr,ni]);let wo=Ze(async(w,U)=>{let Y=v.length===0;await x.sendMessage(w,{activeNote:$.activeNote,vaultBasePath:e.app.vault.adapter.basePath||"",isAutoMentionDisabled:$.isDisabled,images:U}),Y&&p.sessionId&&(await I.saveSessionLocally(p.sessionId,w),r.log(`[ChatView] Session saved locally: ${p.sessionId}`))},[x,$,e,v.length,p.sessionId,I,r]),Un=Ze(async()=>{r.log("Cancelling current operation...");let w=x.lastUserMessage;await f.cancelOperation(),w&&P(w)},[r,f,x.lastUserMessage]),jm=Ze(()=>{x.clearError()},[x]),Pm=Ze(()=>{P(null)},[]),Eo=Ze(()=>({text:B,images:ye}),[B,ye]),Or=Ze(w=>{Ie(w.text),ti(w.images)},[]),Ui=Ze(async()=>{if(!B.trim()&&ye.length===0||!y||I.loading||g)return!1;let w=ye.map(Y=>({type:"image",data:Y.data,mimeType:Y.mimeType})),U=B.trim();return Ie(""),ti([]),await wo(U,w.length>0?w:void 0),!0},[B,ye,y,I.loading,g,wo]),Ao=Ze(()=>(B.trim()!==""||ye.length>0)&&y&&!I.loading&&!g,[B,ye,y,I.loading,g]),Dr=Ze(async()=>{g&&await Un()},[g,Un]);kt(()=>(t.registerInputCallbacks({getInputState:Eo,setInputState:Or,sendMessage:Ui,canSend:Ao,cancel:Dr}),()=>{t.unregisterInputCallbacks()}),[t,Eo,Or,Ui,Ao,Dr]),kt(()=>{r.log("[Debug] Starting connection setup via useAgentSession..."),f.createSession(m)},[f.createSession,m]),kt(()=>{Qt.current||m&&p.state!=="initializing"&&(Qt.current=!0,p.agentId!==m&&(r.log(`[ChatView] Switching to restored agent: ${m} (current: ${p.agentId})`),f.restartSession(m)))},[m,p.state,p.agentId,f,r]);let ji=Ti(v),bc=Ti(p),fs=Ti(z),ms=Ti(f.closeSession);ji.current=v,bc.current=p,fs.current=z,ms.current=f.closeSession,kt(()=>()=>{r.log("[ChatView] Cleanup: auto-export and close session"),(async()=>(await fs.current.autoExportIfEnabled("closeChat",ji.current,bc.current),await ms.current()))()},[]),kt(()=>{a.onSessionUpdate(w=>{if(p.sessionId&&w.sessionId!==p.sessionId){r.log(`[ChatView] Ignoring update for old session: ${w.sessionId} (current: ${p.sessionId})`);return}if(ee){w.type==="available_commands_update"?f.updateAvailableCommands(w.commands):w.type==="current_mode_update"&&f.updateCurrentMode(w.currentModeId);return}x.handleSessionUpdate(w),w.type==="available_commands_update"?f.updateAvailableCommands(w.commands):w.type==="current_mode_update"&&f.updateCurrentMode(w.currentModeId)})},[a,p.sessionId,r,ee,x.handleSessionUpdate,f.updateAvailableCommands,f.updateCurrentMode]),kt(()=>{a.setUpdateMessageCallback(x.updateMessage)},[a,x.updateMessage]),kt(()=>{e.checkForUpdates().then(V).catch(w=>{console.error("Failed to check for updates:",w)})},[e]);let ps=Ti(!1);return kt(()=>{let w=ps.current;ps.current=g,w&&!g&&p.sessionId&&v.length>0&&(I.saveSessionMessages(p.sessionId,v),r.log(`[ChatView] Session messages saved: ${p.sessionId}`))},[g,p.sessionId,v,I,r]),kt(()=>{let w=!0,U=async()=>{w&&await $.updateActiveNote()},Y=c.subscribeSelectionChanges(()=>{U()});return U(),()=>{w=!1,Y()}},[$.updateActiveNote,c]),kt(()=>{let w=e.app.workspace,U=w.on("agent-client:toggle-auto-mention",Y=>{Y&&Y!==n||$.toggle()});return()=>{w.offref(U)}},[e.app.workspace,$.toggle,n]),kt(()=>{let w=e.app.workspace,U=w.on("agent-client:new-chat-requested",Y=>{e.lastActiveChatViewId&&e.lastActiveChatViewId!==n||Tr(Y)});return()=>{w.offref(U)}},[e.app.workspace,e.lastActiveChatViewId,Tr,n]),kt(()=>{let w=e.app.workspace,U=w.on("agent-client:approve-active-permission",wt=>{wt&&wt!==n||(async()=>await b.approveActivePermission()||new xt.Notice("[Agent Client] No active permission request"))()}),Y=w.on("agent-client:reject-active-permission",wt=>{wt&&wt!==n||(async()=>await b.rejectActivePermission()||new xt.Notice("[Agent Client] No active permission request"))()}),Cn=w.on("agent-client:cancel-message",wt=>{wt&&wt!==n||Un()});return()=>{w.offref(U),w.offref(Y),w.offref(Cn)}},[e.app.workspace,b.approveActivePermission,b.rejectActivePermission,Un,n]),(0,hr.jsxs)("div",{className:"agent-client-chat-view-container",children:[(0,hr.jsx)(wC,{agentLabel:_o,isUpdateAvailable:H,hasHistoryCapability:I.canShowSessionHistory,onNewChat:()=>void Tr(),onExportChat:()=>void yc(),onToggleMenu:Om,onOpenHistory:ds,menuButtonRef:Di}),we&&(0,hr.jsx)(ok,{anchorRef:Di,currentAgentId:p.agentId||"",availableAgents:Um,onSwitchAgent:Rm,onOpenNewView:Mm,onOpenPluginSettings:$o,onClose:Dm,plugin:e,view:t}),(0,hr.jsx)(ZC,{messages:v,isSending:g,isSessionReady:y,isRestoringSession:I.loading,agentLabel:_o,plugin:e,view:t,acpClient:s.current,onApprovePermission:b.approvePermission}),(0,hr.jsx)(KC,{isSending:g,isSessionReady:y,isRestoringSession:I.loading,agentLabel:_o,availableCommands:p.availableCommands||[],autoMentionEnabled:d.autoMentionActiveNote,restoredMessage:C,mentions:S,slashCommands:M,autoMention:$,plugin:e,view:t,onSendMessage:wo,onStopGeneration:Un,onRestoredMessageConsumed:Pm,modes:p.modes,onModeChange:w=>void f.setMode(w),models:p.models,onModelChange:w=>void f.setModel(w),supportsImages:(N=(hs=p.promptCapabilities)==null?void 0:hs.image)!=null?N:!1,agentId:p.agentId,inputValue:B,onInputChange:Ie,attachedImages:ye,onAttachedImagesChange:ti,errorInfo:G,onClearError:jm})]})}var Dl=class extends xt.ItemView{constructor(n,r){var i;super(n);this.root=null;this.initialAgentId=null;this.agentIdRestoredCallbacks=new Set;this.getInputStateCallback=null;this.setInputStateCallback=null;this.sendMessageCallback=null;this.canSendCallback=null;this.cancelCallback=null;this.plugin=r,this.logger=new Pe(r),this.viewId=(i=n.id)!=null?i:crypto.randomUUID()}getViewType(){return vr}getDisplayText(){return"Agent client"}getIcon(){return"bot-message-square"}getState(){var n;return{initialAgentId:(n=this.initialAgentId)!=null?n:void 0}}async setState(n,r){var o;let i=this.initialAgentId;this.initialAgentId=(o=n.initialAgentId)!=null?o:null,await super.setState(n,r),this.initialAgentId&&this.initialAgentId!==i&&this.agentIdRestoredCallbacks.forEach(a=>a(this.initialAgentId))}getInitialAgentId(){return this.initialAgentId}setAgentId(n){this.initialAgentId=n,this.app.workspace.requestSaveLayout()}onAgentIdRestored(n){return this.agentIdRestoredCallbacks.add(n),()=>{this.agentIdRestoredCallbacks.delete(n)}}registerInputCallbacks(n){this.getInputStateCallback=n.getInputState,this.setInputStateCallback=n.setInputState,this.sendMessageCallback=n.sendMessage,this.canSendCallback=n.canSend,this.cancelCallback=n.cancel}unregisterInputCallbacks(){this.getInputStateCallback=null,this.setInputStateCallback=null,this.sendMessageCallback=null,this.canSendCallback=null,this.cancelCallback=null}getInputState(){var n,r;return(r=(n=this.getInputStateCallback)==null?void 0:n.call(this))!=null?r:null}setInputState(n){var r;(r=this.setInputStateCallback)==null||r.call(this,n)}async sendMessage(){var n,r;return(r=await((n=this.sendMessageCallback)==null?void 0:n.call(this)))!=null?r:!1}canSend(){var n,r;return(r=(n=this.canSendCallback)==null?void 0:n.call(this))!=null?r:!1}async cancelOperation(){var n;await((n=this.cancelCallback)==null?void 0:n.call(this))}onOpen(){let n=this.containerEl.children[1];return n.empty(),this.root=(0,Rk.createRoot)(n),this.root.render((0,hr.jsx)(K6,{plugin:this.plugin,view:this,viewId:this.viewId})),Promise.resolve()}async onClose(){this.logger.log("[ChatView] onClose() called"),this.root&&(this.root.unmount(),this.root=null),await this.plugin.removeAdapter(this.viewId)}};var pv=class{constructor(t,n){this.listeners=new Set;this.sessionLock=Promise.resolve();this.getSnapshot=()=>this.state;this.subscribe=t=>(this.listeners.add(t),()=>this.listeners.delete(t));this.state=t,this.plugin=n}async updateSettings(t){let n={...this.state,...t};this.state=n,this.plugin.settings=n;for(let r of this.listeners)r();await this.plugin.saveSettings()}set(t){this.updateSettings(t)}async saveSession(t){this.sessionLock=this.sessionLock.then(async()=>{let n=[...this.state.savedSessions||[]],r=n.findIndex(i=>i.sessionId===t.sessionId);r>=0?n[r]=t:(n.unshift(t),n.length>pv.MAX_SAVED_SESSIONS&&n.pop()),await this.updateSettings({savedSessions:n})}),await this.sessionLock}getSavedSessions(t,n){let r=this.state.savedSessions||[];return t&&(r=r.filter(i=>i.agentId===t)),n&&(r=r.filter(i=>i.cwd===n)),[...r].sort((i,o)=>new Date(o.updatedAt).getTime()-new Date(i.updatedAt).getTime())}async deleteSession(t){this.sessionLock=this.sessionLock.then(async()=>{let n=(this.state.savedSessions||[]).filter(r=>r.sessionId!==t);await this.updateSettings({savedSessions:n}),await this.deleteSessionMessages(t)}),await this.sessionLock}getSessionsDir(){return`${this.plugin.app.vault.configDir}/plugins/agent-client/sessions`}async ensureSessionsDir(){let t=this.plugin.app.vault.adapter,n=this.getSessionsDir();await t.exists(n)||await t.mkdir(n)}getSessionFilePath(t){let n=t.replace(/[^a-zA-Z0-9_-]/g,"_");return`${this.getSessionsDir()}/${n}.json`}async saveSessionMessages(t,n,r){await this.ensureSessionsDir();let i=r.map(s=>({...s,timestamp:s.timestamp.toISOString()})),o={version:1,sessionId:t,agentId:n,messages:i,savedAt:new Date().toISOString()},a=this.getSessionFilePath(t);await this.plugin.app.vault.adapter.write(a,JSON.stringify(o,null,2))}async loadSessionMessages(t){let n=this.getSessionFilePath(t),r=this.plugin.app.vault.adapter;if(!await r.exists(n))return null;try{let i=await r.read(n),o=JSON.parse(i);return typeof o.version!="number"||!Array.isArray(o.messages)?(console.warn(`[SettingsStore] Invalid session file structure: ${n}`),null):o.version!==1?(console.warn(`[SettingsStore] Unknown session file version: ${o.version}`),null):o.messages.map(a=>({...a,timestamp:new Date(a.timestamp)}))}catch(i){return console.error(`[SettingsStore] Failed to load session messages: ${i}`),null}}async deleteSessionMessages(t){let n=this.getSessionFilePath(t),r=this.plugin.app.vault.adapter;await r.exists(n)&&await r.remove(n)}},zd=pv;zd.MAX_SAVED_SESSIONS=50;var Mk=(e,t)=>new zd(e,t);var K=require("obsidian");var Cd=class extends K.PluginSettingTab{constructor(n,r){super(n,r);this.agentSelector=null;this.unsubscribe=null;this.plugin=r}display(){let{containerEl:n}=this;n.empty(),this.agentSelector=null,this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null);let r=n.createDiv({cls:"agent-client-doc-link"});r.createSpan({text:"Need help? Check out the "}),r.createEl("a",{text:"documentation",href:"https://rait-09.github.io/obsidian-agent-client/"}),r.createSpan({text:"."}),this.renderAgentSelector(n),this.unsubscribe=this.plugin.settingsStore.subscribe(()=>{this.updateAgentDropdown()}),this.updateAgentDropdown(),new K.Setting(n).setName("Node.js path").setDesc('Absolute path to Node.js executable. On macOS/Linux, use "which node", and on Windows, use "where node" to find it.').addText(i=>{i.setPlaceholder("Absolute path to node").setValue(this.plugin.settings.nodePath).onChange(async o=>{this.plugin.settings.nodePath=o.trim(),await this.plugin.saveSettings()})}),new K.Setting(n).setName("Send message shortcut").setDesc("Choose the keyboard shortcut to send messages. Note: If using Cmd/Ctrl+Enter, you may need to remove any hotkeys assigned to Cmd/Ctrl+Enter (Settings \u2192 Hotkeys).").addDropdown(i=>i.addOption("enter","Enter to send, Shift+Enter for newline").addOption("cmd-enter","Cmd/Ctrl+Enter to send, Enter for newline").setValue(this.plugin.settings.sendMessageShortcut).onChange(async o=>{this.plugin.settings.sendMessageShortcut=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Mentions").setHeading(),new K.Setting(n).setName("Auto-mention active note").setDesc("Include the current note in your messages automatically. The agent will have access to its content without typing @notename.").addToggle(i=>i.setValue(this.plugin.settings.autoMentionActiveNote).onChange(async o=>{this.plugin.settings.autoMentionActiveNote=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Max note length").setDesc("Maximum characters per mentioned note. Notes longer than this will be truncated.").addText(i=>i.setPlaceholder("10000").setValue(String(this.plugin.settings.displaySettings.maxNoteLength)).onChange(async o=>{let a=parseInt(o,10);!isNaN(a)&&a>=1&&(this.plugin.settings.displaySettings.maxNoteLength=a,await this.plugin.saveSettings())})),new K.Setting(n).setName("Max selection length").setDesc("Maximum characters for text selection in auto-mention. Selections longer than this will be truncated.").addText(i=>i.setPlaceholder("10000").setValue(String(this.plugin.settings.displaySettings.maxSelectionLength)).onChange(async o=>{let a=parseInt(o,10);!isNaN(a)&&a>=1&&(this.plugin.settings.displaySettings.maxSelectionLength=a,await this.plugin.saveSettings())})),new K.Setting(n).setName("Display").setHeading(),new K.Setting(n).setName("Chat view location").setDesc("Where to open new chat views").addDropdown(i=>i.addOption("right-tab","Right pane (tabs)").addOption("editor-tab","Editor area (tabs)").addOption("editor-split","Editor area (split)").setValue(this.plugin.settings.chatViewLocation).onChange(async o=>{this.plugin.settings.chatViewLocation=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Show emojis").setDesc("Display emoji icons in tool calls, thoughts, plans, and terminal blocks.").addToggle(i=>i.setValue(this.plugin.settings.displaySettings.showEmojis).onChange(async o=>{this.plugin.settings.displaySettings.showEmojis=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Auto-collapse long diffs").setDesc("Automatically collapse diffs that exceed the line threshold.").addToggle(i=>i.setValue(this.plugin.settings.displaySettings.autoCollapseDiffs).onChange(async o=>{this.plugin.settings.displaySettings.autoCollapseDiffs=o,await this.plugin.saveSettings(),this.display()})),this.plugin.settings.displaySettings.autoCollapseDiffs&&new K.Setting(n).setName("Collapse threshold").setDesc("Diffs with more lines than this will be collapsed by default.").addText(i=>i.setPlaceholder("10").setValue(String(this.plugin.settings.displaySettings.diffCollapseThreshold)).onChange(async o=>{let a=parseInt(o,10);!isNaN(a)&&a>0&&(this.plugin.settings.displaySettings.diffCollapseThreshold=a,await this.plugin.saveSettings())})),new K.Setting(n).setName("Permissions").setHeading(),new K.Setting(n).setName("Auto-allow permissions").setDesc("Automatically allow all permission requests from agents. \u26A0\uFE0F Use with caution - this gives agents full access to your system.").addToggle(i=>i.setValue(this.plugin.settings.autoAllowPermissions).onChange(async o=>{this.plugin.settings.autoAllowPermissions=o,await this.plugin.saveSettings()})),K.Platform.isWin&&(new K.Setting(n).setName("Windows Subsystem for Linux").setHeading(),new K.Setting(n).setName("Enable WSL mode").setDesc("Run agents inside Windows Subsystem for Linux. Recommended for agents like Codex that don't work well in native Windows environments.").addToggle(i=>i.setValue(this.plugin.settings.windowsWslMode).onChange(async o=>{this.plugin.settings.windowsWslMode=o,await this.plugin.saveSettings(),this.display()})),this.plugin.settings.windowsWslMode&&new K.Setting(n).setName("WSL distribution").setDesc("Specify WSL distribution name (leave empty for default). Example: Ubuntu, Debian").addText(i=>i.setPlaceholder("Leave empty for default").setValue(this.plugin.settings.windowsWslDistribution||"").onChange(async o=>{this.plugin.settings.windowsWslDistribution=o.trim()||void 0,await this.plugin.saveSettings()}))),new K.Setting(n).setName("Built-in agents").setHeading(),this.renderClaudeSettings(n),this.renderCodexSettings(n),this.renderGeminiSettings(n),new K.Setting(n).setName("Custom agents").setHeading(),this.renderCustomAgents(n),new K.Setting(n).setName("Export").setHeading(),new K.Setting(n).setName("Export folder").setDesc("Folder where chat exports will be saved").addText(i=>i.setPlaceholder("Agent Client").setValue(this.plugin.settings.exportSettings.defaultFolder).onChange(async o=>{this.plugin.settings.exportSettings.defaultFolder=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Filename").setDesc("Template for exported filenames. Use {date} for date and {time} for time").addText(i=>i.setPlaceholder("agent_client_{date}_{time}").setValue(this.plugin.settings.exportSettings.filenameTemplate).onChange(async o=>{this.plugin.settings.exportSettings.filenameTemplate=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Frontmatter tag").setDesc("Tag to add to exported notes. Supports nested tags (e.g., projects/agent-client). Leave empty to disable.").addText(i=>i.setPlaceholder("agent-client").setValue(this.plugin.settings.exportSettings.frontmatterTag).onChange(async o=>{this.plugin.settings.exportSettings.frontmatterTag=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Include images").setDesc("Include images in exported markdown files").addToggle(i=>i.setValue(this.plugin.settings.exportSettings.includeImages).onChange(async o=>{this.plugin.settings.exportSettings.includeImages=o,await this.plugin.saveSettings(),this.display()})),this.plugin.settings.exportSettings.includeImages&&(new K.Setting(n).setName("Image location").setDesc("Where to save exported images").addDropdown(i=>i.addOption("obsidian","Use Obsidian's attachment setting").addOption("custom","Save to custom folder").addOption("base64","Embed as Base64 (not recommended)").setValue(this.plugin.settings.exportSettings.imageLocation).onChange(async o=>{this.plugin.settings.exportSettings.imageLocation=o,await this.plugin.saveSettings(),this.display()})),this.plugin.settings.exportSettings.imageLocation==="custom"&&new K.Setting(n).setName("Custom image folder").setDesc("Folder path for exported images (relative to vault root)").addText(i=>i.setPlaceholder("Agent Client").setValue(this.plugin.settings.exportSettings.imageCustomFolder).onChange(async o=>{this.plugin.settings.exportSettings.imageCustomFolder=o,await this.plugin.saveSettings()}))),new K.Setting(n).setName("Auto-export on new chat").setDesc("Automatically export the current chat when starting a new chat").addToggle(i=>i.setValue(this.plugin.settings.exportSettings.autoExportOnNewChat).onChange(async o=>{this.plugin.settings.exportSettings.autoExportOnNewChat=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Auto-export on close chat").setDesc("Automatically export the current chat when closing the chat view").addToggle(i=>i.setValue(this.plugin.settings.exportSettings.autoExportOnCloseChat).onChange(async o=>{this.plugin.settings.exportSettings.autoExportOnCloseChat=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Open note after export").setDesc("Automatically open the exported note after exporting").addToggle(i=>i.setValue(this.plugin.settings.exportSettings.openFileAfterExport).onChange(async o=>{this.plugin.settings.exportSettings.openFileAfterExport=o,await this.plugin.saveSettings()})),new K.Setting(n).setName("Developer").setHeading(),new K.Setting(n).setName("Debug mode").setDesc("Enable debug logging to console. Useful for development and troubleshooting.").addToggle(i=>i.setValue(this.plugin.settings.debugMode).onChange(async o=>{this.plugin.settings.debugMode=o,await this.plugin.saveSettings()}))}updateAgentDropdown(){if(!this.agentSelector)return;let n=this.plugin.settingsStore.getSnapshot(),r=this.agentSelector.getValue();n.defaultAgentId!==r&&this.agentSelector.setValue(n.defaultAgentId)}hide(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}renderAgentSelector(n){this.plugin.ensureDefaultAgentId(),new K.Setting(n).setName("Default agent").setDesc("Choose which agent is used when opening a new chat view.").addDropdown(r=>{this.agentSelector=r,this.populateAgentDropdown(r),r.setValue(this.plugin.settings.defaultAgentId),r.onChange(async i=>{let o={...this.plugin.settings,defaultAgentId:i};this.plugin.ensureDefaultAgentId(),await this.plugin.saveSettingsAndNotify(o)})})}populateAgentDropdown(n){n.selectEl.empty();for(let r of this.getAgentOptions())n.addOption(r.id,r.label)}refreshAgentDropdown(){this.agentSelector&&(this.populateAgentDropdown(this.agentSelector),this.agentSelector.setValue(this.plugin.settings.defaultAgentId))}getAgentOptions(){let n=(o,a)=>({id:o,label:`${a} (${o})`}),r=[n(this.plugin.settings.claude.id,this.plugin.settings.claude.displayName||this.plugin.settings.claude.id),n(this.plugin.settings.codex.id,this.plugin.settings.codex.displayName||this.plugin.settings.codex.id),n(this.plugin.settings.gemini.id,this.plugin.settings.gemini.displayName||this.plugin.settings.gemini.id)];for(let o of this.plugin.settings.customAgents)if(o.id&&o.id.length>0){let a=o.displayName&&o.displayName.length>0?o.displayName:o.id;r.push(n(o.id,a))}let i=new Set;return r.filter(({id:o})=>i.has(o)?!1:(i.add(o),!0))}renderGeminiSettings(n){let r=this.plugin.settings.gemini;new K.Setting(n).setName(r.displayName||"Gemini CLI").setHeading(),new K.Setting(n).setName("API key").setDesc("Gemini API key. Required if not logging in with a Google account. (Stored as plain text)").addText(i=>{i.setPlaceholder("Enter your Gemini API key").setValue(r.apiKey).onChange(async o=>{this.plugin.settings.gemini.apiKey=o.trim(),await this.plugin.saveSettings()}),i.inputEl.type="password"}),new K.Setting(n).setName("Path").setDesc('Absolute path to the Gemini CLI. On macOS/Linux, use "which gemini", and on Windows, use "where gemini" to find it.').addText(i=>{i.setPlaceholder("Absolute path to gemini").setValue(r.command).onChange(async o=>{this.plugin.settings.gemini.command=o.trim(),await this.plugin.saveSettings()})}),new K.Setting(n).setName("Arguments").setDesc('Enter one argument per line. Leave empty to run without arguments.(Currently, the Gemini CLI requires the "--experimental-acp" option.)').addTextArea(i=>{i.setPlaceholder("").setValue(this.formatArgs(r.args)).onChange(async o=>{this.plugin.settings.gemini.args=this.parseArgs(o),await this.plugin.saveSettings()}),i.inputEl.rows=3}),new K.Setting(n).setName("Environment variables").setDesc("Enter KEY=VALUE pairs, one per line. Required to authenticate with Vertex AI. GEMINI_API_KEY is derived from the field above.(Stored as plain text)").addTextArea(i=>{i.setPlaceholder("GOOGLE_CLOUD_PROJECT=...").setValue(this.formatEnv(r.env)).onChange(async o=>{this.plugin.settings.gemini.env=this.parseEnv(o),await this.plugin.saveSettings()}),i.inputEl.rows=3})}renderClaudeSettings(n){let r=this.plugin.settings.claude;new K.Setting(n).setName(r.displayName||"Claude Code (ACP)").setHeading(),new K.Setting(n).setName("API key").setDesc("Anthropic API key. Required if not logging in with an Anthropic account. (Stored as plain text)").addText(i=>{i.setPlaceholder("Enter your Anthropic API key").setValue(r.apiKey).onChange(async o=>{this.plugin.settings.claude.apiKey=o.trim(),await this.plugin.saveSettings()}),i.inputEl.type="password"}),new K.Setting(n).setName("Path").setDesc('Absolute path to the claude-code-acp. On macOS/Linux, use "which claude-code-acp", and on Windows, use "where claude-code-acp" to find it.').addText(i=>{i.setPlaceholder("Absolute path to claude-code-acp").setValue(r.command).onChange(async o=>{this.plugin.settings.claude.command=o.trim(),await this.plugin.saveSettings()})}),new K.Setting(n).setName("Arguments").setDesc("Enter one argument per line. Leave empty to run without arguments.").addTextArea(i=>{i.setPlaceholder("").setValue(this.formatArgs(r.args)).onChange(async o=>{this.plugin.settings.claude.args=this.parseArgs(o),await this.plugin.saveSettings()}),i.inputEl.rows=3}),new K.Setting(n).setName("Environment variables").setDesc("Enter KEY=VALUE pairs, one per line. ANTHROPIC_API_KEY is derived from the field above.").addTextArea(i=>{i.setPlaceholder("").setValue(this.formatEnv(r.env)).onChange(async o=>{this.plugin.settings.claude.env=this.parseEnv(o),await this.plugin.saveSettings()}),i.inputEl.rows=3})}renderCodexSettings(n){let r=this.plugin.settings.codex;new K.Setting(n).setName(r.displayName||"Codex").setHeading(),new K.Setting(n).setName("API key").setDesc("OpenAI API key. Required if not logging in with an OpenAI account. (Stored as plain text)").addText(i=>{i.setPlaceholder("Enter your OpenAI API key").setValue(r.apiKey).onChange(async o=>{this.plugin.settings.codex.apiKey=o.trim(),await this.plugin.saveSettings()}),i.inputEl.type="password"}),new K.Setting(n).setName("Path").setDesc('Absolute path to the codex-acp. On macOS/Linux, use "which codex-acp", and on Windows, use "where codex-acp" to find it.').addText(i=>{i.setPlaceholder("Absolute path to codex-acp").setValue(r.command).onChange(async o=>{this.plugin.settings.codex.command=o.trim(),await this.plugin.saveSettings()})}),new K.Setting(n).setName("Arguments").setDesc("Enter one argument per line. Leave empty to run without arguments.").addTextArea(i=>{i.setPlaceholder("").setValue(this.formatArgs(r.args)).onChange(async o=>{this.plugin.settings.codex.args=this.parseArgs(o),await this.plugin.saveSettings()}),i.inputEl.rows=3}),new K.Setting(n).setName("Environment variables").setDesc("Enter KEY=VALUE pairs, one per line. OPENAI_API_KEY is derived from the field above.").addTextArea(i=>{i.setPlaceholder("").setValue(this.formatEnv(r.env)).onChange(async o=>{this.plugin.settings.codex.env=this.parseEnv(o),await this.plugin.saveSettings()}),i.inputEl.rows=3})}renderCustomAgents(n){this.plugin.settings.customAgents.length===0?n.createEl("p",{text:"No custom agents configured yet."}):this.plugin.settings.customAgents.forEach((r,i)=>{this.renderCustomAgent(n,r,i)}),new K.Setting(n).addButton(r=>{r.setButtonText("Add custom agent").setCta().onClick(async()=>{let i=this.generateCustomAgentId(),o=this.generateCustomAgentDisplayName();this.plugin.settings.customAgents.push({id:i,displayName:o,command:"",args:[],env:[]}),this.plugin.ensureDefaultAgentId(),await this.plugin.saveSettings(),this.display()})})}renderCustomAgent(n,r,i){let o=n.createDiv({cls:"agent-client-custom-agent"});new K.Setting(o).setName("Agent ID").setDesc("Unique identifier used to reference this agent.").addText(s=>{s.setPlaceholder("custom-agent").setValue(r.id).onChange(async c=>{let d=this.plugin.settings.customAgents[i].id,l=c.trim();l.length===0&&(l=this.generateCustomAgentId(),s.setValue(l)),this.plugin.settings.customAgents[i].id=l,this.plugin.settings.defaultAgentId===d&&(this.plugin.settings.defaultAgentId=l),this.plugin.ensureDefaultAgentId(),await this.plugin.saveSettings(),this.refreshAgentDropdown()})}).addExtraButton(s=>{s.setIcon("trash").setTooltip("Delete this agent").onClick(async()=>{this.plugin.settings.customAgents.splice(i,1),this.plugin.ensureDefaultAgentId(),await this.plugin.saveSettings(),this.display()})}),new K.Setting(o).setName("Display name").setDesc("Shown in menus and headers.").addText(s=>{s.setPlaceholder("Custom agent").setValue(r.displayName||r.id).onChange(async c=>{let d=c.trim();this.plugin.settings.customAgents[i].displayName=d.length>0?d:this.plugin.settings.customAgents[i].id,await this.plugin.saveSettings(),this.refreshAgentDropdown()})}),new K.Setting(o).setName("Path").setDesc("Absolute path to the custom agent.").addText(s=>{s.setPlaceholder("Absolute path to custom agent").setValue(r.command).onChange(async c=>{this.plugin.settings.customAgents[i].command=c.trim(),await this.plugin.saveSettings()})}),new K.Setting(o).setName("Arguments").setDesc("Enter one argument per line. Leave empty to run without arguments.").addTextArea(s=>{s.setPlaceholder(`--flag
|
|
--another=value`).setValue(this.formatArgs(r.args)).onChange(async c=>{this.plugin.settings.customAgents[i].args=this.parseArgs(c),await this.plugin.saveSettings()}),s.inputEl.rows=3}),new K.Setting(o).setName("Environment variables").setDesc("Enter KEY=VALUE pairs, one per line. (Stored as plain text)").addTextArea(s=>{s.setPlaceholder("TOKEN=...").setValue(this.formatEnv(r.env)).onChange(async c=>{this.plugin.settings.customAgents[i].env=this.parseEnv(c),await this.plugin.saveSettings()}),s.inputEl.rows=3})}generateCustomAgentDisplayName(){let n="Custom agent",r=new Set;r.add(this.plugin.settings.claude.displayName||this.plugin.settings.claude.id),r.add(this.plugin.settings.codex.displayName||this.plugin.settings.codex.id),r.add(this.plugin.settings.gemini.displayName||this.plugin.settings.gemini.id);for(let a of this.plugin.settings.customAgents)r.add(a.displayName||a.id);if(!r.has(n))return n;let i=2,o=`${n} ${i}`;for(;r.has(o);)i+=1,o=`${n} ${i}`;return o}generateCustomAgentId(){let n="custom-agent",r=new Set(this.plugin.settings.customAgents.map(a=>a.id));if(!r.has(n))return n;let i=2,o=`${n}-${i}`;for(;r.has(o);)i+=1,o=`${n}-${i}`;return o}formatArgs(n){return n.join(`
|
|
`)}parseArgs(n){return n.split(/\r?\n/).map(r=>r.trim()).filter(r=>r.length>0)}formatEnv(n){return n.map(r=>{var i;return`${r.key}=${(i=r.value)!=null?i:""}`}).join(`
|
|
`)}parseEnv(n){let r=[];for(let i of n.split(/\r?\n/)){let o=i.trim();if(!o)continue;let a=o.indexOf("=");if(a===-1)continue;let s=o.slice(0,a).trim(),c=o.slice(a+1).trim();s&&r.push({key:s,value:c})}return ao(r)}};var WI=require("child_process");var u={};jn(u,{$brand:()=>kd,$input:()=>Db,$output:()=>Ob,NEVER:()=>gv,TimePrecision:()=>jb,ZodAny:()=>Cx,ZodArray:()=>Nx,ZodBase64:()=>im,ZodBase64URL:()=>rm,ZodBigInt:()=>is,ZodBigIntFormat:()=>sm,ZodBoolean:()=>ns,ZodCIDRv4:()=>tm,ZodCIDRv6:()=>nm,ZodCUID:()=>Xf,ZodCUID2:()=>Jf,ZodCatch:()=>e_,ZodCodec:()=>gm,ZodCustom:()=>dc,ZodCustomStringFormat:()=>es,ZodDate:()=>ac,ZodDefault:()=>Xx,ZodDiscriminatedUnion:()=>Dx,ZodE164:()=>om,ZodEmail:()=>Bf,ZodEmoji:()=>Gf,ZodEnum:()=>Qa,ZodError:()=>EP,ZodExactOptional:()=>Bx,ZodFile:()=>Vx,ZodFirstPartyTypeKind:()=>f_,ZodFunction:()=>c_,ZodGUID:()=>tc,ZodIPv4:()=>Wf,ZodIPv6:()=>em,ZodISODate:()=>Pf,ZodISODateTime:()=>jf,ZodISODuration:()=>Zf,ZodISOTime:()=>Lf,ZodIntersection:()=>Rx,ZodIssueCode:()=>zP,ZodJWT:()=>am,ZodKSUID:()=>Qf,ZodLazy:()=>a_,ZodLiteral:()=>qx,ZodMAC:()=>xx,ZodMap:()=>Lx,ZodNaN:()=>n_,ZodNanoID:()=>Ff,ZodNever:()=>Tx,ZodNonOptional:()=>mm,ZodNull:()=>Ax,ZodNullable:()=>Fx,ZodNumber:()=>ts,ZodNumberFormat:()=>bo,ZodObject:()=>lc,ZodOptional:()=>fm,ZodPipe:()=>pm,ZodPrefault:()=>Yx,ZodPromise:()=>l_,ZodReadonly:()=>i_,ZodRealError:()=>Yt,ZodRecord:()=>uc,ZodSet:()=>Zx,ZodString:()=>Wa,ZodStringFormat:()=>Ce,ZodSuccess:()=>Wx,ZodSymbol:()=>wx,ZodTemplateLiteral:()=>o_,ZodTransform:()=>Hx,ZodTuple:()=>Ux,ZodType:()=>ce,ZodULID:()=>Yf,ZodURL:()=>oc,ZodUUID:()=>Wn,ZodUndefined:()=>Ex,ZodUnion:()=>cc,ZodUnknown:()=>kx,ZodVoid:()=>Ix,ZodXID:()=>Kf,ZodXor:()=>Ox,_ZodString:()=>Hf,_default:()=>Jx,_function:()=>gI,any:()=>F1,array:()=>sc,base64:()=>T1,base64url:()=>I1,bigint:()=>q1,boolean:()=>$x,catch:()=>t_,check:()=>hI,cidrv4:()=>C1,cidrv6:()=>k1,clone:()=>jt,codec:()=>fI,coerce:()=>hm,config:()=>Fe,core:()=>Qn,cuid:()=>S1,cuid2:()=>x1,custom:()=>vI,date:()=>J1,decode:()=>px,decodeAsync:()=>hx,describe:()=>yI,discriminatedUnion:()=>tI,e164:()=>N1,email:()=>u1,emoji:()=>y1,encode:()=>mx,encodeAsync:()=>gx,endsWith:()=>Va,enum:()=>um,exactOptional:()=>Gx,file:()=>lI,flattenError:()=>Vl,float32:()=>j1,float64:()=>P1,formatError:()=>Hl,fromJSONSchema:()=>EI,function:()=>gI,getErrorMap:()=>kP,globalRegistry:()=>_t,gt:()=>Yn,gte:()=>Pt,guid:()=>d1,hash:()=>U1,hex:()=>M1,hostname:()=>R1,httpUrl:()=>v1,includes:()=>Za,instanceof:()=>SI,int:()=>Vf,int32:()=>L1,int64:()=>V1,intersection:()=>Mx,ipv4:()=>E1,ipv6:()=>z1,iso:()=>vo,json:()=>_I,jwt:()=>O1,keyof:()=>Y1,ksuid:()=>w1,lazy:()=>s_,length:()=>ho,literal:()=>sI,locales:()=>mo,looseObject:()=>W1,looseRecord:()=>iI,lowercase:()=>Pa,lt:()=>Jn,lte:()=>mn,mac:()=>A1,map:()=>rI,maxLength:()=>go,maxSize:()=>wr,meta:()=>bI,mime:()=>Ha,minLength:()=>Ni,minSize:()=>Kn,multipleOf:()=>$r,nan:()=>dI,nanoid:()=>b1,nativeEnum:()=>aI,negative:()=>Cf,never:()=>lm,nonnegative:()=>Tf,nonoptional:()=>Qx,nonpositive:()=>kf,normalize:()=>Ba,null:()=>zx,nullable:()=>ic,nullish:()=>cI,number:()=>_x,object:()=>K1,optional:()=>nc,overwrite:()=>Rn,parse:()=>cx,parseAsync:()=>ux,partialRecord:()=>nI,pipe:()=>rc,positive:()=>zf,prefault:()=>Kx,preprocess:()=>$I,prettifyError:()=>zv,promise:()=>pI,property:()=>If,readonly:()=>r_,record:()=>Px,refine:()=>u_,regex:()=>ja,regexes:()=>fn,registry:()=>af,safeDecode:()=>yx,safeDecodeAsync:()=>Sx,safeEncode:()=>vx,safeEncodeAsync:()=>bx,safeParse:()=>dx,safeParseAsync:()=>fx,set:()=>oI,setErrorMap:()=>CP,size:()=>po,slugify:()=>Ja,startsWith:()=>qa,strictObject:()=>Q1,string:()=>qf,stringFormat:()=>D1,stringbool:()=>xI,success:()=>uI,superRefine:()=>d_,symbol:()=>B1,templateLiteral:()=>mI,toJSONSchema:()=>Rf,toLowerCase:()=>Fa,toUpperCase:()=>Xa,transform:()=>dm,treeifyError:()=>Av,trim:()=>Ga,tuple:()=>jx,uint32:()=>Z1,uint64:()=>H1,ulid:()=>_1,undefined:()=>G1,union:()=>cm,unknown:()=>yo,uppercase:()=>La,url:()=>h1,util:()=>R,uuid:()=>f1,uuidv4:()=>m1,uuidv6:()=>p1,uuidv7:()=>g1,void:()=>X1,xid:()=>$1,xor:()=>eI});var Qn={};jn(Qn,{$ZodAny:()=>tb,$ZodArray:()=>ab,$ZodAsyncError:()=>Dn,$ZodBase64:()=>By,$ZodBase64URL:()=>Gy,$ZodBigInt:()=>Qd,$ZodBigIntFormat:()=>Ky,$ZodBoolean:()=>Xl,$ZodCIDRv4:()=>qy,$ZodCIDRv6:()=>Vy,$ZodCUID:()=>Ty,$ZodCUID2:()=>Iy,$ZodCatch:()=>wb,$ZodCheck:()=>Te,$ZodCheckBigIntFormat:()=>ay,$ZodCheckEndsWith:()=>yy,$ZodCheckGreaterThan:()=>Bd,$ZodCheckIncludes:()=>hy,$ZodCheckLengthEquals:()=>fy,$ZodCheckLessThan:()=>Hd,$ZodCheckLowerCase:()=>py,$ZodCheckMaxLength:()=>uy,$ZodCheckMaxSize:()=>sy,$ZodCheckMimeType:()=>Sy,$ZodCheckMinLength:()=>dy,$ZodCheckMinSize:()=>ly,$ZodCheckMultipleOf:()=>ry,$ZodCheckNumberFormat:()=>oy,$ZodCheckOverwrite:()=>xy,$ZodCheckProperty:()=>by,$ZodCheckRegex:()=>my,$ZodCheckSizeEquals:()=>cy,$ZodCheckStartsWith:()=>vy,$ZodCheckStringFormat:()=>Ma,$ZodCheckUpperCase:()=>gy,$ZodCodec:()=>Yl,$ZodCustom:()=>Nb,$ZodCustomStringFormat:()=>Jy,$ZodDate:()=>ob,$ZodDefault:()=>Sb,$ZodDiscriminatedUnion:()=>cb,$ZodE164:()=>Fy,$ZodEmail:()=>Ay,$ZodEmoji:()=>Cy,$ZodEncodeError:()=>yr,$ZodEnum:()=>pb,$ZodError:()=>ql,$ZodExactOptional:()=>yb,$ZodFile:()=>hb,$ZodFunction:()=>kb,$ZodGUID:()=>wy,$ZodIPv4:()=>Py,$ZodIPv6:()=>Ly,$ZodISODate:()=>My,$ZodISODateTime:()=>Ry,$ZodISODuration:()=>jy,$ZodISOTime:()=>Uy,$ZodIntersection:()=>ub,$ZodJWT:()=>Xy,$ZodKSUID:()=>Dy,$ZodLazy:()=>Ib,$ZodLiteral:()=>gb,$ZodMAC:()=>Zy,$ZodMap:()=>fb,$ZodNaN:()=>Eb,$ZodNanoID:()=>ky,$ZodNever:()=>ib,$ZodNonOptional:()=>_b,$ZodNull:()=>eb,$ZodNullable:()=>bb,$ZodNumber:()=>Kd,$ZodNumberFormat:()=>Yy,$ZodObject:()=>cT,$ZodObjectJIT:()=>sb,$ZodOptional:()=>ef,$ZodPipe:()=>Ab,$ZodPrefault:()=>xb,$ZodPromise:()=>Tb,$ZodReadonly:()=>zb,$ZodRealError:()=>Jt,$ZodRecord:()=>db,$ZodRegistry:()=>of,$ZodSet:()=>mb,$ZodString:()=>fo,$ZodStringFormat:()=>ze,$ZodSuccess:()=>$b,$ZodSymbol:()=>Qy,$ZodTemplateLiteral:()=>Cb,$ZodTransform:()=>vb,$ZodTuple:()=>Wd,$ZodType:()=>ie,$ZodULID:()=>Ny,$ZodURL:()=>zy,$ZodUUID:()=>Ey,$ZodUndefined:()=>Wy,$ZodUnion:()=>Jl,$ZodUnknown:()=>nb,$ZodVoid:()=>rb,$ZodXID:()=>Oy,$ZodXor:()=>lb,$brand:()=>kd,$constructor:()=>_,$input:()=>Db,$output:()=>Ob,Doc:()=>Fl,JSONSchema:()=>rx,JSONSchemaGenerator:()=>Mf,NEVER:()=>gv,TimePrecision:()=>jb,_any:()=>oS,_array:()=>fS,_base64:()=>$f,_base64url:()=>wf,_bigint:()=>Qb,_boolean:()=>Yb,_catch:()=>vP,_check:()=>l1,_cidrv4:()=>xf,_cidrv6:()=>_f,_coercedBigint:()=>Wb,_coercedBoolean:()=>Kb,_coercedDate:()=>uS,_coercedNumber:()=>Hb,_coercedString:()=>Mb,_cuid:()=>pf,_cuid2:()=>gf,_custom:()=>pS,_date:()=>cS,_decode:()=>Rd,_decodeAsync:()=>Ud,_default:()=>pP,_discriminatedUnion:()=>nP,_e164:()=>Ef,_email:()=>sf,_emoji:()=>ff,_encode:()=>Dd,_encodeAsync:()=>Md,_endsWith:()=>Va,_enum:()=>lP,_file:()=>mS,_float32:()=>Gb,_float64:()=>Fb,_gt:()=>Yn,_gte:()=>Pt,_guid:()=>Ql,_includes:()=>Za,_int:()=>Bb,_int32:()=>Xb,_int64:()=>eS,_intersection:()=>iP,_ipv4:()=>bf,_ipv6:()=>Sf,_isoDate:()=>Lb,_isoDateTime:()=>Pb,_isoDuration:()=>qb,_isoTime:()=>Zb,_jwt:()=>Af,_ksuid:()=>yf,_lazy:()=>xP,_length:()=>ho,_literal:()=>uP,_lowercase:()=>Pa,_lt:()=>Jn,_lte:()=>mn,_mac:()=>Ub,_map:()=>aP,_max:()=>mn,_maxLength:()=>go,_maxSize:()=>wr,_mime:()=>Ha,_min:()=>Pt,_minLength:()=>Ni,_minSize:()=>Kn,_multipleOf:()=>$r,_nan:()=>dS,_nanoid:()=>mf,_nativeEnum:()=>cP,_negative:()=>Cf,_never:()=>sS,_nonnegative:()=>Tf,_nonoptional:()=>gP,_nonpositive:()=>kf,_normalize:()=>Ba,_null:()=>rS,_nullable:()=>mP,_number:()=>Vb,_optional:()=>fP,_overwrite:()=>Rn,_parse:()=>Na,_parseAsync:()=>Oa,_pipe:()=>yP,_positive:()=>zf,_promise:()=>_P,_property:()=>If,_readonly:()=>bP,_record:()=>oP,_refine:()=>gS,_regex:()=>ja,_safeDecode:()=>Pd,_safeDecodeAsync:()=>Zd,_safeEncode:()=>jd,_safeEncodeAsync:()=>Ld,_safeParse:()=>Da,_safeParseAsync:()=>Ra,_set:()=>sP,_size:()=>po,_slugify:()=>Ja,_startsWith:()=>qa,_string:()=>Rb,_stringFormat:()=>Ya,_stringbool:()=>bS,_success:()=>hP,_superRefine:()=>hS,_symbol:()=>nS,_templateLiteral:()=>SP,_toLowerCase:()=>Fa,_toUpperCase:()=>Xa,_transform:()=>dP,_trim:()=>Ga,_tuple:()=>rP,_uint32:()=>Jb,_uint64:()=>tS,_ulid:()=>hf,_undefined:()=>iS,_union:()=>eP,_unknown:()=>aS,_uppercase:()=>La,_url:()=>Wl,_uuid:()=>lf,_uuidv4:()=>cf,_uuidv6:()=>uf,_uuidv7:()=>df,_void:()=>lS,_xid:()=>vf,_xor:()=>tP,clone:()=>jt,config:()=>Fe,createStandardJSONSchemaMethod:()=>Ka,createToJSONSchemaMethod:()=>SS,decode:()=>EU,decodeAsync:()=>zU,describe:()=>vS,encode:()=>wU,encodeAsync:()=>AU,extractDefs:()=>Ar,finalize:()=>zr,flattenError:()=>Vl,formatError:()=>Hl,globalConfig:()=>Rl,globalRegistry:()=>_t,initializeContext:()=>Er,isValidBase64:()=>Hy,isValidBase64URL:()=>oT,isValidJWT:()=>aT,locales:()=>mo,meta:()=>yS,parse:()=>Nd,parseAsync:()=>Od,prettifyError:()=>zv,process:()=>Se,regexes:()=>fn,registry:()=>af,safeDecode:()=>kU,safeDecodeAsync:()=>IU,safeEncode:()=>CU,safeEncodeAsync:()=>TU,safeParse:()=>Cv,safeParseAsync:()=>kv,toDotPath:()=>Zk,toJSONSchema:()=>Rf,treeifyError:()=>Av,util:()=>R,version:()=>_y});var gv=Object.freeze({status:"aborted"});function _(e,t,n){var s;function r(c,d){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:d,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,d);let m=a.prototype,l=Object.keys(m);for(let f=0;f<l.length;f++){let p=l[f];p in c||(c[p]=m[p].bind(c))}}let i=(s=n==null?void 0:n.Parent)!=null?s:Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(c){var l;var d;let m=n!=null&&n.Parent?new o:this;r(m,c),(l=(d=m._zod).deferred)!=null||(d.deferred=[]);for(let f of m._zod.deferred)f();return m}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:c=>{var d,m;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(m=(d=c==null?void 0:c._zod)==null?void 0:d.traits)==null?void 0:m.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}var kd=Symbol("zod_brand"),Dn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},yr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Rl={};function Fe(e){return e&&Object.assign(Rl,e),Rl}var R={};jn(R,{BIGINT_FORMAT_RANGES:()=>Ev,Class:()=>vv,NUMBER_FORMAT_RANGES:()=>wv,aborted:()=>_r,allowsEval:()=>Sv,assert:()=>nU,assertEqual:()=>Q6,assertIs:()=>eU,assertNever:()=>tU,assertNotEqual:()=>W6,assignProp:()=>Sr,base64ToUint8Array:()=>jk,base64urlToUint8Array:()=>bU,cached:()=>Ta,captureStackTrace:()=>Id,cleanEnum:()=>yU,cleanRegex:()=>jl,clone:()=>jt,cloneDef:()=>rU,createTransparentProxy:()=>uU,defineLazy:()=>ue,esc:()=>Td,escapeRegex:()=>zn,extend:()=>mU,finalizeIssue:()=>Xt,floatSafeRemainder:()=>yv,getElementAtPath:()=>oU,getEnumValues:()=>Ul,getLengthableOrigin:()=>Zl,getParsedType:()=>cU,getSizableOrigin:()=>Ll,hexToUint8Array:()=>xU,isObject:()=>co,isPlainObject:()=>xr,issue:()=>Ia,joinValues:()=>E,jsonStringifyReplacer:()=>ka,merge:()=>gU,mergeDefs:()=>Ii,normalizeParams:()=>j,nullish:()=>br,numKeys:()=>lU,objectClone:()=>iU,omit:()=>fU,optionalKeys:()=>$v,parsedType:()=>D,partial:()=>hU,pick:()=>dU,prefixIssues:()=>dn,primitiveTypes:()=>_v,promiseAllObject:()=>aU,propertyKeyTypes:()=>Pl,randomString:()=>sU,required:()=>vU,safeExtend:()=>pU,shallowClone:()=>xv,slugify:()=>bv,stringifyPrimitive:()=>O,uint8ArrayToBase64:()=>Pk,uint8ArrayToBase64url:()=>SU,uint8ArrayToHex:()=>_U,unwrapMessage:()=>Ml});function Q6(e){return e}function W6(e){return e}function eU(e){}function tU(e){throw new Error("Unexpected value in exhaustive check")}function nU(e){}function Ul(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function E(e,t="|"){return e.map(n=>O(n)).join(t)}function ka(e,t){return typeof t=="bigint"?t.toString():t}function Ta(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function br(e){return e==null}function jl(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function yv(e,t){let n=(e.toString().split(".")[1]||"").length,r=t.toString(),i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){let c=r.match(/\d?e-(\d?)/);c!=null&&c[1]&&(i=Number.parseInt(c[1]))}let o=n>i?n:i,a=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return a%s/10**o}var Uk=Symbol("evaluating");function ue(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Uk)return r===void 0&&(r=Uk,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function iU(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Sr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ii(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function rU(e){return Ii(e._zod.def)}function oU(e,t){return t?t.reduce((n,r)=>n==null?void 0:n[r],e):e}function aU(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let i={};for(let o=0;o<t.length;o++)i[t[o]]=r[o];return i})}function sU(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Td(e){return JSON.stringify(e)}function bv(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Id="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function co(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Sv=Ta(()=>{var e;if(typeof navigator!="undefined"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{let t=Function;return new t(""),!0}catch(t){return!1}});function xr(e){if(co(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(co(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function xv(e){return xr(e)?{...e}:Array.isArray(e)?[...e]:e}function lU(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var cU=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map!="undefined"&&e instanceof Map?"map":typeof Set!="undefined"&&e instanceof Set?"set":typeof Date!="undefined"&&e instanceof Date?"date":typeof File!="undefined"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Pl=new Set(["string","number","symbol"]),_v=new Set(["string","number","bigint","boolean","symbol","undefined"]);function zn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jt(e,t,n){let r=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function j(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function uU(e){let t;return new Proxy({},{get(n,r,i){return t!=null||(t=e()),Reflect.get(t,r,i)},set(n,r,i,o){return t!=null||(t=e()),Reflect.set(t,r,i,o)},has(n,r){return t!=null||(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t!=null||(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t!=null||(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t!=null||(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t!=null||(t=e()),Reflect.defineProperty(t,r,i)}})}function O(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function $v(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var wv={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]},Ev={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function dU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Ii(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=n.shape[s])}return Sr(this,"shape",a),a},checks:[]});return jt(e,o)}function fU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Ii(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Sr(this,"shape",a),a},checks:[]});return jt(e,o)}function mU(e,t){if(!xr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=Ii(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Sr(this,"shape",o),o}});return jt(e,i)}function pU(e,t){if(!xr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Ii(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return Sr(this,"shape",r),r}});return jt(e,n)}function gU(e,t){let n=Ii(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return Sr(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return jt(e,n)}function hU(e,t,n){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Ii(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(n)for(let d in n){if(!(d in s))throw new Error(`Unrecognized key: "${d}"`);n[d]&&(c[d]=e?new e({type:"optional",innerType:s[d]}):s[d])}else for(let d in s)c[d]=e?new e({type:"optional",innerType:s[d]}):s[d];return Sr(this,"shape",c),c},checks:[]});return jt(t,a)}function vU(e,t,n){let r=Ii(t._zod.def,{get shape(){let i=t._zod.def.shape,o={...i};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:i[a]}))}else for(let a in i)o[a]=new e({type:"nonoptional",innerType:i[a]});return Sr(this,"shape",o),o}});return jt(t,r)}function _r(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function dn(e,t){return t.map(n=>{var i;var r;return(i=(r=n).path)!=null||(r.path=[]),n.path.unshift(e),n})}function Ml(e){return typeof e=="string"?e:e==null?void 0:e.message}function Xt(e,t,n){var i,o,a,s,c,d,m,l,f,p,h;let r={...e,path:(i=e.path)!=null?i:[]};if(!e.message){let y=(h=(p=(l=(d=Ml((s=(a=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:a.error)==null?void 0:s.call(a,e)))!=null?d:Ml((c=t==null?void 0:t.error)==null?void 0:c.call(t,e)))!=null?l:Ml((m=n.customError)==null?void 0:m.call(n,e)))!=null?p:Ml((f=n.localeError)==null?void 0:f.call(n,e)))!=null?h:"Invalid input";r.message=y}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function Ll(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Zl(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function D(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Ia(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function yU(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function jk(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function Pk(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function bU(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return jk(t+n)}function SU(e){return Pk(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function xU(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function _U(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var vv=class{constructor(...t){}};var Lk=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ka,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ql=_("$ZodError",Lk),Jt=_("$ZodError",Lk,{Parent:Error});function Vl(e,t=n=>n.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Hl(e,t=n=>n.message){let n={_errors:[]},r=i=>{for(let o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>r({issues:a}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let a=n,s=0;for(;s<o.path.length;){let c=o.path[s];s===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(o))):a[c]=a[c]||{_errors:[]},a=a[c],s++}}};return r(e),n}function Av(e,t=n=>n.message){let n={errors:[]},r=(i,o=[])=>{var c,d,m,l;var a,s;for(let f of i.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(p=>r({issues:p},f.path));else if(f.code==="invalid_key")r({issues:f.issues},f.path);else if(f.code==="invalid_element")r({issues:f.issues},f.path);else{let p=[...o,...f.path];if(p.length===0){n.errors.push(t(f));continue}let h=n,y=0;for(;y<p.length;){let x=p[y],v=y===p.length-1;typeof x=="string"?((c=h.properties)!=null||(h.properties={}),(d=(a=h.properties)[x])!=null||(a[x]={errors:[]}),h=h.properties[x]):((m=h.items)!=null||(h.items=[]),(l=(s=h.items)[x])!=null||(s[x]={errors:[]}),h=h.items[x]),v&&h.errors.push(t(f)),y++}}};return r(e),n}function Zk(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function zv(e){var r;let t=[],n=[...e.issues].sort((i,o)=>{var a,s;return((a=i.path)!=null?a:[]).length-((s=o.path)!=null?s:[]).length});for(let i of n)t.push(`\u2716 ${i.message}`),(r=i.path)!=null&&r.length&&t.push(` \u2192 at ${Zk(i.path)}`);return t.join(`
|
|
`)}var Na=e=>(t,n,r,i)=>{var s;let o=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Dn;if(a.issues.length){let c=new((s=i==null?void 0:i.Err)!=null?s:e)(a.issues.map(d=>Xt(d,o,Fe())));throw Id(c,i==null?void 0:i.callee),c}return a.value},Nd=Na(Jt),Oa=e=>async(t,n,r,i)=>{var s;let o=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new((s=i==null?void 0:i.Err)!=null?s:e)(a.issues.map(d=>Xt(d,o,Fe())));throw Id(c,i==null?void 0:i.callee),c}return a.value},Od=Oa(Jt),Da=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Dn;return o.issues.length?{success:!1,error:new(e!=null?e:ql)(o.issues.map(a=>Xt(a,i,Fe())))}:{success:!0,data:o.value}},Cv=Da(Jt),Ra=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>Xt(a,i,Fe())))}:{success:!0,data:o.value}},kv=Ra(Jt),Dd=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Na(e)(t,n,i)},wU=Dd(Jt),Rd=e=>(t,n,r)=>Na(e)(t,n,r),EU=Rd(Jt),Md=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Oa(e)(t,n,i)},AU=Md(Jt),Ud=e=>async(t,n,r)=>Oa(e)(t,n,r),zU=Ud(Jt),jd=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Da(e)(t,n,i)},CU=jd(Jt),Pd=e=>(t,n,r)=>Da(e)(t,n,r),kU=Pd(Jt),Ld=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ra(e)(t,n,i)},TU=Ld(Jt),Zd=e=>async(t,n,r)=>Ra(e)(t,n,r),IU=Zd(Jt);var fn={};jn(fn,{base64:()=>Bv,base64url:()=>qd,bigint:()=>Kv,boolean:()=>Wv,browserEmail:()=>PU,cidrv4:()=>Vv,cidrv6:()=>Hv,cuid:()=>Tv,cuid2:()=>Iv,date:()=>Fv,datetime:()=>Jv,domain:()=>qU,duration:()=>Mv,e164:()=>Gv,email:()=>jv,emoji:()=>Pv,extendedDuration:()=>NU,guid:()=>Uv,hex:()=>VU,hostname:()=>ZU,html5Email:()=>MU,idnEmail:()=>jU,integer:()=>Qv,ipv4:()=>Lv,ipv6:()=>Zv,ksuid:()=>Dv,lowercase:()=>ny,mac:()=>qv,md5_base64:()=>BU,md5_base64url:()=>GU,md5_hex:()=>HU,nanoid:()=>Rv,null:()=>ey,number:()=>Vd,rfc5322Email:()=>UU,sha1_base64:()=>XU,sha1_base64url:()=>JU,sha1_hex:()=>FU,sha256_base64:()=>KU,sha256_base64url:()=>QU,sha256_hex:()=>YU,sha384_base64:()=>ej,sha384_base64url:()=>tj,sha384_hex:()=>WU,sha512_base64:()=>ij,sha512_base64url:()=>rj,sha512_hex:()=>nj,string:()=>Yv,time:()=>Xv,ulid:()=>Nv,undefined:()=>ty,unicodeEmail:()=>qk,uppercase:()=>iy,uuid:()=>uo,uuid4:()=>OU,uuid6:()=>DU,uuid7:()=>RU,xid:()=>Ov});var Tv=/^[cC][^\s-]{8,}$/,Iv=/^[0-9a-z]+$/,Nv=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ov=/^[0-9a-vA-V]{20}$/,Dv=/^[A-Za-z0-9]{27}$/,Rv=/^[a-zA-Z0-9_-]{21}$/,Mv=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,NU=/^[-+]?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)?)??$/,Uv=/^([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})$/,uo=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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,OU=uo(4),DU=uo(6),RU=uo(7),jv=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,MU=/^[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])?)*$/,UU=/^(([^<>()\[\]\\.,;:\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,}))$/,qk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,jU=qk,PU=/^[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])?)*$/,LU="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Pv(){return new RegExp(LU,"u")}var Lv=/^(?:(?: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])$/,Zv=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,qv=e=>{let t=zn(e!=null?e:":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Vv=/^((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])$/,Hv=/^(([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])$/,Bv=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qd=/^[A-Za-z0-9_-]*$/,ZU=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,qU=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Gv=/^\+[1-9]\d{6,14}$/,Vk="(?:(?:\\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])))",Fv=new RegExp(`^${Vk}$`);function Hk(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Xv(e){return new RegExp(`^${Hk(e)}$`)}function Jv(e){let t=Hk({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Vk}T(?:${r})$`)}var Yv=e=>{var n,r;let t=e?`[\\s\\S]{${(n=e==null?void 0:e.minimum)!=null?n:0},${(r=e==null?void 0:e.maximum)!=null?r:""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Kv=/^-?\d+n?$/,Qv=/^-?\d+$/,Vd=/^-?\d+(?:\.\d+)?$/,Wv=/^(?:true|false)$/i,ey=/^null$/i;var ty=/^undefined$/i;var ny=/^[^A-Z]*$/,iy=/^[^a-z]*$/,VU=/^[0-9a-fA-F]*$/;function Bl(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Gl(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var HU=/^[0-9a-fA-F]{32}$/,BU=Bl(22,"=="),GU=Gl(22),FU=/^[0-9a-fA-F]{40}$/,XU=Bl(27,"="),JU=Gl(27),YU=/^[0-9a-fA-F]{64}$/,KU=Bl(43,"="),QU=Gl(43),WU=/^[0-9a-fA-F]{96}$/,ej=Bl(64,""),tj=Gl(64),nj=/^[0-9a-fA-F]{128}$/,ij=Bl(86,"=="),rj=Gl(86);var Te=_("$ZodCheck",(e,t)=>{var r,i;var n;(r=e._zod)!=null||(e._zod={}),e._zod.def=t,(i=(n=e._zod).onattach)!=null||(n.onattach=[])}),Gk={number:"number",bigint:"bigint",object:"date"},Hd=_("$ZodCheckLessThan",(e,t)=>{Te.init(e,t);let n=Gk[typeof t.value];e._zod.onattach.push(r=>{var a;let i=r._zod.bag,o=(a=t.inclusive?i.maximum:i.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Bd=_("$ZodCheckGreaterThan",(e,t)=>{Te.init(e,t);let n=Gk[typeof t.value];e._zod.onattach.push(r=>{var a;let i=r._zod.bag,o=(a=t.inclusive?i.minimum:i.exclusiveMinimum)!=null?a:Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ry=_("$ZodCheckMultipleOf",(e,t)=>{Te.init(e,t),e._zod.onattach.push(n=>{var i;var r;(i=(r=n._zod.bag).multipleOf)!=null||(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):yv(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),oy=_("$ZodCheckNumberFormat",(e,t)=>{var a;Te.init(e,t),t.format=t.format||"float64";let n=(a=t.format)==null?void 0:a.includes("int"),r=n?"int":"number",[i,o]=wv[t.format];e._zod.onattach.push(s=>{let c=s._zod.bag;c.format=t.format,c.minimum=i,c.maximum=o,n&&(c.pattern=Qv)}),e._zod.check=s=>{let c=s.value;if(n){if(!Number.isInteger(c)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}c<i&&s.issues.push({origin:"number",input:c,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),c>o&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),ay=_("$ZodCheckBigIntFormat",(e,t)=>{Te.init(e,t);let[n,r]=Ev[t.format];e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=t.format,o.minimum=n,o.maximum=r}),e._zod.check=i=>{let o=i.value;o<n&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>r&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),sy=_("$ZodCheckMaxSize",(e,t)=>{var r;var n;Te.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=i=>{let o=i.value;return!br(o)&&o.size!==void 0}),e._zod.onattach.push(i=>{var a;let o=(a=i._zod.bag.maximum)!=null?a:Number.POSITIVE_INFINITY;t.maximum<o&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let o=i.value;o.size<=t.maximum||i.issues.push({origin:Ll(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),ly=_("$ZodCheckMinSize",(e,t)=>{var r;var n;Te.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=i=>{let o=i.value;return!br(o)&&o.size!==void 0}),e._zod.onattach.push(i=>{var a;let o=(a=i._zod.bag.minimum)!=null?a:Number.NEGATIVE_INFINITY;t.minimum>o&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let o=i.value;o.size>=t.minimum||i.issues.push({origin:Ll(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),cy=_("$ZodCheckSizeEquals",(e,t)=>{var r;var n;Te.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=i=>{let o=i.value;return!br(o)&&o.size!==void 0}),e._zod.onattach.push(i=>{let o=i._zod.bag;o.minimum=t.size,o.maximum=t.size,o.size=t.size}),e._zod.check=i=>{let o=i.value,a=o.size;if(a===t.size)return;let s=a>t.size;i.issues.push({origin:Ll(o),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),uy=_("$ZodCheckMaxLength",(e,t)=>{var r;var n;Te.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=i=>{let o=i.value;return!br(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{var a;let o=(a=i._zod.bag.maximum)!=null?a:Number.POSITIVE_INFINITY;t.maximum<o&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let o=i.value;if(o.length<=t.maximum)return;let s=Zl(o);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),dy=_("$ZodCheckMinLength",(e,t)=>{var r;var n;Te.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=i=>{let o=i.value;return!br(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{var a;let o=(a=i._zod.bag.minimum)!=null?a:Number.NEGATIVE_INFINITY;t.minimum>o&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let o=i.value;if(o.length>=t.minimum)return;let s=Zl(o);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),fy=_("$ZodCheckLengthEquals",(e,t)=>{var r;var n;Te.init(e,t),(r=(n=e._zod.def).when)!=null||(n.when=i=>{let o=i.value;return!br(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{let o=i._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=i=>{let o=i.value,a=o.length;if(a===t.length)return;let s=Zl(o),c=a>t.length;i.issues.push({origin:s,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ma=_("$ZodCheckStringFormat",(e,t)=>{var i,o;var n,r;Te.init(e,t),e._zod.onattach.push(a=>{var c;let s=a._zod.bag;s.format=t.format,t.pattern&&((c=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(i=(n=e._zod).check)!=null||(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=(r=e._zod).check)!=null||(r.check=()=>{})}),my=_("$ZodCheckRegex",(e,t)=>{Ma.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),py=_("$ZodCheckLowerCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ny),Ma.init(e,t)}),gy=_("$ZodCheckUpperCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=iy),Ma.init(e,t)}),hy=_("$ZodCheckIncludes",(e,t)=>{Te.init(e,t);let n=zn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{var a;let o=i._zod.bag;(a=o.patterns)!=null||(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),vy=_("$ZodCheckStartsWith",(e,t)=>{var r;Te.init(e,t);let n=new RegExp(`^${zn(t.prefix)}.*`);(r=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(i=>{var a;let o=i._zod.bag;(a=o.patterns)!=null||(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),yy=_("$ZodCheckEndsWith",(e,t)=>{var r;Te.init(e,t);let n=new RegExp(`.*${zn(t.suffix)}$`);(r=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(i=>{var a;let o=i._zod.bag;(a=o.patterns)!=null||(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function Bk(e,t,n){e.issues.length&&t.issues.push(...dn(n,e.issues))}var by=_("$ZodCheckProperty",(e,t)=>{Te.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>Bk(i,n,t.property));Bk(r,n,t.property)}}),Sy=_("$ZodCheckMimeType",(e,t)=>{Te.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),xy=_("$ZodCheckOverwrite",(e,t)=>{Te.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var Fl=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
|
|
`).filter(a=>a),i=Math.min(...r.map(a=>a.length-a.trimStart().length)),o=r.map(a=>a.slice(i)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){var o;let t=Function,n=this==null?void 0:this.args,i=[...((o=this==null?void 0:this.content)!=null?o:[""]).map(a=>` ${a}`)];return new t(...n,i.join(`
|
|
`))}};var _y={major:4,minor:3,patch:5};var ie=_("$ZodType",(e,t)=>{var i,o,a;var n;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=_y;let r=[...(i=e._zod.def.checks)!=null?i:[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(let s of r)for(let c of s._zod.onattach)c(e);if(r.length===0)(o=(n=e._zod).deferred)!=null||(n.deferred=[]),(a=e._zod.deferred)==null||a.push(()=>{e._zod.run=e._zod.parse});else{let s=(d,m,l)=>{let f=_r(d),p;for(let h of m){if(h._zod.def.when){if(!h._zod.def.when(d))continue}else if(f)continue;let y=d.issues.length,x=h._zod.check(d);if(x instanceof Promise&&(l==null?void 0:l.async)===!1)throw new Dn;if(p||x instanceof Promise)p=(p!=null?p:Promise.resolve()).then(async()=>{await x,d.issues.length!==y&&(f||(f=_r(d,y)))});else{if(d.issues.length===y)continue;f||(f=_r(d,y))}}return p?p.then(()=>d):d},c=(d,m,l)=>{if(_r(d))return d.aborted=!0,d;let f=s(m,r,l);if(f instanceof Promise){if(l.async===!1)throw new Dn;return f.then(p=>e._zod.parse(p,l))}return e._zod.parse(f,l)};e._zod.run=(d,m)=>{if(m.skipChecks)return e._zod.parse(d,m);if(m.direction==="backward"){let f=e._zod.parse({value:d.value,issues:[]},{...m,skipChecks:!0});return f instanceof Promise?f.then(p=>c(p,d,m)):c(f,d,m)}let l=e._zod.parse(d,m);if(l instanceof Promise){if(m.async===!1)throw new Dn;return l.then(f=>s(f,r,m))}return s(l,r,m)}}ue(e,"~standard",()=>({validate:s=>{var c;try{let d=Cv(e,s);return d.success?{value:d.data}:{issues:(c=d.error)==null?void 0:c.issues}}catch(d){return kv(e,s).then(m=>{var l;return m.success?{value:m.data}:{issues:(l=m.error)==null?void 0:l.issues}})}},vendor:"zod",version:1}))}),fo=_("$ZodString",(e,t)=>{var n,r,i;ie.init(e,t),e._zod.pattern=(i=[...(r=(n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)!=null?r:[]].pop())!=null?i:Yv(e._zod.bag),e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=String(o.value)}catch(s){}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),ze=_("$ZodStringFormat",(e,t)=>{Ma.init(e,t),fo.init(e,t)}),wy=_("$ZodGUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Uv),ze.init(e,t)}),Ey=_("$ZodUUID",(e,t)=>{var n,r;if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);(n=t.pattern)!=null||(t.pattern=uo(o))}else(r=t.pattern)!=null||(t.pattern=uo());ze.init(e,t)}),Ay=_("$ZodEmail",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=jv),ze.init(e,t)}),zy=_("$ZodURL",(e,t)=>{ze.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Cy=_("$ZodEmoji",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Pv()),ze.init(e,t)}),ky=_("$ZodNanoID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Rv),ze.init(e,t)}),Ty=_("$ZodCUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Tv),ze.init(e,t)}),Iy=_("$ZodCUID2",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Iv),ze.init(e,t)}),Ny=_("$ZodULID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Nv),ze.init(e,t)}),Oy=_("$ZodXID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Ov),ze.init(e,t)}),Dy=_("$ZodKSUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Dv),ze.init(e,t)}),Ry=_("$ZodISODateTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Jv(t)),ze.init(e,t)}),My=_("$ZodISODate",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Fv),ze.init(e,t)}),Uy=_("$ZodISOTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Xv(t)),ze.init(e,t)}),jy=_("$ZodISODuration",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Mv),ze.init(e,t)}),Py=_("$ZodIPv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Lv),ze.init(e,t),e._zod.bag.format="ipv4"}),Ly=_("$ZodIPv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Zv),ze.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch(i){r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Zy=_("$ZodMAC",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=qv(t.delimiter)),ze.init(e,t),e._zod.bag.format="mac"}),qy=_("$ZodCIDRv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Vv),ze.init(e,t)}),Vy=_("$ZodCIDRv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Hv),ze.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[o,a]=i;if(!a)throw new Error;let s=Number(a);if(`${s}`!==a)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch(o){r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Hy(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch(t){return!1}}var By=_("$ZodBase64",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Bv),ze.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Hy(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function oT(e){if(!qd.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Hy(n)}var Gy=_("$ZodBase64URL",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=qd),ze.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{oT(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Fy=_("$ZodE164",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Gv),ze.init(e,t)});function aT(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch(n){return!1}}var Xy=_("$ZodJWT",(e,t)=>{ze.init(e,t),e._zod.check=n=>{aT(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Jy=_("$ZodCustomStringFormat",(e,t)=>{ze.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Kd=_("$ZodNumber",(e,t)=>{var n;ie.init(e,t),e._zod.pattern=(n=e._zod.bag.pattern)!=null?n:Vd,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch(s){}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),r}}),Yy=_("$ZodNumberFormat",(e,t)=>{oy.init(e,t),Kd.init(e,t)}),Xl=_("$ZodBoolean",(e,t)=>{ie.init(e,t),e._zod.pattern=Wv,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Boolean(n.value)}catch(o){}let i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Qd=_("$ZodBigInt",(e,t)=>{ie.init(e,t),e._zod.pattern=Kv,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(i){}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Ky=_("$ZodBigIntFormat",(e,t)=>{ay.init(e,t),Qd.init(e,t)}),Qy=_("$ZodSymbol",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),Wy=_("$ZodUndefined",(e,t)=>{ie.init(e,t),e._zod.pattern=ty,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,r)=>{let i=n.value;return typeof i=="undefined"||n.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),n}}),eb=_("$ZodNull",(e,t)=>{ie.init(e,t),e._zod.pattern=ey,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),tb=_("$ZodAny",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),nb=_("$ZodUnknown",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),ib=_("$ZodNever",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),rb=_("$ZodVoid",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i=="undefined"||n.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),n}}),ob=_("$ZodDate",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(s){}let i=n.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),n}});function Xk(e,t,n){e.issues.length&&t.issues.push(...dn(n,e.issues)),t.value[n]=e.value}var ab=_("$ZodArray",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let o=[];for(let a=0;a<i.length;a++){let s=i[a],c=t.element._zod.run({value:s,issues:[]},r);c instanceof Promise?o.push(c.then(d=>Xk(d,n,a))):Xk(c,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function Yd(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...dn(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function sT(e){var r,i,o,a;let t=Object.keys(e.shape);for(let s of t)if(!((a=(o=(i=(r=e.shape)==null?void 0:r[s])==null?void 0:i._zod)==null?void 0:o.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);let n=$v(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function lT(e,t,n,r,i,o){let a=[],s=i.keySet,c=i.catchall._zod,d=c.def.type,m=c.optout==="optional";for(let l in t){if(s.has(l))continue;if(d==="never"){a.push(l);continue}let f=c.run({value:t[l],issues:[]},r);f instanceof Promise?e.push(f.then(p=>Yd(p,n,l,t,m))):Yd(f,n,l,t,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var cT=_("$ZodObject",(e,t)=>{ie.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let r=Ta(()=>sT(t));ue(e._zod,"propValues",()=>{var d;let s=t.shape,c={};for(let m in s){let l=s[m]._zod;if(l.values){(d=c[m])!=null||(c[m]=new Set);for(let f of l.values)c[m].add(f)}}return c});let i=co,o=t.catchall,a;e._zod.parse=(s,c)=>{a!=null||(a=r.value);let d=s.value;if(!i(d))return s.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),s;s.value={};let m=[],l=a.shape;for(let f of a.keys){let p=l[f],h=p._zod.optout==="optional",y=p._zod.run({value:d[f],issues:[]},c);y instanceof Promise?m.push(y.then(x=>Yd(x,s,f,d,h))):Yd(y,s,f,d,h)}return o?lT(m,d,s,c,r.value,e):m.length?Promise.all(m).then(()=>s):s}}),sb=_("$ZodObjectJIT",(e,t)=>{cT.init(e,t);let n=e._zod.parse,r=Ta(()=>sT(t)),i=f=>{var b;let p=new Fl(["shape","payload","ctx"]),h=r.value,y=S=>{let $=Td(S);return`shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`};p.write("const input = payload.value;");let x=Object.create(null),v=0;for(let S of h.keys)x[S]=`key_${v++}`;p.write("const newResult = {};");for(let S of h.keys){let $=x[S],M=Td(S),z=f[S],q=((b=z==null?void 0:z._zod)==null?void 0:b.optout)==="optional";p.write(`const ${$} = ${y(S)};`),q?p.write(`
|
|
if (${$}.issues.length) {
|
|
if (${M} in input) {
|
|
payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
|
|
...iss,
|
|
path: iss.path ? [${M}, ...iss.path] : [${M}]
|
|
})));
|
|
}
|
|
}
|
|
|
|
if (${$}.value === undefined) {
|
|
if (${M} in input) {
|
|
newResult[${M}] = undefined;
|
|
}
|
|
} else {
|
|
newResult[${M}] = ${$}.value;
|
|
}
|
|
|
|
`):p.write(`
|
|
if (${$}.issues.length) {
|
|
payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
|
|
...iss,
|
|
path: iss.path ? [${M}, ...iss.path] : [${M}]
|
|
})));
|
|
}
|
|
|
|
if (${$}.value === undefined) {
|
|
if (${M} in input) {
|
|
newResult[${M}] = undefined;
|
|
}
|
|
} else {
|
|
newResult[${M}] = ${$}.value;
|
|
}
|
|
|
|
`)}p.write("payload.value = newResult;"),p.write("return payload;");let g=p.compile();return(S,$)=>g(f,S,$)},o,a=co,s=!Rl.jitless,d=s&&Sv.value,m=t.catchall,l;e._zod.parse=(f,p)=>{l!=null||(l=r.value);let h=f.value;return a(h)?s&&d&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(o||(o=i(t.shape)),f=o(f,p),m?lT([],h,f,p,l,e):f):n(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f)}});function Jk(e,t,n,r){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let i=e.filter(o=>!_r(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Xt(a,r,Fe())))}),t)}var Jl=_("$ZodUnion",(e,t)=>{ie.init(e,t),ue(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ue(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ue(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ue(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>jl(o.source)).join("|")})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return r(i,o);let a=!1,s=[];for(let c of t.options){let d=c._zod.run({value:i.value,issues:[]},o);if(d instanceof Promise)s.push(d),a=!0;else{if(d.issues.length===0)return d;s.push(d)}}return a?Promise.all(s).then(c=>Jk(c,i,e,o)):Jk(s,i,e,o)}});function Yk(e,t,n,r){let i=e.filter(o=>o.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Xt(a,r,Fe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var lb=_("$ZodXor",(e,t)=>{Jl.init(e,t),t.inclusive=!1;let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return r(i,o);let a=!1,s=[];for(let c of t.options){let d=c._zod.run({value:i.value,issues:[]},o);d instanceof Promise?(s.push(d),a=!0):s.push(d)}return a?Promise.all(s).then(c=>Yk(c,i,e,o)):Yk(s,i,e,o)}}),cb=_("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Jl.init(e,t);let n=e._zod.parse;ue(e._zod,"propValues",()=>{let i={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,c]of Object.entries(a)){i[s]||(i[s]=new Set);for(let d of c)i[s].add(d)}}return i});let r=Ta(()=>{var a;let i=t.options,o=new Map;for(let s of i){let c=(a=s._zod.propValues)==null?void 0:a[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let d of c){if(o.has(d))throw new Error(`Duplicate discriminator value "${String(d)}"`);o.set(d,s)}}return o});e._zod.parse=(i,o)=>{let a=i.value;if(!co(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let s=r.value.get(a==null?void 0:a[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),i)}}),ub=_("$ZodIntersection",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{let i=n.value,o=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,d])=>Kk(n,c,d)):Kk(n,o,a)}});function $y(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xr(e)&&xr(t)){let n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(let o of r){let a=$y(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i[o]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t[r],a=$y(i,o);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Kk(e,t,n){let r=new Map,i;for(let s of t.issues)if(s.code==="unrecognized_keys"){i!=null||(i=s);for(let c of s.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(s);let o=[...r].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&i&&e.issues.push({...i,keys:o}),_r(e))return e;let a=$y(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Wd=_("$ZodTuple",(e,t)=>{ie.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let a=[],s=[...n].reverse().findIndex(m=>m._zod.optin!=="optional"),c=s===-1?0:n.length-s;if(!t.rest){let m=o.length>n.length,l=o.length<c-1;if(m||l)return r.issues.push({...m?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),r}let d=-1;for(let m of n){if(d++,d>=o.length&&d>=c)continue;let l=m._zod.run({value:o[d],issues:[]},i);l instanceof Promise?a.push(l.then(f=>Gd(f,r,d))):Gd(l,r,d)}if(t.rest){let m=o.slice(n.length);for(let l of m){d++;let f=t.rest._zod.run({value:l,issues:[]},i);f instanceof Promise?a.push(f.then(p=>Gd(p,r,d))):Gd(f,r,d)}}return a.length?Promise.all(a).then(()=>r):r}});function Gd(e,t,n){e.issues.length&&t.issues.push(...dn(n,e.issues)),t.value[n]=e.value}var db=_("$ZodRecord",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!xr(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let s=new Set;for(let d of a)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){s.add(typeof d=="number"?d.toString():d);let m=t.valueType._zod.run({value:i[d],issues:[]},r);m instanceof Promise?o.push(m.then(l=>{l.issues.length&&n.issues.push(...dn(d,l.issues)),n.value[d]=l.value})):(m.issues.length&&n.issues.push(...dn(d,m.issues)),n.value[d]=m.value)}let c;for(let d in i)s.has(d)||(c=c!=null?c:[],c.push(d));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c})}else{n.value={};for(let s of Reflect.ownKeys(i)){if(s==="__proto__")continue;let c=t.keyType._zod.run({value:s,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Vd.test(s)&&c.issues.length&&c.issues.some(l=>l.code==="invalid_type"&&l.expected==="number")){let l=t.keyType._zod.run({value:Number(s),issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");l.issues.length===0&&(c=l)}if(c.issues.length){t.mode==="loose"?n.value[s]=i[s]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(l=>Xt(l,r,Fe())),input:s,path:[s],inst:e});continue}let m=t.valueType._zod.run({value:i[s],issues:[]},r);m instanceof Promise?o.push(m.then(l=>{l.issues.length&&n.issues.push(...dn(s,l.issues)),n.value[c.value]=l.value})):(m.issues.length&&n.issues.push(...dn(s,m.issues)),n.value[c.value]=m.value)}}return o.length?Promise.all(o).then(()=>n):n}}),fb=_("$ZodMap",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;let o=[];n.value=new Map;for(let[a,s]of i){let c=t.keyType._zod.run({value:a,issues:[]},r),d=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||d instanceof Promise?o.push(Promise.all([c,d]).then(([m,l])=>{Qk(m,l,n,a,i,e,r)})):Qk(c,d,n,a,i,e,r)}return o.length?Promise.all(o).then(()=>n):n}});function Qk(e,t,n,r,i,o,a){e.issues.length&&(Pl.has(typeof r)?n.issues.push(...dn(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:e.issues.map(s=>Xt(s,a,Fe()))})),t.issues.length&&(Pl.has(typeof r)?n.issues.push(...dn(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:r,issues:t.issues.map(s=>Xt(s,a,Fe()))})),n.value.set(e.value,t.value)}var mb=_("$ZodSet",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of i){let s=t.valueType._zod.run({value:a,issues:[]},r);s instanceof Promise?o.push(s.then(c=>Wk(c,n))):Wk(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function Wk(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var pb=_("$ZodEnum",(e,t)=>{ie.init(e,t);let n=Ul(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>Pl.has(typeof i)).map(i=>typeof i=="string"?zn(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{let a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:n,input:a,inst:e}),i}}),gb=_("$ZodLiteral",(e,t)=>{if(ie.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?zn(r):r?zn(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{let o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),r}}),hb=_("$ZodFile",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return i instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),n}}),vb=_("$ZodTransform",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new yr(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(n.value=a,n));if(i instanceof Promise)throw new Dn;return n.value=i,n}});function eT(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var ef=_("$ZodOptional",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ue(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${jl(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>eT(o,n.value)):eT(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),yb=_("$ZodExactOptional",(e,t)=>{ef.init(e,t),ue(e._zod,"values",()=>t.innerType._zod.values),ue(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),bb=_("$ZodNullable",(e,t)=>{ie.init(e,t),ue(e._zod,"optin",()=>t.innerType._zod.optin),ue(e._zod,"optout",()=>t.innerType._zod.optout),ue(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${jl(n.source)}|null)$`):void 0}),ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Sb=_("$ZodDefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>tT(o,t)):tT(i,t)}});function tT(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var xb=_("$ZodPrefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),_b=_("$ZodNonOptional",(e,t)=>{ie.init(e,t),ue(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>nT(o,e)):nT(i,e)}});function nT(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var $b=_("$ZodSuccess",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new yr("ZodSuccess");let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.issues.length===0,n)):(n.value=i.issues.length===0,n)}}),wb=_("$ZodCatch",(e,t)=>{ie.init(e,t),ue(e._zod,"optin",()=>t.innerType._zod.optin),ue(e._zod,"optout",()=>t.innerType._zod.optout),ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Xt(a,r,Fe()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Xt(o,r,Fe()))},input:n.value}),n.issues=[]),n)}}),Eb=_("$ZodNaN",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Ab=_("$ZodPipe",(e,t)=>{ie.init(e,t),ue(e._zod,"values",()=>t.in._zod.values),ue(e._zod,"optin",()=>t.in._zod.optin),ue(e._zod,"optout",()=>t.out._zod.optout),ue(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>Fd(a,t.in,r)):Fd(o,t.in,r)}let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>Fd(o,t.out,r)):Fd(i,t.out,r)}});function Fd(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Yl=_("$ZodCodec",(e,t)=>{ie.init(e,t),ue(e._zod,"values",()=>t.in._zod.values),ue(e._zod,"optin",()=>t.in._zod.optin),ue(e._zod,"optout",()=>t.out._zod.optout),ue(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>Xd(a,t,r)):Xd(o,t,r)}else{let o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>Xd(a,t,r)):Xd(o,t,r)}}});function Xd(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let i=t.transform(e.value,e);return i instanceof Promise?i.then(o=>Jd(e,o,t.out,n)):Jd(e,i,t.out,n)}else{let i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(o=>Jd(e,o,t.in,n)):Jd(e,i,t.in,n)}}function Jd(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var zb=_("$ZodReadonly",(e,t)=>{ie.init(e,t),ue(e._zod,"propValues",()=>t.innerType._zod.propValues),ue(e._zod,"values",()=>t.innerType._zod.values),ue(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),ue(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(iT):iT(i)}});function iT(e){return e.value=Object.freeze(e.value),e}var Cb=_("$ZodTemplateLiteral",(e,t)=>{ie.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);let i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);let o=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;n.push(i.slice(o,a))}else if(r===null||_v.has(typeof r))n.push(zn(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,i)=>{var o;return typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",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:(o=t.format)!=null?o:"template_literal",pattern:e._zod.pattern.source}),r)}}),kb=_("$ZodFunction",(e,t)=>(ie.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...r){let i=e._def.input?Nd(e._def.input,r):r,o=Reflect.apply(n,this,i);return e._def.output?Nd(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){let i=e._def.input?await Od(e._def.input,r):r,o=await Reflect.apply(n,this,i);return e._def.output?await Od(e._def.output,o):o}},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new Wd({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),Tb=_("$ZodPromise",(e,t)=>{ie.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(i=>t.innerType._zod.run({value:i,issues:[]},r))}),Ib=_("$ZodLazy",(e,t)=>{ie.init(e,t),ue(e._zod,"innerType",()=>t.getter()),ue(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),ue(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),ue(e._zod,"optin",()=>{var n,r,i;return(i=(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)!=null?i:void 0}),ue(e._zod,"optout",()=>{var n,r,i;return(i=(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)!=null?i:void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Nb=_("$ZodCustom",(e,t)=>{Te.init(e,t),ie.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>rT(o,n,r,e));rT(i,n,r,e)}});function rT(e,t,n,r){var i;if(!e){let o={code:"custom",input:n,inst:r,path:[...(i=r._zod.def.path)!=null?i:[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Ia(o))}}var mo={};jn(mo,{ar:()=>uT,az:()=>dT,be:()=>mT,bg:()=>pT,ca:()=>gT,cs:()=>hT,da:()=>vT,de:()=>yT,en:()=>tf,eo:()=>bT,es:()=>ST,fa:()=>xT,fi:()=>_T,fr:()=>$T,frCA:()=>wT,he:()=>ET,hu:()=>AT,hy:()=>CT,id:()=>kT,is:()=>TT,it:()=>IT,ja:()=>NT,ka:()=>OT,kh:()=>DT,km:()=>nf,ko:()=>RT,lt:()=>UT,mk:()=>jT,ms:()=>PT,nl:()=>LT,no:()=>ZT,ota:()=>qT,pl:()=>HT,ps:()=>VT,pt:()=>BT,ru:()=>FT,sl:()=>XT,sv:()=>JT,ta:()=>YT,th:()=>KT,tr:()=>QT,ua:()=>WT,uk:()=>rf,ur:()=>e1,uz:()=>t1,vi:()=>n1,yo:()=>o1,zhCN:()=>i1,zhTW:()=>r1});var aj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\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 instanceof ${i.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${p}`:`\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}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${p}`}case"invalid_value":return i.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${O(i.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${(s=i.origin)!=null?s:"\u0627\u0644\u0642\u064A\u0645\u0629"} ${l} ${i.maximum.toString()} ${(c=f.unit)!=null?c:"\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 ${(d=i.origin)!=null?d:"\u0627\u0644\u0642\u064A\u0645\u0629"} ${l} ${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${l} ${i.minimum.toString()} ${f.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${l} ${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${i.prefix}"`:l.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 "${l.suffix}"`:l.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 "${l.includes}"`:l.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 ${l.pattern}`:`${(m=n[l.format])!=null?m:i.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${E(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function uT(){return{localeError:aj()}}var sj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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"},r={nan:"NaN"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${i.expected}, daxil olan ${p}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${l}, daxil olan ${p}`}case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${O(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${(s=i.origin)!=null?s:"d\u0259y\u0259r"} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${(d=i.origin)!=null?d:"d\u0259y\u0259r"} ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${l}${i.minimum.toString()} ${f.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${l.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:l.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${l.suffix}" il\u0259 bitm\u0259lidir`:l.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${l.includes}" daxil olmal\u0131d\u0131r`:l.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${l.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${E(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function dT(){return{localeError:sj()}}function fT(e,t,n,r){let i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:o===1?t:o>=2&&o<=4?n:r}var lj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return i=>{var o,a,s,c,d;switch(i.code){case"invalid_type":{let m=(o=r[i.expected])!=null?o:i.expected,l=D(i.input),f=(a=r[l])!=null?a:l;return/^[A-Z]/.test(i.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${f}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${m}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${f}`}case"invalid_value":return i.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${O(i.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${E(i.values,"|")}`;case"too_big":{let m=i.inclusive?"<=":"<",l=t(i.origin);if(l){let f=Number(i.maximum),p=fT(f,l.unit.one,l.unit.few,l.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 ${(s=i.origin)!=null?s:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${l.verb} ${m}${i.maximum.toString()} ${p}`}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 ${(c=i.origin)!=null?c:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${m}${i.maximum.toString()}`}case"too_small":{let m=i.inclusive?">=":">",l=t(i.origin);if(l){let f=Number(i.minimum),p=fT(f,l.unit.one,l.unit.few,l.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${l.verb} ${m}${i.minimum.toString()} ${p}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${m}${i.minimum.toString()}`}case"invalid_format":{let m=i;return m.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 "${m.prefix}"`:m.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 "${m.suffix}"`:m.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 "${m.includes}"`:m.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 ${m.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${(d=n[m.format])!=null?d:i.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${E(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function mT(){return{localeError:lj()}}var cj=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",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:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${p}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${l}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${p}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${O(i.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${(s=i.origin)!=null?s:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${(d=i.origin)!=null?d:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${l}${i.minimum.toString()} ${f.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;if(l.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${l.prefix}"`;if(l.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${l.suffix}"`;if(l.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${l.includes}"`;if(l.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${l.pattern}`;let f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return l.format==="emoji"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),l.format==="datetime"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),l.format==="date"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),l.format==="time"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),l.format==="duration"&&(f="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${f} ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${i.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u043E\u0432\u0435":""}: ${E(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function pT(){return{localeError:cj()}}var uj=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${i.expected}, s'ha rebut ${p}`:`Tipus inv\xE0lid: s'esperava ${l}, s'ha rebut ${p}`}case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${O(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${E(i.values," o ")}`;case"too_big":{let l=i.inclusive?"com a m\xE0xim":"menys de",f=t(i.origin);return f?`Massa gran: s'esperava que ${(s=i.origin)!=null?s:"el valor"} contingu\xE9s ${l} ${i.maximum.toString()} ${(c=f.unit)!=null?c:"elements"}`:`Massa gran: s'esperava que ${(d=i.origin)!=null?d:"el valor"} fos ${l} ${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?"com a m\xEDnim":"m\xE9s de",f=t(i.origin);return f?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${l} ${i.minimum.toString()} ${f.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${l} ${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${l.prefix}"`:l.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${l.suffix}"`:l.format==="includes"?`Format inv\xE0lid: ha d'incloure "${l.includes}"`:l.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${l.pattern}`:`Format inv\xE0lid per a ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${E(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}};function gT(){return{localeError:uj()}}var dj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return i=>{var o,a,s,c,d,m,l,f,p;switch(i.code){case"invalid_type":{let h=(o=r[i.expected])!=null?o:i.expected,y=D(i.input),x=(a=r[y])!=null?a:y;return/^[A-Z]/.test(i.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${i.expected}, obdr\u017Eeno ${x}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${h}, obdr\u017Eeno ${x}`}case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${O(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${E(i.values,"|")}`;case"too_big":{let h=i.inclusive?"<=":"<",y=t(i.origin);return y?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${(s=i.origin)!=null?s:"hodnota"} mus\xED m\xEDt ${h}${i.maximum.toString()} ${(c=y.unit)!=null?c:"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${(d=i.origin)!=null?d:"hodnota"} mus\xED b\xFDt ${h}${i.maximum.toString()}`}case"too_small":{let h=i.inclusive?">=":">",y=t(i.origin);return y?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${(m=i.origin)!=null?m:"hodnota"} mus\xED m\xEDt ${h}${i.minimum.toString()} ${(l=y.unit)!=null?l:"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${(f=i.origin)!=null?f:"hodnota"} mus\xED b\xFDt ${h}${i.minimum.toString()}`}case"invalid_format":{let h=i;return h.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${h.prefix}"`:h.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${h.suffix}"`:h.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${h.includes}"`:h.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${h.pattern}`:`Neplatn\xFD form\xE1t ${(p=n[h.format])!=null?p:i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${E(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}};function hT(){return{localeError:dj()}}var fj=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Ugyldigt input: forventede instanceof ${i.expected}, fik ${p}`:`Ugyldigt input: forventede ${l}, fik ${p}`}case"invalid_value":return i.values.length===1?`Ugyldig v\xE6rdi: forventede ${O(i.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin),p=(s=r[i.origin])!=null?s:i.origin;return f?`For stor: forventede ${p!=null?p:"value"} ${f.verb} ${l} ${i.maximum.toString()} ${(c=f.unit)!=null?c:"elementer"}`:`For stor: forventede ${p!=null?p:"value"} havde ${l} ${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin),p=(d=r[i.origin])!=null?d:i.origin;return f?`For lille: forventede ${p} ${f.verb} ${l} ${i.minimum.toString()} ${f.unit}`:`For lille: forventede ${p} havde ${l} ${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Ugyldig streng: skal starte med "${l.prefix}"`:l.format==="ends_with"?`Ugyldig streng: skal ende med "${l.suffix}"`:l.format==="includes"?`Ugyldig streng: skal indeholde "${l.includes}"`:l.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${l.pattern}`:`Ugyldig ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${E(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${i.origin}`;default:return"Ugyldigt input"}}};function vT(){return{localeError:fj()}}var mj=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",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"},r={nan:"NaN",number:"Zahl",array:"Array"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${i.expected}, erhalten ${p}`:`Ung\xFCltige Eingabe: erwartet ${l}, erhalten ${p}`}case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${O(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Zu gro\xDF: erwartet, dass ${(s=i.origin)!=null?s:"Wert"} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${(d=i.origin)!=null?d:"Wert"} ${l}${i.maximum.toString()} ist`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Zu klein: erwartet, dass ${i.origin} ${l}${i.minimum.toString()} ${f.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${l}${i.minimum.toString()} ist`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Ung\xFCltiger String: muss mit "${l.prefix}" beginnen`:l.format==="ends_with"?`Ung\xFCltiger String: muss mit "${l.suffix}" enden`:l.format==="includes"?`Ung\xFCltiger String: muss "${l.includes}" enthalten`:l.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${l.pattern} entsprechen`:`Ung\xFCltig: ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${E(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}};function yT(){return{localeError:mj()}}var pj=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return`Invalid input: expected ${l}, received ${p}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${O(i.values[0])}`:`Invalid option: expected one of ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Too big: expected ${(s=i.origin)!=null?s:"value"} to have ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elements"}`:`Too big: expected ${(d=i.origin)!=null?d:"value"} to be ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Too small: expected ${i.origin} to have ${l}${i.minimum.toString()} ${f.unit}`:`Too small: expected ${i.origin} to be ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Invalid string: must start with "${l.prefix}"`:l.format==="ends_with"?`Invalid string: must end with "${l.suffix}"`:l.format==="includes"?`Invalid string: must include "${l.includes}"`:l.format==="regex"?`Invalid string: must match pattern ${l.pattern}`:`Invalid ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${E(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function tf(){return{localeError:pj()}}var gj=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${i.expected}, ricevi\u011Dis ${p}`:`Nevalida enigo: atendi\u011Dis ${l}, ricevi\u011Dis ${p}`}case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${O(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Tro granda: atendi\u011Dis ke ${(s=i.origin)!=null?s:"valoro"} havu ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elementojn"}`:`Tro granda: atendi\u011Dis ke ${(d=i.origin)!=null?d:"valoro"} havu ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${l}${i.minimum.toString()} ${f.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${l.prefix}"`:l.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${l.suffix}"`:l.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${l.includes}"`:l.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${l.pattern}`:`Nevalida ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${E(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function bT(){return{localeError:gj()}}var hj=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return i=>{var o,a,s,c,d,m,l,f;switch(i.code){case"invalid_type":{let p=(o=r[i.expected])!=null?o:i.expected,h=D(i.input),y=(a=r[h])!=null?a:h;return/^[A-Z]/.test(i.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${i.expected}, recibido ${y}`:`Entrada inv\xE1lida: se esperaba ${p}, recibido ${y}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${O(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${E(i.values,"|")}`;case"too_big":{let p=i.inclusive?"<=":"<",h=t(i.origin),y=(s=r[i.origin])!=null?s:i.origin;return h?`Demasiado grande: se esperaba que ${y!=null?y:"valor"} tuviera ${p}${i.maximum.toString()} ${(c=h.unit)!=null?c:"elementos"}`:`Demasiado grande: se esperaba que ${y!=null?y:"valor"} fuera ${p}${i.maximum.toString()}`}case"too_small":{let p=i.inclusive?">=":">",h=t(i.origin),y=(d=r[i.origin])!=null?d:i.origin;return h?`Demasiado peque\xF1o: se esperaba que ${y} tuviera ${p}${i.minimum.toString()} ${h.unit}`:`Demasiado peque\xF1o: se esperaba que ${y} fuera ${p}${i.minimum.toString()}`}case"invalid_format":{let p=i;return p.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${p.prefix}"`:p.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${p.suffix}"`:p.format==="includes"?`Cadena inv\xE1lida: debe incluir "${p.includes}"`:p.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${p.pattern}`:`Inv\xE1lido ${(m=n[p.format])!=null?m:i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${E(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${(l=r[i.origin])!=null?l:i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${(f=r[i.origin])!=null?f:i.origin}`;default:return"Entrada inv\xE1lida"}}};function ST(){return{localeError:hj()}}var vj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${p} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${l} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${p} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${O(i.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${E(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${(s=i.origin)!=null?s:"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${(d=i.origin)!=null?d:"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${l}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${l}${i.minimum.toString()} ${f.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${l}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${l.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:l.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${l.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:l.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${l.includes}" \u0628\u0627\u0634\u062F`:l.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${l.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${(m=n[l.format])!=null?m:i.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${E(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function xT(){return{localeError:vj()}}var yj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN"};return i=>{var o,a,s;switch(i.code){case"invalid_type":{let c=(o=r[i.expected])!=null?o:i.expected,d=D(i.input),m=(a=r[d])!=null?a:d;return/^[A-Z]/.test(i.expected)?`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${m}`:`Virheellinen tyyppi: odotettiin ${c}, oli ${m}`}case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${O(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${E(i.values,"|")}`;case"too_big":{let c=i.inclusive?"<=":"<",d=t(i.origin);return d?`Liian suuri: ${d.subject} t\xE4ytyy olla ${c}${i.maximum.toString()} ${d.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${c}${i.maximum.toString()}`}case"too_small":{let c=i.inclusive?">=":">",d=t(i.origin);return d?`Liian pieni: ${d.subject} t\xE4ytyy olla ${c}${i.minimum.toString()} ${d.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${c}${i.minimum.toString()}`}case"invalid_format":{let c=i;return c.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${c.prefix}"`:c.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${c.suffix}"`:c.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${c.includes}"`:c.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${c.pattern}`:`Virheellinen ${(s=n[c.format])!=null?s:i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${E(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function _T(){return{localeError:yj()}}var bj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"nombre",array:"tableau"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : instanceof ${i.expected} attendu, ${p} re\xE7u`:`Entr\xE9e invalide : ${l} attendu, ${p} re\xE7u`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${O(i.values[0])} attendu`:`Option invalide : une valeur parmi ${E(i.values,"|")} attendue`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Trop grand : ${(s=i.origin)!=null?s:"valeur"} doit ${f.verb} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\xE9l\xE9ment(s)"}`:`Trop grand : ${(d=i.origin)!=null?d:"valeur"} doit \xEAtre ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Trop petit : ${i.origin} doit ${f.verb} ${l}${i.minimum.toString()} ${f.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${l.prefix}"`:l.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${l.suffix}"`:l.format==="includes"?`Cha\xEEne invalide : doit inclure "${l.includes}"`:l.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${l.pattern}`:`${(m=n[l.format])!=null?m:i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${E(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function $T(){return{localeError:bj()}}var Sj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN"};return i=>{var o,a,s,c,d;switch(i.code){case"invalid_type":{let m=(o=r[i.expected])!=null?o:i.expected,l=D(i.input),f=(a=r[l])!=null?a:l;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : attendu instanceof ${i.expected}, re\xE7u ${f}`:`Entr\xE9e invalide : attendu ${m}, re\xE7u ${f}`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${O(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${E(i.values,"|")}`;case"too_big":{let m=i.inclusive?"\u2264":"<",l=t(i.origin);return l?`Trop grand : attendu que ${(s=i.origin)!=null?s:"la valeur"} ait ${m}${i.maximum.toString()} ${l.unit}`:`Trop grand : attendu que ${(c=i.origin)!=null?c:"la valeur"} soit ${m}${i.maximum.toString()}`}case"too_small":{let m=i.inclusive?"\u2265":">",l=t(i.origin);return l?`Trop petit : attendu que ${i.origin} ait ${m}${i.minimum.toString()} ${l.unit}`:`Trop petit : attendu que ${i.origin} soit ${m}${i.minimum.toString()}`}case"invalid_format":{let m=i;return m.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${m.prefix}"`:m.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${m.suffix}"`:m.format==="includes"?`Cha\xEEne invalide : doit inclure "${m.includes}"`:m.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${m.pattern}`:`${(d=n[m.format])!=null?d:i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${E(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function wT(){return{localeError:Sj()}}var xj=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=d=>d?e[d]:void 0,r=d=>{let m=n(d);return m?m.label:d!=null?d:e.unknown.label},i=d=>`\u05D4${r(d)}`,o=d=>{var f;let m=n(d);return((f=m==null?void 0:m.gender)!=null?f:"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA"},a=d=>{var m;return d&&(m=t[d])!=null?m:null},s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return d=>{var m,l,f,p,h,y,x,v,g,b,S,$,M,z,q,A,T,I,G,H,V;switch(d.code){case"invalid_type":{let C=d.expected,P=(m=c[C!=null?C:""])!=null?m:r(C),ee=D(d.input),re=(p=(f=c[ee])!=null?f:(l=e[ee])==null?void 0:l.label)!=null?p:ee;return/^[A-Z]/.test(d.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${d.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${re}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${P}, \u05D4\u05EA\u05E7\u05D1\u05DC ${re}`}case"invalid_value":{if(d.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${O(d.values[0])}`;let C=d.values.map(re=>O(re));if(d.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${C[0]} \u05D0\u05D5 ${C[1]}`;let P=C[C.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${C.slice(0,-1).join(", ")} \u05D0\u05D5 ${P}`}case"too_big":{let C=a(d.origin),P=i((h=d.origin)!=null?h:"value");if(d.origin==="string")return`${(y=C==null?void 0:C.longLabel)!=null?y:"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${P} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.maximum.toString()} ${(x=C==null?void 0:C.unit)!=null?x:""} ${d.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(d.origin==="number"){let we=d.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${d.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${P} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${we}`}if(d.origin==="array"||d.origin==="set"){let we=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",Z=d.inclusive?`${d.maximum} ${(v=C==null?void 0:C.unit)!=null?v:""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${d.maximum} ${(g=C==null?void 0:C.unit)!=null?g:""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${P} ${we} \u05DC\u05D4\u05DB\u05D9\u05DC ${Z}`.trim()}let ee=d.inclusive?"<=":"<",re=o((b=d.origin)!=null?b:"value");return C!=null&&C.unit?`${C.longLabel} \u05DE\u05D3\u05D9: ${P} ${re} ${ee}${d.maximum.toString()} ${C.unit}`:`${(S=C==null?void 0:C.longLabel)!=null?S:"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${P} ${re} ${ee}${d.maximum.toString()}`}case"too_small":{let C=a(d.origin),P=i(($=d.origin)!=null?$:"value");if(d.origin==="string")return`${(M=C==null?void 0:C.shortLabel)!=null?M:"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${P} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${d.minimum.toString()} ${(z=C==null?void 0:C.unit)!=null?z:""} ${d.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(d.origin==="number"){let we=d.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${d.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${d.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${P} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${we}`}if(d.origin==="array"||d.origin==="set"){let we=d.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(d.minimum===1&&d.inclusive){let B=(d.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${P} ${we} \u05DC\u05D4\u05DB\u05D9\u05DC ${B}`}let Z=d.inclusive?`${d.minimum} ${(q=C==null?void 0:C.unit)!=null?q:""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${d.minimum} ${(A=C==null?void 0:C.unit)!=null?A:""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${P} ${we} \u05DC\u05D4\u05DB\u05D9\u05DC ${Z}`.trim()}let ee=d.inclusive?">=":">",re=o((T=d.origin)!=null?T:"value");return C!=null&&C.unit?`${C.shortLabel} \u05DE\u05D3\u05D9: ${P} ${re} ${ee}${d.minimum.toString()} ${C.unit}`:`${(I=C==null?void 0:C.shortLabel)!=null?I:"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${P} ${re} ${ee}${d.minimum.toString()}`}case"invalid_format":{let C=d;if(C.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${C.prefix}"`;if(C.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${C.suffix}"`;if(C.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${C.includes}"`;if(C.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${C.pattern}`;let P=s[C.format],ee=(G=P==null?void 0:P.label)!=null?G:C.format,we=((H=P==null?void 0:P.gender)!=null?H:"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${ee} \u05DC\u05D0 ${we}`}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 ${d.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${d.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${d.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${E(d.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i((V=d.origin)!=null?V:"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function ET(){return{localeError:xj()}}var _j=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${i.expected}, a kapott \xE9rt\xE9k ${p}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${l}, a kapott \xE9rt\xE9k ${p}`}case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${O(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`T\xFAl nagy: ${(s=i.origin)!=null?s:"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${(d=i.origin)!=null?d:"\xE9rt\xE9k"} t\xFAl nagy: ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${l}${i.minimum.toString()} ${f.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\xC9rv\xE9nytelen string: "${l.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:l.format==="ends_with"?`\xC9rv\xE9nytelen string: "${l.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:l.format==="includes"?`\xC9rv\xE9nytelen string: "${l.includes}" \xE9rt\xE9ket kell tartalmaznia`:l.format==="regex"?`\xC9rv\xE9nytelen string: ${l.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${E(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function AT(){return{localeError:_j()}}function zT(e,t,n){return Math.abs(e)===1?t:n}function Ua(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var $j=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},r={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return i=>{var o,a,s,c,d;switch(i.code){case"invalid_type":{let m=(o=r[i.expected])!=null?o:i.expected,l=D(i.input),f=(a=r[l])!=null?a:l;return/^[A-Z]/.test(i.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${i.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${f}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${m}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${f}`}case"invalid_value":return i.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${O(i.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${E(i.values,"|")}`;case"too_big":{let m=i.inclusive?"<=":"<",l=t(i.origin);if(l){let f=Number(i.maximum),p=zT(f,l.unit.one,l.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ua((s=i.origin)!=null?s:"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${m}${i.maximum.toString()} ${p}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ua((c=i.origin)!=null?c:"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${m}${i.maximum.toString()}`}case"too_small":{let m=i.inclusive?">=":">",l=t(i.origin);if(l){let f=Number(i.minimum),p=zT(f,l.unit.one,l.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ua(i.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${m}${i.minimum.toString()} ${p}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ua(i.origin)} \u056C\u056B\u0576\u056B ${m}${i.minimum.toString()}`}case"invalid_format":{let m=i;return m.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${m.prefix}"-\u0578\u057E`:m.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${m.suffix}"-\u0578\u057E`:m.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${m.includes}"`:m.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${m.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${(d=n[m.format])!=null?d:i.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${i.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${i.keys.length>1?"\u0576\u0565\u0580":""}. ${E(i.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Ua(i.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Ua(i.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function CT(){return{localeError:$j()}}var wj=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",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"},r={nan:"NaN"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${p}`:`Input tidak valid: diharapkan ${l}, diterima ${p}`}case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${O(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Terlalu besar: diharapkan ${(s=i.origin)!=null?s:"value"} memiliki ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elemen"}`:`Terlalu besar: diharapkan ${(d=i.origin)!=null?d:"value"} menjadi ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Terlalu kecil: diharapkan ${i.origin} memiliki ${l}${i.minimum.toString()} ${f.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`String tidak valid: harus dimulai dengan "${l.prefix}"`:l.format==="ends_with"?`String tidak valid: harus berakhir dengan "${l.suffix}"`:l.format==="includes"?`String tidak valid: harus menyertakan "${l.includes}"`:l.format==="regex"?`String tidak valid: harus sesuai pola ${l.pattern}`:`${(m=n[l.format])!=null?m:i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${E(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function kT(){return{localeError:wj()}}var Ej=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},r={nan:"NaN",number:"n\xFAmer",array:"fylki"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${p} \xFEar sem \xE1 a\xF0 vera instanceof ${i.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${p} \xFEar sem \xE1 a\xF0 vera ${l}`}case"invalid_value":return i.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${O(i.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${(s=i.origin)!=null?s:"gildi"} hafi ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${(d=i.origin)!=null?d:"gildi"} s\xE9 ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} hafi ${l}${i.minimum.toString()} ${f.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} s\xE9 ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${l.prefix}"`:l.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${l.suffix}"`:l.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${l.includes}"`:l.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${l.pattern}`:`Rangt ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${E(i.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${i.origin}`;default:return"Rangt gildi"}}};function TT(){return{localeError:Ej()}}var Aj=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",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"},r={nan:"NaN",number:"numero",array:"vettore"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Input non valido: atteso instanceof ${i.expected}, ricevuto ${p}`:`Input non valido: atteso ${l}, ricevuto ${p}`}case"invalid_value":return i.values.length===1?`Input non valido: atteso ${O(i.values[0])}`:`Opzione non valida: atteso uno tra ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Troppo grande: ${(s=i.origin)!=null?s:"valore"} deve avere ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elementi"}`:`Troppo grande: ${(d=i.origin)!=null?d:"valore"} deve essere ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Troppo piccolo: ${i.origin} deve avere ${l}${i.minimum.toString()} ${f.unit}`:`Troppo piccolo: ${i.origin} deve essere ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Stringa non valida: deve iniziare con "${l.prefix}"`:l.format==="ends_with"?`Stringa non valida: deve terminare con "${l.suffix}"`:l.format==="includes"?`Stringa non valida: deve includere "${l.includes}"`:l.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${l.pattern}`:`Invalid ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${E(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function IT(){return{localeError:Aj()}}var zj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${p}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${l}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${p}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${O(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${E(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let l=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",f=t(i.origin);return f?`\u5927\u304D\u3059\u304E\u308B\u5024: ${(s=i.origin)!=null?s:"\u5024"}\u306F${i.maximum.toString()}${(c=f.unit)!=null?c:"\u8981\u7D20"}${l}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${(d=i.origin)!=null?d:"\u5024"}\u306F${i.maximum.toString()}${l}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let l=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",f=t(i.origin);return f?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${f.unit}${l}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${l}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${l.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:l.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${l.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:l.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${l.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:l.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${l.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${i.keys.length>1?"\u7FA4":""}: ${E(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function NT(){return{localeError:zj()}}var Cj=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},r={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return i=>{var o,a,s,c,d;switch(i.code){case"invalid_type":{let m=(o=r[i.expected])!=null?o:i.expected,l=D(i.input),f=(a=r[l])!=null?a:l;return/^[A-Z]/.test(i.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${i.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${f}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${m}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${f}`}case"invalid_value":return i.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${O(i.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${E(i.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let m=i.inclusive?"<=":"<",l=t(i.origin);return l?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${(s=i.origin)!=null?s:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${l.verb} ${m}${i.maximum.toString()} ${l.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${(c=i.origin)!=null?c:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${m}${i.maximum.toString()}`}case"too_small":{let m=i.inclusive?">=":">",l=t(i.origin);return l?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} ${l.verb} ${m}${i.minimum.toString()} ${l.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} \u10D8\u10E7\u10DD\u10E1 ${m}${i.minimum.toString()}`}case"invalid_format":{let m=i;return m.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${m.prefix}"-\u10D8\u10D7`:m.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${m.suffix}"-\u10D8\u10D7`:m.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${m.includes}"-\u10E1`:m.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${m.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${(d=n[m.format])!=null?d:i.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${i.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${i.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${E(i.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${i.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${i.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function OT(){return{localeError:Cj()}}var kj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\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 instanceof ${i.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${p}`:`\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} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${p}`}case"invalid_value":return i.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${O(i.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${(s=i.origin)!=null?s:"\u178F\u1798\u17D2\u179B\u17C3"} ${l} ${i.maximum.toString()} ${(c=f.unit)!=null?c:"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${(d=i.origin)!=null?d:"\u178F\u1798\u17D2\u179B\u17C3"} ${l} ${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${l} ${i.minimum.toString()} ${f.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${l} ${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.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 "${l.prefix}"`:l.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 "${l.suffix}"`:l.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 "${l.includes}"`:l.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 ${l.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${E(i.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function nf(){return{localeError:kj()}}function DT(){return nf()}var Tj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN"};return i=>{var o,a,s,c,d,m,l,f,p;switch(i.code){case"invalid_type":{let h=(o=r[i.expected])!=null?o:i.expected,y=D(i.input),x=(a=r[y])!=null?a:y;return/^[A-Z]/.test(i.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${x}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${h}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${x}\uC785\uB2C8\uB2E4`}case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${O(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${E(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let h=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",y=h==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",x=t(i.origin),v=(s=x==null?void 0:x.unit)!=null?s:"\uC694\uC18C";return x?`${(c=i.origin)!=null?c:"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${v} ${h}${y}`:`${(d=i.origin)!=null?d:"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${h}${y}`}case"too_small":{let h=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",y=h==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",x=t(i.origin),v=(m=x==null?void 0:x.unit)!=null?m:"\uC694\uC18C";return x?`${(l=i.origin)!=null?l:"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${v} ${h}${y}`:`${(f=i.origin)!=null?f:"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${h}${y}`}case"invalid_format":{let h=i;return h.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${h.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:h.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${h.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:h.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${h.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:h.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${h.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${(p=n[h.format])!=null?p:i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${E(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function RT(){return{localeError:Tj()}}var Kl=e=>e.charAt(0).toUpperCase()+e.slice(1);function MT(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?"many":n===1?"one":"few"}var Ij=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(i,o,a,s){var d;let c=(d=e[i])!=null?d:null;return c===null?c:{unit:c.unit[o],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},r={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return i=>{var o,a,s,c,d,m,l,f,p,h,y,x,v,g,b;switch(i.code){case"invalid_type":{let S=(o=r[i.expected])!=null?o:i.expected,$=D(i.input),M=(a=r[$])!=null?a:$;return/^[A-Z]/.test(i.expected)?`Gautas tipas ${M}, o tik\u0117tasi - instanceof ${i.expected}`:`Gautas tipas ${M}, o tik\u0117tasi - ${S}`}case"invalid_value":return i.values.length===1?`Privalo b\u016Bti ${O(i.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${E(i.values,"|")} pasirinkim\u0173`;case"too_big":{let S=(s=r[i.origin])!=null?s:i.origin,$=t(i.origin,MT(Number(i.maximum)),(c=i.inclusive)!=null?c:!1,"smaller");if($!=null&&$.verb)return`${Kl((d=S!=null?S:i.origin)!=null?d:"reik\u0161m\u0117")} ${$.verb} ${i.maximum.toString()} ${(m=$.unit)!=null?m:"element\u0173"}`;let M=i.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Kl((l=S!=null?S:i.origin)!=null?l:"reik\u0161m\u0117")} turi b\u016Bti ${M} ${i.maximum.toString()} ${$==null?void 0:$.unit}`}case"too_small":{let S=(f=r[i.origin])!=null?f:i.origin,$=t(i.origin,MT(Number(i.minimum)),(p=i.inclusive)!=null?p:!1,"bigger");if($!=null&&$.verb)return`${Kl((h=S!=null?S:i.origin)!=null?h:"reik\u0161m\u0117")} ${$.verb} ${i.minimum.toString()} ${(y=$.unit)!=null?y:"element\u0173"}`;let M=i.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Kl((x=S!=null?S:i.origin)!=null?x:"reik\u0161m\u0117")} turi b\u016Bti ${M} ${i.minimum.toString()} ${$==null?void 0:$.unit}`}case"invalid_format":{let S=i;return S.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${S.prefix}"`:S.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${S.suffix}"`:S.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${S.includes}"`:S.format==="regex"?`Eilut\u0117 privalo atitikti ${S.pattern}`:`Neteisingas ${(v=n[S.format])!=null?v:i.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${E(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let S=(g=r[i.origin])!=null?g:i.origin;return`${Kl((b=S!=null?S:i.origin)!=null?b:"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function UT(){return{localeError:Ij()}}var Nj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${p}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${l}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${p}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${O(i.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${(s=i.origin)!=null?s:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\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 ${(d=i.origin)!=null?d:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${l}${i.minimum.toString()} ${f.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.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 "${l.prefix}"`:l.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 "${l.suffix}"`:l.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 "${l.includes}"`:l.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 ${l.pattern}`:`Invalid ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${E(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function jT(){return{localeError:Nj()}}var Oj=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",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"},r={nan:"NaN",number:"nombor"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${p}`:`Input tidak sah: dijangka ${l}, diterima ${p}`}case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${O(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Terlalu besar: dijangka ${(s=i.origin)!=null?s:"nilai"} ${f.verb} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elemen"}`:`Terlalu besar: dijangka ${(d=i.origin)!=null?d:"nilai"} adalah ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Terlalu kecil: dijangka ${i.origin} ${f.verb} ${l}${i.minimum.toString()} ${f.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`String tidak sah: mesti bermula dengan "${l.prefix}"`:l.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${l.suffix}"`:l.format==="includes"?`String tidak sah: mesti mengandungi "${l.includes}"`:l.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${l.pattern}`:`${(m=n[l.format])!=null?m:i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${E(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function PT(){return{localeError:Oj()}}var Dj=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",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"},r={nan:"NaN",number:"getal"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${p}`:`Ongeldige invoer: verwacht ${l}, ontving ${p}`}case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${O(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin),p=i.origin==="date"?"laat":i.origin==="string"?"lang":"groot";return f?`Te ${p}: verwacht dat ${(s=i.origin)!=null?s:"waarde"} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elementen"} ${f.verb}`:`Te ${p}: verwacht dat ${(d=i.origin)!=null?d:"waarde"} ${l}${i.maximum.toString()} is`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin),p=i.origin==="date"?"vroeg":i.origin==="string"?"kort":"klein";return f?`Te ${p}: verwacht dat ${i.origin} ${l}${i.minimum.toString()} ${f.unit} ${f.verb}`:`Te ${p}: verwacht dat ${i.origin} ${l}${i.minimum.toString()} is`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Ongeldige tekst: moet met "${l.prefix}" beginnen`:l.format==="ends_with"?`Ongeldige tekst: moet op "${l.suffix}" eindigen`:l.format==="includes"?`Ongeldige tekst: moet "${l.includes}" bevatten`:l.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${l.pattern}`:`Ongeldig: ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${E(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function LT(){return{localeError:Dj()}}var Rj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-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"},r={nan:"NaN",number:"tall",array:"liste"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Ugyldig input: forventet instanceof ${i.expected}, fikk ${p}`:`Ugyldig input: forventet ${l}, fikk ${p}`}case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${O(i.values[0])}`:`Ugyldig valg: forventet en av ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`For stor(t): forventet ${(s=i.origin)!=null?s:"value"} til \xE5 ha ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elementer"}`:`For stor(t): forventet ${(d=i.origin)!=null?d:"value"} til \xE5 ha ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`For lite(n): forventet ${i.origin} til \xE5 ha ${l}${i.minimum.toString()} ${f.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${l.prefix}"`:l.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${l.suffix}"`:l.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${l.includes}"`:l.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${l.pattern}`:`Ugyldig ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${E(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function ZT(){return{localeError:Rj()}}var Mj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`F\xE2sit giren: umulan instanceof ${i.expected}, al\u0131nan ${p}`:`F\xE2sit giren: umulan ${l}, al\u0131nan ${p}`}case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${O(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Fazla b\xFCy\xFCk: ${(s=i.origin)!=null?s:"value"}, ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${(d=i.origin)!=null?d:"value"}, ${l}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${l}${i.minimum.toString()} ${f.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${l}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let l=i;return l.format==="starts_with"?`F\xE2sit metin: "${l.prefix}" ile ba\u015Flamal\u0131.`:l.format==="ends_with"?`F\xE2sit metin: "${l.suffix}" ile bitmeli.`:l.format==="includes"?`F\xE2sit metin: "${l.includes}" ihtiv\xE2 etmeli.`:l.format==="regex"?`F\xE2sit metin: ${l.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${E(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function qT(){return{localeError:Mj()}}var Uj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${p} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${l} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${p} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${O(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${E(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${(s=i.origin)!=null?s:"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${(d=i.origin)!=null?d:"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${l}${i.maximum.toString()} \u0648\u064A`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${l}${i.minimum.toString()} ${f.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${l}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${l.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:l.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${l.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:l.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${l.includes}" \u0648\u0644\u0631\u064A`:l.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${l.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${(m=n[l.format])!=null?m:i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${E(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function VT(){return{localeError:Uj()}}var jj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"liczba",array:"tablica"};return i=>{var o,a,s,c,d,m,l,f,p;switch(i.code){case"invalid_type":{let h=(o=r[i.expected])!=null?o:i.expected,y=D(i.input),x=(a=r[y])!=null?a:y;return/^[A-Z]/.test(i.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${i.expected}, otrzymano ${x}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${h}, otrzymano ${x}`}case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${O(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${E(i.values,"|")}`;case"too_big":{let h=i.inclusive?"<=":"<",y=t(i.origin);return y?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${(s=i.origin)!=null?s:"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${h}${i.maximum.toString()} ${(c=y.unit)!=null?c:"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${(d=i.origin)!=null?d:"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${h}${i.maximum.toString()}`}case"too_small":{let h=i.inclusive?">=":">",y=t(i.origin);return y?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${(m=i.origin)!=null?m:"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${h}${i.minimum.toString()} ${(l=y.unit)!=null?l:"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${(f=i.origin)!=null?f:"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${h}${i.minimum.toString()}`}case"invalid_format":{let h=i;return h.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${h.prefix}"`:h.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${h.suffix}"`:h.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${h.includes}"`:h.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${h.pattern}`:`Nieprawid\u0142ow(y/a/e) ${(p=n[h.format])!=null?p:i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${E(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function HT(){return{localeError:jj()}}var Pj=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"n\xFAmero",null:"nulo"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Tipo inv\xE1lido: esperado instanceof ${i.expected}, recebido ${p}`:`Tipo inv\xE1lido: esperado ${l}, recebido ${p}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${O(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Muito grande: esperado que ${(s=i.origin)!=null?s:"valor"} tivesse ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elementos"}`:`Muito grande: esperado que ${(d=i.origin)!=null?d:"valor"} fosse ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Muito pequeno: esperado que ${i.origin} tivesse ${l}${i.minimum.toString()} ${f.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${l.prefix}"`:l.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${l.suffix}"`:l.format==="includes"?`Texto inv\xE1lido: deve incluir "${l.includes}"`:l.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${l.pattern}`:`${(m=n[l.format])!=null?m:i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${E(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}};function BT(){return{localeError:Pj()}}function GT(e,t,n,r){let i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:o===1?t:o>=2&&o<=4?n:r}var Lj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return i=>{var o,a,s,c,d;switch(i.code){case"invalid_type":{let m=(o=r[i.expected])!=null?o:i.expected,l=D(i.input),f=(a=r[l])!=null?a:l;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${f}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${m}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${f}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${O(i.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${E(i.values,"|")}`;case"too_big":{let m=i.inclusive?"<=":"<",l=t(i.origin);if(l){let f=Number(i.maximum),p=GT(f,l.unit.one,l.unit.few,l.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 ${(s=i.origin)!=null?s:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${m}${i.maximum.toString()} ${p}`}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 ${(c=i.origin)!=null?c:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${m}${i.maximum.toString()}`}case"too_small":{let m=i.inclusive?">=":">",l=t(i.origin);if(l){let f=Number(i.minimum),p=GT(f,l.unit.one,l.unit.few,l.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${m}${i.minimum.toString()} ${p}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${m}${i.minimum.toString()}`}case"invalid_format":{let m=i;return m.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 "${m.prefix}"`:m.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 "${m.suffix}"`:m.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 "${m.includes}"`:m.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 ${m.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${(d=n[m.format])!=null?d:i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${E(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function FT(){return{localeError:Lj()}}var Zj=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${i.expected}, prejeto ${p}`:`Neveljaven vnos: pri\u010Dakovano ${l}, prejeto ${p}`}case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${O(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Preveliko: pri\u010Dakovano, da bo ${(s=i.origin)!=null?s:"vrednost"} imelo ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${(d=i.origin)!=null?d:"vrednost"} ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${l}${i.minimum.toString()} ${f.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${l.prefix}"`:l.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${l.suffix}"`:l.format==="includes"?`Neveljaven niz: mora vsebovati "${l.includes}"`:l.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${l.pattern}`:`Neveljaven ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${E(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function XT(){return{localeError:Zj()}}var qj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"antal",array:"lista"};return i=>{var o,a,s,c,d,m,l,f,p,h;switch(i.code){case"invalid_type":{let y=(o=r[i.expected])!=null?o:i.expected,x=D(i.input),v=(a=r[x])!=null?a:x;return/^[A-Z]/.test(i.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${i.expected}, fick ${v}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${y}, fick ${v}`}case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${O(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${E(i.values,"|")}`;case"too_big":{let y=i.inclusive?"<=":"<",x=t(i.origin);return x?`F\xF6r stor(t): f\xF6rv\xE4ntade ${(s=i.origin)!=null?s:"v\xE4rdet"} att ha ${y}${i.maximum.toString()} ${(c=x.unit)!=null?c:"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${(d=i.origin)!=null?d:"v\xE4rdet"} att ha ${y}${i.maximum.toString()}`}case"too_small":{let y=i.inclusive?">=":">",x=t(i.origin);return x?`F\xF6r lite(t): f\xF6rv\xE4ntade ${(m=i.origin)!=null?m:"v\xE4rdet"} att ha ${y}${i.minimum.toString()} ${x.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${(l=i.origin)!=null?l:"v\xE4rdet"} att ha ${y}${i.minimum.toString()}`}case"invalid_format":{let y=i;return y.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${y.prefix}"`:y.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${y.suffix}"`:y.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${y.includes}"`:y.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${y.pattern}"`:`Ogiltig(t) ${(f=n[y.format])!=null?f:i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${E(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${(p=i.origin)!=null?p:"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${(h=i.origin)!=null?h:"v\xE4rdet"}`;default:return"Ogiltig input"}}};function JT(){return{localeError:qj()}}var Vj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\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 instanceof ${i.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${p}`:`\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}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${p}`}case"invalid_value":return i.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${O(i.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${E(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\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 ${(s=i.origin)!=null?s:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\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 ${(d=i.origin)!=null?d:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${l}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${l}${i.minimum.toString()} ${f.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${l}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${l.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:l.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${l.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:l.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${l.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:l.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${l.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 ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${E(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function YT(){return{localeError:Vj()}}var Hj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\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 instanceof ${i.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${p}`:`\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 ${l} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${p}`}case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${O(i.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",f=t(i.origin);return f?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${(s=i.origin)!=null?s:"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${l} ${i.maximum.toString()} ${(c=f.unit)!=null?c:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${(d=i.origin)!=null?d:"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${l} ${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",f=t(i.origin);return f?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${l} ${i.minimum.toString()} ${f.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${l} ${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.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 "${l.prefix}"`:l.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 "${l.suffix}"`:l.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 "${l.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:l.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 ${l.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${i.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${E(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function KT(){return{localeError:Hj()}}var Bj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\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"},r={nan:"NaN"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${i.expected}, al\u0131nan ${p}`:`Ge\xE7ersiz de\u011Fer: beklenen ${l}, al\u0131nan ${p}`}case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${O(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\xC7ok b\xFCy\xFCk: beklenen ${(s=i.origin)!=null?s:"de\u011Fer"} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${(d=i.origin)!=null?d:"de\u011Fer"} ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${l}${i.minimum.toString()} ${f.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Ge\xE7ersiz metin: "${l.prefix}" ile ba\u015Flamal\u0131`:l.format==="ends_with"?`Ge\xE7ersiz metin: "${l.suffix}" ile bitmeli`:l.format==="includes"?`Ge\xE7ersiz metin: "${l.includes}" i\xE7ermeli`:l.format==="regex"?`Ge\xE7ersiz metin: ${l.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${E(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function QT(){return{localeError:Bj()}}var Gj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\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 instanceof ${i.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${p}`:`\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}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${p}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${O(i.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\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 ${(s=i.origin)!=null?s:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${f.verb} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\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 ${(d=i.origin)!=null?d:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} ${f.verb} ${l}${i.minimum.toString()} ${f.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} \u0431\u0443\u0434\u0435 ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.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 "${l.prefix}"`:l.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 "${l.suffix}"`:l.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 "${l.includes}"`:l.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 ${l.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${E(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${i.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function rf(){return{localeError:Gj()}}function WT(){return rf()}var Fj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${p} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${l} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${p} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${O(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${E(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${(s=i.origin)!=null?s:"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${(d=i.origin)!=null?d:"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${l}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${l}${i.minimum.toString()} ${f.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${l}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${l.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:l.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${l.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:l.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${l.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:l.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${l.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${i.keys.length>1?"\u0632":""}: ${E(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function e1(){return{localeError:Fj()}}var Xj=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},r={nan:"NaN",number:"raqam",array:"massiv"};return i=>{var o,a,s,c,d;switch(i.code){case"invalid_type":{let m=(o=r[i.expected])!=null?o:i.expected,l=D(i.input),f=(a=r[l])!=null?a:l;return/^[A-Z]/.test(i.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${f}`:`Noto\u2018g\u2018ri kirish: kutilgan ${m}, qabul qilingan ${f}`}case"invalid_value":return i.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${O(i.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${E(i.values,"|")}`;case"too_big":{let m=i.inclusive?"<=":"<",l=t(i.origin);return l?`Juda katta: kutilgan ${(s=i.origin)!=null?s:"qiymat"} ${m}${i.maximum.toString()} ${l.unit} ${l.verb}`:`Juda katta: kutilgan ${(c=i.origin)!=null?c:"qiymat"} ${m}${i.maximum.toString()}`}case"too_small":{let m=i.inclusive?">=":">",l=t(i.origin);return l?`Juda kichik: kutilgan ${i.origin} ${m}${i.minimum.toString()} ${l.unit} ${l.verb}`:`Juda kichik: kutilgan ${i.origin} ${m}${i.minimum.toString()}`}case"invalid_format":{let m=i;return m.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${m.prefix}" bilan boshlanishi kerak`:m.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${m.suffix}" bilan tugashi kerak`:m.format==="includes"?`Noto\u2018g\u2018ri satr: "${m.includes}" ni o\u2018z ichiga olishi kerak`:m.format==="regex"?`Noto\u2018g\u2018ri satr: ${m.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${(d=n[m.format])!=null?d:i.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${i.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${i.keys.length>1?"lar":""}: ${E(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${i.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function t1(){return{localeError:Xj()}}var Jj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${p}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${l}, nh\u1EADn \u0111\u01B0\u1EE3c ${p}`}case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${O(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${(s=i.origin)!=null?s:"gi\xE1 tr\u1ECB"} ${f.verb} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${(d=i.origin)!=null?d:"gi\xE1 tr\u1ECB"} ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${f.verb} ${l}${i.minimum.toString()} ${f.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${l.prefix}"`:l.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${l.suffix}"`:l.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${l.includes}"`:l.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${l.pattern}`:`${(m=n[l.format])!=null?m:i.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${E(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function n1(){return{localeError:Jj()}}var Yj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${p}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${l}\uFF0C\u5B9E\u9645\u63A5\u6536 ${p}`}case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${O(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${(s=i.origin)!=null?s:"\u503C"} ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${(d=i.origin)!=null?d:"\u503C"} ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${l}${i.minimum.toString()} ${f.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${l.prefix}" \u5F00\u5934`:l.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${l.suffix}" \u7ED3\u5C3E`:l.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${l.includes}"`:l.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${l.pattern}`:`\u65E0\u6548${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${E(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function i1(){return{localeError:Yj()}}var Kj=()=>{let 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 t(i){var o;return(o=e[i])!=null?o:null}let n={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"},r={nan:"NaN"};return i=>{var o,a,s,c,d,m;switch(i.code){case"invalid_type":{let l=(o=r[i.expected])!=null?o:i.expected,f=D(i.input),p=(a=r[f])!=null?a:f;return/^[A-Z]/.test(i.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${i.expected}\uFF0C\u4F46\u6536\u5230 ${p}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${l}\uFF0C\u4F46\u6536\u5230 ${p}`}case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${O(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${E(i.values,"|")}`;case"too_big":{let l=i.inclusive?"<=":"<",f=t(i.origin);return f?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${(s=i.origin)!=null?s:"\u503C"} \u61C9\u70BA ${l}${i.maximum.toString()} ${(c=f.unit)!=null?c:"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${(d=i.origin)!=null?d:"\u503C"} \u61C9\u70BA ${l}${i.maximum.toString()}`}case"too_small":{let l=i.inclusive?">=":">",f=t(i.origin);return f?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${l}${i.minimum.toString()} ${f.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${l}${i.minimum.toString()}`}case"invalid_format":{let l=i;return l.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${l.prefix}" \u958B\u982D`:l.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${l.suffix}" \u7D50\u5C3E`:l.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${l.includes}"`:l.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${l.pattern}`:`\u7121\u6548\u7684 ${(m=n[l.format])!=null?m:i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${E(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function r1(){return{localeError:Kj()}}var Qj=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(i){var o;return(o=e[i])!=null?o:null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},r={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return i=>{var o,a,s,c;switch(i.code){case"invalid_type":{let d=(o=r[i.expected])!=null?o:i.expected,m=D(i.input),l=(a=r[m])!=null?a:m;return/^[A-Z]/.test(i.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${i.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${d}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return i.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${O(i.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${E(i.values,"|")}`;case"too_big":{let d=i.inclusive?"<=":"<",m=t(i.origin);return m?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${(s=i.origin)!=null?s:"iye"} ${m.verb} ${d}${i.maximum} ${m.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${d}${i.maximum}`}case"too_small":{let d=i.inclusive?">=":">",m=t(i.origin);return m?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin} ${m.verb} ${d}${i.minimum} ${m.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${d}${i.minimum}`}case"invalid_format":{let d=i;return d.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${d.prefix}"`:d.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${d.suffix}"`:d.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${d.includes}"`:d.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${d.pattern}`:`A\u1E63\xEC\u1E63e: ${(c=n[d.format])!=null?c:i.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${i.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${E(i.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function o1(){return{localeError:Qj()}}var a1,Ob=Symbol("ZodOutput"),Db=Symbol("ZodInput"),of=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){var r;let n=t._zod.parent;if(n){let i={...(r=this.get(n))!=null?r:{}};delete i.id;let o={...i,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function af(){return new of}var s1;(s1=(a1=globalThis).__zod_globalRegistry)!=null||(a1.__zod_globalRegistry=af());var _t=globalThis.__zod_globalRegistry;function Rb(e,t){return new e({type:"string",...j(t)})}function Mb(e,t){return new e({type:"string",coerce:!0,...j(t)})}function sf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function Ql(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function lf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function cf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function uf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function df(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function Wl(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function ff(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function mf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function pf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function gf(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function hf(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function vf(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function yf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function bf(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function Sf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function Ub(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...j(t)})}function xf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function _f(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function $f(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function wf(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function Ef(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function Af(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}var jb={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Pb(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function Lb(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function Zb(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function qb(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function Vb(e,t){return new e({type:"number",checks:[],...j(t)})}function Hb(e,t){return new e({type:"number",coerce:!0,checks:[],...j(t)})}function Bb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...j(t)})}function Gb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...j(t)})}function Fb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...j(t)})}function Xb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...j(t)})}function Jb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...j(t)})}function Yb(e,t){return new e({type:"boolean",...j(t)})}function Kb(e,t){return new e({type:"boolean",coerce:!0,...j(t)})}function Qb(e,t){return new e({type:"bigint",...j(t)})}function Wb(e,t){return new e({type:"bigint",coerce:!0,...j(t)})}function eS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...j(t)})}function tS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...j(t)})}function nS(e,t){return new e({type:"symbol",...j(t)})}function iS(e,t){return new e({type:"undefined",...j(t)})}function rS(e,t){return new e({type:"null",...j(t)})}function oS(e){return new e({type:"any"})}function aS(e){return new e({type:"unknown"})}function sS(e,t){return new e({type:"never",...j(t)})}function lS(e,t){return new e({type:"void",...j(t)})}function cS(e,t){return new e({type:"date",...j(t)})}function uS(e,t){return new e({type:"date",coerce:!0,...j(t)})}function dS(e,t){return new e({type:"nan",...j(t)})}function Jn(e,t){return new Hd({check:"less_than",...j(t),value:e,inclusive:!1})}function mn(e,t){return new Hd({check:"less_than",...j(t),value:e,inclusive:!0})}function Yn(e,t){return new Bd({check:"greater_than",...j(t),value:e,inclusive:!1})}function Pt(e,t){return new Bd({check:"greater_than",...j(t),value:e,inclusive:!0})}function zf(e){return Yn(0,e)}function Cf(e){return Jn(0,e)}function kf(e){return mn(0,e)}function Tf(e){return Pt(0,e)}function $r(e,t){return new ry({check:"multiple_of",...j(t),value:e})}function wr(e,t){return new sy({check:"max_size",...j(t),maximum:e})}function Kn(e,t){return new ly({check:"min_size",...j(t),minimum:e})}function po(e,t){return new cy({check:"size_equals",...j(t),size:e})}function go(e,t){return new uy({check:"max_length",...j(t),maximum:e})}function Ni(e,t){return new dy({check:"min_length",...j(t),minimum:e})}function ho(e,t){return new fy({check:"length_equals",...j(t),length:e})}function ja(e,t){return new my({check:"string_format",format:"regex",...j(t),pattern:e})}function Pa(e){return new py({check:"string_format",format:"lowercase",...j(e)})}function La(e){return new gy({check:"string_format",format:"uppercase",...j(e)})}function Za(e,t){return new hy({check:"string_format",format:"includes",...j(t),includes:e})}function qa(e,t){return new vy({check:"string_format",format:"starts_with",...j(t),prefix:e})}function Va(e,t){return new yy({check:"string_format",format:"ends_with",...j(t),suffix:e})}function If(e,t,n){return new by({check:"property",property:e,schema:t,...j(n)})}function Ha(e,t){return new Sy({check:"mime_type",mime:e,...j(t)})}function Rn(e){return new xy({check:"overwrite",tx:e})}function Ba(e){return Rn(t=>t.normalize(e))}function Ga(){return Rn(e=>e.trim())}function Fa(){return Rn(e=>e.toLowerCase())}function Xa(){return Rn(e=>e.toUpperCase())}function Ja(){return Rn(e=>bv(e))}function fS(e,t,n){return new e({type:"array",element:t,...j(n)})}function eP(e,t,n){return new e({type:"union",options:t,...j(n)})}function tP(e,t,n){return new e({type:"union",options:t,inclusive:!1,...j(n)})}function nP(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...j(r)})}function iP(e,t,n){return new e({type:"intersection",left:t,right:n})}function rP(e,t,n,r){let i=n instanceof ie,o=i?r:n,a=i?n:null;return new e({type:"tuple",items:t,rest:a,...j(o)})}function oP(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...j(r)})}function aP(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...j(r)})}function sP(e,t,n){return new e({type:"set",valueType:t,...j(n)})}function lP(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new e({type:"enum",entries:r,...j(n)})}function cP(e,t,n){return new e({type:"enum",entries:t,...j(n)})}function uP(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...j(n)})}function mS(e,t){return new e({type:"file",...j(t)})}function dP(e,t){return new e({type:"transform",transform:t})}function fP(e,t){return new e({type:"optional",innerType:t})}function mP(e,t){return new e({type:"nullable",innerType:t})}function pP(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():xv(n)}})}function gP(e,t,n){return new e({type:"nonoptional",innerType:t,...j(n)})}function hP(e,t){return new e({type:"success",innerType:t})}function vP(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function yP(e,t,n){return new e({type:"pipe",in:t,out:n})}function bP(e,t){return new e({type:"readonly",innerType:t})}function SP(e,t,n){return new e({type:"template_literal",parts:t,...j(n)})}function xP(e,t){return new e({type:"lazy",getter:t})}function _P(e,t){return new e({type:"promise",innerType:t})}function pS(e,t,n){var o;let r=j(n);return(o=r.abort)!=null||(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function gS(e,t,n){return new e({type:"custom",check:"custom",fn:t,...j(n)})}function hS(e){let t=l1(n=>(n.addIssue=r=>{var i,o,a,s;if(typeof r=="string")n.issues.push(Ia(r,n.value,t._zod.def));else{let c=r;c.fatal&&(c.continue=!1),(i=c.code)!=null||(c.code="custom"),(o=c.input)!=null||(c.input=n.value),(a=c.inst)!=null||(c.inst=t),(s=c.continue)!=null||(c.continue=!t._zod.def.abort),n.issues.push(Ia(c))}},e(n.value,n)));return t}function l1(e,t){let n=new Te({check:"custom",...j(t)});return n._zod.check=e,n}function vS(e){let t=new Te({check:"describe"});return t._zod.onattach=[n=>{var i;let r=(i=_t.get(n))!=null?i:{};_t.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function yS(e){let t=new Te({check:"meta"});return t._zod.onattach=[n=>{var i;let r=(i=_t.get(n))!=null?i:{};_t.add(n,{...r,...e})}],t._zod.check=()=>{},t}function bS(e,t){var p,h,y,x,v;let n=j(t),r=(p=n.truthy)!=null?p:["true","1","yes","on","y","enabled"],i=(h=n.falsy)!=null?h:["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(g=>typeof g=="string"?g.toLowerCase():g),i=i.map(g=>typeof g=="string"?g.toLowerCase():g));let o=new Set(r),a=new Set(i),s=(y=e.Codec)!=null?y:Yl,c=(x=e.Boolean)!=null?x:Xl,d=(v=e.String)!=null?v:fo,m=new d({type:"string",error:n.error}),l=new c({type:"boolean",error:n.error}),f=new s({type:"pipe",in:m,out:l,transform:(g,b)=>{let S=g;return n.case!=="sensitive"&&(S=S.toLowerCase()),o.has(S)?!0:a.has(S)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:b.value,inst:f,continue:!1}),{})},reverseTransform:(g,b)=>g===!0?r[0]||"true":i[0]||"false",error:n.error});return f}function Ya(e,t,n,r={}){let i=j(r),o={...j(r),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...i};return n instanceof RegExp&&(o.pattern=n),new e(o)}function Er(e){var n,r,i,o,a,s,c,d,m;let t=(n=e==null?void 0:e.target)!=null?n:"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:(r=e.processors)!=null?r:{},metadataRegistry:(i=e==null?void 0:e.metadata)!=null?i:_t,target:t,unrepresentable:(o=e==null?void 0:e.unrepresentable)!=null?o:"throw",override:(a=e==null?void 0:e.override)!=null?a:()=>{},io:(s=e==null?void 0:e.io)!=null?s:"output",counter:0,seen:new Map,cycles:(c=e==null?void 0:e.cycles)!=null?c:"ref",reused:(d=e==null?void 0:e.reused)!=null?d:"inline",external:(m=e==null?void 0:e.external)!=null?m:void 0}}function Se(e,t,n={path:[],schemaPath:[]}){var m,l,f;var r;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let s=(l=(m=e._zod).toJSONSchema)==null?void 0:l.call(m);if(s)a.schema=s;else{let p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{let y=a.schema,x=t.processors[i.type];if(!x)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);x(e,t,y,p)}let h=e._zod.parent;h&&(a.ref||(a.ref=h),Se(h,t,p),t.seen.get(h).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Lt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((f=(r=a.schema).default)!=null||(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Ar(e,t){var a,s,c,d;let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=new Map;for(let m of e.seen.entries()){let l=(a=e.metadataRegistry.get(m[0]))==null?void 0:a.id;if(l){let f=r.get(l);if(f&&f!==m[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(l,m[0])}}let i=m=>{var y,x,v,g,b;let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let S=(y=e.external.registry.get(m[0]))==null?void 0:y.id,$=(x=e.external.uri)!=null?x:z=>z;if(S)return{ref:$(S)};let M=(g=(v=m[1].defId)!=null?v:m[1].schema.id)!=null?g:`schema${e.counter++}`;return m[1].defId=M,{defId:M,ref:`${$("__shared")}#/${l}/${M}`}}if(m[1]===n)return{ref:"#"};let p=`#/${l}/`,h=(b=m[1].schema.id)!=null?b:`__schema${e.counter++}`;return{defId:h,ref:p+h}},o=m=>{if(m[1].schema.$ref)return;let l=m[1],{ref:f,defId:p}=i(m);l.def={...l.schema},p&&(l.defId=p);let h=l.schema;for(let y in h)delete h[y];h.$ref=f};if(e.cycles==="throw")for(let m of e.seen.entries()){let l=m[1];if(l.cycle)throw new Error(`Cycle detected: #/${(s=l.cycle)==null?void 0:s.join("/")}/<root>
|
|
|
|
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let m of e.seen.entries()){let l=m[1];if(t===m[0]){o(m);continue}if(e.external){let p=(c=e.external.registry.get(m[0]))==null?void 0:c.id;if(t!==m[0]&&p){o(m);continue}}if((d=e.metadataRegistry.get(m[0]))==null?void 0:d.id){o(m);continue}if(l.cycle){o(m);continue}if(l.count>1&&e.reused==="ref"){o(m);continue}}}function zr(e,t){var a,s,c,d,m;let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=l=>{var v,g,b;let f=e.seen.get(l);if(f.ref===null)return;let p=(v=f.def)!=null?v:f.schema,h={...p},y=f.ref;if(f.ref=null,y){r(y);let S=e.seen.get(y),$=S.schema;if($.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=(g=p.allOf)!=null?g:[],p.allOf.push($)):Object.assign(p,$),Object.assign(p,h),l._zod.parent===y)for(let z in p)z==="$ref"||z==="allOf"||z in h||delete p[z];if($.$ref)for(let z in p)z==="$ref"||z==="allOf"||z in S.def&&JSON.stringify(p[z])===JSON.stringify(S.def[z])&&delete p[z]}let x=l._zod.parent;if(x&&x!==y){r(x);let S=e.seen.get(x);if(S!=null&&S.schema.$ref&&(p.$ref=S.schema.$ref,S.def))for(let $ in p)$==="$ref"||$==="allOf"||$ in S.def&&JSON.stringify(p[$])===JSON.stringify(S.def[$])&&delete p[$]}e.override({zodSchema:l,jsonSchema:p,path:(b=f.path)!=null?b:[]})};for(let l of[...e.seen.entries()].reverse())r(l[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(a=e.external)!=null&&a.uri){let l=(s=e.external.registry.get(t))==null?void 0:s.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,(c=n.def)!=null?c:n.schema);let o=(m=(d=e.external)==null?void 0:d.defs)!=null?m:{};for(let l of e.seen.entries()){let f=l[1];f.def&&f.defId&&(o[f.defId]=f.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?i.$defs=o:i.definitions=o);try{let l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ka(t,"input",e.processors),output:Ka(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch(l){throw new Error("Error converting schema to JSON.")}}function Lt(e,t){let n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Lt(r.element,n);if(r.type==="set")return Lt(r.valueType,n);if(r.type==="lazy")return Lt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Lt(r.innerType,n);if(r.type==="intersection")return Lt(r.left,n)||Lt(r.right,n);if(r.type==="record"||r.type==="map")return Lt(r.keyType,n)||Lt(r.valueType,n);if(r.type==="pipe")return Lt(r.in,n)||Lt(r.out,n);if(r.type==="object"){for(let i in r.shape)if(Lt(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(let i of r.options)if(Lt(i,n))return!0;return!1}if(r.type==="tuple"){for(let i of r.items)if(Lt(i,n))return!0;return!!(r.rest&&Lt(r.rest,n))}return!1}var SS=(e,t={})=>n=>{let r=Er({...n,processors:t});return Se(e,r),Ar(r,e),zr(r,e)},Ka=(e,t,n={})=>r=>{let{libraryOptions:i,target:o}=r!=null?r:{},a=Er({...i!=null?i:{},target:o,io:t,processors:n});return Se(e,a),Ar(a,e),zr(a,e)};var $P={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},xS=(e,t,n,r)=>{var m;let i=n;i.type="string";let{minimum:o,maximum:a,format:s,patterns:c,contentEncoding:d}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof a=="number"&&(i.maxLength=a),s&&(i.format=(m=$P[s])!=null?m:s,i.format===""&&delete i.format,s==="time"&&delete i.format),d&&(i.contentEncoding=d),c&&c.size>0){let l=[...c];l.length===1?i.pattern=l[0].source:l.length>1&&(i.allOf=[...l.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},_S=(e,t,n,r)=>{let i=n,{minimum:o,maximum:a,format:s,multipleOf:c,exclusiveMaximum:d,exclusiveMinimum:m}=e._zod.bag;typeof s=="string"&&s.includes("int")?i.type="integer":i.type="number",typeof m=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=m,i.exclusiveMinimum=!0):i.exclusiveMinimum=m),typeof o=="number"&&(i.minimum=o,typeof m=="number"&&t.target!=="draft-04"&&(m>=o?delete i.minimum:delete i.exclusiveMinimum)),typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=d,i.exclusiveMaximum=!0):i.exclusiveMaximum=d),typeof a=="number"&&(i.maximum=a,typeof d=="number"&&t.target!=="draft-04"&&(d<=a?delete i.maximum:delete i.exclusiveMaximum)),typeof c=="number"&&(i.multipleOf=c)},$S=(e,t,n,r)=>{n.type="boolean"},wS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},ES=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},AS=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},zS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},CS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},kS=(e,t,n,r)=>{n.not={}},TS=(e,t,n,r)=>{},IS=(e,t,n,r)=>{},NS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},OS=(e,t,n,r)=>{let i=e._zod.def,o=Ul(i.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},DS=(e,t,n,r)=>{let i=e._zod.def,o=[];for(let a of i.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},RS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},MS=(e,t,n,r)=>{let i=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=o.source},US=(e,t,n,r)=>{let i=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),c?c.length===1?(o.contentMediaType=c[0],Object.assign(i,o)):(Object.assign(i,o),i.anyOf=c.map(d=>({contentMediaType:d}))):Object.assign(i,o)},jS=(e,t,n,r)=>{n.type="boolean"},PS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},LS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ZS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},qS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},VS=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},HS=(e,t,n,r)=>{let i=n,o=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(i.minItems=a),typeof s=="number"&&(i.maxItems=s),i.type="array",i.items=Se(o.element,t,{...r,path:[...r.path,"items"]})},BS=(e,t,n,r)=>{var d;let i=n,o=e._zod.def;i.type="object",i.properties={};let a=o.shape;for(let m in a)i.properties[m]=Se(a[m],t,{...r,path:[...r.path,"properties",m]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(m=>{let l=o.shape[m]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(i.required=Array.from(c)),((d=o.catchall)==null?void 0:d._zod.def.type)==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=Se(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},Of=(e,t,n,r)=>{let i=e._zod.def,o=i.inclusive===!1,a=i.options.map((s,c)=>Se(s,t,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a},GS=(e,t,n,r)=>{let i=e._zod.def,o=Se(i.left,t,{...r,path:[...r.path,"allOf",0]}),a=Se(i.right,t,{...r,path:[...r.path,"allOf",1]}),s=d=>"allOf"in d&&Object.keys(d).length===1,c=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=c},FS=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((f,p)=>Se(f,t,{...r,path:[...r.path,a,p]})),d=o.rest?Se(o.rest,t,{...r,path:[...r.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=c,d&&(i.items=d)):t.target==="openapi-3.0"?(i.items={anyOf:c},d&&i.items.anyOf.push(d),i.minItems=c.length,d||(i.maxItems=c.length)):(i.items=c,d&&(i.additionalItems=d));let{minimum:m,maximum:l}=e._zod.bag;typeof m=="number"&&(i.minItems=m),typeof l=="number"&&(i.maxItems=l)},XS=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="object";let a=o.keyType,s=a._zod.bag,c=s==null?void 0:s.patterns;if(o.mode==="loose"&&c&&c.size>0){let m=Se(o.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(let l of c)i.patternProperties[l.source]=m}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=Se(o.keyType,t,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=Se(o.valueType,t,{...r,path:[...r.path,"additionalProperties"]});let d=a._zod.values;if(d){let m=[...d].filter(l=>typeof l=="string"||typeof l=="number");m.length>0&&(i.required=m)}},JS=(e,t,n,r)=>{let i=e._zod.def,o=Se(i.innerType,t,r),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},YS=(e,t,n,r)=>{let i=e._zod.def;Se(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},KS=(e,t,n,r)=>{let i=e._zod.def;Se(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},QS=(e,t,n,r)=>{let i=e._zod.def;Se(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},WS=(e,t,n,r)=>{let i=e._zod.def;Se(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType;let a;try{a=i.catchValue(void 0)}catch(s){throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},ex=(e,t,n,r)=>{let i=e._zod.def,o=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Se(o,t,r);let a=t.seen.get(e);a.ref=o},tx=(e,t,n,r)=>{let i=e._zod.def;Se(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,n.readOnly=!0},nx=(e,t,n,r)=>{let i=e._zod.def;Se(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},Df=(e,t,n,r)=>{let i=e._zod.def;Se(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},ix=(e,t,n,r)=>{let i=e._zod.innerType;Se(i,t,r);let o=t.seen.get(e);o.ref=i},Nf={string:xS,number:_S,boolean:$S,bigint:wS,symbol:ES,null:AS,undefined:zS,void:CS,never:kS,any:TS,unknown:IS,date:NS,enum:OS,literal:DS,nan:RS,template_literal:MS,file:US,success:jS,custom:PS,function:LS,transform:ZS,map:qS,set:VS,array:HS,object:BS,union:Of,intersection:GS,tuple:FS,record:XS,nullable:JS,nonoptional:YS,default:KS,prefault:QS,catch:WS,pipe:ex,readonly:tx,promise:nx,optional:Df,lazy:ix};function Rf(e,t){if("_idmap"in e){let r=e,i=Er({...t,processors:Nf}),o={};for(let c of r._idmap.entries()){let[d,m]=c;Se(m,i)}let a={},s={registry:r,uri:t==null?void 0:t.uri,defs:o};i.external=s;for(let c of r._idmap.entries()){let[d,m]=c;Ar(i,m),a[d]=zr(i,m)}if(Object.keys(o).length>0){let c=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let n=Er({...t,processors:Nf});return Se(e,n),Ar(n,e),zr(n,e)}var Mf=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){var r;let n=(r=t==null?void 0:t.target)!=null?r:"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Er({processors:Nf,target:n,...(t==null?void 0:t.metadata)&&{metadata:t.metadata},...(t==null?void 0:t.unrepresentable)&&{unrepresentable:t.unrepresentable},...(t==null?void 0:t.override)&&{override:t.override},...(t==null?void 0:t.io)&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Se(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Ar(this.ctx,t);let r=zr(this.ctx,t),{"~standard":i,...o}=r;return o}};var rx={};var ec={};jn(ec,{ZodAny:()=>Cx,ZodArray:()=>Nx,ZodBase64:()=>im,ZodBase64URL:()=>rm,ZodBigInt:()=>is,ZodBigIntFormat:()=>sm,ZodBoolean:()=>ns,ZodCIDRv4:()=>tm,ZodCIDRv6:()=>nm,ZodCUID:()=>Xf,ZodCUID2:()=>Jf,ZodCatch:()=>e_,ZodCodec:()=>gm,ZodCustom:()=>dc,ZodCustomStringFormat:()=>es,ZodDate:()=>ac,ZodDefault:()=>Xx,ZodDiscriminatedUnion:()=>Dx,ZodE164:()=>om,ZodEmail:()=>Bf,ZodEmoji:()=>Gf,ZodEnum:()=>Qa,ZodExactOptional:()=>Bx,ZodFile:()=>Vx,ZodFunction:()=>c_,ZodGUID:()=>tc,ZodIPv4:()=>Wf,ZodIPv6:()=>em,ZodIntersection:()=>Rx,ZodJWT:()=>am,ZodKSUID:()=>Qf,ZodLazy:()=>a_,ZodLiteral:()=>qx,ZodMAC:()=>xx,ZodMap:()=>Lx,ZodNaN:()=>n_,ZodNanoID:()=>Ff,ZodNever:()=>Tx,ZodNonOptional:()=>mm,ZodNull:()=>Ax,ZodNullable:()=>Fx,ZodNumber:()=>ts,ZodNumberFormat:()=>bo,ZodObject:()=>lc,ZodOptional:()=>fm,ZodPipe:()=>pm,ZodPrefault:()=>Yx,ZodPromise:()=>l_,ZodReadonly:()=>i_,ZodRecord:()=>uc,ZodSet:()=>Zx,ZodString:()=>Wa,ZodStringFormat:()=>Ce,ZodSuccess:()=>Wx,ZodSymbol:()=>wx,ZodTemplateLiteral:()=>o_,ZodTransform:()=>Hx,ZodTuple:()=>Ux,ZodType:()=>ce,ZodULID:()=>Yf,ZodURL:()=>oc,ZodUUID:()=>Wn,ZodUndefined:()=>Ex,ZodUnion:()=>cc,ZodUnknown:()=>kx,ZodVoid:()=>Ix,ZodXID:()=>Kf,ZodXor:()=>Ox,_ZodString:()=>Hf,_default:()=>Jx,_function:()=>gI,any:()=>F1,array:()=>sc,base64:()=>T1,base64url:()=>I1,bigint:()=>q1,boolean:()=>$x,catch:()=>t_,check:()=>hI,cidrv4:()=>C1,cidrv6:()=>k1,codec:()=>fI,cuid:()=>S1,cuid2:()=>x1,custom:()=>vI,date:()=>J1,describe:()=>yI,discriminatedUnion:()=>tI,e164:()=>N1,email:()=>u1,emoji:()=>y1,enum:()=>um,exactOptional:()=>Gx,file:()=>lI,float32:()=>j1,float64:()=>P1,function:()=>gI,guid:()=>d1,hash:()=>U1,hex:()=>M1,hostname:()=>R1,httpUrl:()=>v1,instanceof:()=>SI,int:()=>Vf,int32:()=>L1,int64:()=>V1,intersection:()=>Mx,ipv4:()=>E1,ipv6:()=>z1,json:()=>_I,jwt:()=>O1,keyof:()=>Y1,ksuid:()=>w1,lazy:()=>s_,literal:()=>sI,looseObject:()=>W1,looseRecord:()=>iI,mac:()=>A1,map:()=>rI,meta:()=>bI,nan:()=>dI,nanoid:()=>b1,nativeEnum:()=>aI,never:()=>lm,nonoptional:()=>Qx,null:()=>zx,nullable:()=>ic,nullish:()=>cI,number:()=>_x,object:()=>K1,optional:()=>nc,partialRecord:()=>nI,pipe:()=>rc,prefault:()=>Kx,preprocess:()=>$I,promise:()=>pI,readonly:()=>r_,record:()=>Px,refine:()=>u_,set:()=>oI,strictObject:()=>Q1,string:()=>qf,stringFormat:()=>D1,stringbool:()=>xI,success:()=>uI,superRefine:()=>d_,symbol:()=>B1,templateLiteral:()=>mI,transform:()=>dm,tuple:()=>jx,uint32:()=>Z1,uint64:()=>H1,ulid:()=>_1,undefined:()=>G1,union:()=>cm,unknown:()=>yo,url:()=>h1,uuid:()=>f1,uuidv4:()=>m1,uuidv6:()=>p1,uuidv7:()=>g1,void:()=>X1,xid:()=>$1,xor:()=>eI});var Uf={};jn(Uf,{endsWith:()=>Va,gt:()=>Yn,gte:()=>Pt,includes:()=>Za,length:()=>ho,lowercase:()=>Pa,lt:()=>Jn,lte:()=>mn,maxLength:()=>go,maxSize:()=>wr,mime:()=>Ha,minLength:()=>Ni,minSize:()=>Kn,multipleOf:()=>$r,negative:()=>Cf,nonnegative:()=>Tf,nonpositive:()=>kf,normalize:()=>Ba,overwrite:()=>Rn,positive:()=>zf,property:()=>If,regex:()=>ja,size:()=>po,slugify:()=>Ja,startsWith:()=>qa,toLowerCase:()=>Fa,toUpperCase:()=>Xa,trim:()=>Ga,uppercase:()=>La});var vo={};jn(vo,{ZodISODate:()=>Pf,ZodISODateTime:()=>jf,ZodISODuration:()=>Zf,ZodISOTime:()=>Lf,date:()=>ax,datetime:()=>ox,duration:()=>lx,time:()=>sx});var jf=_("ZodISODateTime",(e,t)=>{Ry.init(e,t),Ce.init(e,t)});function ox(e){return Pb(jf,e)}var Pf=_("ZodISODate",(e,t)=>{My.init(e,t),Ce.init(e,t)});function ax(e){return Lb(Pf,e)}var Lf=_("ZodISOTime",(e,t)=>{Uy.init(e,t),Ce.init(e,t)});function sx(e){return Zb(Lf,e)}var Zf=_("ZodISODuration",(e,t)=>{jy.init(e,t),Ce.init(e,t)});function lx(e){return qb(Zf,e)}var c1=(e,t)=>{ql.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Hl(e,n)},flatten:{value:n=>Vl(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ka,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ka,2)}},isEmpty:{get(){return e.issues.length===0}}})},EP=_("ZodError",c1),Yt=_("ZodError",c1,{Parent:Error});var cx=Na(Yt),ux=Oa(Yt),dx=Da(Yt),fx=Ra(Yt),mx=Dd(Yt),px=Rd(Yt),gx=Md(Yt),hx=Ud(Yt),vx=jd(Yt),yx=Pd(Yt),bx=Ld(Yt),Sx=Zd(Yt);var ce=_("ZodType",(e,t)=>(ie.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ka(e,"input"),output:Ka(e,"output")}}),e.toJSONSchema=SS(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>{var r;return e.clone(R.mergeDefs(t,{checks:[...(r=t.checks)!=null?r:[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},e.with=e.check,e.clone=(n,r)=>jt(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>cx(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>dx(e,n,r),e.parseAsync=async(n,r)=>ux(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>fx(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>mx(e,n,r),e.decode=(n,r)=>px(e,n,r),e.encodeAsync=async(n,r)=>gx(e,n,r),e.decodeAsync=async(n,r)=>hx(e,n,r),e.safeEncode=(n,r)=>vx(e,n,r),e.safeDecode=(n,r)=>yx(e,n,r),e.safeEncodeAsync=async(n,r)=>bx(e,n,r),e.safeDecodeAsync=async(n,r)=>Sx(e,n,r),e.refine=(n,r)=>e.check(u_(n,r)),e.superRefine=n=>e.check(d_(n)),e.overwrite=n=>e.check(Rn(n)),e.optional=()=>nc(e),e.exactOptional=()=>Gx(e),e.nullable=()=>ic(e),e.nullish=()=>nc(ic(e)),e.nonoptional=n=>Qx(e,n),e.array=()=>sc(e),e.or=n=>cm([e,n]),e.and=n=>Mx(e,n),e.transform=n=>rc(e,dm(n)),e.default=n=>Jx(e,n),e.prefault=n=>Kx(e,n),e.catch=n=>t_(e,n),e.pipe=n=>rc(e,n),e.readonly=()=>r_(e),e.describe=n=>{let r=e.clone();return _t.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=_t.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return _t.get(e);let r=e.clone();return _t.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Hf=_("_ZodString",(e,t)=>{var r,i,o;fo.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(a,s,c)=>xS(e,a,s,c);let n=e._zod.bag;e.format=(r=n.format)!=null?r:null,e.minLength=(i=n.minimum)!=null?i:null,e.maxLength=(o=n.maximum)!=null?o:null,e.regex=(...a)=>e.check(ja(...a)),e.includes=(...a)=>e.check(Za(...a)),e.startsWith=(...a)=>e.check(qa(...a)),e.endsWith=(...a)=>e.check(Va(...a)),e.min=(...a)=>e.check(Ni(...a)),e.max=(...a)=>e.check(go(...a)),e.length=(...a)=>e.check(ho(...a)),e.nonempty=(...a)=>e.check(Ni(1,...a)),e.lowercase=a=>e.check(Pa(a)),e.uppercase=a=>e.check(La(a)),e.trim=()=>e.check(Ga()),e.normalize=(...a)=>e.check(Ba(...a)),e.toLowerCase=()=>e.check(Fa()),e.toUpperCase=()=>e.check(Xa()),e.slugify=()=>e.check(Ja())}),Wa=_("ZodString",(e,t)=>{fo.init(e,t),Hf.init(e,t),e.email=n=>e.check(sf(Bf,n)),e.url=n=>e.check(Wl(oc,n)),e.jwt=n=>e.check(Af(am,n)),e.emoji=n=>e.check(ff(Gf,n)),e.guid=n=>e.check(Ql(tc,n)),e.uuid=n=>e.check(lf(Wn,n)),e.uuidv4=n=>e.check(cf(Wn,n)),e.uuidv6=n=>e.check(uf(Wn,n)),e.uuidv7=n=>e.check(df(Wn,n)),e.nanoid=n=>e.check(mf(Ff,n)),e.guid=n=>e.check(Ql(tc,n)),e.cuid=n=>e.check(pf(Xf,n)),e.cuid2=n=>e.check(gf(Jf,n)),e.ulid=n=>e.check(hf(Yf,n)),e.base64=n=>e.check($f(im,n)),e.base64url=n=>e.check(wf(rm,n)),e.xid=n=>e.check(vf(Kf,n)),e.ksuid=n=>e.check(yf(Qf,n)),e.ipv4=n=>e.check(bf(Wf,n)),e.ipv6=n=>e.check(Sf(em,n)),e.cidrv4=n=>e.check(xf(tm,n)),e.cidrv6=n=>e.check(_f(nm,n)),e.e164=n=>e.check(Ef(om,n)),e.datetime=n=>e.check(ox(n)),e.date=n=>e.check(ax(n)),e.time=n=>e.check(sx(n)),e.duration=n=>e.check(lx(n))});function qf(e){return Rb(Wa,e)}var Ce=_("ZodStringFormat",(e,t)=>{ze.init(e,t),Hf.init(e,t)}),Bf=_("ZodEmail",(e,t)=>{Ay.init(e,t),Ce.init(e,t)});function u1(e){return sf(Bf,e)}var tc=_("ZodGUID",(e,t)=>{wy.init(e,t),Ce.init(e,t)});function d1(e){return Ql(tc,e)}var Wn=_("ZodUUID",(e,t)=>{Ey.init(e,t),Ce.init(e,t)});function f1(e){return lf(Wn,e)}function m1(e){return cf(Wn,e)}function p1(e){return uf(Wn,e)}function g1(e){return df(Wn,e)}var oc=_("ZodURL",(e,t)=>{zy.init(e,t),Ce.init(e,t)});function h1(e){return Wl(oc,e)}function v1(e){return Wl(oc,{protocol:/^https?$/,hostname:fn.domain,...R.normalizeParams(e)})}var Gf=_("ZodEmoji",(e,t)=>{Cy.init(e,t),Ce.init(e,t)});function y1(e){return ff(Gf,e)}var Ff=_("ZodNanoID",(e,t)=>{ky.init(e,t),Ce.init(e,t)});function b1(e){return mf(Ff,e)}var Xf=_("ZodCUID",(e,t)=>{Ty.init(e,t),Ce.init(e,t)});function S1(e){return pf(Xf,e)}var Jf=_("ZodCUID2",(e,t)=>{Iy.init(e,t),Ce.init(e,t)});function x1(e){return gf(Jf,e)}var Yf=_("ZodULID",(e,t)=>{Ny.init(e,t),Ce.init(e,t)});function _1(e){return hf(Yf,e)}var Kf=_("ZodXID",(e,t)=>{Oy.init(e,t),Ce.init(e,t)});function $1(e){return vf(Kf,e)}var Qf=_("ZodKSUID",(e,t)=>{Dy.init(e,t),Ce.init(e,t)});function w1(e){return yf(Qf,e)}var Wf=_("ZodIPv4",(e,t)=>{Py.init(e,t),Ce.init(e,t)});function E1(e){return bf(Wf,e)}var xx=_("ZodMAC",(e,t)=>{Zy.init(e,t),Ce.init(e,t)});function A1(e){return Ub(xx,e)}var em=_("ZodIPv6",(e,t)=>{Ly.init(e,t),Ce.init(e,t)});function z1(e){return Sf(em,e)}var tm=_("ZodCIDRv4",(e,t)=>{qy.init(e,t),Ce.init(e,t)});function C1(e){return xf(tm,e)}var nm=_("ZodCIDRv6",(e,t)=>{Vy.init(e,t),Ce.init(e,t)});function k1(e){return _f(nm,e)}var im=_("ZodBase64",(e,t)=>{By.init(e,t),Ce.init(e,t)});function T1(e){return $f(im,e)}var rm=_("ZodBase64URL",(e,t)=>{Gy.init(e,t),Ce.init(e,t)});function I1(e){return wf(rm,e)}var om=_("ZodE164",(e,t)=>{Fy.init(e,t),Ce.init(e,t)});function N1(e){return Ef(om,e)}var am=_("ZodJWT",(e,t)=>{Xy.init(e,t),Ce.init(e,t)});function O1(e){return Af(am,e)}var es=_("ZodCustomStringFormat",(e,t)=>{Jy.init(e,t),Ce.init(e,t)});function D1(e,t,n={}){return Ya(es,e,t,n)}function R1(e){return Ya(es,"hostname",fn.hostname,e)}function M1(e){return Ya(es,"hex",fn.hex,e)}function U1(e,t){var o;let n=(o=t==null?void 0:t.enc)!=null?o:"hex",r=`${e}_${n}`,i=fn[r];if(!i)throw new Error(`Unrecognized hash format: ${r}`);return Ya(es,r,i,t)}var ts=_("ZodNumber",(e,t)=>{var r,i,o,a,s,c,d,m,l;Kd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(f,p,h)=>_S(e,f,p,h),e.gt=(f,p)=>e.check(Yn(f,p)),e.gte=(f,p)=>e.check(Pt(f,p)),e.min=(f,p)=>e.check(Pt(f,p)),e.lt=(f,p)=>e.check(Jn(f,p)),e.lte=(f,p)=>e.check(mn(f,p)),e.max=(f,p)=>e.check(mn(f,p)),e.int=f=>e.check(Vf(f)),e.safe=f=>e.check(Vf(f)),e.positive=f=>e.check(Yn(0,f)),e.nonnegative=f=>e.check(Pt(0,f)),e.negative=f=>e.check(Jn(0,f)),e.nonpositive=f=>e.check(mn(0,f)),e.multipleOf=(f,p)=>e.check($r(f,p)),e.step=(f,p)=>e.check($r(f,p)),e.finite=()=>e;let n=e._zod.bag;e.minValue=(o=Math.max((r=n.minimum)!=null?r:Number.NEGATIVE_INFINITY,(i=n.exclusiveMinimum)!=null?i:Number.NEGATIVE_INFINITY))!=null?o:null,e.maxValue=(c=Math.min((a=n.maximum)!=null?a:Number.POSITIVE_INFINITY,(s=n.exclusiveMaximum)!=null?s:Number.POSITIVE_INFINITY))!=null?c:null,e.isInt=((d=n.format)!=null?d:"").includes("int")||Number.isSafeInteger((m=n.multipleOf)!=null?m:.5),e.isFinite=!0,e.format=(l=n.format)!=null?l:null});function _x(e){return Vb(ts,e)}var bo=_("ZodNumberFormat",(e,t)=>{Yy.init(e,t),ts.init(e,t)});function Vf(e){return Bb(bo,e)}function j1(e){return Gb(bo,e)}function P1(e){return Fb(bo,e)}function L1(e){return Xb(bo,e)}function Z1(e){return Jb(bo,e)}var ns=_("ZodBoolean",(e,t)=>{Xl.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>$S(e,n,r,i)});function $x(e){return Yb(ns,e)}var is=_("ZodBigInt",(e,t)=>{var r,i,o;Qd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(a,s,c)=>wS(e,a,s,c),e.gte=(a,s)=>e.check(Pt(a,s)),e.min=(a,s)=>e.check(Pt(a,s)),e.gt=(a,s)=>e.check(Yn(a,s)),e.gte=(a,s)=>e.check(Pt(a,s)),e.min=(a,s)=>e.check(Pt(a,s)),e.lt=(a,s)=>e.check(Jn(a,s)),e.lte=(a,s)=>e.check(mn(a,s)),e.max=(a,s)=>e.check(mn(a,s)),e.positive=a=>e.check(Yn(BigInt(0),a)),e.negative=a=>e.check(Jn(BigInt(0),a)),e.nonpositive=a=>e.check(mn(BigInt(0),a)),e.nonnegative=a=>e.check(Pt(BigInt(0),a)),e.multipleOf=(a,s)=>e.check($r(a,s));let n=e._zod.bag;e.minValue=(r=n.minimum)!=null?r:null,e.maxValue=(i=n.maximum)!=null?i:null,e.format=(o=n.format)!=null?o:null});function q1(e){return Qb(is,e)}var sm=_("ZodBigIntFormat",(e,t)=>{Ky.init(e,t),is.init(e,t)});function V1(e){return eS(sm,e)}function H1(e){return tS(sm,e)}var wx=_("ZodSymbol",(e,t)=>{Qy.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ES(e,n,r,i)});function B1(e){return nS(wx,e)}var Ex=_("ZodUndefined",(e,t)=>{Wy.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>zS(e,n,r,i)});function G1(e){return iS(Ex,e)}var Ax=_("ZodNull",(e,t)=>{eb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>AS(e,n,r,i)});function zx(e){return rS(Ax,e)}var Cx=_("ZodAny",(e,t)=>{tb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>TS(e,n,r,i)});function F1(){return oS(Cx)}var kx=_("ZodUnknown",(e,t)=>{nb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>IS(e,n,r,i)});function yo(){return aS(kx)}var Tx=_("ZodNever",(e,t)=>{ib.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>kS(e,n,r,i)});function lm(e){return sS(Tx,e)}var Ix=_("ZodVoid",(e,t)=>{rb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>CS(e,n,r,i)});function X1(e){return lS(Ix,e)}var ac=_("ZodDate",(e,t)=>{ob.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,i,o)=>NS(e,r,i,o),e.min=(r,i)=>e.check(Pt(r,i)),e.max=(r,i)=>e.check(mn(r,i));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function J1(e){return cS(ac,e)}var Nx=_("ZodArray",(e,t)=>{ab.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>HS(e,n,r,i),e.element=t.element,e.min=(n,r)=>e.check(Ni(n,r)),e.nonempty=n=>e.check(Ni(1,n)),e.max=(n,r)=>e.check(go(n,r)),e.length=(n,r)=>e.check(ho(n,r)),e.unwrap=()=>e.element});function sc(e,t){return fS(Nx,e,t)}function Y1(e){let t=e._zod.def.shape;return um(Object.keys(t))}var lc=_("ZodObject",(e,t)=>{sb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>BS(e,n,r,i),R.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>um(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:yo()}),e.loose=()=>e.clone({...e._zod.def,catchall:yo()}),e.strict=()=>e.clone({...e._zod.def,catchall:lm()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>R.extend(e,n),e.safeExtend=n=>R.safeExtend(e,n),e.merge=n=>R.merge(e,n),e.pick=n=>R.pick(e,n),e.omit=n=>R.omit(e,n),e.partial=(...n)=>R.partial(fm,e,n[0]),e.required=(...n)=>R.required(mm,e,n[0])});function K1(e,t){let n={type:"object",shape:e!=null?e:{},...R.normalizeParams(t)};return new lc(n)}function Q1(e,t){return new lc({type:"object",shape:e,catchall:lm(),...R.normalizeParams(t)})}function W1(e,t){return new lc({type:"object",shape:e,catchall:yo(),...R.normalizeParams(t)})}var cc=_("ZodUnion",(e,t)=>{Jl.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Of(e,n,r,i),e.options=t.options});function cm(e,t){return new cc({type:"union",options:e,...R.normalizeParams(t)})}var Ox=_("ZodXor",(e,t)=>{cc.init(e,t),lb.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Of(e,n,r,i),e.options=t.options});function eI(e,t){return new Ox({type:"union",options:e,inclusive:!1,...R.normalizeParams(t)})}var Dx=_("ZodDiscriminatedUnion",(e,t)=>{cc.init(e,t),cb.init(e,t)});function tI(e,t,n){return new Dx({type:"union",options:t,discriminator:e,...R.normalizeParams(n)})}var Rx=_("ZodIntersection",(e,t)=>{ub.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>GS(e,n,r,i)});function Mx(e,t){return new Rx({type:"intersection",left:e,right:t})}var Ux=_("ZodTuple",(e,t)=>{Wd.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>FS(e,n,r,i),e.rest=n=>e.clone({...e._zod.def,rest:n})});function jx(e,t,n){let r=t instanceof ie,i=r?n:t,o=r?t:null;return new Ux({type:"tuple",items:e,rest:o,...R.normalizeParams(i)})}var uc=_("ZodRecord",(e,t)=>{db.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>XS(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function Px(e,t,n){return new uc({type:"record",keyType:e,valueType:t,...R.normalizeParams(n)})}function nI(e,t,n){let r=jt(e);return r._zod.values=void 0,new uc({type:"record",keyType:r,valueType:t,...R.normalizeParams(n)})}function iI(e,t,n){return new uc({type:"record",keyType:e,valueType:t,mode:"loose",...R.normalizeParams(n)})}var Lx=_("ZodMap",(e,t)=>{fb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>qS(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Kn(...n)),e.nonempty=n=>e.check(Kn(1,n)),e.max=(...n)=>e.check(wr(...n)),e.size=(...n)=>e.check(po(...n))});function rI(e,t,n){return new Lx({type:"map",keyType:e,valueType:t,...R.normalizeParams(n)})}var Zx=_("ZodSet",(e,t)=>{mb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>VS(e,n,r,i),e.min=(...n)=>e.check(Kn(...n)),e.nonempty=n=>e.check(Kn(1,n)),e.max=(...n)=>e.check(wr(...n)),e.size=(...n)=>e.check(po(...n))});function oI(e,t){return new Zx({type:"set",valueType:e,...R.normalizeParams(t)})}var Qa=_("ZodEnum",(e,t)=>{pb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(r,i,o)=>OS(e,r,i,o),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{let o={};for(let a of r)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Qa({...t,checks:[],...R.normalizeParams(i),entries:o})},e.exclude=(r,i)=>{let o={...t.entries};for(let a of r)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Qa({...t,checks:[],...R.normalizeParams(i),entries:o})}});function um(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Qa({type:"enum",entries:n,...R.normalizeParams(t)})}function aI(e,t){return new Qa({type:"enum",entries:e,...R.normalizeParams(t)})}var qx=_("ZodLiteral",(e,t)=>{gb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>DS(e,n,r,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function sI(e,t){return new qx({type:"literal",values:Array.isArray(e)?e:[e],...R.normalizeParams(t)})}var Vx=_("ZodFile",(e,t)=>{hb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>US(e,n,r,i),e.min=(n,r)=>e.check(Kn(n,r)),e.max=(n,r)=>e.check(wr(n,r)),e.mime=(n,r)=>e.check(Ha(Array.isArray(n)?n:[n],r))});function lI(e){return mS(Vx,e)}var Hx=_("ZodTransform",(e,t)=>{vb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ZS(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new yr(e.constructor.name);n.addIssue=o=>{var a,s,c;if(typeof o=="string")n.issues.push(R.issue(o,n.value,t));else{let d=o;d.fatal&&(d.continue=!1),(a=d.code)!=null||(d.code="custom"),(s=d.input)!=null||(d.input=n.value),(c=d.inst)!=null||(d.inst=e),n.issues.push(R.issue(d))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function dm(e){return new Hx({type:"transform",transform:e})}var fm=_("ZodOptional",(e,t)=>{ef.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Df(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function nc(e){return new fm({type:"optional",innerType:e})}var Bx=_("ZodExactOptional",(e,t)=>{yb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Df(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Gx(e){return new Bx({type:"optional",innerType:e})}var Fx=_("ZodNullable",(e,t)=>{bb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>JS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function ic(e){return new Fx({type:"nullable",innerType:e})}function cI(e){return nc(ic(e))}var Xx=_("ZodDefault",(e,t)=>{Sb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>KS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Jx(e,t){return new Xx({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():R.shallowClone(t)}})}var Yx=_("ZodPrefault",(e,t)=>{xb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>QS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Kx(e,t){return new Yx({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():R.shallowClone(t)}})}var mm=_("ZodNonOptional",(e,t)=>{_b.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>YS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Qx(e,t){return new mm({type:"nonoptional",innerType:e,...R.normalizeParams(t)})}var Wx=_("ZodSuccess",(e,t)=>{$b.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>jS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function uI(e){return new Wx({type:"success",innerType:e})}var e_=_("ZodCatch",(e,t)=>{wb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>WS(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function t_(e,t){return new e_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var n_=_("ZodNaN",(e,t)=>{Eb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>RS(e,n,r,i)});function dI(e){return dS(n_,e)}var pm=_("ZodPipe",(e,t)=>{Ab.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ex(e,n,r,i),e.in=t.in,e.out=t.out});function rc(e,t){return new pm({type:"pipe",in:e,out:t})}var gm=_("ZodCodec",(e,t)=>{pm.init(e,t),Yl.init(e,t)});function fI(e,t,n){return new gm({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}var i_=_("ZodReadonly",(e,t)=>{zb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>tx(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function r_(e){return new i_({type:"readonly",innerType:e})}var o_=_("ZodTemplateLiteral",(e,t)=>{Cb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>MS(e,n,r,i)});function mI(e,t){return new o_({type:"template_literal",parts:e,...R.normalizeParams(t)})}var a_=_("ZodLazy",(e,t)=>{Ib.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ix(e,n,r,i),e.unwrap=()=>e._zod.def.getter()});function s_(e){return new a_({type:"lazy",getter:e})}var l_=_("ZodPromise",(e,t)=>{Tb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>nx(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function pI(e){return new l_({type:"promise",innerType:e})}var c_=_("ZodFunction",(e,t)=>{kb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>LS(e,n,r,i)});function gI(e){var t,n;return new c_({type:"function",input:Array.isArray(e==null?void 0:e.input)?jx(e==null?void 0:e.input):(t=e==null?void 0:e.input)!=null?t:sc(yo()),output:(n=e==null?void 0:e.output)!=null?n:yo()})}var dc=_("ZodCustom",(e,t)=>{Nb.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,r,i)=>PS(e,n,r,i)});function hI(e){let t=new Te({check:"custom"});return t._zod.check=e,t}function vI(e,t){return pS(dc,e!=null?e:()=>!0,t)}function u_(e,t={}){return gS(dc,e,t)}function d_(e){return hS(e)}var yI=vS,bI=yS;function SI(e,t={}){let n=new dc({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...R.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{var i;r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...(i=n._zod.def.path)!=null?i:[]]})},n}var xI=(...e)=>bS({Codec:gm,Boolean:ns,String:Wa},...e);function _I(e){let t=s_(()=>cm([qf(e),_x(),$x(),zx(),sc(t),Px(qf(),t)]));return t}function $I(e,t){return rc(dm(e),t)}var zP={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 CP(e){Fe({customError:e})}function kP(){return Fe().customError}var f_;(function(e){})(f_||(f_={}));var L={...ec,...Uf,iso:vo},TP=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function IP(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t!=null?t:"draft-2020-12"}function NP(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let i=n[1];if(!i||!t.defs[i])throw new Error(`Reference not found: ${e}`);return t.defs[i]}throw new Error(`Reference not found: ${e}`)}function wI(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return L.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let i=e.$ref;if(t.refs.has(i))return t.refs.get(i);if(t.processing.has(i))return L.lazy(()=>{if(!t.refs.has(i))throw new Error(`Circular reference not resolved: ${i}`);return t.refs.get(i)});t.processing.add(i);let o=NP(i,t),a=Tt(o,t);return t.refs.set(i,a),t.processing.delete(i),a}if(e.enum!==void 0){let i=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return L.null();if(i.length===0)return L.never();if(i.length===1)return L.literal(i[0]);if(i.every(a=>typeof a=="string"))return L.enum(i);let o=i.map(a=>L.literal(a));return o.length<2?o[0]:L.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return L.literal(e.const);let n=e.type;if(Array.isArray(n)){let i=n.map(o=>{let a={...e,type:o};return wI(a,t)});return i.length===0?L.never():i.length===1?i[0]:L.union(i)}if(!n)return L.any();let r;switch(n){case"string":{let i=L.string();if(e.format){let o=e.format;o==="email"?i=i.check(L.email()):o==="uri"||o==="uri-reference"?i=i.check(L.url()):o==="uuid"||o==="guid"?i=i.check(L.uuid()):o==="date-time"?i=i.check(L.iso.datetime()):o==="date"?i=i.check(L.iso.date()):o==="time"?i=i.check(L.iso.time()):o==="duration"?i=i.check(L.iso.duration()):o==="ipv4"?i=i.check(L.ipv4()):o==="ipv6"?i=i.check(L.ipv6()):o==="mac"?i=i.check(L.mac()):o==="cidr"?i=i.check(L.cidrv4()):o==="cidr-v6"?i=i.check(L.cidrv6()):o==="base64"?i=i.check(L.base64()):o==="base64url"?i=i.check(L.base64url()):o==="e164"?i=i.check(L.e164()):o==="jwt"?i=i.check(L.jwt()):o==="emoji"?i=i.check(L.emoji()):o==="nanoid"?i=i.check(L.nanoid()):o==="cuid"?i=i.check(L.cuid()):o==="cuid2"?i=i.check(L.cuid2()):o==="ulid"?i=i.check(L.ulid()):o==="xid"?i=i.check(L.xid()):o==="ksuid"&&(i=i.check(L.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),r=i;break}case"number":case"integer":{let i=n==="integer"?L.number().int():L.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),r=i;break}case"boolean":{r=L.boolean();break}case"null":{r=L.null();break}case"object":{let i={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,d]of Object.entries(o)){let m=Tt(d,t);i[c]=a.has(c)?m:m.optional()}if(e.propertyNames){let c=Tt(e.propertyNames,t),d=e.additionalProperties&&typeof e.additionalProperties=="object"?Tt(e.additionalProperties,t):L.any();if(Object.keys(i).length===0){r=L.record(c,d);break}let m=L.object(i).passthrough(),l=L.looseRecord(c,d);r=L.intersection(m,l);break}if(e.patternProperties){let c=e.patternProperties,d=Object.keys(c),m=[];for(let f of d){let p=Tt(c[f],t),h=L.string().regex(new RegExp(f));m.push(L.looseRecord(h,p))}let l=[];if(Object.keys(i).length>0&&l.push(L.object(i).passthrough()),l.push(...m),l.length===0)r=L.object({}).passthrough();else if(l.length===1)r=l[0];else{let f=L.intersection(l[0],l[1]);for(let p=2;p<l.length;p++)f=L.intersection(f,l[p]);r=f}break}let s=L.object(i);e.additionalProperties===!1?r=s.strict():typeof e.additionalProperties=="object"?r=s.catchall(Tt(e.additionalProperties,t)):r=s.passthrough();break}case"array":{let i=e.prefixItems,o=e.items;if(i&&Array.isArray(i)){let a=i.map(c=>Tt(c,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?Tt(o,t):void 0;s?r=L.tuple(a).rest(s):r=L.tuple(a),typeof e.minItems=="number"&&(r=r.check(L.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(L.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>Tt(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Tt(e.additionalItems,t):void 0;s?r=L.tuple(a).rest(s):r=L.tuple(a),typeof e.minItems=="number"&&(r=r.check(L.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(L.maxLength(e.maxItems)))}else if(o!==void 0){let a=Tt(o,t),s=L.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),r=s}else r=L.array(L.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(r=r.describe(e.description)),e.default!==void 0&&(r=r.default(e.default)),r}function Tt(e,t){if(typeof e=="boolean")return e?L.any():L.never();let n=wI(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(d=>Tt(d,t)),c=L.union(s);n=r?L.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(d=>Tt(d,t)),c=L.xor(s);n=r?L.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:L.any();else{let s=r?n:Tt(e.allOf[0],t),c=r?0:1;for(let d=c;d<e.allOf.length;d++)s=L.intersection(s,Tt(e.allOf[d],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=L.nullable(n)),e.readOnly===!0&&(n=L.readonly(n));let i={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(i[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(i[s]=e[s]);for(let s of Object.keys(e))TP.has(s)||(i[s]=e[s]);return Object.keys(i).length>0&&t.registry.add(n,i),n}function EI(e,t){var o;if(typeof e=="boolean")return e?L.any():L.never();let n=IP(e,t==null?void 0:t.defaultTarget),r=e.$defs||e.definitions||{},i={version:n,defs:r,refs:new Map,processing:new Set,rootSchema:e,registry:(o=t==null?void 0:t.registry)!=null?o:_t};return Tt(e,i)}var hm={};jn(hm,{bigint:()=>MP,boolean:()=>RP,date:()=>UP,number:()=>DP,string:()=>OP});function OP(e){return Mb(Wa,e)}function DP(e){return Hb(ts,e)}function RP(e){return Kb(ns,e)}function MP(e){return Wb(is,e)}function UP(e){return uS(ac,e)}Fe(tf());var He={authenticate:"authenticate",initialize:"initialize",session_cancel:"session/cancel",session_fork:"session/fork",session_list:"session/list",session_load:"session/load",session_new:"session/new",session_prompt:"session/prompt",session_resume:"session/resume",session_set_config_option:"session/set_config_option",session_set_mode:"session/set_mode",session_set_model:"session/set_model"},lt={fs_read_text_file:"fs/read_text_file",fs_write_text_file:"fs/write_text_file",session_request_permission:"session/request_permission",session_update:"session/update",terminal_create:"terminal/create",terminal_kill:"terminal/kill",terminal_output:"terminal/output",terminal_release:"terminal/release",terminal_wait_for_exit:"terminal/wait_for_exit"},AI=1;var PP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),description:u.union([u.string(),u.null()]).optional(),id:u.string(),name:u.string()}),p_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),methodId:u.string()}),LP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional()}),ZP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),blob:u.string(),mimeType:u.union([u.string(),u.null()]).optional(),uri:u.string()}),qP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),terminalId:u.string()}),VP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),newText:u.string(),oldText:u.union([u.string(),u.null()]).optional(),path:u.string()}),zI=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),name:u.string(),value:u.string()}),HP=u.union([u.literal(-32700),u.literal(-32600),u.literal(-32601),u.literal(-32602),u.literal(-32603),u.literal(-32800),u.literal(-32e3),u.literal(-32002),u.number().int()]),CI=u.object({code:HP,data:u.unknown().optional(),message:u.string()}),kI=u.unknown(),TI=u.unknown(),II=u.unknown(),BP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),readTextFile:u.boolean().optional().default(!1),writeTextFile:u.boolean().optional().default(!1)}),GP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),fs:BP.optional().default({readTextFile:!1,writeTextFile:!1}),terminal:u.boolean().optional().default(!1)}),NI=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),name:u.string(),value:u.string()}),OI=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),name:u.string(),title:u.union([u.string(),u.null()]).optional(),version:u.string()}),FP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional()}),g_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),cursor:u.union([u.string(),u.null()]).optional(),cwd:u.union([u.string(),u.null()]).optional()}),XP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),http:u.boolean().optional().default(!1),sse:u.boolean().optional().default(!1)}),JP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),headers:u.array(NI),name:u.string(),url:u.string()}),YP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),headers:u.array(NI),name:u.string(),url:u.string()}),KP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),args:u.array(u.string()),command:u.string(),env:u.array(zI),name:u.string()}),vm=u.union([JP.and(u.object({type:u.literal("http")})),YP.and(u.object({type:u.literal("sse")})),KP]),h_=u.string(),QP=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),description:u.union([u.string(),u.null()]).optional(),modelId:h_,name:u.string()}),v_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),cwd:u.string(),mcpServers:u.array(vm)}),DI=u.string(),WP=u.union([u.literal("allow_once"),u.literal("allow_always"),u.literal("reject_once"),u.literal("reject_always")]),e2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),kind:WP,name:u.string(),optionId:DI}),t2=u.union([u.literal("high"),u.literal("medium"),u.literal("low")]),n2=u.union([u.literal("pending"),u.literal("in_progress"),u.literal("completed")]),i2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),content:u.string(),priority:t2,status:n2}),r2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),entries:u.array(i2)}),o2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),audio:u.boolean().optional().default(!1),embeddedContext:u.boolean().optional().default(!1),image:u.boolean().optional().default(!1)}),RI=u.number().int().gte(0).lte(65535),y_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),clientCapabilities:GP.optional().default({fs:{readTextFile:!1,writeTextFile:!1},terminal:!1}),clientInfo:u.union([OI,u.null()]).optional(),protocolVersion:RI}),a2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),content:u.string()}),s2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional()}),So=u.union([u.null(),u.coerce.bigint(),u.string()]),S8=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),requestId:So}),l2=u.enum(["assistant","user"]),fc=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),audience:u.union([u.array(l2),u.null()]).optional(),lastModified:u.union([u.string(),u.null()]).optional(),priority:u.union([u.number(),u.null()]).optional()}),c2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),annotations:u.union([fc,u.null()]).optional(),data:u.string(),mimeType:u.string()}),u2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),annotations:u.union([fc,u.null()]).optional(),data:u.string(),mimeType:u.string(),uri:u.union([u.string(),u.null()]).optional()}),d2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),annotations:u.union([fc,u.null()]).optional(),description:u.union([u.string(),u.null()]).optional(),mimeType:u.union([u.string(),u.null()]).optional(),name:u.string(),size:u.union([u.coerce.bigint(),u.null()]).optional(),title:u.union([u.string(),u.null()]).optional(),uri:u.string()}),f2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),optionId:DI}),m2=u.union([u.object({outcome:u.literal("cancelled")}),f2.and(u.object({outcome:u.literal("selected")}))]),p2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),outcome:m2}),g2=u.string(),MI=u.string(),b_=u.string(),UI=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),description:u.union([u.string(),u.null()]).optional(),name:u.string(),value:b_}),h2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),group:g2,name:u.string(),options:u.array(UI)}),v2=u.union([u.array(UI),u.array(h2)]),y2=u.object({currentValue:b_,options:v2}),rs=y2.and(u.object({type:u.literal("select")})).and(u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),description:u.union([u.string(),u.null()]).optional(),id:MI,name:u.string()})),b2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),configOptions:u.array(rs)}),S2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional()}),tt=u.string(),S_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),sessionId:tt}),x8=u.object({method:u.string(),params:u.union([u.union([S_,kI]),u.null()]).optional()}),x_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),args:u.array(u.string()).optional(),command:u.string(),cwd:u.union([u.string(),u.null()]).optional(),env:u.array(zI).optional(),outputByteLimit:u.union([u.number().int().gte(0),u.null()]).optional(),sessionId:tt}),__=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),cwd:u.string(),mcpServers:u.array(vm).optional(),sessionId:tt}),$_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),sessionId:tt,terminalId:u.string()}),w_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),cwd:u.string(),mcpServers:u.array(vm),sessionId:tt}),E_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),limit:u.union([u.number().int().gte(0),u.null()]).optional(),line:u.union([u.number().int().gte(0),u.null()]).optional(),path:u.string(),sessionId:tt}),A_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),sessionId:tt,terminalId:u.string()}),z_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),cwd:u.string(),mcpServers:u.array(vm).optional(),sessionId:tt}),x2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),cwd:u.string(),sessionId:tt,title:u.union([u.string(),u.null()]).optional(),updatedAt:u.union([u.string(),u.null()]).optional()}),_2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),nextCursor:u.union([u.string(),u.null()]).optional(),sessions:u.array(x2)}),$2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),title:u.union([u.string(),u.null()]).optional(),updatedAt:u.union([u.string(),u.null()]).optional()}),w2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional()}),ym=u.string(),E2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),currentModeId:ym}),A2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),description:u.union([u.string(),u.null()]).optional(),id:ym,name:u.string()}),bm=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),availableModes:u.array(A2),currentModeId:ym}),Sm=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),availableModels:u.array(QP),currentModelId:h_}),z2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),configOptions:u.union([u.array(rs),u.null()]).optional(),models:u.union([Sm,u.null()]).optional(),modes:u.union([bm,u.null()]).optional(),sessionId:tt}),C2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),configOptions:u.union([u.array(rs),u.null()]).optional(),models:u.union([Sm,u.null()]).optional(),modes:u.union([bm,u.null()]).optional()}),k2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),configOptions:u.union([u.array(rs),u.null()]).optional(),models:u.union([Sm,u.null()]).optional(),modes:u.union([bm,u.null()]).optional(),sessionId:tt}),T2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),configOptions:u.union([u.array(rs),u.null()]).optional(),models:u.union([Sm,u.null()]).optional(),modes:u.union([bm,u.null()]).optional()}),I2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional()}),N2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),fork:u.union([S2,u.null()]).optional(),list:u.union([w2,u.null()]).optional(),resume:u.union([I2,u.null()]).optional()}),O2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),loadSession:u.boolean().optional().default(!1),mcpCapabilities:XP.optional().default({http:!1,sse:!1}),promptCapabilities:o2.optional().default({audio:!1,embeddedContext:!1,image:!1}),sessionCapabilities:N2.optional().default({})}),D2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),agentCapabilities:O2.optional().default({loadSession:!1,mcpCapabilities:{http:!1,sse:!1},promptCapabilities:{audio:!1,embeddedContext:!1,image:!1},sessionCapabilities:{}}),agentInfo:u.union([OI,u.null()]).optional(),authMethods:u.array(PP).optional().default([]),protocolVersion:RI}),R2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),configId:MI,sessionId:tt,value:b_}),M2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),configOptions:u.array(rs)}),C_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),modeId:ym,sessionId:tt}),U2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional()}),k_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),modelId:h_,sessionId:tt}),j2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional()}),P2=u.union([u.literal("end_turn"),u.literal("max_tokens"),u.literal("max_turn_requests"),u.literal("refusal"),u.literal("cancelled")]),L2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),stopReason:P2}),_8=u.union([u.object({id:So,result:u.union([D2,LP,k2,C2,_2,z2,T2,U2,M2,L2,j2,II])}),u.object({error:CI,id:So})]),Z2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),terminalId:u.string()}),q2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),exitCode:u.union([u.number().int().gte(0),u.null()]).optional(),signal:u.union([u.string(),u.null()]).optional()}),T_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),sessionId:tt,terminalId:u.string()}),V2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),exitStatus:u.union([q2,u.null()]).optional(),output:u.string(),truncated:u.boolean()}),H2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),annotations:u.union([fc,u.null()]).optional(),text:u.string()}),B2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),mimeType:u.union([u.string(),u.null()]).optional(),text:u.string(),uri:u.string()}),G2=u.union([B2,ZP]),F2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),annotations:u.union([fc,u.null()]).optional(),resource:G2}),I_=u.union([H2.and(u.object({type:u.literal("text")})),u2.and(u.object({type:u.literal("image")})),c2.and(u.object({type:u.literal("audio")})),d2.and(u.object({type:u.literal("resource_link")})),F2.and(u.object({type:u.literal("resource")}))]),X2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),content:I_}),m_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),content:I_}),N_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),prompt:u.array(I_),sessionId:tt}),$8=u.object({id:So,method:u.string(),params:u.union([u.union([y_,p_,v_,w_,g_,__,z_,C_,R2,N_,k_,TI]),u.null()]).optional()}),jI=u.union([X2.and(u.object({type:u.literal("content")})),VP.and(u.object({type:u.literal("diff")})),Z2.and(u.object({type:u.literal("terminal")}))]),PI=u.string(),LI=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),line:u.union([u.number().int().gte(0),u.null()]).optional(),path:u.string()}),ZI=u.union([u.literal("pending"),u.literal("in_progress"),u.literal("completed"),u.literal("failed")]),qI=u.union([u.literal("read"),u.literal("edit"),u.literal("delete"),u.literal("move"),u.literal("search"),u.literal("execute"),u.literal("think"),u.literal("fetch"),u.literal("switch_mode"),u.literal("other")]),J2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),content:u.array(jI).optional(),kind:qI.optional(),locations:u.array(LI).optional(),rawInput:u.unknown().optional(),rawOutput:u.unknown().optional(),status:ZI.optional(),title:u.string(),toolCallId:PI}),VI=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),content:u.union([u.array(jI),u.null()]).optional(),kind:u.union([qI,u.null()]).optional(),locations:u.union([u.array(LI),u.null()]).optional(),rawInput:u.unknown().optional(),rawOutput:u.unknown().optional(),status:u.union([ZI,u.null()]).optional(),title:u.union([u.string(),u.null()]).optional(),toolCallId:PI}),O_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),options:u.array(e2),sessionId:tt,toolCall:VI}),Y2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),hint:u.string()}),K2=Y2,Q2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),description:u.string(),input:u.union([K2,u.null()]).optional(),name:u.string()}),W2=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),availableCommands:u.array(Q2)}),eL=u.union([m_.and(u.object({sessionUpdate:u.literal("user_message_chunk")})),m_.and(u.object({sessionUpdate:u.literal("agent_message_chunk")})),m_.and(u.object({sessionUpdate:u.literal("agent_thought_chunk")})),J2.and(u.object({sessionUpdate:u.literal("tool_call")})),VI.and(u.object({sessionUpdate:u.literal("tool_call_update")})),r2.and(u.object({sessionUpdate:u.literal("plan")})),W2.and(u.object({sessionUpdate:u.literal("available_commands_update")})),E2.and(u.object({sessionUpdate:u.literal("current_mode_update")})),b2.and(u.object({sessionUpdate:u.literal("config_option_update")})),$2.and(u.object({sessionUpdate:u.literal("session_info_update")}))]),D_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),sessionId:tt,update:eL}),w8=u.object({method:u.string(),params:u.union([u.union([D_,kI]),u.null()]).optional()}),R_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),sessionId:tt,terminalId:u.string()}),tL=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),exitCode:u.union([u.number().int().gte(0),u.null()]).optional(),signal:u.union([u.string(),u.null()]).optional()}),M_=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional(),content:u.string(),path:u.string(),sessionId:tt}),E8=u.object({id:So,method:u.string(),params:u.union([u.union([M_,E_,O_,x_,T_,A_,R_,$_,TI]),u.null()]).optional()}),nL=u.object({_meta:u.union([u.record(u.string(),u.unknown()),u.null()]).optional()}),A8=u.union([u.object({id:So,result:u.union([nL,a2,p2,qP,V2,s2,tL,FP,II])}),u.object({error:CI,id:So})]);function HI(e,t){let n=new TextEncoder,r=new TextDecoder,i=new ReadableStream({async start(a){let s="",c=t.getReader();try{for(;;){let{value:d,done:m}=await c.read();if(m)break;if(!d)continue;s+=r.decode(d,{stream:!0});let l=s.split(`
|
|
`);s=l.pop()||"";for(let f of l){let p=f.trim();if(p)try{let h=JSON.parse(p);a.enqueue(h)}catch(h){console.error("Failed to parse JSON message:",p,h)}}}}finally{c.releaseLock(),a.close()}}}),o=new WritableStream({async write(a){let s=JSON.stringify(a)+`
|
|
`,c=e.getWriter();try{await c.write(n.encode(s))}finally{c.releaseLock()}}});return{readable:i,writable:o}}var Kt,BI=class{constructor(t,n){nt(this,Kt,void 0);let r=t(this),i=async(a,s)=>{switch(a){case He.initialize:{let c=y_.parse(s);return r.initialize(c)}case He.session_new:{let c=v_.parse(s);return r.newSession(c)}case He.session_load:{if(!r.loadSession)throw xe.methodNotFound(a);let c=w_.parse(s);return r.loadSession(c)}case He.session_list:{if(!r.unstable_listSessions)throw xe.methodNotFound(a);let c=g_.parse(s);return r.unstable_listSessions(c)}case He.session_fork:{if(!r.unstable_forkSession)throw xe.methodNotFound(a);let c=__.parse(s);return r.unstable_forkSession(c)}case He.session_resume:{if(!r.unstable_resumeSession)throw xe.methodNotFound(a);let c=z_.parse(s);return r.unstable_resumeSession(c)}case He.session_set_mode:{if(!r.setSessionMode)throw xe.methodNotFound(a);let c=C_.parse(s),d=await r.setSessionMode(c);return d!=null?d:{}}case He.authenticate:{let c=p_.parse(s),d=await r.authenticate(c);return d!=null?d:{}}case He.session_prompt:{let c=N_.parse(s);return r.prompt(c)}case He.session_set_model:{if(!r.unstable_setSessionModel)throw xe.methodNotFound(a);let c=k_.parse(s),d=await r.unstable_setSessionModel(c);return d!=null?d:{}}default:if(a.startsWith("_")){if(!r.extMethod)throw xe.methodNotFound(a);return r.extMethod(a.substring(1),s)}throw xe.methodNotFound(a)}},o=async(a,s)=>{switch(a){case He.session_cancel:{let c=S_.parse(s);return r.cancel(c)}default:if(a.startsWith("_"))return r.extNotification?r.extNotification(a.substring(1),s):void 0;throw xe.methodNotFound(a)}};kn(this,Kt,new _m(i,o,n))}async sessionUpdate(t){return await te(this,Kt).sendNotification(lt.session_update,t)}async requestPermission(t){return await te(this,Kt).sendRequest(lt.session_request_permission,t)}async readTextFile(t){return await te(this,Kt).sendRequest(lt.fs_read_text_file,t)}async writeTextFile(t){var n;return(n=await te(this,Kt).sendRequest(lt.fs_write_text_file,t))!=null?n:{}}async createTerminal(t){let n=await te(this,Kt).sendRequest(lt.terminal_create,t);return new U_(n.terminalId,t.sessionId,te(this,Kt))}async extMethod(t,n){return await te(this,Kt).sendRequest(`_${t}`,n)}async extNotification(t,n){return await te(this,Kt).sendNotification(`_${t}`,n)}get signal(){return te(this,Kt).signal}get closed(){return te(this,Kt).closed}};Kt=new WeakMap;var Cr,kr,U_=class{constructor(t,n,r){Sc(this,"id");nt(this,Cr,void 0);nt(this,kr,void 0);this.id=t,kn(this,Cr,n),kn(this,kr,r)}async currentOutput(){return await te(this,kr).sendRequest(lt.terminal_output,{sessionId:te(this,Cr),terminalId:this.id})}async waitForExit(){return await te(this,kr).sendRequest(lt.terminal_wait_for_exit,{sessionId:te(this,Cr),terminalId:this.id})}async kill(){var t;return(t=await te(this,kr).sendRequest(lt.terminal_kill,{sessionId:te(this,Cr),terminalId:this.id}))!=null?t:{}}async release(){var t;return(t=await te(this,kr).sendRequest(lt.terminal_release,{sessionId:te(this,Cr),terminalId:this.id}))!=null?t:{}}async[Symbol.asyncDispose](){await this.release()}};Cr=new WeakMap,kr=new WeakMap;var ct,xm=class{constructor(t,n){nt(this,ct,void 0);let r=t(this),i=async(a,s)=>{var c,d,m,l,f,p,h;switch(a){case lt.fs_write_text_file:{let y=M_.parse(s);return(c=r.writeTextFile)==null?void 0:c.call(r,y)}case lt.fs_read_text_file:{let y=E_.parse(s);return(d=r.readTextFile)==null?void 0:d.call(r,y)}case lt.session_request_permission:{let y=O_.parse(s);return r.requestPermission(y)}case lt.terminal_create:{let y=x_.parse(s);return(m=r.createTerminal)==null?void 0:m.call(r,y)}case lt.terminal_output:{let y=T_.parse(s);return(l=r.terminalOutput)==null?void 0:l.call(r,y)}case lt.terminal_release:{let y=A_.parse(s),x=await((f=r.releaseTerminal)==null?void 0:f.call(r,y));return x!=null?x:{}}case lt.terminal_wait_for_exit:{let y=R_.parse(s);return(p=r.waitForTerminalExit)==null?void 0:p.call(r,y)}case lt.terminal_kill:{let y=$_.parse(s),x=await((h=r.killTerminal)==null?void 0:h.call(r,y));return x!=null?x:{}}default:if(a.startsWith("_")){let y=a.substring(1);if(!r.extMethod)throw xe.methodNotFound(a);return r.extMethod(y,s)}throw xe.methodNotFound(a)}},o=async(a,s)=>{switch(a){case lt.session_update:{let c=D_.parse(s);return r.sessionUpdate(c)}default:if(a.startsWith("_")){let c=a.substring(1);return r.extNotification?r.extNotification(c,s):void 0}throw xe.methodNotFound(a)}};kn(this,ct,new _m(i,o,n))}async initialize(t){return await te(this,ct).sendRequest(He.initialize,t)}async newSession(t){return await te(this,ct).sendRequest(He.session_new,t)}async loadSession(t){var n;return(n=await te(this,ct).sendRequest(He.session_load,t))!=null?n:{}}async unstable_forkSession(t){return await te(this,ct).sendRequest(He.session_fork,t)}async unstable_listSessions(t){return await te(this,ct).sendRequest(He.session_list,t)}async unstable_resumeSession(t){return await te(this,ct).sendRequest(He.session_resume,t)}async setSessionMode(t){var n;return(n=await te(this,ct).sendRequest(He.session_set_mode,t))!=null?n:{}}async unstable_setSessionModel(t){var n;return(n=await te(this,ct).sendRequest(He.session_set_model,t))!=null?n:{}}async authenticate(t){var n;return(n=await te(this,ct).sendRequest(He.authenticate,t))!=null?n:{}}async prompt(t){return await te(this,ct).sendRequest(He.session_prompt,t)}async cancel(t){return await te(this,ct).sendNotification(He.session_cancel,t)}async extMethod(t,n){return await te(this,ct).sendRequest(`_${t}`,n)}async extNotification(t,n){return await te(this,ct).sendNotification(`_${t}`,n)}get signal(){return te(this,ct).signal}get closed(){return te(this,ct).closed}};ct=new WeakMap;var os,$m,pc,gc,as,ss,ls,hc,wm,GI,Em,FI,Am,XI,zm,JI,Cm,YI,xo,mc,_m=class{constructor(t,n,r){nt(this,wm);nt(this,Em);nt(this,Am);nt(this,zm);nt(this,Cm);nt(this,xo);nt(this,os,new Map);nt(this,$m,0);nt(this,pc,void 0);nt(this,gc,void 0);nt(this,as,void 0);nt(this,ss,Promise.resolve());nt(this,ls,new AbortController);nt(this,hc,void 0);kn(this,pc,t),kn(this,gc,n),kn(this,as,r),kn(this,hc,new Promise(i=>{te(this,ls).signal.addEventListener("abort",()=>i())})),Pn(this,wm,GI).call(this)}get signal(){return te(this,ls).signal}get closed(){return te(this,hc)}async sendRequest(t,n){let r=Z_(this,$m)._++,i=new Promise((o,a)=>{te(this,os).set(r,{resolve:o,reject:a})});return await Pn(this,xo,mc).call(this,{jsonrpc:"2.0",id:r,method:t,params:n}),i}async sendNotification(t,n){await Pn(this,xo,mc).call(this,{jsonrpc:"2.0",method:t,params:n})}};os=new WeakMap,$m=new WeakMap,pc=new WeakMap,gc=new WeakMap,as=new WeakMap,ss=new WeakMap,ls=new WeakMap,hc=new WeakMap,wm=new WeakSet,GI=async function(){let t=te(this,as).readable.getReader();try{for(;;){let{value:n,done:r}=await t.read();if(r)break;if(n)try{Pn(this,Em,FI).call(this,n)}catch(i){console.error("Unexpected error during message processing:",n,i),"id"in n&&n.id!==void 0&&Pn(this,xo,mc).call(this,{jsonrpc:"2.0",id:n.id,error:{code:-32700,message:"Parse error"}})}}}finally{t.releaseLock(),te(this,ls).abort()}},Em=new WeakSet,FI=async function(t){if("method"in t&&"id"in t){let n=await Pn(this,Am,XI).call(this,t.method,t.params);"error"in n&&console.error("Error handling request",t,n.error),await Pn(this,xo,mc).call(this,{jsonrpc:"2.0",id:t.id,...n})}else if("method"in t){let n=await Pn(this,zm,JI).call(this,t.method,t.params);"error"in n&&console.error("Error handling notification",t,n.error)}else"id"in t?Pn(this,Cm,YI).call(this,t):console.error("Invalid message",{message:t})},Am=new WeakSet,XI=async function(t,n){try{let r=await te(this,pc).call(this,t,n);return{result:r!=null?r:null}}catch(r){if(r instanceof xe)return r.toResult();if(r instanceof u.ZodError)return xe.invalidParams(r.format()).toResult();let i;(r instanceof Error||typeof r=="object"&&r!=null&&"message"in r&&typeof r.message=="string")&&(i=r.message);try{return xe.internalError(i?JSON.parse(i):{}).toResult()}catch(o){return xe.internalError({details:i}).toResult()}}},zm=new WeakSet,JI=async function(t,n){try{return await te(this,gc).call(this,t,n),{result:null}}catch(r){if(r instanceof xe)return r.toResult();if(r instanceof u.ZodError)return xe.invalidParams(r.format()).toResult();let i;(r instanceof Error||typeof r=="object"&&r!=null&&"message"in r&&typeof r.message=="string")&&(i=r.message);try{return xe.internalError(i?JSON.parse(i):{}).toResult()}catch(o){return xe.internalError({details:i}).toResult()}}},Cm=new WeakSet,YI=function(t){let n=te(this,os).get(t.id);n?("result"in t?n.resolve(t.result):"error"in t&&n.reject(t.error),te(this,os).delete(t.id)):console.error("Got response to unknown request",t.id)},xo=new WeakSet,mc=async function(t){return kn(this,ss,te(this,ss).then(async()=>{let n=te(this,as).writable.getWriter();try{await n.write(t)}finally{n.releaseLock()}}).catch(n=>{console.error("ACP write error:",n)})),te(this,ss)};var xe=class extends Error{constructor(n,r,i){super(r);Sc(this,"code");Sc(this,"data");this.code=n,this.name="RequestError",this.data=i}static parseError(n,r){return new xe(-32700,`Parse error${r?`: ${r}`:""}`,n)}static invalidRequest(n,r){return new xe(-32600,`Invalid request${r?`: ${r}`:""}`,n)}static methodNotFound(n){return new xe(-32601,`"Method not found": ${n}`,{method:n})}static invalidParams(n,r){return new xe(-32602,`Invalid params${r?`: ${r}`:""}`,n)}static internalError(n,r){return new xe(-32603,`Internal error${r?`: ${r}`:""}`,n)}static authRequired(n,r){return new xe(-32e3,`Authentication required${r?`: ${r}`:""}`,n)}static resourceNotFound(n){return new xe(-32002,`Resource not found${n?`: ${n}`:""}`,n&&{uri:n})}toResult(){return{error:{code:this.code,message:this.message,data:this.data}}}toErrorResponse(){return{code:this.code,message:this.message,data:this.data}}};var Mn=require("obsidian");var cs=class{static toToolCallContent(t){if(!t)return;let n=[];for(let r of t)r.type==="diff"?n.push({type:"diff",path:r.path,newText:r.newText,oldText:r.oldText}):r.type==="terminal"&&n.push({type:"terminal",terminalId:r.terminalId});return n.length>0?n:void 0}static toAcpContentBlock(t){switch(t.type){case"text":return{type:"text",text:t.text};case"image":return{type:"image",data:t.data,mimeType:t.mimeType};case"resource":return{type:"resource",resource:{uri:t.resource.uri,mimeType:t.resource.mimeType,text:t.resource.text},annotations:t.annotations}}}};var QI=require("child_process");var Oi=require("obsidian");var j_=require("child_process"),P_=require("obsidian"),km=null;function oL(){if(!P_.Platform.isWin)return null;if(km!==null)return km;try{let e=(0,j_.execSync)('reg query "HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment" /v Path',{encoding:"utf8",windowsHide:!0}),t=(0,j_.execSync)('reg query "HKCU\\Environment" /v Path',{encoding:"utf8",windowsHide:!0}),n=KI(e),r=KI(t),i=[];return r&&i.push(r),n&&i.push(n),km=i.join(";"),km}catch(e){return null}}function KI(e){let t=e.split(`
|
|
`);for(let n of t){let r=n.trim();if(r.toLowerCase().startsWith("path")){let i=r.match(/Path\s+REG_(?:EXPAND_)?SZ\s+(.+)/i);if(i)return i[1].trim()}}return null}function Tm(e){if(!P_.Platform.isWin)return e;let t=oL();if(!t)return e;let r=(e.PATH||"").split(";").filter(a=>a.length>0),i=t.split(";").filter(a=>a.length>0),o=[...r];for(let a of i)o.some(s=>s.toLowerCase()===a.toLowerCase())||o.push(a);return{...e,PATH:o.join(";")}}function us(e){let t=e.replace(/%/g,"%%").replace(/"/g,'""');return/[\s&()<>|^]/.test(e)?`"${t}"`:t}var Im=class{constructor(t){this.terminals=new Map;this.logger=new Pe(t),this.plugin=t}createTerminal(t){var m,l,f;let n=crypto.randomUUID();if(!Oi.Platform.isDesktopApp)throw new Error("Agent Client is only available on desktop");let r={...process.env};if(Oi.Platform.isWin&&!this.plugin.settings.windowsWslMode&&(r=Tm(r)),t.env)for(let p of t.env)r[p.name]=p.value;let i=t.command,o=t.args||[];if(Oi.Platform.isWin&&this.plugin.settings.windowsWslMode){let p=this.plugin.settings.nodePath&&xa(this.plugin.settings.nodePath.trim())||void 0,h=Ad(i,o,t.cwd||process.cwd(),this.plugin.settings.windowsWslDistribution,p);i=h.command,o=h.args,this.logger.log(`[Terminal ${n}] Using WSL mode:`,this.plugin.settings.windowsWslDistribution||"default")}else if(Oi.Platform.isMacOS||Oi.Platform.isLinux){let p=Oi.Platform.isMacOS?"/bin/zsh":"/bin/bash",h;o.length>0?h=[i,...o].map(y=>"'"+y.replace(/'/g,"'\\''")+"'").join(" "):h=i,i=p,o=["-l","-c",h]}else Oi.Platform.isWin&&o.length>0&&(i=us(i),o=o.map(us));this.logger.log(`[Terminal ${n}] Creating terminal:`,{command:i,args:o,cwd:t.cwd});let a=Oi.Platform.isWin&&!this.plugin.settings.windowsWslMode,s={cwd:t.cwd||void 0,env:r,stdio:["pipe","pipe","pipe"],shell:a},c=(0,QI.spawn)(i,o,s),d={id:n,process:c,output:"",exitStatus:null,outputByteLimit:(m=t.outputByteLimit)!=null?m:void 0,waitPromises:[]};return c.on("error",p=>{this.logger.log(`[Terminal ${n}] Process error:`,p.message);let h={exitCode:127,signal:null};d.exitStatus=h,d.waitPromises.forEach(y=>y(h)),d.waitPromises=[]}),(l=c.stdout)==null||l.on("data",p=>{let h=p.toString();this.logger.log(`[Terminal ${n}] stdout:`,h),this.appendOutput(d,h)}),(f=c.stderr)==null||f.on("data",p=>{let h=p.toString();this.logger.log(`[Terminal ${n}] stderr:`,h),this.appendOutput(d,h)}),c.on("exit",(p,h)=>{this.logger.log(`[Terminal ${n}] Process exited with code: ${p}, signal: ${h}`);let y={exitCode:p,signal:h};d.exitStatus=y,d.waitPromises.forEach(x=>x(y)),d.waitPromises=[]}),this.terminals.set(n,d),n}appendOutput(t,n){if(t.output+=n,t.outputByteLimit&&Buffer.byteLength(t.output,"utf8")>t.outputByteLimit){let r=Buffer.from(t.output,"utf8"),i=r.subarray(r.length-t.outputByteLimit);t.output=i.toString("utf8")}}getOutput(t){let n=this.terminals.get(t);return n?{output:n.output,truncated:n.outputByteLimit?Buffer.byteLength(n.output,"utf8")>=n.outputByteLimit:!1,exitStatus:n.exitStatus}:null}waitForExit(t){let n=this.terminals.get(t);return n?n.exitStatus?Promise.resolve(n.exitStatus):new Promise(r=>{n.waitPromises.push(r)}):Promise.reject(new Error(`Terminal ${t} not found`))}killTerminal(t){let n=this.terminals.get(t);return n?(n.exitStatus||n.process.kill("SIGTERM"),!0):!1}releaseTerminal(t){let n=this.terminals.get(t);return n?(this.logger.log(`[Terminal ${t}] Releasing terminal`),n.exitStatus||n.process.kill("SIGTERM"),n.cleanupTimeout=window.setTimeout(()=>{this.logger.log(`[Terminal ${t}] Cleaning up terminal after grace period`),this.terminals.delete(t)},3e4),!0):!1}killAllTerminals(){this.logger.log(`Killing ${this.terminals.size} running terminals...`),this.terminals.forEach((t,n)=>{t.cleanupTimeout&&window.clearTimeout(t.cleanupTimeout),t.exitStatus||(this.logger.log(`Killing terminal ${n}`),this.killTerminal(n))}),this.terminals.clear()}};var Nm=class{constructor(t){this.plugin=t;this.connection=null;this.agentProcess=null;this.sessionUpdateCallback=null;this.errorCallback=null;this.currentConfig=null;this.isInitializedFlag=!1;this.currentAgentId=null;this.autoAllowPermissions=!1;this.currentMessageId=null;this.pendingPermissionRequests=new Map;this.pendingPermissionQueue=[];this.logger=new Pe(t),this.updateMessage=()=>{},this.terminalManager=new Im(t)}setUpdateMessageCallback(t){this.updateMessage=t}async initialize(t){var y,x,v,g,b,S,$,M,z,q,A,T,I,G,H,V,C,P,ee,re,we;if(this.logger.log("[AcpAdapter] Starting initialization with config:",t),this.logger.log(`[AcpAdapter] Current state - process: ${!!this.agentProcess}, PID: ${(y=this.agentProcess)==null?void 0:y.pid}`),this.agentProcess&&(this.logger.log(`[AcpAdapter] Killing existing process (PID: ${this.agentProcess.pid})`),this.agentProcess.kill(),this.agentProcess=null),this.connection&&(this.logger.log("[AcpAdapter] Cleaning up existing connection"),this.connection=null),this.currentConfig=t,this.autoAllowPermissions=this.plugin.settings.autoAllowPermissions,!t.command||t.command.trim().length===0)throw new Error(`Command not configured for agent "${t.displayName}" (${t.id}). Please configure the agent command in settings.`);let n=t.command.trim(),r=t.args.length>0?[...t.args]:[];this.logger.log(`[AcpAdapter] Active agent: ${t.displayName} (${t.id})`),this.logger.log("[AcpAdapter] Command:",n),this.logger.log("[AcpAdapter] Args:",r.length>0?r.join(" "):"(none)");let i={...process.env,...t.env||{}};if(Mn.Platform.isWin&&!this.plugin.settings.windowsWslMode&&(i=Tm(i)),this.plugin.settings.nodePath&&this.plugin.settings.nodePath.trim().length>0){let Z=xa(this.plugin.settings.nodePath.trim());if(Z){let B=Mn.Platform.isWin?";":":";i.PATH=i.PATH?`${Z}${B}${i.PATH}`:Z}}this.logger.log("[AcpAdapter] Starting agent process in directory:",t.workingDirectory);let o=n,a=r;if(Mn.Platform.isWin&&this.plugin.settings.windowsWslMode){let Z=this.plugin.settings.nodePath&&xa(this.plugin.settings.nodePath.trim())||void 0,B=Ad(n,r,t.workingDirectory,this.plugin.settings.windowsWslDistribution,Z);o=B.command,a=B.args,this.logger.log("[AcpAdapter] Using WSL mode:",this.plugin.settings.windowsWslDistribution||"default","with command:",o,a)}else if(Mn.Platform.isMacOS||Mn.Platform.isLinux){let Z=Mn.Platform.isMacOS?"/bin/zsh":"/bin/bash",B=[n,...r].map(ye=>"'"+ye.replace(/'/g,"'\\''")+"'").join(" "),Ie=B;if(this.plugin.settings.nodePath&&this.plugin.settings.nodePath.trim().length>0){let ye=xa(this.plugin.settings.nodePath.trim());ye&&(Ie=`export PATH='${ye.replace(/'/g,"'\\''")}':"$PATH"; ${B}`)}o=Z,a=["-l","-c",Ie],this.logger.log("[AcpAdapter] Using login shell:",Z,"with command:",Ie)}else Mn.Platform.isWin&&(o=us(n),a=r.map(us),this.logger.log("[AcpAdapter] Using Windows shell with command:",o,a));let s=Mn.Platform.isWin&&!this.plugin.settings.windowsWslMode,c=(0,WI.spawn)(o,a,{stdio:["pipe","pipe","pipe"],env:i,cwd:t.workingDirectory,shell:s});this.agentProcess=c;let d=`${t.displayName} (${t.id})`;if(c.on("spawn",()=>{this.logger.log(`[AcpAdapter] ${d} process spawned successfully, PID:`,c.pid)}),c.on("error",Z=>{var Ie;this.logger.error(`[AcpAdapter] ${d} process error:`,Z);let B={type:"spawn_failed",agentId:t.id,errorCode:Z.code,originalError:Z,...this.getErrorInfo(Z,n,d)};(Ie=this.errorCallback)==null||Ie.call(this,B)}),c.on("exit",(Z,B)=>{var Ie;if(this.logger.log(`[AcpAdapter] ${d} process exited with code:`,Z,"signal:",B),Z===127){this.logger.error(`[AcpAdapter] Command not found: ${n}`);let ye={type:"command_not_found",agentId:t.id,exitCode:Z,title:"Command Not Found",message:`The command "${n}" could not be found. Please check the path configuration for ${d}.`,suggestion:this.getCommandNotFoundSuggestion(n)};(Ie=this.errorCallback)==null||Ie.call(this,ye)}}),c.on("close",(Z,B)=>{this.logger.log(`[AcpAdapter] ${d} process closed with code:`,Z,"signal:",B)}),(x=c.stderr)==null||x.setEncoding("utf8"),(v=c.stderr)==null||v.on("data",Z=>{this.logger.log(`[AcpAdapter] ${d} stderr:`,Z)}),!c.stdin||!c.stdout)throw new Error("Agent process stdin/stdout not available");let m=c.stdin,l=c.stdout,f=new WritableStream({write(Z){m.write(Z)},close(){m.end()}}),p=new ReadableStream({start(Z){l.on("data",B=>{Z.enqueue(B)}),l.on("end",()=>{Z.close()})}});this.logger.log("[AcpAdapter] Using working directory:",t.workingDirectory);let h=HI(f,p);this.connection=new xm(()=>this,h);try{this.logger.log("[AcpAdapter] Starting ACP initialization...");let Z=await this.connection.initialize({protocolVersion:AI,clientCapabilities:{fs:{readTextFile:!1,writeTextFile:!1},terminal:!0},clientInfo:{name:"obsidian-agent-client",title:"Agent Client for Obsidian",version:this.plugin.manifest.version}});this.logger.log(`[AcpAdapter] \u2705 Connected to agent (protocol v${Z.protocolVersion})`),this.logger.log("[AcpAdapter] Auth methods:",Z.authMethods),this.logger.log("[AcpAdapter] Agent capabilities:",Z.agentCapabilities),this.isInitializedFlag=!0,this.currentAgentId=t.id;let B=(g=Z.agentCapabilities)==null?void 0:g.promptCapabilities,Ie=(b=Z.agentCapabilities)==null?void 0:b.mcpCapabilities,ye=(S=Z.agentCapabilities)==null?void 0:S.sessionCapabilities;return{protocolVersion:Z.protocolVersion,authMethods:Z.authMethods||[],promptCapabilities:{image:($=B==null?void 0:B.image)!=null?$:!1,audio:(M=B==null?void 0:B.audio)!=null?M:!1,embeddedContext:(z=B==null?void 0:B.embeddedContext)!=null?z:!1},agentCapabilities:{loadSession:(A=(q=Z.agentCapabilities)==null?void 0:q.loadSession)!=null?A:!1,sessionCapabilities:ye?{resume:(T=ye.resume)!=null?T:void 0,fork:(I=ye.fork)!=null?I:void 0,list:(G=ye.list)!=null?G:void 0}:void 0,mcpCapabilities:Ie?{http:(H=Ie.http)!=null?H:!1,sse:(V=Ie.sse)!=null?V:!1}:void 0,promptCapabilities:{image:(C=B==null?void 0:B.image)!=null?C:!1,audio:(P=B==null?void 0:B.audio)!=null?P:!1,embeddedContext:(ee=B==null?void 0:B.embeddedContext)!=null?ee:!1}},agentInfo:Z.agentInfo?{name:Z.agentInfo.name,title:(re=Z.agentInfo.title)!=null?re:void 0,version:(we=Z.agentInfo.version)!=null?we:void 0}:void 0}}catch(Z){throw this.logger.error("[AcpAdapter] Initialization Error:",Z),this.isInitializedFlag=!1,this.currentAgentId=null,Z}}async newSession(t){if(!this.connection)throw new Error("Connection not initialized. Call initialize() first.");try{this.logger.log("[AcpAdapter] Creating new session...");let n=t;Mn.Platform.isWin&&this.plugin.settings.windowsWslMode&&(n=Ci(t)),this.logger.log("[AcpAdapter] Using working directory:",n);let r=await this.connection.newSession({cwd:n,mcpServers:[]});this.logger.log(`[AcpAdapter] \u{1F4DD} Created session: ${r.sessionId}`),this.logger.log("[AcpAdapter] NewSessionResponse:",JSON.stringify(r,null,2));let i;r.modes&&(i={availableModes:r.modes.availableModes.map(a=>{var s;return{id:a.id,name:a.name,description:(s=a.description)!=null?s:void 0}}),currentModeId:r.modes.currentModeId},this.logger.log(`[AcpAdapter] Session modes: ${i.availableModes.map(a=>a.id).join(", ")} (current: ${i.currentModeId})`));let o;return r.models&&(o={availableModels:r.models.availableModels.map(a=>{var s;return{modelId:a.modelId,name:a.name,description:(s=a.description)!=null?s:void 0}}),currentModelId:r.models.currentModelId},this.logger.log(`[AcpAdapter] Session models: ${o.availableModels.map(a=>a.modelId).join(", ")} (current: ${o.currentModelId})`)),{sessionId:r.sessionId,modes:i,models:o}}catch(n){throw this.logger.error("[AcpAdapter] New Session Error:",n),n}}async authenticate(t){if(!this.connection)throw new Error("Connection not initialized. Call initialize() first.");try{return await this.connection.authenticate({methodId:t}),this.logger.log("[AcpAdapter] \u2705 authenticate ok:",t),!0}catch(n){return this.logger.error("[AcpAdapter] Authentication Error:",n),!1}}async sendPrompt(t,n){if(!this.connection)throw new Error("Connection not initialized. Call initialize() first.");this.resetCurrentMessage();try{let r=n.map(o=>cs.toAcpContentBlock(o));this.logger.log(`[AcpAdapter] Sending prompt with ${n.length} content blocks`);let i=await this.connection.prompt({sessionId:t,prompt:r});this.logger.log(`[AcpAdapter] Agent completed with: ${i.stopReason}`)}catch(r){this.logger.error("[AcpAdapter] Prompt Error:",r);let i=r;if(i&&typeof i=="object"&&"code"in i&&i.code===-32603&&"data"in i){let o=i.data;if(o&&typeof o=="object"&&"details"in o&&typeof o.details=="string"){if(o.details.includes("empty response text")){this.logger.log("[AcpAdapter] Empty response text error - ignoring");return}if(o.details.includes("user aborted")){this.logger.log("[AcpAdapter] User aborted request - ignoring");return}}}throw r}}async cancel(t){if(!this.connection){this.logger.warn("[AcpAdapter] Cannot cancel: no connection");return}try{this.logger.log("[AcpAdapter] Sending session/cancel notification..."),await this.connection.cancel({sessionId:t}),this.logger.log("[AcpAdapter] Cancellation request sent successfully"),this.cancelAllOperations()}catch(n){this.logger.error("[AcpAdapter] Failed to send cancellation:",n),this.cancelAllOperations()}}disconnect(){return this.logger.log("[AcpAdapter] Disconnecting..."),this.cancelAllOperations(),this.agentProcess&&(this.logger.log(`[AcpAdapter] Killing agent process (PID: ${this.agentProcess.pid})`),this.agentProcess.kill(),this.agentProcess=null),this.connection=null,this.currentConfig=null,this.isInitializedFlag=!1,this.currentAgentId=null,this.logger.log("[AcpAdapter] Disconnected"),Promise.resolve()}isInitialized(){return this.isInitializedFlag&&this.connection!==null&&this.agentProcess!==null}getCurrentAgentId(){return this.currentAgentId}async setSessionMode(t,n){if(!this.connection)throw new Error("Connection not initialized. Call initialize() first.");this.logger.log(`[AcpAdapter] Setting session mode to: ${n} for session: ${t}`);try{await this.connection.setSessionMode({sessionId:t,modeId:n}),this.logger.log(`[AcpAdapter] Session mode set to: ${n}`)}catch(r){throw this.logger.error("[AcpAdapter] Failed to set session mode:",r),r}}async setSessionModel(t,n){if(!this.connection)throw new Error("Connection not initialized. Call initialize() first.");this.logger.log(`[AcpAdapter] Setting session model to: ${n} for session: ${t}`);try{await this.connection.unstable_setSessionModel({sessionId:t,modelId:n}),this.logger.log(`[AcpAdapter] Session model set to: ${n}`)}catch(r){throw this.logger.error("[AcpAdapter] Failed to set session model:",r),r}}onSessionUpdate(t){this.sessionUpdateCallback=t}onError(t){this.errorCallback=t}respondToPermission(t,n){if(!this.connection)throw new Error("ACP connection not initialized. Call initialize() first.");return this.logger.log("[AcpAdapter] Responding to permission request:",t,"with option:",n),this.handlePermissionResponse(t,n),Promise.resolve()}getErrorInfo(t,n,r){return t.code==="ENOENT"?{title:"Command Not Found",message:`The command "${n}" could not be found. Please check the path configuration for ${r}.`,suggestion:this.getCommandNotFoundSuggestion(n)}:{title:"Agent Startup Error",message:`Failed to start ${r}: ${t.message}`,suggestion:"Please check the agent configuration in settings."}}getCommandNotFoundSuggestion(t){var r;let n=((r=t.split("/").pop())==null?void 0:r.split("\\").pop())||"command";return Mn.Platform.isWin?`1. Verify the agent path: Use "where ${n}" in Command Prompt to find the correct path. 2. If the agent requires Node.js, also check that Node.js path is correctly set in General Settings (use "where node" to find it).`:`1. Verify the agent path: Use "which ${n}" in Terminal to find the correct path. 2. If the agent requires Node.js, also check that Node.js path is correctly set in General Settings (use "which node" to find it).`}sessionUpdate(t){var i,o,a,s,c,d,m,l,f,p;let n=t.update,r=t.sessionId;switch(this.logger.log("[AcpAdapter] sessionUpdate:",{sessionId:r,update:n}),n.sessionUpdate){case"agent_message_chunk":n.content.type==="text"&&((i=this.sessionUpdateCallback)==null||i.call(this,{type:"agent_message_chunk",sessionId:r,text:n.content.text}));break;case"agent_thought_chunk":n.content.type==="text"&&((o=this.sessionUpdateCallback)==null||o.call(this,{type:"agent_thought_chunk",sessionId:r,text:n.content.text}));break;case"user_message_chunk":n.content.type==="text"&&((a=this.sessionUpdateCallback)==null||a.call(this,{type:"user_message_chunk",sessionId:r,text:n.content.text}));break;case"tool_call":case"tool_call_update":{(m=this.sessionUpdateCallback)==null||m.call(this,{type:n.sessionUpdate,sessionId:r,toolCallId:n.toolCallId,title:(s=n.title)!=null?s:void 0,status:n.status||"pending",kind:(c=n.kind)!=null?c:void 0,content:cs.toToolCallContent(n.content),locations:(d=n.locations)!=null?d:void 0});break}case"plan":(l=this.sessionUpdateCallback)==null||l.call(this,{type:"plan",sessionId:r,entries:n.entries});break;case"available_commands_update":{this.logger.log("[AcpAdapter] available_commands_update, commands:",n.availableCommands);let h=(n.availableCommands||[]).map(y=>{var x,v;return{name:y.name,description:y.description,hint:(v=(x=y.input)==null?void 0:x.hint)!=null?v:null}});(f=this.sessionUpdateCallback)==null||f.call(this,{type:"available_commands_update",sessionId:r,commands:h});break}case"current_mode_update":{this.logger.log(`[AcpAdapter] current_mode_update: ${n.currentModeId}`),(p=this.sessionUpdateCallback)==null||p.call(this,{type:"current_mode_update",sessionId:r,currentModeId:n.currentModeId});break}}return Promise.resolve()}resetCurrentMessage(){this.currentMessageId=null}handlePermissionResponse(t,n){let r=this.pendingPermissionRequests.get(t);if(!r)return;let{resolve:i,toolCallId:o,options:a}=r;this.updateMessage(o,{type:"tool_call",toolCallId:o,permissionRequest:{requestId:t,options:a,selectedOptionId:n,isActive:!1}}),i({outcome:{outcome:"selected",optionId:n}}),this.pendingPermissionRequests.delete(t),this.pendingPermissionQueue=this.pendingPermissionQueue.filter(s=>s.requestId!==t),this.activateNextPermission()}cancelAllOperations(){this.cancelPendingPermissionRequests(),this.terminalManager.killAllTerminals()}activateNextPermission(){if(this.pendingPermissionQueue.length===0)return;let t=this.pendingPermissionQueue[0],n=this.pendingPermissionRequests.get(t.requestId);n&&this.updateMessage(t.toolCallId,{type:"tool_call",toolCallId:t.toolCallId,permissionRequest:{requestId:t.requestId,options:n.options,isActive:!0}})}async requestPermission(t){var d,m,l,f;if(this.logger.log("[AcpAdapter] Permission request received:",t),this.autoAllowPermissions){let p=t.options.find(h=>h.kind==="allow_once"||h.kind==="allow_always"||!h.kind&&h.name.toLowerCase().includes("allow"))||t.options[0];return this.logger.log("[AcpAdapter] Auto-allowing permission request:",p),Promise.resolve({outcome:{outcome:"selected",optionId:p.optionId}})}let n=crypto.randomUUID(),r=((d=t.toolCall)==null?void 0:d.toolCallId)||crypto.randomUUID(),i=t.sessionId,o=t.options.map(p=>{let h=p.kind==="reject_always"?"reject_once":p.kind,y=h||(p.name.toLowerCase().includes("allow")?"allow_once":"reject_once");return{optionId:p.optionId,name:p.name,kind:y}}),a=this.pendingPermissionQueue.length===0,s={requestId:n,options:o,isActive:a};this.pendingPermissionQueue.push({requestId:n,toolCallId:r,options:o});let c=t.toolCall;return(f=this.sessionUpdateCallback)==null||f.call(this,{type:"tool_call",sessionId:i,toolCallId:r,title:(m=c==null?void 0:c.title)!=null?m:void 0,status:(c==null?void 0:c.status)||"pending",kind:(l=c==null?void 0:c.kind)!=null?l:void 0,content:cs.toToolCallContent(c==null?void 0:c.content),permissionRequest:s}),new Promise(p=>{this.pendingPermissionRequests.set(n,{resolve:p,toolCallId:r,options:o})})}cancelPendingPermissionRequests(){this.logger.log(`[AcpAdapter] Cancelling ${this.pendingPermissionRequests.size} pending permission requests`),this.pendingPermissionRequests.forEach(({resolve:t,toolCallId:n,options:r},i)=>{this.updateMessage(n,{type:"tool_call",toolCallId:n,status:"completed",permissionRequest:{requestId:i,options:r,isCancelled:!0,isActive:!1}}),t({outcome:{outcome:"cancelled"}})}),this.pendingPermissionRequests.clear(),this.pendingPermissionQueue=[]}readTextFile(t){return Promise.resolve({content:""})}writeTextFile(t){return Promise.resolve({})}createTerminal(t){var i;this.logger.log("[AcpAdapter] createTerminal called with params:",t);let n={...t,cwd:t.cwd||((i=this.currentConfig)==null?void 0:i.workingDirectory)||""};this.logger.log("[AcpAdapter] Using modified params:",n);let r=this.terminalManager.createTerminal(n);return Promise.resolve({terminalId:r})}terminalOutput(t){let n=this.terminalManager.getOutput(t.terminalId);if(!n)throw new Error(`Terminal ${t.terminalId} not found`);return Promise.resolve(n)}async waitForTerminalExit(t){return await this.terminalManager.waitForExit(t.terminalId)}killTerminal(t){if(!this.terminalManager.killTerminal(t.terminalId))throw new Error(`Terminal ${t.terminalId} not found`);return Promise.resolve({})}releaseTerminal(t){return this.terminalManager.releaseTerminal(t.terminalId)||this.logger.log(`[AcpAdapter] releaseTerminal: Terminal ${t.terminalId} not found (may have been already cleaned up)`),Promise.resolve({})}async listSessions(t,n){var r;if(!this.connection)throw new Error("ACP connection not initialized. Call initialize() first.");try{this.logger.log("[AcpAdapter] Listing sessions...");let i=await this.connection.unstable_listSessions({cwd:t!=null?t:null,cursor:n!=null?n:null});return this.logger.log(`[AcpAdapter] Found ${i.sessions.length} sessions`),{sessions:i.sessions.map(o=>{var a,s;return{sessionId:o.sessionId,cwd:o.cwd,title:(a=o.title)!=null?a:void 0,updatedAt:(s=o.updatedAt)!=null?s:void 0}}),nextCursor:(r=i.nextCursor)!=null?r:void 0}}catch(i){throw this.logger.error("[AcpAdapter] List Sessions Error:",i),i}}async loadSession(t,n){if(!this.connection)throw new Error("ACP connection not initialized. Call initialize() first.");try{this.logger.log(`[AcpAdapter] Loading session: ${t}...`);let r=await this.connection.loadSession({sessionId:t,cwd:n,mcpServers:[]});this.logger.log(`[AcpAdapter] Session loaded: ${t}`);let i;r.modes&&(i={availableModes:r.modes.availableModes.map(a=>{var s;return{id:a.id,name:a.name,description:(s=a.description)!=null?s:void 0}}),currentModeId:r.modes.currentModeId});let o;return r.models&&(o={availableModels:r.models.availableModels.map(a=>{var s;return{modelId:a.modelId,name:a.name,description:(s=a.description)!=null?s:void 0}}),currentModelId:r.models.currentModelId}),{sessionId:t,modes:i,models:o}}catch(r){throw this.logger.error("[AcpAdapter] Load Session Error:",r),r}}async resumeSession(t,n){if(!this.connection)throw new Error("ACP connection not initialized. Call initialize() first.");try{this.logger.log(`[AcpAdapter] Resuming session: ${t}...`);let r=await this.connection.unstable_resumeSession({sessionId:t,cwd:n,mcpServers:[]});this.logger.log(`[AcpAdapter] Session resumed: ${t}`);let i;r.modes&&(i={availableModes:r.modes.availableModes.map(a=>{var s;return{id:a.id,name:a.name,description:(s=a.description)!=null?s:void 0}}),currentModeId:r.modes.currentModeId});let o;return r.models&&(o={availableModels:r.models.availableModels.map(a=>{var s;return{modelId:a.modelId,name:a.name,description:(s=a.description)!=null?s:void 0}}),currentModelId:r.models.currentModelId}),{sessionId:t,modes:i,models:o}}catch(r){throw this.logger.error("[AcpAdapter] Resume Session Error:",r),r}}async forkSession(t,n){if(!this.connection)throw new Error("ACP connection not initialized. Call initialize() first.");try{this.logger.log(`[AcpAdapter] Forking session: ${t}...`);let r=await this.connection.unstable_forkSession({sessionId:t,cwd:n,mcpServers:[]}),i=r.sessionId;this.logger.log(`[AcpAdapter] Session forked: ${t} -> ${i}`);let o;r.modes&&(o={availableModes:r.modes.availableModes.map(s=>{var c;return{id:s.id,name:s.name,description:(c=s.description)!=null?c:void 0}}),currentModeId:r.modes.currentModeId});let a;return r.models&&(a={availableModels:r.models.availableModels.map(s=>{var c;return{modelId:s.modelId,name:s.name,description:(c=s.description)!=null?c:void 0}}),currentModelId:r.models.currentModelId}),{sessionId:i,modes:o,models:a}}catch(r){throw this.logger.error("[AcpAdapter] Fork Session Error:",r),r}}};var se={claude:{id:"claude-code-acp",displayName:"Claude Code",apiKey:"",command:"",args:[],env:[]},codex:{id:"codex-acp",displayName:"Codex",apiKey:"",command:"",args:[],env:[]},gemini:{id:"gemini-cli",displayName:"Gemini CLI",apiKey:"",command:"",args:["--experimental-acp"],env:[]},customAgents:[],defaultAgentId:"claude-code-acp",autoAllowPermissions:!1,autoMentionActiveNote:!0,debugMode:!1,nodePath:"",exportSettings:{defaultFolder:"Agent Client",filenameTemplate:"agent_client_{date}_{time}",autoExportOnNewChat:!1,autoExportOnCloseChat:!1,openFileAfterExport:!0,includeImages:!0,imageLocation:"obsidian",imageCustomFolder:"Agent Client",frontmatterTag:"agent-client"},windowsWslMode:!1,windowsWslDistribution:void 0,sendMessageShortcut:"enter",chatViewLocation:"right-tab",displaySettings:{autoCollapseDiffs:!1,diffCollapseThreshold:10,maxNoteLength:1e4,maxSelectionLength:1e4,showEmojis:!0},savedSessions:[]},vc=class extends pt.Plugin{constructor(){super(...arguments);this._adapters=new Map;this._lastActiveChatViewId=null}async onload(){await this.loadSettings(),this.settingsStore=Mk(this.settings,this),this.registerView(vr,r=>new Dl(r,this)),this.addRibbonIcon("bot-message-square","Open agent client",r=>{this.activateView()}).addClass("agent-client-ribbon-icon"),this.addCommand({id:"open-chat-view",name:"Open agent chat",callback:()=>{this.activateView()}}),this.addCommand({id:"focus-next-chat-view",name:"Focus next chat view",callback:()=>{this.focusChatView("next")}}),this.addCommand({id:"focus-previous-chat-view",name:"Focus previous chat view",callback:()=>{this.focusChatView("previous")}}),this.addCommand({id:"open-new-chat-view",name:"Open new chat view",callback:()=>{this.openNewChatViewWithAgent(this.settings.defaultAgentId)}}),this.registerAgentCommands(),this.registerPermissionCommands(),this.registerBroadcastCommands(),this.addSettingTab(new Cd(this.app,this)),this.registerEvent(this.app.workspace.on("quit",()=>{for(let[r,i]of this._adapters)i.disconnect().catch(o=>{console.warn(`[AgentClient] Quit cleanup error for view ${r}:`,o)});this._adapters.clear()}))}onunload(){}getOrCreateAdapter(n){let r=this._adapters.get(n);return r||(r=new Nm(this),this._adapters.set(n,r)),r}async removeAdapter(n){let r=this._adapters.get(n);if(r){try{await r.disconnect()}catch(i){console.warn(`[AgentClient] Failed to disconnect adapter for view ${n}:`,i)}this._adapters.delete(n)}this._lastActiveChatViewId===n&&(this._lastActiveChatViewId=null)}get lastActiveChatViewId(){return this._lastActiveChatViewId}setLastActiveChatViewId(n){this._lastActiveChatViewId=n}async activateView(){let{workspace:n}=this.app,r=null,i=n.getLeavesOfType(vr);i.length>0?this._lastActiveChatViewId?r=i.find(o=>{var a;return((a=o.view)==null?void 0:a.viewId)===this._lastActiveChatViewId})||i[0]:r=i[0]:(r=this.createNewChatLeaf(!1),r&&await r.setViewState({type:vr,active:!0})),r&&(await n.revealLeaf(r),this.focusTextarea(r))}focusTextarea(n){var i;let r=(i=n.view)==null?void 0:i.containerEl;r&&window.setTimeout(()=>{let o=r.querySelector("textarea.agent-client-chat-input-textarea");o instanceof HTMLTextAreaElement&&o.focus()},50)}focusChatView(n){let{workspace:r}=this.app,i=r.getLeavesOfType(vr);if(i.length===0)return;if(i.length===1){r.revealLeaf(i[0]),this.focusTextarea(i[0]);return}let o=0;if(this._lastActiveChatViewId){let c=i.findIndex(d=>{var m;return((m=d.view)==null?void 0:m.viewId)===this._lastActiveChatViewId});c!==-1&&(o=c)}let a=n==="next"?(o+1)%i.length:(o-1+i.length)%i.length,s=i[a];r.revealLeaf(s),this.focusTextarea(s)}createNewChatLeaf(n){let{workspace:r}=this.app;switch(this.settings.chatViewLocation){case"right-tab":return r.getRightLeaf(n);case"editor-tab":return r.getLeaf("tab");case"editor-split":return r.getLeaf("split");default:return r.getRightLeaf(n)}}async openNewChatViewWithAgent(n){var o;let r=this.createNewChatLeaf(!0);if(!r){console.warn("[AgentClient] Failed to create new leaf");return}await r.setViewState({type:vr,active:!0,state:{initialAgentId:n}}),await this.app.workspace.revealLeaf(r);let i=(o=r.view)==null?void 0:o.containerEl;i&&window.setTimeout(()=>{let a=i.querySelector("textarea.agent-client-chat-input-textarea");a instanceof HTMLTextAreaElement&&a.focus()},0)}getAvailableAgents(){return[{id:this.settings.claude.id,displayName:this.settings.claude.displayName||this.settings.claude.id},{id:this.settings.codex.id,displayName:this.settings.codex.displayName||this.settings.codex.id},{id:this.settings.gemini.id,displayName:this.settings.gemini.displayName||this.settings.gemini.id},...this.settings.customAgents.map(n=>({id:n.id,displayName:n.displayName||n.id}))]}async openChatWithAgent(n){await this.activateView(),this.app.workspace.trigger("agent-client:new-chat-requested",n)}registerAgentCommands(){let n=this.getAvailableAgents();for(let r of n)this.addCommand({id:`open-chat-with-${r.id}`,name:`New chat with ${r.displayName}`,callback:async()=>{await this.openChatWithAgent(r.id)}})}registerPermissionCommands(){this.addCommand({id:"approve-active-permission",name:"Approve active permission",callback:async()=>{await this.activateView(),this.app.workspace.trigger("agent-client:approve-active-permission",this._lastActiveChatViewId)}}),this.addCommand({id:"reject-active-permission",name:"Reject active permission",callback:async()=>{await this.activateView(),this.app.workspace.trigger("agent-client:reject-active-permission",this._lastActiveChatViewId)}}),this.addCommand({id:"toggle-auto-mention",name:"Toggle auto-mention",callback:async()=>{await this.activateView(),this.app.workspace.trigger("agent-client:toggle-auto-mention",this._lastActiveChatViewId)}}),this.addCommand({id:"cancel-current-message",name:"Cancel current message",callback:()=>{this.app.workspace.trigger("agent-client:cancel-message",this._lastActiveChatViewId)}})}registerBroadcastCommands(){this.addCommand({id:"broadcast-prompt",name:"Broadcast prompt",callback:()=>{this.broadcastPrompt()}}),this.addCommand({id:"broadcast-send",name:"Broadcast send",callback:()=>{this.broadcastSend()}}),this.addCommand({id:"broadcast-cancel",name:"Broadcast cancel",callback:()=>{this.broadcastCancel()}})}broadcastPrompt(){let n=this.getAllChatViews();if(n.length===0){new pt.Notice("[Agent Client] No chat views open");return}let r=this._lastActiveChatViewId,i=n.find(c=>c.viewId===r);if(!i){new pt.Notice("[Agent Client] No active chat view found");return}let o=i.getInputState();if(!o||o.text.trim()===""&&o.images.length===0){new pt.Notice("[Agent Client] No prompt to broadcast");return}let a=n.filter(c=>c.viewId!==r);if(a.length===0){new pt.Notice("[Agent Client] No other chat views to broadcast to");return}let s=0;for(let c of a)c.setInputState(o),s++;new pt.Notice(`[Agent Client] Prompt broadcast to ${s} view(s)`)}async broadcastSend(){let n=this.getAllChatViews();if(n.length===0){new pt.Notice("[Agent Client] No chat views open");return}let r=n.filter(a=>a.canSend());if(r.length===0){new pt.Notice("[Agent Client] No views ready to send");return}let o=(await Promise.allSettled(r.map(a=>a.sendMessage()))).filter(a=>a.status==="fulfilled"&&a.value===!0).length;new pt.Notice(`[Agent Client] Message sent in ${o} view(s)`)}async broadcastCancel(){let n=this.getAllChatViews();if(n.length===0){new pt.Notice("[Agent Client] No chat views open");return}await Promise.allSettled(n.map(r=>r.cancelOperation())),new pt.Notice("[Agent Client] Cancel broadcast to all views")}getAllChatViews(){return this.app.workspace.getLeavesOfType(vr).map(r=>r.view).filter(r=>r instanceof Dl)}async loadSettings(){var v;let n=(v=await this.loadData())!=null?v:{},r=typeof n.claude=="object"&&n.claude!==null?n.claude:{},i=typeof n.codex=="object"&&n.codex!==null?n.codex:{},o=typeof n.gemini=="object"&&n.gemini!==null?n.gemini:{},a=Nl(r.args),s=ao(r.env),c=Nl(i.args),d=ao(i.env),m=Nl(o.args),l=ao(o.env),f=Array.isArray(n.customAgents)?pk(n.customAgents.map(g=>mk(typeof g=="object"&&g!==null?g:{}))):[],p=[se.claude.id,se.codex.id,se.gemini.id,...f.map(g=>g.id)],h=typeof n.defaultAgentId=="string"?n.defaultAgentId.trim():typeof n.activeAgentId=="string"?n.activeAgentId.trim():"",y=p.find(g=>g.length>0)||se.claude.id,x=p.includes(h)&&h.length>0?h:y;this.settings={claude:{id:se.claude.id,displayName:typeof r.displayName=="string"&&r.displayName.trim().length>0?r.displayName.trim():se.claude.displayName,apiKey:typeof r.apiKey=="string"?r.apiKey:se.claude.apiKey,command:typeof r.command=="string"&&r.command.trim().length>0?r.command.trim():typeof n.claudeCodeAcpCommandPath=="string"&&n.claudeCodeAcpCommandPath.trim().length>0?n.claudeCodeAcpCommandPath.trim():se.claude.command,args:a.length>0?a:[],env:s.length>0?s:[]},codex:{id:se.codex.id,displayName:typeof i.displayName=="string"&&i.displayName.trim().length>0?i.displayName.trim():se.codex.displayName,apiKey:typeof i.apiKey=="string"?i.apiKey:se.codex.apiKey,command:typeof i.command=="string"&&i.command.trim().length>0?i.command.trim():se.codex.command,args:c.length>0?c:[],env:d.length>0?d:[]},gemini:{id:se.gemini.id,displayName:typeof o.displayName=="string"&&o.displayName.trim().length>0?o.displayName.trim():se.gemini.displayName,apiKey:typeof o.apiKey=="string"?o.apiKey:se.gemini.apiKey,command:typeof o.command=="string"&&o.command.trim().length>0?o.command.trim():typeof n.geminiCommandPath=="string"&&n.geminiCommandPath.trim().length>0?n.geminiCommandPath.trim():se.gemini.command,args:m.length>0?m:se.gemini.args,env:l.length>0?l:[]},customAgents:f,defaultAgentId:x,autoAllowPermissions:typeof n.autoAllowPermissions=="boolean"?n.autoAllowPermissions:se.autoAllowPermissions,autoMentionActiveNote:typeof n.autoMentionActiveNote=="boolean"?n.autoMentionActiveNote:se.autoMentionActiveNote,debugMode:typeof n.debugMode=="boolean"?n.debugMode:se.debugMode,nodePath:typeof n.nodePath=="string"?n.nodePath.trim():se.nodePath,exportSettings:(()=>{let g=n.exportSettings;return g&&typeof g=="object"?{defaultFolder:typeof g.defaultFolder=="string"?g.defaultFolder:se.exportSettings.defaultFolder,filenameTemplate:typeof g.filenameTemplate=="string"?g.filenameTemplate:se.exportSettings.filenameTemplate,autoExportOnNewChat:typeof g.autoExportOnNewChat=="boolean"?g.autoExportOnNewChat:se.exportSettings.autoExportOnNewChat,autoExportOnCloseChat:typeof g.autoExportOnCloseChat=="boolean"?g.autoExportOnCloseChat:se.exportSettings.autoExportOnCloseChat,openFileAfterExport:typeof g.openFileAfterExport=="boolean"?g.openFileAfterExport:se.exportSettings.openFileAfterExport,includeImages:typeof g.includeImages=="boolean"?g.includeImages:se.exportSettings.includeImages,imageLocation:g.imageLocation==="obsidian"||g.imageLocation==="custom"||g.imageLocation==="base64"?g.imageLocation:se.exportSettings.imageLocation,imageCustomFolder:typeof g.imageCustomFolder=="string"?g.imageCustomFolder:se.exportSettings.imageCustomFolder,frontmatterTag:typeof g.frontmatterTag=="string"?g.frontmatterTag:se.exportSettings.frontmatterTag}:se.exportSettings})(),windowsWslMode:typeof n.windowsWslMode=="boolean"?n.windowsWslMode:se.windowsWslMode,windowsWslDistribution:typeof n.windowsWslDistribution=="string"?n.windowsWslDistribution:se.windowsWslDistribution,sendMessageShortcut:n.sendMessageShortcut==="enter"||n.sendMessageShortcut==="cmd-enter"?n.sendMessageShortcut:se.sendMessageShortcut,chatViewLocation:n.chatViewLocation==="right-tab"||n.chatViewLocation==="editor-tab"||n.chatViewLocation==="editor-split"?n.chatViewLocation:se.chatViewLocation,displaySettings:(()=>{let g=n.displaySettings;return g&&typeof g=="object"?{autoCollapseDiffs:typeof g.autoCollapseDiffs=="boolean"?g.autoCollapseDiffs:se.displaySettings.autoCollapseDiffs,diffCollapseThreshold:typeof g.diffCollapseThreshold=="number"&&g.diffCollapseThreshold>0?g.diffCollapseThreshold:se.displaySettings.diffCollapseThreshold,maxNoteLength:typeof g.maxNoteLength=="number"&&g.maxNoteLength>=1?g.maxNoteLength:se.displaySettings.maxNoteLength,maxSelectionLength:typeof g.maxSelectionLength=="number"&&g.maxSelectionLength>=1?g.maxSelectionLength:se.displaySettings.maxSelectionLength,showEmojis:typeof g.showEmojis=="boolean"?g.showEmojis:se.displaySettings.showEmojis}:se.displaySettings})(),savedSessions:Array.isArray(n.savedSessions)?n.savedSessions:se.savedSessions},this.ensureDefaultAgentId()}async saveSettings(){await this.saveData(this.settings)}async saveSettingsAndNotify(n){this.settings=n,await this.saveData(this.settings),this.settingsStore.set(this.settings)}async fetchLatestStable(){let r=(await(0,pt.requestUrl)({url:"https://api.github.com/repos/RAIT-09/obsidian-agent-client/releases/latest"})).json;return r.tag_name?ei.clean(r.tag_name):null}async fetchLatestPrerelease(){let i=(await(0,pt.requestUrl)({url:"https://api.github.com/repos/RAIT-09/obsidian-agent-client/releases"})).json.find(o=>o.prerelease);return i?ei.clean(i.tag_name):null}async checkForUpdates(){let n=ei.clean(this.manifest.version)||this.manifest.version;if(ei.prerelease(n)!==null){let[i,o]=await Promise.all([this.fetchLatestStable(),this.fetchLatestPrerelease()]),a=i&&ei.gt(i,n),s=o&&ei.gt(o,n);if(a||s){let c=a?i:o;return new pt.Notice(`[Agent Client] Update available: v${c}`),!0}}else{let i=await this.fetchLatestStable();if(i&&ei.gt(i,n))return new pt.Notice(`[Agent Client] Update available: v${i}`),!0}return!1}ensureDefaultAgentId(){let n=this.collectAvailableAgentIds();if(n.length===0){this.settings.defaultAgentId=se.claude.id;return}n.includes(this.settings.defaultAgentId)||(this.settings.defaultAgentId=n[0])}collectAvailableAgentIds(){let n=new Set;n.add(this.settings.claude.id),n.add(this.settings.codex.id),n.add(this.settings.gemini.id);for(let r of this.settings.customAgents)r.id&&r.id.length>0&&n.add(r.id);return Array.from(n)}};
|
|
/*! Bundled license information:
|
|
|
|
react/cjs/react.production.js:
|
|
(**
|
|
* @license React
|
|
* react.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
scheduler/cjs/scheduler.production.js:
|
|
(**
|
|
* @license React
|
|
* scheduler.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
react-dom/cjs/react-dom.production.js:
|
|
(**
|
|
* @license React
|
|
* react-dom.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
react-dom/cjs/react-dom-client.production.js:
|
|
(**
|
|
* @license React
|
|
* react-dom-client.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
react/cjs/react-jsx-runtime.production.js:
|
|
(**
|
|
* @license React
|
|
* react-jsx-runtime.production.js
|
|
*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
*/
|