@loaders.gl/splats 4.5.1 → 4.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dist.min.js CHANGED
@@ -13,7 +13,7 @@ ${e}`),new Function("x",`${e}
13
13
  return true;`)}function P1(t){return typeof t!="bigint"?dr(t):`${dr(t)}n`}function Gf(t,e){let r=Math.ceil(t)*e-1;return(r-r%64+64||64)/e}function Kb(t,e=0){return t.length>=e?t.subarray(0,e):Na(new t.constructor(e),t,0)}var hr=class{constructor(e,r=0,i=1){this.length=Math.ceil(r/i),this.buffer=new e(this.length),this.stride=i,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e}get byteLength(){return Math.ceil(this.length*this.stride)*this.BYTES_PER_ELEMENT}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(e,r){return this}append(e){return this.set(this.length,e)}reserve(e){if(e>0){this.length+=e;let r=this.stride,i=this.length*r,n=this.buffer.length;i>=n&&this._resize(n===0?Gf(i*1,this.BYTES_PER_ELEMENT):Gf(i*2,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=Gf(e*this.stride,this.BYTES_PER_ELEMENT);let r=Kb(this.buffer,e);return this.clear(),r}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(e){return this.buffer=Kb(this.buffer,e)}},ln=class extends hr{last(){return this.get(this.length-1)}get(e){return this.buffer[e]}set(e,r){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=r,this}},_o=class extends ln{constructor(){super(Uint8Array,0,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(e){return this.buffer[e>>3]>>e%8&1}set(e,r){let{buffer:i}=this.reserve(e-this.length+1),n=e>>3,o=e%8,a=i[n]>>o&1;return r?a===0&&(i[n]|=1<<o,++this.numValid):a===1&&(i[n]&=~(1<<o),--this.numValid),this}clear(){return this.numValid=0,super.clear()}},bo=class extends ln{constructor(e){super(e.OffsetArrayType,1,1)}append(e){return this.set(this.length-1,e)}set(e,r){let i=this.length-1,n=this.reserve(e-i+1).buffer;return i<e++&&i>=0&&n.fill(n[i],i,e),n[e]=n[e-1]+r,this}flush(e=this.length-1){return e>this.length&&this.set(e-1,this.BYTES_PER_ELEMENT>4?BigInt(0):0),super.flush(e+1)}};var ke=class{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e){throw new Error('"throughDOM" not available in this environment')}constructor({type:e,nullValues:r}){this.length=0,this.finished=!1,this.type=e,this.children=[],this.nullValues=r,this.stride=Zt(e),this._nulls=new _o,r&&r.length>0&&(this._isValid=Gb(r))}toVector(){return new O([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let e=0,{_offsets:r,_values:i,_nulls:n,_typeIds:o,children:a}=this;return r&&(e+=r.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),o&&(e+=o.byteLength),a.reduce((s,u)=>s+u.byteLength,e)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let e=0;return this._offsets&&(e+=this._offsets.reservedByteLength),this._values&&(e+=this._values.reservedByteLength),this._nulls&&(e+=this._nulls.reservedByteLength),this._typeIds&&(e+=this._typeIds.reservedByteLength),this.children.reduce((r,i)=>r+i.reservedByteLength,e)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(e){return this.set(this.length,e)}isValid(e){return this._isValid(e)}set(e,r){return this.setValid(e,this.isValid(r))&&this.setValue(e,r),this}setValue(e,r){this._setValue(this,e,r)}setValid(e,r){return this.length=this._nulls.set(e,+r).length,r}addChild(e,r=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(e){return this.children[e]||null}flush(){let e,r,i,n,{type:o,length:a,nullCount:s,_typeIds:u,_offsets:c,_values:l,_nulls:d}=this;(r=u?.flush(a))?n=c?.flush(a):(n=c?.flush(a))?e=l?.flush(c.last()):e=l?.flush(a),s>0&&(i=d?.flush(a));let p=this.children.map(f=>f.flush());return this.clear(),U({type:o,length:a,nullCount:s,children:p,child:p[0],data:e,typeIds:r,nullBitmap:i,valueOffsets:n})}finish(){this.finished=!0;for(let e of this.children)e.finish();return this}clear(){var e,r,i,n;this.length=0,(e=this._nulls)===null||e===void 0||e.clear(),(r=this._values)===null||r===void 0||r.clear(),(i=this._offsets)===null||i===void 0||i.clear(),(n=this._typeIds)===null||n===void 0||n.clear();for(let o of this.children)o.clear();return this}};ke.prototype.length=1;ke.prototype.stride=1;ke.prototype.children=null;ke.prototype.finished=!1;ke.prototype.nullValues=null;ke.prototype._isValid=()=>!0;var je=class extends ke{constructor(e){super(e),this._values=new ln(this.ArrayType,0,this.stride)}setValue(e,r){let i=this._values;return i.reserve(e-i.length+1),super.setValue(e,r)}},Ot=class extends ke{constructor(e){super(e),this._pendingLength=0,this._offsets=new bo(e.type)}setValue(e,r){let i=this._pending||(this._pending=new Map),n=i.get(e);n&&(this._pendingLength-=n.length),this._pendingLength+=r instanceof Vr?r[Bn].length:r.length,i.set(e,r)}setValid(e,r){return super.setValid(e,r)?!0:((this._pending||(this._pending=new Map)).set(e,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let e=this._pending,r=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,r),this}};var bi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,r,i,n){return e.prep(8,24),e.writeInt64(BigInt(n??0)),e.pad(4),e.writeInt32(i),e.writeInt64(BigInt(r??0)),e.offset()}};var st=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFooter(e,r){return(r||new st).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,r){return e.setPosition(e.position()+4),(r||new st).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):pe.V1}schema(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new Ae).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}dictionaries(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new bi).__init(this.bb.__vector(this.bb_pos+i)+e*24,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,r){let i=this.bb.__offset(this.bb_pos,10);return i?(r||new bi).__init(this.bb.__vector(this.bb_pos+i)+e*24,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,12);return i?(r||new Ie).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,r){e.addFieldInt16(0,r,pe.V1)}static addSchema(e,r){e.addFieldOffset(1,r,0)}static addDictionaries(e,r){e.addFieldOffset(2,r,0)}static startDictionariesVector(e,r){e.startVector(24,r,8)}static addRecordBatches(e,r){e.addFieldOffset(3,r,0)}static startRecordBatchesVector(e,r){e.startVector(24,r,8)}static addCustomMetadata(e,r){e.addFieldOffset(4,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,r){e.finish(r)}static finishSizePrefixedFooterBuffer(e,r){e.finish(r,void 0,!0)}};var Q=class{constructor(e=[],r,i,n=pe.V5){this.fields=e||[],this.metadata=r||new Map,i||(i=Kf(this.fields)),this.dictionaries=i,this.metadataVersion=n}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,r)=>`${r}: ${e}`).join(", ")} }>`}select(e){let r=new Set(e),i=this.fields.filter(n=>r.has(n.name));return new Q(i,this.metadata)}selectAt(e){let r=e.map(i=>this.fields[i]).filter(Boolean);return new Q(r,this.metadata)}assign(...e){let r=e[0]instanceof Q?e[0]:Array.isArray(e[0])?new Q(e[0]):new Q(e),i=[...this.fields],n=hu(hu(new Map,this.metadata),r.metadata),o=r.fields.filter(s=>{let u=i.findIndex(c=>c.name===s.name);return~u?(i[u]=s.clone({metadata:hu(hu(new Map,i[u].metadata),s.metadata)}))&&!1:!0}),a=Kf(o,new Map);return new Q([...i,...o],n,new Map([...this.dictionaries,...a]))}};Q.prototype.fields=null;Q.prototype.metadata=null;Q.prototype.dictionaries=null;var J=class{static new(...e){let[r,i,n,o]=e;return e[0]&&typeof e[0]=="object"&&({name:r}=e[0],i===void 0&&(i=e[0].type),n===void 0&&(n=e[0].nullable),o===void 0&&(o=e[0].metadata)),new J(`${r}`,i,n,o)}constructor(e,r,i=!1,n){this.name=e,this.type=r,this.nullable=i,this.metadata=n||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[r,i,n,o]=e;return!e[0]||typeof e[0]!="object"?[r=this.name,i=this.type,n=this.nullable,o=this.metadata]=e:{name:r=this.name,type:i=this.type,nullable:n=this.nullable,metadata:o=this.metadata}=e[0],J.new(r,i,n,o)}};J.prototype.type=null;J.prototype.name=null;J.prototype.nullable=null;J.prototype.metadata=null;function hu(t,e){return new Map([...t||new Map,...e||new Map])}function Kf(t,e=new Map){for(let r=-1,i=t.length;++r<i;){let o=t[r].type;if($.isDictionary(o)){if(!e.has(o.id))e.set(o.id,o.dictionary);else if(e.get(o.id)!==o.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}o.children&&o.children.length>0&&Kf(o.children,e)}return e}var L1=cn,F1=Ve,dn=class{static decode(e){e=new F1(R(e));let r=st.getRootAsFooter(e),i=Q.decode(r.schema(),new Map,r.version());return new Yf(i,r)}static encode(e){let r=new L1,i=Q.encode(r,e.schema);st.startRecordBatchesVector(r,e.numRecordBatches);for(let a of[...e.recordBatches()].slice().reverse())mr.encode(r,a);let n=r.endVector();st.startDictionariesVector(r,e.numDictionaries);for(let a of[...e.dictionaryBatches()].slice().reverse())mr.encode(r,a);let o=r.endVector();return st.startFooter(r),st.addSchema(r,i),st.addVersion(r,pe.V5),st.addRecordBatches(r,n),st.addDictionaries(r,o),st.finishFooterBuffer(r,st.endFooter(r)),r.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,r=pe.V5,i,n){this.schema=e,this.version=r,i&&(this._recordBatches=i),n&&(this._dictionaryBatches=n)}*recordBatches(){for(let e,r=-1,i=this.numRecordBatches;++r<i;)(e=this.getRecordBatch(r))&&(yield e)}*dictionaryBatches(){for(let e,r=-1,i=this.numDictionaries;++r<i;)(e=this.getDictionaryBatch(r))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}};var Yf=class extends dn{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(e,r){super(e,r.version()),this._footer=r}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){let r=this._footer.recordBatches(e);if(r)return mr.decode(r)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){let r=this._footer.dictionaries(e);if(r)return mr.decode(r)}return null}},mr=class{static decode(e){return new mr(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,r){let{metaDataLength:i}=r,n=BigInt(r.offset),o=BigInt(r.bodyLength);return bi.createBlock(e,n,i,o)}constructor(e,r,i){this.metaDataLength=e,this.offset=se(i),this.bodyLength=se(r)}};var Ue=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsMessage(e,r){return(r||new Ue).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,r){return e.setPosition(e.position()+4),(r||new Ue).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):pe.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):re.NONE}header(e){let r=this.bb.__offset(this.bb_pos,8);return r?this.bb.__union(e,this.bb_pos+r):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,12);return i?(r||new Ie).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,r){e.addFieldInt16(0,r,pe.V1)}static addHeaderType(e,r){e.addFieldInt8(1,r,re.NONE)}static addHeader(e,r){e.addFieldOffset(2,r,0)}static addBodyLength(e,r){e.addFieldInt64(3,r,BigInt("0"))}static addCustomMetadata(e,r){e.addFieldOffset(4,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,r){e.finish(r)}static finishSizePrefixedMessageBuffer(e,r){e.finish(r,void 0,!0)}static createMessage(e,r,i,n,o,a){return Ue.startMessage(e),Ue.addVersion(e,r),Ue.addHeaderType(e,i),Ue.addHeader(e,n),Ue.addBodyLength(e,o),Ue.addCustomMetadata(e,a),Ue.endMessage(e)}};var Xf=class extends N{visit(e,r){return e==null||r==null?void 0:super.visit(e,r)}visitNull(e,r){return Ar.startNull(r),Ar.endNull(r)}visitInt(e,r){return Ge.startInt(r),Ge.addBitWidth(r,e.bitWidth),Ge.addIsSigned(r,e.isSigned),Ge.endInt(r)}visitFloat(e,r){return $t.startFloatingPoint(r),$t.addPrecision(r,e.precision),$t.endFloatingPoint(r)}visitBinary(e,r){return Ir.startBinary(r),Ir.endBinary(r)}visitLargeBinary(e,r){return kr.startLargeBinary(r),kr.endLargeBinary(r)}visitBool(e,r){return $r.startBool(r),$r.endBool(r)}visitUtf8(e,r){return Tr.startUtf8(r),Tr.endUtf8(r)}visitLargeUtf8(e,r){return Dr.startLargeUtf8(r),Dr.endLargeUtf8(r)}visitDecimal(e,r){return Ke.startDecimal(r),Ke.addScale(r,e.scale),Ke.addPrecision(r,e.precision),Ke.addBitWidth(r,e.bitWidth),Ke.endDecimal(r)}visitDate(e,r){return xt.startDate(r),xt.addUnit(r,e.unit),xt.endDate(r)}visitTime(e,r){return it.startTime(r),it.addUnit(r,e.unit),it.addBitWidth(r,e.bitWidth),it.endTime(r)}visitTimestamp(e,r){let i=e.timezone&&r.createString(e.timezone)||void 0;return ot.startTimestamp(r),ot.addUnit(r,e.unit),i!==void 0&&ot.addTimezone(r,i),ot.endTimestamp(r)}visitInterval(e,r){return kt.startInterval(r),kt.addUnit(r,e.unit),kt.endInterval(r)}visitDuration(e,r){return wt.startDuration(r),wt.addUnit(r,e.unit),wt.endDuration(r)}visitList(e,r){return zr.startList(r),zr.endList(r)}visitStruct(e,r){return Or.startStruct_(r),Or.endStruct_(r)}visitUnion(e,r){Ye.startTypeIdsVector(r,e.typeIds.length);let i=Ye.createTypeIdsVector(r,e.typeIds);return Ye.startUnion(r),Ye.addMode(r,e.mode),Ye.addTypeIds(r,i),Ye.endUnion(r)}visitDictionary(e,r){let i=this.visit(e.indices,r);return Rt.startDictionaryEncoding(r),Rt.addId(r,BigInt(e.id)),Rt.addIsOrdered(r,e.isOrdered),i!==void 0&&Rt.addIndexType(r,i),Rt.endDictionaryEncoding(r)}visitFixedSizeBinary(e,r){return St.startFixedSizeBinary(r),St.addByteWidth(r,e.byteWidth),St.endFixedSizeBinary(r)}visitFixedSizeList(e,r){return It.startFixedSizeList(r),It.addListSize(r,e.listSize),It.endFixedSizeList(r)}visitMap(e,r){return Dt.startMap(r),Dt.addKeysSorted(r,e.keysSorted),Dt.endMap(r)}},mu=new Xf;function Qb(t,e=new Map){return new Q(j1(t,e),gu(t.metadata),e)}function qf(t){return new Me(t.count,tx(t.columns),rx(t.columns),null)}function ex(t){return new ct(qf(t.data),t.id,t.isDelta)}function j1(t,e){return(t.fields||[]).filter(Boolean).map(r=>J.fromJSON(r,e))}function Yb(t,e){return(t.children||[]).filter(Boolean).map(r=>J.fromJSON(r,e))}function tx(t){return(t||[]).reduce((e,r)=>[...e,new qt(r.count,R1(r.VALIDITY)),...tx(r.children)],[])}function rx(t,e=[]){for(let r=-1,i=(t||[]).length;++r<i;){let n=t[r];n.VALIDITY&&e.push(new Re(e.length,n.VALIDITY.length)),n.TYPE_ID&&e.push(new Re(e.length,n.TYPE_ID.length)),n.OFFSET&&e.push(new Re(e.length,n.OFFSET.length)),n.DATA&&e.push(new Re(e.length,n.DATA.length)),e=rx(n.children,e)}return e}function R1(t){return(t||[]).reduce((e,r)=>e+ +(r===0),0)}function nx(t,e){let r,i,n,o,a,s;return!e||!(o=t.dictionary)?(a=qb(t,Yb(t,e)),n=new J(t.name,a,t.nullable,gu(t.metadata))):e.has(r=o.id)?(i=(i=o.indexType)?Xb(i):new Mt,s=new At(e.get(r),i,r,o.isOrdered),n=new J(t.name,s,t.nullable,gu(t.metadata))):(i=(i=o.indexType)?Xb(i):new Mt,e.set(r,a=qb(t,Yb(t,e))),s=new At(a,i,r,o.isOrdered),n=new J(t.name,s,t.nullable,gu(t.metadata))),n||null}function gu(t=[]){return new Map(t.map(({key:e,value:r})=>[e,r]))}function Xb(t){return new Le(t.isSigned,t.bitWidth)}function qb(t,e){let r=t.type.name;switch(r){case"NONE":return new at;case"null":return new at;case"binary":return new Br;case"largebinary":return new Ur;case"utf8":return new Nr;case"largeutf8":return new Er;case"bool":return new Pr;case"list":return new Kt((e||[])[0]);case"struct":return new be(e||[]);case"struct_":return new be(e||[])}switch(r){case"int":{let i=t.type;return new Le(i.isSigned,i.bitWidth)}case"floatingpoint":{let i=t.type;return new Ct(me[i.precision])}case"decimal":{let i=t.type;return new Lr(i.scale,i.precision,i.bitWidth)}case"date":{let i=t.type;return new Fr(Be[i.unit])}case"time":{let i=t.type;return new jr(T[i.unit],i.bitWidth)}case"timestamp":{let i=t.type;return new Rr(T[i.unit],i.timezone)}case"interval":{let i=t.type;return new Mr(Se[i.unit])}case"duration":{let i=t.type;return new Cr(T[i.unit])}case"union":{let i=t.type,[n,...o]=(i.mode+"").toLowerCase(),a=n.toUpperCase()+o.join("");return new Yt(_e[a],i.typeIds||[],e||[])}case"fixedsizebinary":{let i=t.type;return new Zr(i.byteWidth)}case"fixedsizelist":{let i=t.type;return new zt(i.listSize,(e||[])[0])}case"map":{let i=t.type;return new Xt((e||[])[0],i.keysSorted)}}throw new Error(`Unrecognized type: "${r}"`)}var M1=cn,C1=Ve,Ce=class{static fromJSON(e,r){let i=new Ce(0,pe.V5,r);return i._createHeader=Z1(e,r),i}static decode(e){e=new C1(R(e));let r=Ue.getRootAsMessage(e),i=r.bodyLength(),n=r.version(),o=r.headerType(),a=new Ce(i,n,o);return a._createHeader=V1(r,o),a}static encode(e){let r=new M1,i=-1;return e.isSchema()?i=Q.encode(r,e.header()):e.isRecordBatch()?i=Me.encode(r,e.header()):e.isDictionaryBatch()&&(i=ct.encode(r,e.header())),Ue.startMessage(r),Ue.addVersion(r,pe.V5),Ue.addHeader(r,i),Ue.addHeaderType(r,e.headerType),Ue.addBodyLength(r,BigInt(e.bodyLength)),Ue.finishMessageBuffer(r,Ue.endMessage(r)),r.asUint8Array()}static from(e,r=0){if(e instanceof Q)return new Ce(0,pe.V5,re.Schema,e);if(e instanceof Me)return new Ce(r,pe.V5,re.RecordBatch,e);if(e instanceof ct)return new Ce(r,pe.V5,re.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get compression(){return this._compression}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===re.Schema}isRecordBatch(){return this.headerType===re.RecordBatch}isDictionaryBatch(){return this.headerType===re.DictionaryBatch}constructor(e,r,i,n){this._version=r,this._headerType=i,this.body=new Uint8Array(0),this._compression=n?.compression,n&&(this._createHeader=()=>n),this._bodyLength=se(e)}},Me=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}constructor(e,r,i,n){this._nodes=r,this._buffers=i,this._length=se(e),this._compression=n}},ct=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,r,i=!1){this._data=e,this._isDelta=i,this._id=se(r)}},Re=class{constructor(e,r){this.offset=se(e),this.length=se(r)}},qt=class{constructor(e,r){this.length=se(e),this.nullCount=se(r)}},xi=class{constructor(e,r=ri.BUFFER){this.type=e,this.method=r}};function Z1(t,e){return()=>{switch(e){case re.Schema:return Q.fromJSON(t);case re.RecordBatch:return Me.fromJSON(t);case re.DictionaryBatch:return ct.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${re[e]}, type: ${e} }`)}}function V1(t,e){return()=>{switch(e){case re.Schema:return Q.decode(t.header(new Ae),new Map,t.version());case re.RecordBatch:return Me.decode(t.header(new Qe),t.version());case re.DictionaryBatch:return ct.decode(t.header(new Gt),t.version())}throw new Error(`Unrecognized Message type: { name: ${re[e]}, type: ${e} }`)}}J.encode=tD;J.decode=Q1;J.fromJSON=nx;Q.encode=eD;Q.decode=J1;Q.fromJSON=Qb;Me.encode=rD;Me.decode=H1;Me.fromJSON=qf;ct.encode=nD;ct.decode=W1;ct.fromJSON=ex;qt.encode=iD;qt.decode=K1;Re.encode=oD;Re.decode=G1;xi.encode=cx;xi.decode=sx;function J1(t,e=new Map,r=pe.V5){let i=q1(t,e);return new Q(i,yu(t),e,r)}function H1(t,e=pe.V5){return new Me(t.length(),Y1(t),X1(t,e),sx(t.compression()))}function W1(t,e=pe.V5){return new ct(Me.decode(t.data(),e),t.id(),t.isDelta())}function G1(t){return new Re(t.offset(),t.length())}function K1(t){return new qt(t.length(),t.nullCount())}function Y1(t){let e=[];for(let r,i=-1,n=-1,o=t.nodesLength();++i<o;)(r=t.nodes(i))&&(e[++n]=qt.decode(r));return e}function X1(t,e){let r=[];for(let i,n=-1,o=-1,a=t.buffersLength();++n<a;)(i=t.buffers(n))&&(e<pe.V4&&(i.bb_pos+=8*(n+1)),r[++o]=Re.decode(i));return r}function q1(t,e){let r=[];for(let i,n=-1,o=-1,a=t.fieldsLength();++n<a;)(i=t.fields(n))&&(r[++o]=J.decode(i,e));return r}function ix(t,e){let r=[];for(let i,n=-1,o=-1,a=t.childrenLength();++n<a;)(i=t.children(n))&&(r[++o]=J.decode(i,e));return r}function Q1(t,e){let r,i,n,o,a,s;return!e||!(s=t.dictionary())?(n=ax(t,ix(t,e)),i=new J(t.name(),n,t.nullable(),yu(t))):e.has(r=se(s.id()))?(o=(o=s.indexType())?ox(o):new Mt,a=new At(e.get(r),o,r,s.isOrdered()),i=new J(t.name(),a,t.nullable(),yu(t))):(o=(o=s.indexType())?ox(o):new Mt,e.set(r,n=ax(t,ix(t,e))),a=new At(n,o,r,s.isOrdered()),i=new J(t.name(),a,t.nullable(),yu(t))),i||null}function yu(t){let e=new Map;if(t)for(let r,i,n=-1,o=Math.trunc(t.customMetadataLength());++n<o;)(r=t.customMetadata(n))&&(i=r.key())!=null&&e.set(i,r.value());return e}function ox(t){return new Le(t.isSigned(),t.bitWidth())}function ax(t,e){let r=t.typeType();switch(r){case ge.NONE:return new at;case ge.Null:return new at;case ge.Binary:return new Br;case ge.LargeBinary:return new Ur;case ge.Utf8:return new Nr;case ge.LargeUtf8:return new Er;case ge.Bool:return new Pr;case ge.List:return new Kt((e||[])[0]);case ge.Struct_:return new be(e||[])}switch(r){case ge.Int:{let i=t.type(new Ge);return new Le(i.isSigned(),i.bitWidth())}case ge.FloatingPoint:{let i=t.type(new $t);return new Ct(i.precision())}case ge.Decimal:{let i=t.type(new Ke);return new Lr(i.scale(),i.precision(),i.bitWidth())}case ge.Date:{let i=t.type(new xt);return new Fr(i.unit())}case ge.Time:{let i=t.type(new it);return new jr(i.unit(),i.bitWidth())}case ge.Timestamp:{let i=t.type(new ot);return new Rr(i.unit(),i.timezone())}case ge.Interval:{let i=t.type(new kt);return new Mr(i.unit())}case ge.Duration:{let i=t.type(new wt);return new Cr(i.unit())}case ge.Union:{let i=t.type(new Ye);return new Yt(i.mode(),i.typeIdsArray()||[],e||[])}case ge.FixedSizeBinary:{let i=t.type(new St);return new Zr(i.byteWidth())}case ge.FixedSizeList:{let i=t.type(new It);return new zt(i.listSize(),(e||[])[0])}case ge.Map:{let i=t.type(new Dt);return new Xt((e||[])[0],i.keysSorted())}}throw new Error(`Unrecognized type: "${ge[r]}" (${r})`)}function sx(t){return t?new xi(t.codec(),t.method()):null}function eD(t,e){let r=e.fields.map(o=>J.encode(t,o));Ae.startFieldsVector(t,r.length);let i=Ae.createFieldsVector(t,r),n=e.metadata&&e.metadata.size>0?Ae.createCustomMetadataVector(t,[...e.metadata].map(([o,a])=>{let s=t.createString(`${o}`),u=t.createString(`${a}`);return Ie.startKeyValue(t),Ie.addKey(t,s),Ie.addValue(t,u),Ie.endKeyValue(t)})):-1;return Ae.startSchema(t),Ae.addFields(t,i),Ae.addEndianness(t,aD?An.Little:An.Big),n!==-1&&Ae.addCustomMetadata(t,n),Ae.endSchema(t)}function tD(t,e){let r=-1,i=-1,n=-1,o=e.type,a=e.typeId;$.isDictionary(o)?(a=o.dictionary.typeId,n=mu.visit(o,t),i=mu.visit(o.dictionary,t)):i=mu.visit(o,t);let s=(o.children||[]).map(l=>J.encode(t,l)),u=Pe.createChildrenVector(t,s),c=e.metadata&&e.metadata.size>0?Pe.createCustomMetadataVector(t,[...e.metadata].map(([l,d])=>{let p=t.createString(`${l}`),f=t.createString(`${d}`);return Ie.startKeyValue(t),Ie.addKey(t,p),Ie.addValue(t,f),Ie.endKeyValue(t)})):-1;return e.name&&(r=t.createString(e.name)),Pe.startField(t),Pe.addType(t,i),Pe.addTypeType(t,a),Pe.addChildren(t,u),Pe.addNullable(t,!!e.nullable),r!==-1&&Pe.addName(t,r),n!==-1&&Pe.addDictionary(t,n),c!==-1&&Pe.addCustomMetadata(t,c),Pe.endField(t)}function rD(t,e){let r=e.nodes||[],i=e.buffers||[];Qe.startNodesVector(t,r.length);for(let s of r.slice().reverse())qt.encode(t,s);let n=t.endVector();Qe.startBuffersVector(t,i.length);for(let s of i.slice().reverse())Re.encode(t,s);let o=t.endVector(),a=null;return e.compression!==null&&(a=cx(t,e.compression)),Qe.startRecordBatch(t),Qe.addLength(t,BigInt(e.length)),Qe.addNodes(t,n),Qe.addBuffers(t,o),e.compression!==null&&a&&Qe.addCompression(t,a),Qe.endRecordBatch(t)}function cx(t,e){return nt.startBodyCompression(t),nt.addCodec(t,e.type),nt.addMethod(t,e.method),nt.endBodyCompression(t)}function nD(t,e){let r=Me.encode(t,e.data);return Gt.startDictionaryBatch(t),Gt.addId(t,BigInt(e.id)),Gt.addIsDelta(t,e.isDelta),Gt.addData(t,r),Gt.endDictionaryBatch(t)}function iD(t,e){return ao.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))}function oD(t,e){return oo.createBuffer(t,BigInt(e.offset),BigInt(e.length))}var aD=(()=>{let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})();var $e=Object.freeze({done:!0,value:void 0}),Va=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}},wi=class{tee(){return this._getDOMStream().tee()}pipe(e,r){return this._getNodeStream().pipe(e,r)}pipeTo(e,r){return this._getDOMStream().pipeTo(e,r)}pipeThrough(e,r){return this._getDOMStream().pipeThrough(e,r)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}},vu=class extends wi{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return D(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve($e);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return qe.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return qe.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return D(this,void 0,void 0,function*(){return yield this.abort(e),$e})}return(e){return D(this,void 0,void 0,function*(){return yield this.close(),$e})}read(e){return D(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return D(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((r,i)=>{this.resolvers.push({resolve:r,reject:i})}):Promise.resolve($e)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}};var Jr=class extends vu{write(e){if((e=R(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Ba(this.toUint8Array(!0)):this.toUint8Array(!1).then(Ba)}toUint8Array(e=!1){return e?jt(this._values)[0]:(()=>D(this,void 0,void 0,function*(){var r,i,n,o;let a=[],s=0;try{for(var u=!0,c=or(this),l;l=yield c.next(),r=l.done,!r;u=!0){o=l.value,u=!1;let d=o;a.push(d),s+=d.byteLength}}catch(d){i={error:d}}finally{try{!u&&!r&&(n=c.return)&&(yield n.call(c))}finally{if(i)throw i.error}}return jt(a,s)[0]}))()}},Hr=class{constructor(e){e&&(this.source=new Qf(qe.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},Tt=class{constructor(e){e instanceof Tt?this.source=e.source:e instanceof Jr?this.source=new fn(qe.fromAsyncIterable(e)):Ec(e)?this.source=new fn(qe.fromNodeStream(e)):Ua(e)?this.source=new fn(qe.fromDOMStream(e)):Uc(e)?this.source=new fn(qe.fromDOMStream(e.body)):sr(e)?this.source=new fn(qe.fromIterable(e)):ar(e)?this.source=new fn(qe.fromAsyncIterable(e)):Ht(e)&&(this.source=new fn(qe.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},Qf=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,r="read"){return this.source.next({cmd:r,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||$e)}return(e){return Object.create(this.source.return&&this.source.return(e)||$e)}},fn=class{constructor(e){this.source=e,this._closedPromise=new Promise(r=>this._closedPromiseResolve=r)}cancel(e){return D(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return D(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return D(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e){return D(this,arguments,void 0,function*(r,i="read"){return yield this.source.next({cmd:i,size:r})})}throw(e){return D(this,void 0,void 0,function*(){let r=this.source.throw&&(yield this.source.throw(e))||$e;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}return(e){return D(this,void 0,void 0,function*(){let r=this.source.return&&(yield this.source.return(e))||$e;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}};var Ja=class extends Hr{constructor(e,r){super(),this.position=0,this.buffer=R(e),this.size=r===void 0?this.buffer.byteLength:r}readInt32(e){let{buffer:r,byteOffset:i}=this.readAt(e,4);return new DataView(r,i).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){let{buffer:r,size:i,position:n}=this;return r&&n<i?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(i,n+Math.min(i-n,e)),r.subarray(n,this.position)):null}readAt(e,r){let i=this.buffer,n=Math.min(this.size,e+r);return i?i.subarray(e,n):new Uint8Array(r)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}},Nn=class extends Tt{constructor(e,r){super(),this.position=0,this._handle=e,typeof r=="number"?this.size=r:this._pending=(()=>D(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending}))()}readInt32(e){return D(this,void 0,void 0,function*(){let{buffer:r,byteOffset:i}=yield this.readAt(e,4);return new DataView(r,i).getInt32(0,!0)})}seek(e){return D(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return D(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:r,size:i,position:n}=this;if(r&&n<i){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let o=n,a=0,s=0,u=Math.min(i,o+Math.min(i-o,e)),c=new Uint8Array(Math.max(0,(this.position=u)-o));for(;(o+=s)<u&&(a+=s)<c.byteLength;)({bytesRead:s}=yield r.read(c,a,c.byteLength-a,o));return c}return null})}readAt(e,r){return D(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:i,size:n}=this;if(i&&e+r<n){let o=Math.min(n,e+r),a=new Uint8Array(o-e);return(yield i.read(a,0,r,e)).buffer}return new Uint8Array(r)})}close(){return D(this,void 0,void 0,function*(){let e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return D(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return D(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}};var tp={};We(tp,{BaseInt64:()=>Ha,Int128:()=>Bt,Int64:()=>Xe,Uint64:()=>le});function xo(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}var wo=8,ep=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Ha=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let r=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),i=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),n=r[3]*i[3];this.buffer[0]=n&65535;let o=n>>>16;return n=r[2]*i[3],o+=n,n=r[3]*i[2]>>>0,o+=n,this.buffer[0]+=o<<16,this.buffer[1]=o>>>0<n?65536:0,this.buffer[1]+=o>>>16,this.buffer[1]+=r[1]*i[3]+r[2]*i[2]+r[3]*i[1],this.buffer[1]+=r[0]*i[3]+r[1]*i[2]+r[2]*i[1]+r[3]*i[0]<<16,this}_plus(e){let r=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],r<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=r}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${xo(this.buffer[1])} ${xo(this.buffer[0])}`}},le=class extends Ha{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,r=new Uint32Array(2)){return le.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(2)){return le.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(2)){let i=e.length,n=new le(r);for(let o=0;o<i;){let a=wo<i-o?wo:i-o,s=new le(new Uint32Array([Number.parseInt(e.slice(o,o+a),10),0])),u=new le(new Uint32Array([ep[a],0]));n.times(u),n.plus(s),o+=a}return n}static convertArray(e){let r=new Uint32Array(e.length*2);for(let i=-1,n=e.length;++i<n;)le.from(e[i],new Uint32Array(r.buffer,r.byteOffset+2*i*4,2));return r}static multiply(e,r){return new le(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new le(new Uint32Array(e.buffer)).plus(r)}},Xe=class extends Ha{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){let r=this.buffer[1]<<0,i=e.buffer[1]<<0;return r<i||r===i&&this.buffer[0]<e.buffer[0]}static from(e,r=new Uint32Array(2)){return Xe.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(2)){return Xe.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(2)){let i=e.startsWith("-"),n=e.length,o=new Xe(r);for(let a=i?1:0;a<n;){let s=wo<n-a?wo:n-a,u=new Xe(new Uint32Array([Number.parseInt(e.slice(a,a+s),10),0])),c=new Xe(new Uint32Array([ep[s],0]));o.times(c),o.plus(u),a+=s}return i?o.negate():o}static convertArray(e){let r=new Uint32Array(e.length*2);for(let i=-1,n=e.length;++i<n;)Xe.from(e[i],new Uint32Array(r.buffer,r.byteOffset+2*i*4,2));return r}static multiply(e,r){return new Xe(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new Xe(new Uint32Array(e.buffer)).plus(r)}},Bt=class{constructor(e){this.buffer=e}high(){return new Xe(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Xe(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){let r=new le(new Uint32Array([this.buffer[3],0])),i=new le(new Uint32Array([this.buffer[2],0])),n=new le(new Uint32Array([this.buffer[1],0])),o=new le(new Uint32Array([this.buffer[0],0])),a=new le(new Uint32Array([e.buffer[3],0])),s=new le(new Uint32Array([e.buffer[2],0])),u=new le(new Uint32Array([e.buffer[1],0])),c=new le(new Uint32Array([e.buffer[0],0])),l=le.multiply(o,c);this.buffer[0]=l.low();let d=new le(new Uint32Array([l.high(),0]));return l=le.multiply(n,c),d.plus(l),l=le.multiply(o,u),d.plus(l),this.buffer[1]=d.low(),this.buffer[3]=d.lessThan(l)?1:0,this.buffer[2]=d.high(),new le(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(le.multiply(i,c)).plus(le.multiply(n,u)).plus(le.multiply(o,s)),this.buffer[3]+=le.multiply(r,c).plus(le.multiply(i,u)).plus(le.multiply(n,s)).plus(le.multiply(o,a)).low(),this}plus(e){let r=new Uint32Array(4);return r[3]=this.buffer[3]+e.buffer[3]>>>0,r[2]=this.buffer[2]+e.buffer[2]>>>0,r[1]=this.buffer[1]+e.buffer[1]>>>0,r[0]=this.buffer[0]+e.buffer[0]>>>0,r[0]<this.buffer[0]>>>0&&++r[1],r[1]<this.buffer[1]>>>0&&++r[2],r[2]<this.buffer[2]>>>0&&++r[3],this.buffer[3]=r[3],this.buffer[2]=r[2],this.buffer[1]=r[1],this.buffer[0]=r[0],this}hex(){return`${xo(this.buffer[3])} ${xo(this.buffer[2])} ${xo(this.buffer[1])} ${xo(this.buffer[0])}`}static multiply(e,r){return new Bt(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new Bt(new Uint32Array(e.buffer)).plus(r)}static from(e,r=new Uint32Array(4)){return Bt.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(4)){return Bt.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(4)){let i=e.startsWith("-"),n=e.length,o=new Bt(r);for(let a=i?1:0;a<n;){let s=wo<n-a?wo:n-a,u=new Bt(new Uint32Array([Number.parseInt(e.slice(a,a+s),10),0,0,0])),c=new Bt(new Uint32Array([ep[s],0,0,0]));o.times(c),o.plus(u),a+=s}return i?o.negate():o}static convertArray(e){let r=new Uint32Array(e.length*4);for(let i=-1,n=e.length;++i<n;)Bt.from(e[i],new Uint32Array(r.buffer,r.byteOffset+4*4*i,4));return r}};var ip={};We(ip,{toIntervalDayTimeInt32Array:()=>rp,toIntervalDayTimeObjects:()=>sD,toIntervalMonthDayNanoInt32Array:()=>np,toIntervalMonthDayNanoObjects:()=>cD});function rp(t){var e,r;let i=t.length,n=new Int32Array(i*2);for(let o=0,a=0;o<i;o++){let s=t[o];n[a++]=(e=s.days)!==null&&e!==void 0?e:0,n[a++]=(r=s.milliseconds)!==null&&r!==void 0?r:0}return n}function np(t){var e,r;let i=t.length,n=new Int32Array(i*4);for(let o=0,a=0;o<i;o++){let s=t[o];n[a++]=(e=s.months)!==null&&e!==void 0?e:0,n[a++]=(r=s.days)!==null&&r!==void 0?r:0;let u=s.nanoseconds;u?(n[a++]=Number(BigInt(u)&BigInt(4294967295)),n[a++]=Number(BigInt(u)>>BigInt(32))):a+=2}return n}function sD(t){let e=t.length,r=new Array(e/2);for(let i=0,n=0;i<e;i+=2)r[n++]={days:t[i],milliseconds:t[i+1]};return r}function cD(t,e){let r=t.length,i=new Array(r/4);for(let n=0,o=0;n<r;n+=4){let a=BigInt(t[n+3])<<BigInt(32)|BigInt(t[n+2]>>>0);i[o++]={months:t[n],days:t[n+1],nanoseconds:e?`${a}`:a}}return i}var So=class extends N{constructor(e,r,i,n,o=pe.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=r,this.buffers=i,this.dictionaries=n,this.metadataVersion=o}visit(e){return super.visit(e instanceof J?e.type:e)}visitNull(e,{length:r}=this.nextFieldNode()){return U({type:e,length:r})}visitBool(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitInt(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFloat(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitUtf8(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeUtf8(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDate(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTimestamp(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTime(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDecimal(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitList(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),children:this.visitMany(e.children)})}visitUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return this.metadataVersion<pe.V5&&this.readNullBitmap(e,i),e.mode===_e.Sparse?this.visitSparseUnion(e,{length:r,nullCount:i}):this.visitDenseUnion(e,{length:r,nullCount:i})}visitDenseUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDuration(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFixedSizeList(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),child:this.visit(e.children[0])})}visitMap(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,r,i=this.nextBufferRange()){return r>0&&this.readData(e,i)||new Uint8Array(0)}readOffsets(e,r){return this.readData(e,r)}readTypeIds(e,r){return this.readData(e,r)}readData(e,{length:r,offset:i}=this.nextBufferRange()){return this.bytes.subarray(i,i+r)}readDictionary(e){return this.dictionaries.get(e.id)}},_u=class extends So{constructor(e,r,i,n,o){super(new Uint8Array(0),r,i,n,o),this.sources=e}readNullBitmap(e,r,{offset:i}=this.nextBufferRange()){return r<=0?new Uint8Array(0):gi(this.sources[i])}readOffsets(e,{offset:r}=this.nextBufferRange()){return q(Uint8Array,q(e.OffsetArrayType,this.sources[r]))}readTypeIds(e,{offset:r}=this.nextBufferRange()){return q(Uint8Array,q(e.ArrayType,this.sources[r]))}readData(e,{offset:r}=this.nextBufferRange()){let{sources:i}=this;if($.isTimestamp(e))return q(Uint8Array,Xe.convertArray(i[r]));if(($.isInt(e)||$.isTime(e))&&e.bitWidth===64||$.isDuration(e))return q(Uint8Array,Xe.convertArray(i[r]));if($.isDate(e)&&e.unit===Be.MILLISECOND)return q(Uint8Array,Xe.convertArray(i[r]));if($.isDecimal(e))return q(Uint8Array,Bt.convertArray(i[r]));if($.isBinary(e)||$.isLargeBinary(e)||$.isFixedSizeBinary(e))return uD(i[r]);if($.isBool(e))return gi(i[r]);if($.isUtf8(e)||$.isLargeUtf8(e))return xr(i[r].join(""));if($.isInterval(e))switch(e.unit){case Se.DAY_TIME:return rp(i[r]);case Se.MONTH_DAY_NANO:return np(i[r]);default:break}return q(Uint8Array,q(e.ArrayType,i[r].map(n=>+n)))}};function uD(t){let e=t.join(""),r=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)r[i>>1]=Number.parseInt(e.slice(i,i+2),16);return r}var bu=class extends So{constructor(e,r,i,n,o){super(new Uint8Array(0),r,i,n,o),this.bodyChunks=e}readData(e,r=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}};var Io=class extends Ot{constructor(e){super(e),this._values=new hr(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,R(r))}_flushPending(e,r){let i=this._offsets,n=this._values.reserve(r).buffer,o=0;for(let[a,s]of e)if(s===void 0)i.set(a,0);else{let u=s.length;n.set(s,o),i.set(a,u),o+=u}}};var $o=class extends Ot{constructor(e){super(e),this._values=new hr(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,R(r))}_flushPending(e,r){let i=this._offsets,n=this._values.reserve(r).buffer,o=0;for(let[a,s]of e)if(s===void 0)i.set(a,BigInt(0));else{let u=s.length;n.set(s,o),i.set(a,BigInt(u)),o+=u}}};var xu=class extends ke{constructor(e){super(e),this._values=new _o}setValue(e,r){this._values.set(e,+r)}};var Si=class extends je{};Si.prototype._setValue=Uf;var Wa=class extends Si{};Wa.prototype._setValue=Zc;var Ga=class extends Si{};Ga.prototype._setValue=Vc;var Ka=class extends je{};Ka.prototype._setValue=Pf;var wu=class extends ke{constructor({type:e,nullValues:r,dictionaryHashFunction:i}){super({type:new At(e.dictionary,e.indices,e.id,e.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Ii({type:this.type.indices,nullValues:r}),this.dictionary=Ii({type:this.type.dictionary,nullValues:null}),typeof i=="function"&&(this.valueToKey=i)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(e){return this.indices.isValid(e)}setValid(e,r){let i=this.indices;return r=i.setValid(e,r),this.length=i.length,r}setValue(e,r){let i=this._keysToIndices,n=this.valueToKey(r),o=i[n];return o===void 0&&(i[n]=o=this._dictionaryOffset+this.dictionary.append(r).length-1),this.indices.setValue(e,o)}flush(){let e=this.type,r=this._dictionary,i=this.dictionary.toVector(),n=this.indices.flush().clone(e);return n.dictionary=r?r.concat(i):i,this.finished||(this._dictionaryOffset+=i.length),this._dictionary=n.dictionary,this.clear(),n}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(e){return typeof e=="string"?e:`${e}`}};var Ya=class extends je{};Ya.prototype._setValue=Bf;var Su=class extends ke{setValue(e,r){let[i]=this.children,n=e*this.stride;for(let o=-1,a=this.stride;++o<a;)i.set(n+o,r[o])}setValid(e,r){return super.setValid(e,r)||this.children[0].setValid((e+1)*this.stride-1,!1),r}addChild(e,r="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");let i=this.children.push(e);return this.type=new zt(this.type.listSize,new J(r,e.type,!0)),i}};var $i=class extends je{setValue(e,r){this._values.set(e,r)}},Iu=class extends $i{setValue(e,r){super.setValue(e,ja(r))}},$u=class extends $i{},ku=class extends $i{};var En=class extends je{};En.prototype._setValue=Lf;var Xa=class extends En{};Xa.prototype._setValue=Qc;var qa=class extends En{};qa.prototype._setValue=eu;var Qa=class extends En{};Qa.prototype._setValue=tu;var pn=class extends je{};pn.prototype._setValue=Ff;var es=class extends pn{};es.prototype._setValue=ru;var ts=class extends pn{};ts.prototype._setValue=nu;var rs=class extends pn{};rs.prototype._setValue=iu;var ns=class extends pn{};ns.prototype._setValue=ou;var Qt=class extends je{setValue(e,r){this._values.set(e,r)}},Du=class extends Qt{},zu=class extends Qt{},Au=class extends Qt{},Ou=class extends Qt{},Tu=class extends Qt{},Bu=class extends Qt{},Uu=class extends Qt{},Nu=class extends Qt{};var Eu=class extends Ot{constructor(e){super(e),this._offsets=new bo(e.type)}addChild(e,r="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new Kt(new J(r,e.type,!0)),this.numChildren-1}_flushPending(e){let r=this._offsets,[i]=this.children;for(let[n,o]of e)if(typeof o>"u")r.set(n,0);else{let a=o,s=a.length,u=r.set(n,s).buffer[n];for(let c=-1;++c<s;)i.set(u+c,a[c])}}};var Pu=class extends Ot{set(e,r){return super.set(e,r)}setValue(e,r){let i=r instanceof Map?r:new Map(Object.entries(r)),n=this._pending||(this._pending=new Map),o=n.get(e);o&&(this._pendingLength-=o.size),this._pendingLength+=i.size,n.set(e,i)}addChild(e,r=`${this.numChildren}`){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new Xt(new J(r,e.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(e){let r=this._offsets,[i]=this.children;for(let[n,o]of e)if(o===void 0)r.set(n,0);else{let{[n]:a,[n+1]:s}=r.set(n,o.size).buffer;for(let u of o.entries())if(i.set(a,u),++a>=s)break}}};var Lu=class extends ke{setValue(e,r){}setValid(e,r){return this.length=Math.max(e+1,this.length),r}};var Fu=class extends ke{setValue(e,r){let{children:i,type:n}=this;switch(Array.isArray(r)||r.constructor){case!0:return n.children.forEach((o,a)=>i[a].set(e,r[a]));case Map:return n.children.forEach((o,a)=>i[a].set(e,r.get(o.name)));default:return n.children.forEach((o,a)=>i[a].set(e,r[o.name]))}}setValid(e,r){return super.setValid(e,r)||this.children.forEach(i=>i.setValid(e,r)),r}addChild(e,r=`${this.numChildren}`){let i=this.children.push(e);return this.type=new be([...this.type.children,new J(r,e.type,!0)]),i}};var hn=class extends je{};hn.prototype._setValue=Nf;var is=class extends hn{};is.prototype._setValue=Jc;var os=class extends hn{};os.prototype._setValue=Hc;var as=class extends hn{};as.prototype._setValue=Wc;var ss=class extends hn{};ss.prototype._setValue=Gc;var mn=class extends je{};mn.prototype._setValue=Ef;var cs=class extends mn{};cs.prototype._setValue=Kc;var us=class extends mn{};us.prototype._setValue=Yc;var ls=class extends mn{};ls.prototype._setValue=Xc;var ds=class extends mn{};ds.prototype._setValue=qc;var ko=class extends ke{constructor(e){super(e),this._typeIds=new ln(Int8Array,0,1),typeof e.valueToChildTypeId=="function"&&(this._valueToChildTypeId=e.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(e,r){return this.set(this.length,e,r)}set(e,r,i){return i===void 0&&(i=this._valueToChildTypeId(this,r,e)),this.setValue(e,r,i),this}setValue(e,r,i){this._typeIds.set(e,i);let n=this.type.typeIdToChildIndex[i],o=this.children[n];o?.set(e,r),this.length=Math.max(e+1,this.length)}addChild(e,r=`${this.children.length}`){let i=this.children.push(e),{type:{children:n,mode:o,typeIds:a}}=this,s=[...n,new J(r,e.type)];return this.type=new Yt(o,[...a,i],s),i}_valueToChildTypeId(e,r,i){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},ju=class extends ko{},Ru=class extends ko{constructor(e){super(e),this._offsets=new ln(Int32Array)}setValue(e,r,i){let n=this._typeIds.set(e,i).buffer[e],o=this.getChildAt(this.type.typeIdToChildIndex[n]),a=this._offsets.set(e,o.length).buffer[e];o?.set(a,r),this.length=Math.max(e+1,this.length)}};var fs=class extends Ot{constructor(e){super(e),this._values=new hr(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,xr(r))}_flushPending(e,r){}};fs.prototype._flushPending=Io.prototype._flushPending;var ps=class extends Ot{constructor(e){super(e),this._values=new hr(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,xr(r))}_flushPending(e,r){}};ps.prototype._flushPending=$o.prototype._flushPending;var op=class extends N{visitNull(){return Lu}visitBool(){return xu}visitInt(){return Qt}visitInt8(){return Du}visitInt16(){return zu}visitInt32(){return Au}visitInt64(){return Ou}visitUint8(){return Tu}visitUint16(){return Bu}visitUint32(){return Uu}visitUint64(){return Nu}visitFloat(){return $i}visitFloat16(){return Iu}visitFloat32(){return $u}visitFloat64(){return ku}visitUtf8(){return fs}visitLargeUtf8(){return ps}visitBinary(){return Io}visitLargeBinary(){return $o}visitFixedSizeBinary(){return Ya}visitDate(){return Si}visitDateDay(){return Wa}visitDateMillisecond(){return Ga}visitTimestamp(){return hn}visitTimestampSecond(){return is}visitTimestampMillisecond(){return os}visitTimestampMicrosecond(){return as}visitTimestampNanosecond(){return ss}visitTime(){return mn}visitTimeSecond(){return cs}visitTimeMillisecond(){return us}visitTimeMicrosecond(){return ls}visitTimeNanosecond(){return ds}visitDecimal(){return Ka}visitList(){return Eu}visitStruct(){return Fu}visitUnion(){return ko}visitDenseUnion(){return Ru}visitSparseUnion(){return ju}visitDictionary(){return wu}visitInterval(){return En}visitIntervalDayTime(){return Xa}visitIntervalYearMonth(){return qa}visitIntervalMonthDayNano(){return Qa}visitDuration(){return pn}visitDurationSecond(){return es}visitDurationMillisecond(){return ts}visitDurationMicrosecond(){return rs}visitDurationNanosecond(){return ns}visitFixedSizeList(){return Su}visitMap(){return Pu}},lx=new op;var F=class extends N{compareSchemas(e,r){return e===r||r instanceof e.constructor&&this.compareManyFields(e.fields,r.fields)}compareManyFields(e,r){return e===r||Array.isArray(e)&&Array.isArray(r)&&e.length===r.length&&e.every((i,n)=>this.compareFields(i,r[n]))}compareFields(e,r){return e===r||r instanceof e.constructor&&e.name===r.name&&e.nullable===r.nullable&&this.visit(e.type,r.type)}};function ft(t,e){return e instanceof t.constructor}function ki(t,e){return t===e||ft(t,e)}function gn(t,e){return t===e||ft(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function Mu(t,e){return t===e||ft(t,e)&&t.precision===e.precision}function lD(t,e){return t===e||ft(t,e)&&t.byteWidth===e.byteWidth}function ap(t,e){return t===e||ft(t,e)&&t.unit===e.unit}function hs(t,e){return t===e||ft(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function ms(t,e){return t===e||ft(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function dD(t,e){return t===e||ft(t,e)&&t.children.length===e.children.length&&Wr.compareManyFields(t.children,e.children)}function fD(t,e){return t===e||ft(t,e)&&t.children.length===e.children.length&&Wr.compareManyFields(t.children,e.children)}function sp(t,e){return t===e||ft(t,e)&&t.mode===e.mode&&t.typeIds.every((r,i)=>r===e.typeIds[i])&&Wr.compareManyFields(t.children,e.children)}function pD(t,e){return t===e||ft(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&Wr.visit(t.indices,e.indices)&&Wr.visit(t.dictionary,e.dictionary)}function Cu(t,e){return t===e||ft(t,e)&&t.unit===e.unit}function gs(t,e){return t===e||ft(t,e)&&t.unit===e.unit}function hD(t,e){return t===e||ft(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&Wr.compareManyFields(t.children,e.children)}function mD(t,e){return t===e||ft(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&Wr.compareManyFields(t.children,e.children)}F.prototype.visitNull=ki;F.prototype.visitBool=ki;F.prototype.visitInt=gn;F.prototype.visitInt8=gn;F.prototype.visitInt16=gn;F.prototype.visitInt32=gn;F.prototype.visitInt64=gn;F.prototype.visitUint8=gn;F.prototype.visitUint16=gn;F.prototype.visitUint32=gn;F.prototype.visitUint64=gn;F.prototype.visitFloat=Mu;F.prototype.visitFloat16=Mu;F.prototype.visitFloat32=Mu;F.prototype.visitFloat64=Mu;F.prototype.visitUtf8=ki;F.prototype.visitLargeUtf8=ki;F.prototype.visitBinary=ki;F.prototype.visitLargeBinary=ki;F.prototype.visitFixedSizeBinary=lD;F.prototype.visitDate=ap;F.prototype.visitDateDay=ap;F.prototype.visitDateMillisecond=ap;F.prototype.visitTimestamp=hs;F.prototype.visitTimestampSecond=hs;F.prototype.visitTimestampMillisecond=hs;F.prototype.visitTimestampMicrosecond=hs;F.prototype.visitTimestampNanosecond=hs;F.prototype.visitTime=ms;F.prototype.visitTimeSecond=ms;F.prototype.visitTimeMillisecond=ms;F.prototype.visitTimeMicrosecond=ms;F.prototype.visitTimeNanosecond=ms;F.prototype.visitDecimal=ki;F.prototype.visitList=dD;F.prototype.visitStruct=fD;F.prototype.visitUnion=sp;F.prototype.visitDenseUnion=sp;F.prototype.visitSparseUnion=sp;F.prototype.visitDictionary=pD;F.prototype.visitInterval=Cu;F.prototype.visitIntervalDayTime=Cu;F.prototype.visitIntervalYearMonth=Cu;F.prototype.visitIntervalMonthDayNano=Cu;F.prototype.visitDuration=gs;F.prototype.visitDurationSecond=gs;F.prototype.visitDurationMillisecond=gs;F.prototype.visitDurationMicrosecond=gs;F.prototype.visitDurationNanosecond=gs;F.prototype.visitFixedSizeList=hD;F.prototype.visitMap=mD;var Wr=new F;function Di(t,e){return Wr.compareSchemas(t,e)}function dx(t,e){return Wr.compareFields(t,e)}function fx(t,e){return Wr.visit(t,e)}function Ii(t){let e=t.type,r=new(lx.getVisitFn(e)())(t);if(e.children&&e.children.length>0){let i=t.children||[],n={nullValues:t.nullValues},o=Array.isArray(i)?(a,s)=>i[s]||n:({name:a})=>i[a]||n;for(let[a,s]of e.children.entries()){let{type:u}=s,c=o(s,a);r.children.push(Ii(Object.assign(Object.assign({},c),{type:u})))}}return r}function Zu(t,e){return gD(t,e.map(r=>r.data.concat()))}function gD(t,e){let r=[...t.fields],i=[],n={numBatches:e.reduce((d,p)=>Math.max(d,p.length),0)},o=0,a=0,s=-1,u=e.length,c,l=[];for(;n.numBatches-- >0;){for(a=Number.POSITIVE_INFINITY,s=-1;++s<u;)l[s]=c=e[s].shift(),a=Math.min(a,c?c.length:a);Number.isFinite(a)&&(l=yD(r,a,l,e,n),a>0&&(i[o++]=U({type:new be(r),length:a,nullCount:0,children:l.slice()})))}return[t=t.assign(r),i.map(d=>new xe(t,d))]}function yD(t,e,r,i,n){var o;let a=(e+63&-64)>>3;for(let s=-1,u=i.length;++s<u;){let c=r[s],l=c?.length;if(l>=e)l===e?r[s]=c:(r[s]=c.slice(0,e),n.numBatches=Math.max(n.numBatches,i[s].unshift(c.slice(e,l-e))));else{let d=t[s];t[s]=d.clone({nullable:!0}),r[s]=(o=c?._changeLengthAndBackfillNullBitmap(e))!==null&&o!==void 0?o:U({type:d.type,length:e,nullCount:e,nullBitmap:new Uint8Array(a)})}}return r}var px,Ne=class{constructor(...e){var r,i;if(e.length===0)return this.batches=[],this.schema=new Q([]),this._offsets=[0],this;let n,o;e[0]instanceof Q&&(n=e.shift()),e.at(-1)instanceof Uint32Array&&(o=e.pop());let a=u=>{if(u){if(u instanceof xe)return[u];if(u instanceof Ne)return u.batches;if(u instanceof ee){if(u.type instanceof be)return[new xe(new Q(u.type.children),u)]}else{if(Array.isArray(u))return u.flatMap(c=>a(c));if(typeof u[Symbol.iterator]=="function")return[...u].flatMap(c=>a(c));if(typeof u=="object"){let c=Object.keys(u),l=c.map(f=>new O([u[f]])),d=n??new Q(c.map((f,y)=>new J(String(f),l[y].type,l[y].nullable))),[,p]=Zu(d,l);return p.length===0?[new xe(u)]:p}}}return[]},s=e.flatMap(u=>a(u));if(n=(i=n??((r=s[0])===null||r===void 0?void 0:r.schema))!==null&&i!==void 0?i:new Q([]),!(n instanceof Q))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let u of s){if(!(u instanceof xe))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Di(n,u.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=n,this.batches=s,this._offsets=o??lu(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,r)=>e+r.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=uu(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(pi(e,this.numRows))}set(e,r){}indexOf(e,r){return-1}[Symbol.iterator](){return this.batches.length>0?yo.visit(new O(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
14
14
  ${this.toArray().join(`,
15
15
  `)}
16
- ]`}concat(...e){let r=this.schema,i=this.data.concat(e.flatMap(({data:n})=>n));return new Ne(r,i.map(n=>new xe(r,n)))}slice(e,r){let i=this.schema;[e,r]=Ra({length:this.numRows},e,r);let n=du(this.data,this._offsets,e,r);return new Ne(i,n.map(o=>new xe(i,o)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(r=>r.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){let r=this.data.map(i=>i.children[e]);if(r.length===0){let{type:i}=this.schema.fields[e],n=U({type:i,length:0,nullCount:0});r.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new O(r)}return null}setChild(e,r){var i;return this.setChildAt((i=this.schema.fields)===null||i===void 0?void 0:i.findIndex(n=>n.name===e),r)}setChildAt(e,r){let i=this.schema,n=[...this.batches];if(e>-1&&e<this.numCols){r||(r=new O([U({type:new at,length:this.numRows})]));let o=i.fields.slice(),a=o[e].clone({type:r.type}),s=this.schema.fields.map((u,c)=>this.getChildAt(c));[o[e],s[e]]=[a,r],[i,n]=Zu(i,s)}return new Ne(i,n)}select(e){let r=this.schema.fields.reduce((i,n,o)=>i.set(n.name,o),new Map);return this.selectAt(e.map(i=>r.get(i)).filter(i=>i>-1))}selectAt(e){let r=this.schema.selectAt(e),i=this.batches.map(n=>n.selectAt(e));return new Ne(r,i)}assign(e){let r=this.schema.fields,[i,n]=e.schema.fields.reduce((s,u,c)=>{let[l,d]=s,p=r.findIndex(f=>f.name===u.name);return~p?d[p]=c:l.push(c),s},[[],[]]),o=this.schema.assign(e.schema),a=[...r.map((s,u)=>[u,n[u]]).map(([s,u])=>u===void 0?this.getChildAt(s):e.getChildAt(u)),...i.map(s=>e.getChildAt(s))].filter(Boolean);return new Ne(...Zu(o,a))}};px=Symbol.toStringTag;Ne[px]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=go(Za),t.get=go(Fe.getVisitFn(h.Struct)),t.set=fu(et.getVisitFn(h.Struct)),t.indexOf=pu(vi.getVisitFn(h.Struct)),"Table"))(Ne.prototype);var mx,xe=class{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof Q))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=U({nullCount:0,type:new be(this.schema.fields),children:this.schema.fields.map(r=>U({type:r.type,nullCount:0}))})]=e,!(this.data instanceof ee))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=hx(this.schema,this.data.children);break}case 1:{let[r]=e,{fields:i,children:n,length:o}=Object.keys(r).reduce((u,c,l)=>(u.children[l]=r[c],u.length=Math.max(u.length,r[c].length),u.fields[l]=J.new({name:c,type:r[c].type,nullable:!0}),u),{length:0,fields:new Array,children:new Array}),a=new Q(i),s=U({type:new be(i),length:o,children:n,nullCount:0});[this.schema,this.data]=hx(a,s.children,o);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=gx(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Fe.visit(this.data,e)}at(e){return this.get(pi(e,this.numRows))}set(e,r){return et.visit(this.data,e,r)}indexOf(e,r){return vi.visit(this.data,e,r)}[Symbol.iterator](){return yo.visit(new O([this.data]))}toArray(){return[...this]}concat(...e){return new Ne(this.schema,[this,...e])}slice(e,r){let[i]=new O([this.data]).slice(e,r).data;return new xe(this.schema,i)}getChild(e){var r;return this.getChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new O([this.data.children[e]]):null}setChild(e,r){var i;return this.setChildAt((i=this.schema.fields)===null||i===void 0?void 0:i.findIndex(n=>n.name===e),r)}setChildAt(e,r){let i=this.schema,n=this.data;if(e>-1&&e<this.numCols){r||(r=new O([U({type:new at,length:this.numRows})]));let o=i.fields.slice(),a=n.children.slice(),s=o[e].clone({type:r.type});[o[e],a[e]]=[s,r.data[0]],i=new Q(o,new Map(this.schema.metadata)),n=U({type:new be(o),children:a})}return new xe(i,n)}select(e){let r=this.schema.select(e),i=new be(r.fields),n=[];for(let o of e){let a=this.schema.fields.findIndex(s=>s.name===o);~a&&(n[a]=this.data.children[a])}return new xe(r,U({type:i,length:this.numRows,children:n}))}selectAt(e){let r=this.schema.selectAt(e),i=e.map(o=>this.data.children[o]).filter(Boolean),n=U({type:new be(r.fields),length:this.numRows,children:i});return new xe(r,n)}};mx=Symbol.toStringTag;xe[mx]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(xe.prototype);function hx(t,e,r=e.reduce((i,n)=>Math.max(i,n.length),0)){var i;let n=[...t.fields],o=[...e],a=(r+63&-64)>>3;for(let[s,u]of t.fields.entries()){let c=e[s];(!c||c.length!==r)&&(n[s]=u.clone({nullable:!0}),o[s]=(i=c?._changeLengthAndBackfillNullBitmap(r))!==null&&i!==void 0?i:U({type:u.type,length:r,nullCount:r,nullBitmap:new Uint8Array(a)}))}return[t.assign(n),U({type:new be(n),length:r,children:o})]}function gx(t,e,r=new Map){var i,n;if(((i=t?.length)!==null&&i!==void 0?i:0)>0&&t?.length===e?.length)for(let o=-1,a=t.length;++o<a;){let{type:s}=t[o],u=e[o];for(let c of[u,...((n=u?.dictionary)===null||n===void 0?void 0:n.data)||[]])gx(s.children,c?.children,r);if($.isDictionary(s)){let{id:c}=s;if(!r.has(c))u?.dictionary&&r.set(c,u.dictionary);else if(r.get(c)!==u.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return r}var zi=class extends xe{constructor(e){let r=e.fields.map(n=>U({type:n.type})),i=U({type:new be(e.fields),nullCount:0,children:r});super(e,i)}};var up=t=>`Expected ${re[t]} Message in stream, but was null or length 0.`,lp=t=>`Header pointer of flatbuffer-encoded ${re[t]} Message is null or length 0.`,yx=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,vx=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,Do=class{constructor(e){this.source=e instanceof Hr?e:new Hr(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done?$e:e.value===-1&&(e=this.readMetadataLength()).done?$e:(e=this.readMetadata(e.value)).done?$e:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let r;if((r=this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(up(e));return r.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let r=R(this.source.read(e));if(r.byteLength<e)throw new Error(vx(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()}readSchema(e=!1){let r=re.Schema,i=this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(lp(r));return n}readMetadataLength(){let e=this.source.read(Vu),r=e&&new Ve(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}}readMetadata(e){let r=this.source.read(e);if(!r)return $e;if(r.byteLength<e)throw new Error(yx(e,r.byteLength));return{done:!1,value:Ce.decode(r)}}},ys=class{constructor(e,r){this.source=e instanceof Tt?e:Bc(e)?new Nn(e,r):new Tt(e)}[Symbol.asyncIterator](){return this}next(){return D(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done?$e:e.value===-1&&(e=yield this.readMetadataLength()).done?$e:(e=yield this.readMetadata(e.value)).done?$e:e})}throw(e){return D(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return D(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return D(this,void 0,void 0,function*(){let r;if((r=yield this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(up(e));return r.value})}readMessageBody(e){return D(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);let r=R(yield this.source.read(e));if(r.byteLength<e)throw new Error(vx(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()})}readSchema(){return D(this,arguments,void 0,function*(e=!1){let r=re.Schema,i=yield this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(lp(r));return n})}readMetadataLength(){return D(this,void 0,void 0,function*(){let e=yield this.source.read(Vu),r=e&&new Ve(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}})}readMetadata(e){return D(this,void 0,void 0,function*(){let r=yield this.source.read(e);if(!r)return $e;if(r.byteLength<e)throw new Error(yx(e,r.byteLength));return{done:!1,value:Ce.decode(r)}})}},vs=class extends Do{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof Va?e:new Va(e)}next(){let{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Ce.fromJSON(e.schema,re.Schema)};if(this._dictionaryIndex<e.dictionaries.length){let r=e.dictionaries[this._dictionaryIndex++];return this._body=r.data.columns,{done:!1,value:Ce.fromJSON(r,re.DictionaryBatch)}}if(this._batchIndex<e.batches.length){let r=e.batches[this._batchIndex++];return this._body=r.columns,{done:!1,value:Ce.fromJSON(r,re.RecordBatch)}}return this._body=[],$e}readMessageBody(e){return r(this._body);function r(i){return(i||[]).reduce((n,o)=>[...n,...o.VALIDITY&&[o.VALIDITY]||[],...o.TYPE_ID&&[o.TYPE_ID]||[],...o.OFFSET&&[o.OFFSET]||[],...o.DATA&&[o.DATA]||[],...r(o.children)],[])}}readMessage(e){let r;if((r=this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(up(e));return r.value}readSchema(){let e=re.Schema,r=this.readMessage(e),i=r?.header();if(!r||!i)throw new Error(lp(e));return i}},Vu=4,cp="ARROW1",zo=new Uint8Array(cp.length);for(let t=0;t<cp.length;t+=1)zo[t]=cp.codePointAt(t);function Ju(t,e=0){for(let r=-1,i=zo.length;++r<i;)if(zo[r]!==t[e+r])return!1;return!0}var Ao=zo.length,dp=Ao+Vu,_x=Ao*2+Vu;var fp=class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(e){let r=new Uint8Array([1,2,3,4,5,6,7,8]),i=e.encode(r);return this._isValidCompressed(i)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)&&this._hasValidVersion(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.LZ4_FRAME_MAGIC.every((r,i)=>e[i]===r)}_hasValidVersion(e){return(e[4]&192)>>6===1}},pp=class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(e){let r=new Uint8Array([1,2,3,4,5,6,7,8]),i=e.encode(r);return this._isValidCompressed(i)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.ZSTD_MAGIC.every((r,i)=>e[i]===r)}},bx={[dt.LZ4_FRAME]:new fp,[dt.ZSTD]:new pp};var hp=class{constructor(){this.registry={}}set(e,r){if(r?.encode&&typeof r.encode=="function"&&!bx[e].isValidCodecEncode(r))throw new Error(`Encoder for ${dt[e]} is not valid.`);this.registry[e]=r}get(e){var r;return((r=this.registry)===null||r===void 0?void 0:r[e])||null}},Oo=new hp;var pt=class extends wi{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){let r=this._impl.open(e);return ar(r)?r.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return qe.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return qe.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,r){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof pt?e:Oc(e)?_D(e):Bc(e)?wD(e):ar(e)?(()=>D(this,void 0,void 0,function*(){return yield pt.from(yield e)}))():Uc(e)||Ua(e)||Ec(e)||Ht(e)?xD(new Tt(e)):bD(new Hr(e))}static readAll(e){return e instanceof pt?e.isSync()?xx(e):wx(e):Oc(e)||ArrayBuffer.isView(e)||sr(e)||Tc(e)?xx(e):wx(e)}},yn=class extends pt{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Ft(this,arguments,function*(){yield G(yield*no(or(this[Symbol.iterator]())))})}},Ai=class extends pt{constructor(e){super(e),this._impl=e}readAll(){return D(this,void 0,void 0,function*(){var e,r,i,n;let o=new Array;try{for(var a=!0,s=or(this),u;u=yield s.next(),e=u.done,!e;a=!0){n=u.value,a=!1;let c=n;o.push(c)}}catch(c){r={error:c}}finally{try{!a&&!e&&(i=s.return)&&(yield i.call(s))}finally{if(r)throw r.error}}return o})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},Oi=class extends yn{constructor(e){super(e),this._impl=e}},Hu=class extends Ai{constructor(e){super(e),this._impl=e}},Wu=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,r){let i;if(e.compression!=null){let o=Oo.get(e.compression.type);if(o?.decode&&typeof o.decode=="function"){let{decommpressedBody:a,buffers:s}=this._decompressBuffers(e,r,o);i=this._loadCompressedVectors(e,a,this.schema.fields),e=new Me(e.length,e.nodes,s,null)}else throw new Error("Record batch is compressed but codec not found")}else i=this._loadVectors(e,r,this.schema.fields);let n=U({type:new be(this.schema.fields),length:e.length,children:i});return new xe(this.schema,n)}_loadDictionaryBatch(e,r){let{id:i,isDelta:n}=e,{dictionaries:o,schema:a}=this,s=o.get(i),u=a.dictionaries.get(i),c;if(e.data.compression!=null){let l=Oo.get(e.data.compression.type);if(l?.decode&&typeof l.decode=="function"){let{decommpressedBody:d,buffers:p}=this._decompressBuffers(e.data,r,l);c=this._loadCompressedVectors(e.data,d,[u]),e=new ct(new Me(e.data.length,e.data.nodes,p,null),i,n)}else throw new Error("Dictionary batch is compressed but codec not found")}else c=this._loadVectors(e.data,r,[u]);return(s&&n?s.concat(new O(c)):new O(c)).memoize()}_loadVectors(e,r,i){return new So(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(i)}_loadCompressedVectors(e,r,i){return new bu(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(i)}_decompressBuffers(e,r,i){let n=[],o=[],a=0;for(let{offset:s,length:u}of e.buffers){if(u===0){n.push(new Uint8Array(0)),o.push(new Re(a,0));continue}let c=new Ve(r.subarray(s,s+u)),l=se(c.readInt64(0)),d=c.bytes().subarray(8),p=l===-1?d:i.decode(d);n.push(p);let f=(a+7&-8)-a;a+=f,o.push(new Re(a,p.length)),a+=p.length}return{decommpressedBody:n,buffers:o}}},To=class extends Wu{constructor(e,r){super(r),this._reader=Oc(e)?new vs(this._handle=e):new Do(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=Ix(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):$e}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):$e}next(){if(this.closed)return $e;let e,{_reader:r}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=r.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=r.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new zi(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Bo=class extends Wu{constructor(e,r){super(r),this._reader=new ys(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return D(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return D(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=Ix(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return D(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):$e})}return(e){return D(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):$e})}next(){return D(this,void 0,void 0,function*(){if(this.closed)return $e;let e,{_reader:r}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=yield r.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=yield r.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new zi(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return D(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},Gu=class extends To{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,r){super(e instanceof Ja?e:new Ja(e),r)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let r of this._footer.dictionaryBatches())r&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var r;if(this.closed)return null;this._footer||this.open();let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&this._handle.seek(i.offset)){let n=this._reader.readMessage(re.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),a=this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,a)}}return null}_readDictionaryBatch(e){var r;let i=(r=this._footer)===null||r===void 0?void 0:r.getDictionaryBatch(e);if(i&&this._handle.seek(i.offset)){let n=this._reader.readMessage(re.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),a=this._reader.readMessageBody(n.bodyLength),s=this._loadDictionaryBatch(o,a);this.dictionaries.set(o.id,s)}}}_readFooter(){let{_handle:e}=this,r=e.size-dp,i=e.readInt32(r),n=e.readAt(r-i,i);return dn.decode(n)}_readNextMessageAndValidate(e){var r;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(this._recordBatchIndex);if(i&&this._handle.seek(i.offset))return this._reader.readMessage(e)}return null}},mp=class extends Bo{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,...r){let i=typeof r[0]!="number"?r.shift():void 0,n=r[0]instanceof Map?r.shift():void 0;super(e instanceof Nn?e:new Nn(e,i),n)}isFile(){return!0}isAsync(){return!0}open(e){let r=Object.create(null,{open:{get:()=>super.open}});return D(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let i of this._footer.dictionaryBatches())i&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield r.open.call(this,e)})}readRecordBatch(e){return D(this,void 0,void 0,function*(){var r;if(this.closed)return null;this._footer||(yield this.open());let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(re.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),a=yield this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,a)}}return null})}_readDictionaryBatch(e){return D(this,void 0,void 0,function*(){var r;let i=(r=this._footer)===null||r===void 0?void 0:r.getDictionaryBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(re.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),a=yield this._reader.readMessageBody(n.bodyLength),s=this._loadDictionaryBatch(o,a);this.dictionaries.set(o.id,s)}}})}_readFooter(){return D(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let r=e.size-dp,i=yield e.readInt32(r),n=yield e.readAt(r-i,i);return dn.decode(n)})}_readNextMessageAndValidate(e){return D(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let r=this._footer.getRecordBatch(this._recordBatchIndex);if(r&&(yield this._handle.seek(r.offset)))return yield this._reader.readMessage(e)}return null})}},gp=class extends To{constructor(e,r){super(e,r)}_loadVectors(e,r,i){return new _u(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(i)}};function Ix(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*xx(t){let e=pt.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function wx(t){return Ft(this,arguments,function*(){let r=yield G(pt.from(t));try{if(!(yield G(r.open({autoDestroy:!1}))).closed)do yield yield G(r);while(!(yield G(r.reset().open())).closed)}finally{yield G(r.cancel())}})}function _D(t){return new yn(new gp(t))}function bD(t){let e=t.peek(Ao+7&-8);return e&&e.byteLength>=4?Ju(e)?new Oi(new Gu(t.read())):new yn(new To(t)):new yn(new To(function*(){}()))}function xD(t){return D(this,void 0,void 0,function*(){let e=yield t.peek(Ao+7&-8);return e&&e.byteLength>=4?Ju(e)?new Oi(new Gu(yield t.read())):new Ai(new Bo(t)):new Ai(new Bo(function(){return Ft(this,arguments,function*(){})}()))})}function wD(t){return D(this,void 0,void 0,function*(){let{size:e}=yield t.stat(),r=new Nn(t,e);return e>=_x&&Ju(yield r.readAt(0,Ao+7&-8))?new Hu(new mp(r)):new Ai(new Bo(r))})}var De=class extends N{static assemble(...e){let r=n=>n.flatMap(o=>Array.isArray(o)?r(o):o instanceof xe?o.data.children:o.data),i=new De;return i.visitMany(r(e)),i}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(e){if(e instanceof O)return this.visitMany(e.data),this;let{type:r}=e;if(!$.isDictionary(r)){let{length:i}=e;if(i>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if($.isUnion(r))this.nodes.push(new qt(i,0));else{let{nullCount:n}=e;$.isNull(r)||gr.call(this,n<=0?new Uint8Array(0):mi(e.offset,i,e.nullBitmap)),this.nodes.push(new qt(i,n))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function gr(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Re(this._byteLength,e)),this._byteLength+=e,this}function SD(t){var e;let{type:r,length:i,typeIds:n,valueOffsets:o}=t;if(gr.call(this,n),r.mode===_e.Sparse)return yp.call(this,t);if(r.mode===_e.Dense){if(t.offset<=0)return gr.call(this,o),yp.call(this,t);{let a=new Int32Array(i),s=Object.create(null),u=Object.create(null);for(let c,l,d=-1;++d<i;)(c=n[d])!==void 0&&((l=s[c])===void 0&&(l=s[c]=o[d]),a[d]=o[d]-l,u[c]=((e=u[c])!==null&&e!==void 0?e:0)+1);gr.call(this,a),this.visitMany(t.children.map((c,l)=>{let d=r.typeIds[l],p=s[d],f=u[d];return c.slice(p,Math.min(i,f))}))}}return this}function ID(t){let e;return t.nullCount>=t.length?gr.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?gr.call(this,mi(t.offset,t.length,e)):gr.call(this,gi(t.values))}function vn(t){return gr.call(this,t.values.subarray(0,t.length*t.stride))}function Ku(t){let{length:e,values:r,valueOffsets:i}=t,n=se(i[0]),o=se(i[e]),a=Math.min(o-n,r.byteLength-n);return gr.call(this,Lc(-n,e+1,i)),gr.call(this,r.subarray(n,n+a)),this}function vp(t){let{length:e,valueOffsets:r}=t;if(r){let{[0]:i,[e]:n}=r;return gr.call(this,Lc(-i,e+1,r)),this.visit(t.children[0].slice(i,n-i))}return this.visit(t.children[0])}function yp(t){return this.visitMany(t.type.children.map((e,r)=>t.children[r]).filter(Boolean))[0]}De.prototype.visitBool=ID;De.prototype.visitInt=vn;De.prototype.visitFloat=vn;De.prototype.visitUtf8=Ku;De.prototype.visitLargeUtf8=Ku;De.prototype.visitBinary=Ku;De.prototype.visitLargeBinary=Ku;De.prototype.visitFixedSizeBinary=vn;De.prototype.visitDate=vn;De.prototype.visitTimestamp=vn;De.prototype.visitTime=vn;De.prototype.visitDecimal=vn;De.prototype.visitList=vp;De.prototype.visitStruct=yp;De.prototype.visitUnion=SD;De.prototype.visitInterval=vn;De.prototype.visitDuration=vn;De.prototype.visitFixedSizeList=vp;De.prototype.visitMap=vp;var Ti=class extends wi{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,r){throw new Error('"throughDOM" not available in this environment')}constructor(e){if(super(),this._position=0,this._started=!1,this._compression=null,this._sink=new Jr,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,lt(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1,compressionType:null}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1,e.compressionType!=null){if(this._writeLegacyIpcFormat)throw new Error("Legacy IPC format does not support columnar compression. Use modern IPC format (writeLegacyIpcFormat=false).");if(Object.values(dt).includes(e.compressionType))this._compression=new xi(e.compressionType);else{let r=Object.values(dt).filter(i=>typeof i=="string");throw new Error(`Unsupported compressionType: ${e.compressionType} Available types: ${r.join(", ")}`)}}else this._compression=null}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return ar(e)?e.then(r=>this.writeAll(r)):Ht(e)?bp(this,e):_p(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,r=null){return e===this._sink||e instanceof Jr?this._sink=e:(this._sink=new Jr,e&&N_(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&E_(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!r||!Di(r,this._schema))&&(r==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=r,this._writeSchema(r))),this}write(e){let r=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof Ne&&!(r=e.schema))return this.finish()&&void 0;if(e instanceof xe&&!(r=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(r&&!Di(r,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,r)}e instanceof xe?e instanceof zi||this._writeRecordBatch(e):e instanceof Ne?this.writeAll(e.batches):sr(e)&&this.writeAll(e)}_writeMessage(e,r=8){let i=r-1,n=Ce.encode(e),o=n.byteLength,a=this._writeLegacyIpcFormat?4:8,s=o+a+i&~i,u=s-o-a;return e.headerType===re.RecordBatch?this._recordBatchBlocks.push(new mr(s,e.bodyLength,this._position)):e.headerType===re.DictionaryBatch&&this._dictionaryBlocks.push(new mr(s,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(s-a)),o>0&&this._write(n),this._writePadding(u)}_write(e){if(this._started){let r=R(e);r&&r.byteLength>0&&(this._sink.write(r),this._position+=r.byteLength)}return this}_writeSchema(e){return this._writeMessage(Ce.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(zo)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o}=this._assembleRecordBatch(e),a=new Me(e.numRows,i,n,this._compression),s=Ce.from(a,r);return this._writeDictionaries(e)._writeMessage(s)._writeBodyBuffers(o)}_assembleRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o}=De.assemble(e);return this._compression!=null&&({byteLength:r,bufferRegions:n,buffers:o}=this._compressBodyBuffers(o)),{byteLength:r,nodes:i,bufferRegions:n,buffers:o}}_compressBodyBuffers(e){let r=Oo.get(this._compression.type);if(!r?.encode||typeof r.encode!="function")throw new Error(`Codec for compression type "${dt[this._compression.type]}" has invalid encode method`);let i=0,n=[],o=[];for(let s of e){let u=R(s);if(u.length===0){n.push(new Uint8Array(0),new Uint8Array(0)),o.push(new Re(i,0));continue}let c=r.encode(u),l=c.length<u.length,d=l?c:u,p=l?d.length:-1,f=new Ve(new Uint8Array(8));f.writeInt64(0,BigInt(p)),n.push(f.bytes(),new Uint8Array(d));let y=(i+7&-8)-i;i+=y;let w=8+d.length;o.push(new Re(i,w)),i+=w}let a=(i+7&-8)-i;return i+=a,{byteLength:i,bufferRegions:o,buffers:n}}_writeDictionaryBatch(e,r,i=!1){let{byteLength:n,nodes:o,bufferRegions:a,buffers:s}=this._assembleRecordBatch(new O([e])),u=new Me(e.length,o,a,this._compression),c=new ct(u,r,i),l=Ce.from(c,n);return this._writeMessage(l)._writeBodyBuffers(s)}_writeBodyBuffers(e){let r=this._compression!=null?2:1,i=new Array(r);for(let n=0;n<e.length;n+=r){let o=0;for(let s=-1;++s<r;)i[s]=e[n+s],o+=i[s].byteLength;if(o===0)continue;for(let s of i)this._write(s);let a=(o+7&-8)-o;a>0&&this._writePadding(a)}return this}_writeDictionaries(e){var r,i;for(let[n,o]of e.dictionaries){let a=(r=o?.data)!==null&&r!==void 0?r:[],s=this._seenDictionaries.get(n),u=(i=this._dictionaryDeltaOffsets.get(n))!==null&&i!==void 0?i:0;if(!s||s.data[0]!==a[0])for(let[c,l]of a.entries())this._writeDictionaryBatch(l,n,c>0);else if(u<a.length)for(let c of a.slice(u))this._writeDictionaryBatch(c,n,!0);this._seenDictionaries.set(n,o),this._dictionaryDeltaOffsets.set(n,a.length)}return this}},Bi=class extends Ti{static writeAll(e,r){let i=new Bi(r);return ar(e)?e.then(n=>i.writeAll(n)):Ht(e)?bp(i,e):_p(i,e)}},Ui=class extends Ti{static writeAll(e,r){let i=new Ui(r);return ar(e)?e.then(n=>i.writeAll(n)):Ht(e)?bp(i,e):_p(i,e)}constructor(e){super(e),this._autoDestroy=!0,this._writeLegacyIpcFormat=!1}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,r,i=!1){if(!i&&this._seenDictionaries.has(r))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(e,r,i)}_writeFooter(e){let r=dn.encode(new dn(e,pe.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(r)._write(Int32Array.of(r.byteLength))._writeMagic()}};function _p(t,e){let r=e;e instanceof Ne&&(r=e.batches,t.reset(void 0,e.schema));for(let i of r)t.write(i);return t.finish()}function bp(t,e){return D(this,void 0,void 0,function*(){var r,i,n,o,a,s,u;try{for(r=!0,i=or(e);n=yield i.next(),o=n.done,!o;r=!0){u=n.value,r=!1;let c=u;t.write(c)}}catch(c){a={error:c}}finally{try{!r&&!o&&(s=i.return)&&(yield s.call(i))}finally{if(a)throw a.error}}return t.finish()})}function $x(t,e){if(Ht(t))return kD(t,e);if(sr(t))return $D(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function $D(t,e){let r=null,i=e?.type==="bytes"||!1,n=e?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(a){o(a,r||(r=t[Symbol.iterator]()))},pull(a){r?o(a,r):a.close()},cancel(){r?.return&&r.return(),r=null}}),Object.assign({highWaterMark:i?n:void 0},e));function o(a,s){let u,c=null,l=a.desiredSize||null;for(;!(c=s.next(i?l:null)).done;)if(ArrayBuffer.isView(c.value)&&(u=R(c.value))&&(l!=null&&i&&(l=l-u.byteLength+1),c.value=u),a.enqueue(c.value),l!=null&&--l<=0)return;a.close()}}function kD(t,e){let r=null,i=e?.type==="bytes"||!1,n=e?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(a){return D(this,void 0,void 0,function*(){yield o(a,r||(r=t[Symbol.asyncIterator]()))})},pull(a){return D(this,void 0,void 0,function*(){r?yield o(a,r):a.close()})},cancel(){return D(this,void 0,void 0,function*(){r?.return&&(yield r.return()),r=null})}}),Object.assign({highWaterMark:i?n:void 0},e));function o(a,s){return D(this,void 0,void 0,function*(){let u,c=null,l=a.desiredSize||null;for(;!(c=yield s.next(i?l:null)).done;)if(ArrayBuffer.isView(c.value)&&(u=R(c.value))&&(l!=null&&i&&(l=l-u.byteLength+1),c.value=u),a.enqueue(c.value),l!=null&&--l<=0)return;a.close()})}}function zx(t){return new xp(t)}var xp=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:r,["writableStrategy"]:i,["queueingStrategy"]:n="count"}=e,o=T_(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Ii(o),this._getSize=n!=="bytes"?kx:Dx;let{["highWaterMark"]:a=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},r),{["highWaterMark"]:s=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},i);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:u=>{this._maybeFlush(this._builder,this._controller=u)},start:u=>{this._maybeFlush(this._builder,this._controller=u)}},{highWaterMark:a,size:n!=="bytes"?kx:Dx}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:s,size:u=>this._writeValueAndReturnChunkSize(u)})}_writeValueAndReturnChunkSize(e){let r=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-r}_maybeFlush(e,r){r!=null&&(this._bufferedSize>=r.desiredSize&&++this._numChunks&&this._enqueue(r,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(r,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(r,null)))}_enqueue(e,r){this._bufferedSize=0,this._controller=null,r==null?e.close():e.enqueue(r)}},kx=t=>{var e;return(e=t?.length)!==null&&e!==void 0?e:0},Dx=t=>{var e;return(e=t?.byteLength)!==null&&e!==void 0?e:0};function Yu(t,e){let r=new Jr,i=null,n=new ReadableStream({cancel(){return D(this,void 0,void 0,function*(){yield r.close()})},start(s){return D(this,void 0,void 0,function*(){yield a(s,i||(i=yield o()))})},pull(s){return D(this,void 0,void 0,function*(){i?yield a(s,i):s.close()})}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},t)),readable:n};function o(){return D(this,void 0,void 0,function*(){return yield(yield pt.from(r)).open(e)})}function a(s,u){return D(this,void 0,void 0,function*(){let c=s.desiredSize,l=null;for(;!(l=yield u.next()).done;)if(s.enqueue(l.value),c!=null&&--c<=0)return;s.close()})}}function Xu(t,e){let r=new this(t),i=new Tt(r),n=new ReadableStream({cancel(){return D(this,void 0,void 0,function*(){yield i.cancel()})},pull(a){return D(this,void 0,void 0,function*(){yield o(a)})},start(a){return D(this,void 0,void 0,function*(){yield o(a)})}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(r,t),readable:n};function o(a){return D(this,void 0,void 0,function*(){let s=null,u=a.desiredSize;for(;s=yield i.read(u||null);)if(a.enqueue(s),u!=null&&(u-=s.byteLength)<=0)return;a.close()})}}var GD=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Af),tp),Jf),Of),wf),Vf),$f),ip),{compareSchemas:Di,compareFields:dx,compareTypes:fx});qe.toDOMStream=$x;ke.throughDOM=zx;pt.throughDOM=Yu;Oi.throughDOM=Yu;yn.throughDOM=Yu;Ti.throughDOM=Xu;Ui.throughDOM=Xu;Bi.throughDOM=Xu;var wp=.28209479177387814;function qu(t){return(t/255-.5)/wp}function Qu(t){return Math.min(Math.max(t/255,0),1)}function _n(t,e,r,i){let n=Math.hypot(t,e,r,i);return!Number.isFinite(n)||n<=Number.EPSILON?[1,0,0,0]:[t/n,e/n,r/n,i/n]}function _s(t){return(t-128)/128}function bs(t){let e=t&32768?-1:1,r=t>>10&31,i=t&1023;return r===0?e*Math.pow(2,-14)*(i/1024):r===31?i?Number.NaN:e*Number.POSITIVE_INFINITY:e*Math.pow(2,r-15)*(1+i/1024)}function Gr(t){let e={},r=[],i=[];Ox(e,r,i,"POSITION",XD(t.positions,3),{type:"fixed-size-list",listSize:3,children:[{name:"value",type:"float32"}]});let n=qD(t);Uo(e,r,i,"f_dc_0",n[0],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"0","loaders_gl.gaussian_splats.encoding":"coefficient"}),Uo(e,r,i,"f_dc_1",n[1],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"1","loaders_gl.gaussian_splats.encoding":"coefficient"}),Uo(e,r,i,"f_dc_2",n[2],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"2","loaders_gl.gaussian_splats.encoding":"coefficient"}),Uo(e,r,i,"opacity",t.opacities,{"loaders_gl.gaussian_splats.semantic":"opacity","loaders_gl.gaussian_splats.encoding":"linear"}),Ax(e,r,i,"scale",t.scales,3,{"loaders_gl.gaussian_splats.semantic":"scale","loaders_gl.gaussian_splats.encoding":"linear"}),Ax(e,r,i,"rot",t.rotations,4,{"loaders_gl.gaussian_splats.semantic":"rotation","loaders_gl.gaussian_splats.encoding":"quaternion"}),t.sphericalHarmonics&&t.sphericalHarmonicsComponentCount&&YD(e,r,i,t.sphericalHarmonics,t.sphericalHarmonicsComponentCount);let o=new Map([["loaders_gl.semantic_type","gaussian-splats"],["loaders_gl.gaussian_splats.version","1"],["loaders_gl.gaussian_splats.source_format",t.format],["topology","point-list"],["mode","0"]]),a=new Q(r,o);return{shape:"arrow-table",schema:{fields:i,metadata:Object.fromEntries(o)},data:new Ne(a,e),topology:"point-list",loaderData:t.loaderData}}function Ax(t,e,r,i,n,o,a){for(let s=0;s<o;s++){let u=new Float32Array(n.length/o);for(let c=0;c<u.length;c++)u[c]=n[c*o+s];Uo(t,e,r,`${i}_${s}`,u,{...a,"loaders_gl.gaussian_splats.component":String(s)})}}function YD(t,e,r,i,n){for(let o=0;o<n;o++){let a=new Float32Array(i.length/n);for(let s=0;s<a.length;s++)a[s]=i[s*n+o];Uo(t,e,r,`f_rest_${o}`,a,{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_rest","loaders_gl.gaussian_splats.component":String(o),"loaders_gl.gaussian_splats.encoding":"coefficient"})}}function Uo(t,e,r,i,n,o){Ox(t,e,r,i,_i(n),"float32",o)}function Ox(t,e,r,i,n,o,a={}){t[i]=n,e.push(new J(i,n.type,!1,new Map(Object.entries(a)))),r.push({name:i,type:o,nullable:!1,metadata:a})}function XD(t,e){let i=_i(t).data[0],n=new zt(e,new J("value",i.type,!1)),o=new ee(n,0,t.length/e,0,{},[i]);return new O([o])}function qD(t){let e=t.splatCount,r=new Float32Array(e),i=new Float32Array(e),n=new Float32Array(e);for(let o=0;o<e;o++)t.sphericalHarmonicDcs?(r[o]=t.sphericalHarmonicDcs[o*3+0],i[o]=t.sphericalHarmonicDcs[o*3+1],n[o]=t.sphericalHarmonicDcs[o*3+2]):(r[o]=qu(t.colors[o*3+0]),i[o]=qu(t.colors[o*3+1]),n[o]=qu(t.colors[o*3+2]));return[r,i,n]}var xs=32;function Sp(t){return Gr(QD(t))}function QD(t){if(t.byteLength%xs!==0)throw new Error(`SPLATLoader: byte length must be a multiple of ${xs}.`);let e=t.byteLength/xs,r=new DataView(t),i=new Float32Array(e*3),n=new Float32Array(e*3),o=new Float32Array(e*4),a=new Uint8Array(e*3),s=new Float32Array(e);for(let u=0;u<e;u++){let c=u*xs,l=u*3,d=u*4;i[l+0]=r.getFloat32(c+0,!0),i[l+1]=r.getFloat32(c+4,!0),i[l+2]=r.getFloat32(c+8,!0),n[l+0]=r.getFloat32(c+12,!0),n[l+1]=r.getFloat32(c+16,!0),n[l+2]=r.getFloat32(c+20,!0),a[l+0]=r.getUint8(c+24),a[l+1]=r.getUint8(c+25),a[l+2]=r.getUint8(c+26),s[u]=Qu(r.getUint8(c+27));let[p,f,y,w]=_n(_s(r.getUint8(c+28)),_s(r.getUint8(c+29)),_s(r.getUint8(c+30)),_s(r.getUint8(c+31)));o[d+0]=p,o[d+1]=f,o[d+2]=y,o[d+3]=w}return{format:"splat",splatCount:e,positions:i,scales:n,rotations:o,colors:a,opacities:s,loaderData:{format:"splat",splatCount:e,rowByteLength:xs}}}var ez="4.5.1",Tx={dataType:null,batchType:null,...Dc,version:ez,options:{splats:{shape:"arrow-table"}}};var Bx={...Tx,parse:async t=>Sp(t),parseSync:t=>Sp(t)};var Ux=0,tz=1,No=4096,el=1024,rz=3,Nx=rz/2,$p={0:{bytesPerCenter:12,bytesPerScale:12,bytesPerRotation:16,bytesPerColor:4,scaleOffsetBytes:12,colorOffsetBytes:40,sphericalHarmonicsOffsetBytes:44,scaleRange:1,bytesPerSphericalHarmonicsComponent:4},1:{bytesPerCenter:6,bytesPerScale:6,bytesPerRotation:8,bytesPerColor:4,scaleOffsetBytes:6,colorOffsetBytes:20,sphericalHarmonicsOffsetBytes:24,scaleRange:32767,bytesPerSphericalHarmonicsComponent:2},2:{bytesPerCenter:6,bytesPerScale:6,bytesPerRotation:8,bytesPerColor:4,scaleOffsetBytes:6,colorOffsetBytes:20,sphericalHarmonicsOffsetBytes:24,scaleRange:32767,bytesPerSphericalHarmonicsComponent:1}};function kp(t){return Gr(nz(t))}function nz(t){if(t.byteLength<No)throw new Error(`KSPLATLoader: file must contain a ${No}-byte header.`);let e=oz(t);az(e);let r=sz(t,e),i=pz(e,r),n=Math.max(0,...r.slice(0,tl(e)).map(p=>Dp(p.sphericalHarmonicsDegree))),o=new Float32Array(i*3),a=new Float32Array(i*3),s=new Float32Array(i*4),u=new Uint8Array(i*3),c=new Float32Array(i),l=n?new Float32Array(i*n):void 0,d=0;for(let p of r.slice(0,tl(e))){hz(t,p);for(let f=0;f<p.splatCount&&d<i;f++)iz(t,e,p,f,d,o,a,s,u,c,l,n),d++}return{format:"ksplat",splatCount:i,positions:o,scales:a,rotations:s,colors:u,opacities:c,sphericalHarmonics:l,sphericalHarmonicsComponentCount:n,loaderData:{format:"ksplat",...e,sections:r.slice(0,tl(e)).map(p=>({splatCount:p.splatCount,maxSplatCount:p.maxSplatCount,sphericalHarmonicsDegree:p.sphericalHarmonicsDegree}))}}}function iz(t,e,r,i,n,o,a,s,u,c,l,d){let p=$p[e.compressionLevel],f=r.dataBase+r.bytesPerSplat*i,y=n*3,w=n*4,k=uz(t,r,i);o[y+0]=Ip(t,f,0,e,r,k[0]),o[y+1]=Ip(t,f,1,e,r,k[1]),o[y+2]=Ip(t,f,2,e,r,k[2]),a[y+0]=Pn(t,f+p.scaleOffsetBytes,0,e.compressionLevel),a[y+1]=Pn(t,f+p.scaleOffsetBytes,1,e.compressionLevel),a[y+2]=Pn(t,f+p.scaleOffsetBytes,2,e.compressionLevel);let[A,ie,K,z]=_n(Pn(t,f+p.scaleOffsetBytes,3,e.compressionLevel),Pn(t,f+p.scaleOffsetBytes,4,e.compressionLevel),Pn(t,f+p.scaleOffsetBytes,5,e.compressionLevel),Pn(t,f+p.scaleOffsetBytes,6,e.compressionLevel));s[w+0]=A,s[w+1]=ie,s[w+2]=K,s[w+3]=z;let S=f+p.colorOffsetBytes,te=new Uint8Array(t,S,4);u[y+0]=te[0],u[y+1]=te[1],u[y+2]=te[2],c[n]=Qu(te[3]),l&&d&&dz(t,f+p.sphericalHarmonicsOffsetBytes,e,r,n,l,d)}function oz(t){let e=new DataView(t,0,No),r=e.getUint16(20,!0);if(r!==0&&r!==1&&r!==2)throw new Error(`KSPLATLoader: unsupported compression level ${r}.`);return{versionMajor:e.getUint8(0),versionMinor:e.getUint8(1),maxSectionCount:e.getUint32(4,!0),sectionCount:e.getUint32(8,!0),maxSplatCount:e.getUint32(12,!0),splatCount:e.getUint32(16,!0),compressionLevel:r,minSphericalHarmonicsCoeff:e.getFloat32(36,!0)||-Nx,maxSphericalHarmonicsCoeff:e.getFloat32(40,!0)||Nx}}function az(t){if(!(t.versionMajor===Ux?t.versionMinor>=tz:t.versionMajor>Ux))throw new Error(`KSPLATLoader: version ${t.versionMajor}.${t.versionMinor} is not supported.`)}function sz(t,e){if(t.byteLength<No+e.maxSectionCount*el)throw new Error("KSPLATLoader: file does not contain all section headers.");let r=[],i=No+e.maxSectionCount*el,n=0;for(let o=0;o<e.maxSectionCount;o++){let a=No+o*el,s=new DataView(t,a,el),u=s.getUint32(0,!0),c=s.getUint32(4,!0),l=s.getUint32(8,!0),d=s.getUint32(12,!0),p=s.getFloat32(16,!0),f=s.getUint16(20,!0),y=s.getUint32(24,!0)||$p[e.compressionLevel].scaleRange,w=s.getUint32(32,!0),k=s.getUint32(36,!0),A=s.getUint16(40,!0),ie=fz(e.compressionLevel,A),K=k*4,z=f*d+K,S=ie*c+z;r.push({bytesPerSplat:ie,splatCountOffset:n,splatCount:u||c,maxSplatCount:c,bucketSize:l,bucketCount:d,bucketStorageSizeBytes:f,bucketsStorageSizeBytes:z,compressionScaleRange:y,compressionScaleFactor:p/2/y,base:i,bucketsBase:i+K,dataBase:i+z,fullBucketCount:w,partiallyFilledBucketCount:k,sphericalHarmonicsDegree:A}),i+=S,n+=c}return r}function Ip(t,e,r,i,n,o){let a=cz(t,e,r,i.compressionLevel);return i.compressionLevel>=1?(a-n.compressionScaleRange)*n.compressionScaleFactor+o:a}function cz(t,e,r,i){let n=new DataView(t);return i===0?n.getFloat32(e+r*4,!0):n.getUint16(e+r*2,!0)}function uz(t,e,r){if(!e.bucketCount)return[0,0,0];let i=lz(t,e,r),n=e.bucketsBase+i*e.bucketStorageSizeBytes,o=new DataView(t,n,12);return[o.getFloat32(0,!0),o.getFloat32(4,!0),o.getFloat32(8,!0)]}function lz(t,e,r){let i=e.fullBucketCount*e.bucketSize;if(r<i)return Math.floor(r/e.bucketSize);let n=i,o=e.fullBucketCount;for(let a=0;a<e.partiallyFilledBucketCount;a++){let s=new DataView(t,e.base+a*4,4).getUint32(0,!0);if(r<n+s)return o;n+=s,o++}return Math.max(o-1,0)}function dz(t,e,r,i,n,o,a){let s=Dp(i.sphericalHarmonicsDegree),u=n*a;for(let c=0;c<s;c++)o[u+c]=Pn(t,e,c,r.compressionLevel,!0,r.minSphericalHarmonicsCoeff,r.maxSphericalHarmonicsCoeff)}function Pn(t,e,r,i,n=!1,o=0,a=0){let s=new DataView(t);return i===0?s.getFloat32(e+r*4,!0):i===1||!n?bs(s.getUint16(e+r*2,!0)):s.getUint8(e+r)/255*(a-o)+o}function fz(t,e){let r=$p[t];return r.bytesPerCenter+r.bytesPerScale+r.bytesPerRotation+r.bytesPerColor+r.bytesPerSphericalHarmonicsComponent*Dp(e)}function Dp(t){switch(t){case 0:return 0;case 1:return 9;case 2:return 24;case 3:return 45;default:throw new Error(`KSPLATLoader: unsupported spherical harmonics degree ${t}.`)}}function tl(t){return t.sectionCount||t.maxSectionCount}function pz(t,e){let r=e.slice(0,tl(t)).reduce((i,n)=>i+n.splatCount,0);return t.splatCount?Math.min(t.splatCount,r||t.splatCount):r}function hz(t,e){if(e.dataBase+e.bytesPerSplat*e.splatCount>t.byteLength)throw new Error("KSPLATLoader: section data extends beyond the file length.")}var mz="4.5.1",Ex={dataType:null,batchType:null,...zc,version:mz,options:{splats:{shape:"arrow-table"}}};var Px={...Ex,parse:async t=>kp(t),parseSync:t=>kp(t)};var Kr={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document},gz=Kr.self||Kr.window||Kr.global||{},yz=Kr.window||Kr.self||Kr.global||{},vz=Kr.global||Kr.self||Kr.window||{},_z=Kr.document||{};var Eo=Boolean(typeof process!="object"||String(process)!=="[object process]"||process.browser);var Lx=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version),bz=Lx&&parseFloat(Lx[1])||0;var rl=globalThis,xz=globalThis.document||{},nl=globalThis.process||{},wz=globalThis.console,vM=globalThis.navigator||{};function Fx(t){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&Boolean(process.versions?.electron))return!0;let e=typeof navigator<"u"&&navigator.userAgent,r=t||e;return Boolean(r&&r.indexOf("Electron")>=0)}function Ni(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||Fx()}var zp="4.1.1";function Po(t,e){if(!t)throw new Error(e||"Assertion failed")}function Ap(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return Po(Number.isFinite(e)&&e>=0),e}function jx(t){let{logLevel:e,message:r}=t;t.logLevel=Ap(e);let i=t.args?Array.from(t.args):[];for(;i.length&&i.shift()!==r;);switch(typeof e){case"string":case"function":r!==void 0&&i.unshift(r),t.message=e;break;case"object":Object.assign(t,e);break;default:}typeof t.message=="function"&&(t.message=t.message());let n=typeof t.message;return Po(n==="string"||n==="object"),Object.assign(t,{args:i},t.opts)}var Ei=()=>{},il=class{constructor({level:e=0}={}){this.userData={},this._onceCache=new Set,this._level=e}set level(e){this.setLevel(e)}get level(){return this.getLevel()}setLevel(e){return this._level=e,this}getLevel(){return this._level}warn(e,...r){return this._log("warn",0,e,r,{once:!0})}error(e,...r){return this._log("error",0,e,r)}log(e,r,...i){return this._log("log",e,r,i)}info(e,r,...i){return this._log("info",e,r,i)}once(e,r,...i){return this._log("once",e,r,i,{once:!0})}_log(e,r,i,n,o={}){let a=jx({logLevel:r,message:i,args:this._buildArgs(r,i,n),opts:o});return this._createLogFunction(e,a,o)}_buildArgs(e,r,i){return[e,r,...i]}_createLogFunction(e,r,i){if(!this._shouldLog(r.logLevel))return Ei;let n=this._getOnceTag(i.tag??r.tag??r.message);if((i.once||r.once)&&n!==void 0){if(this._onceCache.has(n))return Ei;this._onceCache.add(n)}return this._emit(e,r)}_shouldLog(e){return this.getLevel()>=Ap(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e=="string"?e:String(e)}catch{return}}};function Iz(t){try{let e=window[t],r="__storage_test__";return e.setItem(r,r),e.removeItem(r),e}catch{return null}}var ol=class{constructor(e,r,i="sessionStorage"){this.storage=Iz(i),this.id=e,this.config=r,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){let r=JSON.stringify(this.config);this.storage.setItem(this.id,r)}}_loadConfiguration(){let e={};if(this.storage){let r=this.storage.getItem(this.id);e=r?JSON.parse(r):{}}return Object.assign(this.config,e),this}};function Rx(t){let e;return t<10?e=`${t.toFixed(2)}ms`:t<100?e=`${t.toFixed(1)}ms`:t<1e3?e=`${t.toFixed(0)}ms`:e=`${(t/1e3).toFixed(2)}s`,e}function Mx(t,e=8){let r=Math.max(e-t.length,0);return`${" ".repeat(r)}${t}`}var al;(function(t){t[t.BLACK=30]="BLACK",t[t.RED=31]="RED",t[t.GREEN=32]="GREEN",t[t.YELLOW=33]="YELLOW",t[t.BLUE=34]="BLUE",t[t.MAGENTA=35]="MAGENTA",t[t.CYAN=36]="CYAN",t[t.WHITE=37]="WHITE",t[t.BRIGHT_BLACK=90]="BRIGHT_BLACK",t[t.BRIGHT_RED=91]="BRIGHT_RED",t[t.BRIGHT_GREEN=92]="BRIGHT_GREEN",t[t.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",t[t.BRIGHT_BLUE=94]="BRIGHT_BLUE",t[t.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",t[t.BRIGHT_CYAN=96]="BRIGHT_CYAN",t[t.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(al||(al={}));var $z=10;function Cx(t){return typeof t!="string"?t:(t=t.toUpperCase(),al[t]||al.WHITE)}function Zx(t,e,r){return!Ni&&typeof t=="string"&&(e&&(t=`\x1B[${Cx(e)}m${t}\x1B[39m`),r&&(t=`\x1B[${Cx(r)+$z}m${t}\x1B[49m`)),t}function Vx(t,e=["constructor"]){let r=Object.getPrototypeOf(t),i=Object.getOwnPropertyNames(r),n=t;for(let o of i){let a=n[o];typeof a=="function"&&(e.find(s=>o===s)||(n[o]=a.bind(t)))}}function Lo(){let t;if(Ni()&&rl.performance)t=rl?.performance?.now?.();else if("hrtime"in nl){let e=nl?.hrtime?.();t=e[0]*1e3+e[1]/1e6}else t=Date.now();return t}var Fo={debug:Ni()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},Op={enabled:!0,level:0},bn=class extends il{constructor({id:e}={id:""}){super({level:0}),this.VERSION=zp,this._startTs=Lo(),this._deltaTs=Lo(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new ol(`__probe-${this.id}__`,{[this.id]:Op}),this.timeStamp(`${this.id} started`),Vx(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((Lo()-this._startTs).toPrecision(10))}getDelta(){return Number((Lo()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._updateConfiguration({enabled:e}),this}setLevel(e){return this._updateConfiguration({level:e}),this}get(e){return this._getConfiguration()[e]}set(e,r){this._updateConfiguration({[e]:r})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,r){if(!e)throw new Error(r||"Assertion failed")}warn(e,...r){return this._log("warn",0,e,r,{method:Fo.warn,once:!0})}error(e,...r){return this._log("error",0,e,r,{method:Fo.error})}deprecated(e,r){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${r}\` instead`)}removed(e,r){return this.error(`\`${e}\` has been removed. Use \`${r}\` instead`)}probe(e,r,...i){return this._log("log",e,r,i,{method:Fo.log,time:!0,once:!0})}log(e,r,...i){return this._log("log",e,r,i,{method:Fo.debug})}info(e,r,...i){return this._log("info",e,r,i,{method:console.info})}once(e,r,...i){return this._log("once",e,r,i,{method:Fo.debug||Fo.info,once:!0})}table(e,r,i){return r?this._log("table",e,r,i&&[i]||[],{method:console.table||Ei,tag:Dz(r)}):Ei}time(e,r){return this._log("time",e,r,[],{method:console.time?console.time:console.info})}timeEnd(e,r){return this._log("time",e,r,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(e,r){return this._log("time",e,r,[],{method:console.timeStamp||Ei})}group(e,r,i={collapsed:!1}){let n=(i.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",e,r,[],{method:n})}groupCollapsed(e,r,i={}){return this.group(e,r,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._log("groupEnd",e,"",[],{method:console.groupEnd||Ei})}withGroup(e,r,i){this.group(e,r)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&super._shouldLog(e)}_emit(e,r){let i=r.method;Po(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=Lo();let n=kz(this.id,r.message,r);return i.bind(console,n,...r.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(Op),this._storage.config[this.id]}_updateConfiguration(e){let r=this._storage.config[this.id]||{...Op};this._storage.setConfiguration({[this.id]:{...r,...e}})}};bn.VERSION=zp;function kz(t,e,r){if(typeof e=="string"){let i=r.time?Mx(Rx(r.total)):"";e=r.time?`${t}: ${i} ${e}`:`${t}: ${e}`,e=Zx(e,r.color,r.background)}return e}function Dz(t){for(let e in t)for(let r in t[e])return r||"untitled";return"empty"}globalThis.probe={};var GM=new bn({id:"@probe.gl/log"});var Tp="4.5.1",zz=Tp[0]>="0"&&Tp[0]<="9"?`v${Tp}`:"";function Az(){let t=new bn({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=t,globalThis.loaders.version=zz,globalThis.probe||={},globalThis.probe.loaders=t,t}var Jx=Az();var Bp=t=>typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer;function Hx(t,e){return Wx(t||{},e)}function Wx(t,e,r=0){if(r>3)return e;let i={...t};for(let[n,o]of Object.entries(e))o&&typeof o=="object"&&!Array.isArray(o)?i[n]=Wx(i[n]||{},e[n],r+1):i[n]=e[n];return i}function jo(t){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,t)}function Up(t,e){globalThis.loaders?.modules?.[t]||Jx.warn(`${e}: ${t} library not installed`)()}function sl(t,e){let r=globalThis.loaders?.modules?.[t];if(!r)throw new Error(`${e}: ${t} library not installed`);return r}function Np(t){return globalThis.loaders?.modules?.[t]||null}function Gx(...t){return Oz(t)}function Oz(t){let e=t.map(o=>o instanceof ArrayBuffer?new Uint8Array(o):o),r=e.reduce((o,a)=>o+a.byteLength,0),i=new Uint8Array(r),n=0;for(let o of e)i.set(o,n),n+=o.byteLength;return i.buffer}async function Ep(t){let e=[];for await(let r of t)e.push(Tz(r));return Gx(...e)}function Tz(t){if(t instanceof ArrayBuffer)return t;if(ArrayBuffer.isView(t)){let{buffer:e,byteOffset:r,byteLength:i}=t;return Kx(e,r,i)}return Kx(t)}function Kx(t,e=0,r=t.byteLength-e){let i=new Uint8Array(t,e,r),n=new Uint8Array(i.length);return n.set(i),n.buffer}var Bz="",Yx={};function Xx(t){for(let e in Yx)if(t.startsWith(e)){let r=Yx[e];t=t.replace(e,r)}return!t.startsWith("http://")&&!t.startsWith("https://")&&(t=`${Bz}${t}`),t}function qx(t){return t&&typeof t=="object"&&t.isBuffer}function Ln(t){if(qx(t))return t;if(t instanceof ArrayBuffer)return t;if(Bp(t))return cl(t);if(ArrayBuffer.isView(t)){let e=t.buffer;return t.byteOffset===0&&t.byteLength===t.buffer.byteLength?e:e.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(typeof t=="string"){let e=t;return new TextEncoder().encode(e).buffer}if(t&&typeof t=="object"&&t._toArrayBuffer)return t._toArrayBuffer();throw new Error("toArrayBuffer")}function Pp(t){if(t instanceof ArrayBuffer)return t;if(Bp(t))return cl(t);let{buffer:e,byteOffset:r,byteLength:i}=t;return e instanceof ArrayBuffer&&r===0&&i===e.byteLength?e:cl(e,r,i)}function cl(t,e=0,r=t.byteLength-e){let i=new Uint8Array(t,e,r),n=new Uint8Array(i.length);return n.set(i),n.buffer}function Ro(t){return e=>new Promise((r,i)=>t(e,(n,o)=>n?i(n):r(o)))}var Lp=class{optionsType;options;data;url;loadOptions;fetch;_needsRefresh=!0;constructor(e,r,i){i?this.options=Hx({...i,core:Lp.defaultOptions},r):this.options={...r},this.data=e,this.url=typeof e=="string"?Xx(e):"",this.loadOptions=Nz(this.options.core?.loadOptions),this.fetch=Uz(this.loadOptions)}setProps(e){this.options=Object.assign(this.options,e),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(e=!0){let r=this._needsRefresh;return e&&(this._needsRefresh=!1),r}},Mo=Lp;D_(Mo,"defaultOptions",{core:{type:"auto",attributions:[],loadOptions:{},loaders:[]}});function Uz(t){let e=t?.core?.fetch;if(e&&typeof e=="function")return(i,n)=>e(i,n);let r=t?.fetch;return r&&typeof r!="function"?i=>fetch(i,r):i=>fetch(i)}function Nz(t){let e={...t};t?.core&&(e.core={...t.core});let r=typeof e.baseUri=="string"?e.baseUri:void 0,i=typeof e.baseUrl=="string"?e.baseUrl:void 0;return(r!==void 0||i!==void 0)&&(e.core||={},e.core.baseUrl===void 0&&(e.core.baseUrl=i??r),delete e.baseUri,delete e.baseUrl),e}var Co=class{constructor(e){this.compressBatches=this.compressBatches.bind(this),this.decompressBatches=this.decompressBatches.bind(this)}async preload(e={}){jo(e)}async compress(e){return await this.preload(),this.compressSync(e)}async decompress(e,r){return await this.preload(),this.decompressSync(e,r)}compressSync(e){throw new Error(`${this.name}: sync compression not supported`)}decompressSync(e,r){throw new Error(`${this.name}: sync decompression not supported`)}async*compressBatches(e){let r=await this.concatenate(e);yield this.compress(r)}async*decompressBatches(e){let r=await this.concatenate(e);yield this.decompress(r)}concatenate(e){return Ep(e)}improveError(e){return e.message.includes(this.name)||(e.message=`${this.name} ${e.message}`),e}};var Vi=gf(jw(),1),$n=gf(Rw(),1),Qo=class extends Co{name="deflate";extensions=[];contentEncodings=["deflate"];isSupported=!0;options;_chunks=[];constructor(e={}){super(e),this.options=e}async compress(e){if(!Eo&&this.options.deflate?.useZlib){let r=this.options.deflate?.gzip?await Ro($n.default.gzip)(e):await Ro($n.default.deflate)(e);return Ln(r)}return this.compressSync(e)}async decompress(e){if(!Eo&&this.options.deflate?.useZlib){let r=this.options.deflate?.gzip?await Ro($n.default.gunzip)(e):await Ro($n.default.inflate)(e);return Ln(r)}return this.decompressSync(e)}compressSync(e){if(!Eo&&this.options.deflate?.useZlib){let o=this.options.deflate?.gzip?$n.default.gzipSync(e):$n.default.deflateSync(e);return Ln(o)}let r=this.options?.deflate||{},i=new Uint8Array(e),n=this.options?.raw?Vi.default.deflateRaw:Vi.default.deflate;return Ln(n(i,r).buffer)}decompressSync(e){if(!Eo&&this.options.deflate?.useZlib){let o=this.options.deflate?.gzip?$n.default.gunzipSync(e):$n.default.inflateSync(e);return Ln(o)}let r=this.options?.deflate||{},i=new Uint8Array(e),n=this.options?.raw?Vi.default.inflateRaw:Vi.default.inflate;return Ln(n(i,r).buffer)}async*compressBatches(e){let r=this.options?.deflate||{},i=new Vi.default.Deflate(r);yield*this.transformBatches(i,e)}async*decompressBatches(e){let r=this.options?.deflate||{},i=new Vi.default.Inflate(r);yield*this.transformBatches(i,e)}async*transformBatches(e,r){e.onData=this._onData.bind(this),e.onEnd=this._onEnd.bind(this);for await(let a of r){let s=new Uint8Array(a);if(!e.push(s,!1))throw new Error(`${this._getError()}write`);yield*this._getChunks()}let i=new Uint8Array(0),n=e.push(i,!0);yield*this._getChunks()}_onData(e){this._chunks.push(e)}_onEnd(e){if(e!==0)throw new Error(this._getError(e)+this._chunks.length)}_getChunks(){let e=this._chunks;return this._chunks=[],e}_getError(e=0){let r={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};return`${this.name}: ${r[e]}`}};var Mw=1e6,vh,$l,Fs=class extends Co{name="zstd";extensions=[];contentEncodings=[];isSupported=!0;options;constructor(e){super(e),this.options=e,jo(e?.modules)}async preload(e={}){jo(e),Up("zstd-codec",this.name);let r=Np("zstd-codec");!vh&&r&&(vh=new Promise(i=>r.run(n=>i(n))),$l=await vh)}compressSync(e){sl("zstd-codec",this.name);let r=new $l.Simple,i=new Uint8Array(e);return r.compress(i).buffer}decompressSync(e){sl("zstd-codec",this.name);let r=new $l.Simple,i=new Uint8Array(e);return r.decompress(i).buffer}async decompress(e,r){await this.preload();let i=new $l.Streaming,n=new Uint8Array(e),o=[];for(let s=0;s<=n.length;s+=Mw){let u=n.subarray(s,s+Mw),c=Pp(u);o.push(new Uint8Array(c))}return(await i.decompressChunks(o)).buffer}};var js=32,DO=1347635022,zO=4,AO=2,Vw=.15,OO=Math.SQRT1_2,Cw=(1<<9)-1;async function Jw(t,e){return Gr(await TO(t,e))}async function TO(t,e){let r=BO(t),i=UO(t,r,NO(r)),n=i.map(s=>t.slice(s.compressedOffset,s.compressedOffset+s.compressedSize)),o=new Fs({modules:e?.modules}),a=await Promise.all(n.map((s,u)=>o.decompress(s,i[u].uncompressedSize)));return EO(a,i),PO(r,a,t)}function BO(t){if(t.byteLength<js)throw new Error(`SPZLoader: file must contain a ${js}-byte header.`);let e=new DataView(t),r={magic:e.getUint32(0,!0),version:e.getUint32(4,!0),numPoints:e.getUint32(8,!0),shDegree:e.getUint8(12),fractionalBits:e.getUint8(13),flags:e.getUint8(14),numStreams:e.getUint8(15),tocByteOffset:e.getUint32(16,!0)};if(r.magic!==DO)throw new Error("SPZLoader: NGSP magic header not found.");if(r.version!==zO)throw new Error(`SPZLoader: version ${r.version} is not supported.`);if(r.shDegree>4)throw new Error(`SPZLoader: spherical harmonics degree ${r.shDegree} is not supported.`);if(r.tocByteOffset<js||r.tocByteOffset>t.byteLength)throw new Error("SPZLoader: invalid table of contents byte offset.");return r}function UO(t,e,r){if(e.numStreams!==r.length)throw new Error(`SPZLoader: expected ${r.length} streams, found ${e.numStreams}.`);let i=e.numStreams*16,n=e.tocByteOffset+i;if(n>t.byteLength)throw new Error("SPZLoader: table of contents exceeds file byte length.");let o=new DataView(t),a=n,s=[];for(let u=0;u<e.numStreams;u++){let c=e.tocByteOffset+u*16,l=Zw(o,c),d=Zw(o,c+8),p=r[u];if(d!==p)throw new Error(`SPZLoader: stream ${u} has ${d} uncompressed bytes, expected ${p}.`);if(a+l>t.byteLength)throw new Error(`SPZLoader: stream ${u} exceeds file byte length.`);s.push({compressedSize:l,uncompressedSize:d,compressedOffset:a}),a+=l}if(a!==t.byteLength)throw new Error("SPZLoader: compressed stream byte lengths do not match file byte length.");return s}function Zw(t,e){let r=t.getBigUint64(e,!0);if(r>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("SPZLoader: stream byte length exceeds Number.MAX_SAFE_INTEGER.");return Number(r)}function NO(t){return[t.numPoints*9,t.numPoints,t.numPoints*3,t.numPoints*3,t.numPoints*4,t.numPoints*Hw(t.shDegree)].filter(e=>e>0)}function EO(t,e){for(let r=0;r<t.length;r++)if(t[r].byteLength!==e[r].uncompressedSize)throw new Error(`SPZLoader: decompressed stream ${r} has unexpected byte length.`)}function PO(t,e,r){let i=t.numPoints,n=new Float32Array(i*3),o=new Float32Array(i*3),a=new Float32Array(i*4),s=new Uint8Array(i*3),u=new Float32Array(i*3),c=new Float32Array(i),l=Hw(t.shDegree),d=l?new Float32Array(i*l):void 0,[p,f,y,w,k,A]=e.map(ie=>new Uint8Array(ie));return LO(p,n,t.fractionalBits),FO(w,o),jO(k,a),MO(y,s,u),CO(f,c),d&&A&&ZO(A,d),{format:"spz",splatCount:i,positions:n,scales:o,rotations:a,colors:s,sphericalHarmonicDcs:u,opacities:c,sphericalHarmonics:d,sphericalHarmonicsComponentCount:l,loaderData:{format:"spz",...t,antialiased:Boolean(t.flags&1),extensionByteLength:Ww(t),extensionBytes:JO(r,t)}}}function LO(t,e,r){let i=1/2**r;for(let n=0;n<e.length;n++){let o=n*3,a=t[o]|t[o+1]<<8|t[o+2]<<16;a|=a&8388608?4278190080:0,e[n]=a*i}}function FO(t,e){for(let r=0;r<e.length;r++)e[r]=Math.exp(t[r]/16-10)}function jO(t,e){for(let r=0;r<e.length/4;r++){let i=r*4,n=t[i]|t[i+1]<<8|t[i+2]<<16|t[i+3]<<24,o=RO(n>>>0),[a,s,u,c]=_n(o[3],o[0],o[1],o[2]),l=r*4;e[l+0]=a,e[l+1]=s,e[l+2]=u,e[l+3]=c}}function RO(t){let e=[0,0,0,0],r=t>>>30,i=t,n=0;for(let o=3;o>=0;o--)if(o!==r){let a=i&Cw,s=i>>>9&1;i>>>=10;let u=OO*a/Cw;s&&(u=-u),e[o]=u,n+=u*u}return e[r]=Math.sqrt(Math.max(0,1-n)),e}function MO(t,e,r){for(let i=0;i<e.length;i++)r[i]=(t[i]/255-.5)/Vw,e[i]=VO(r[i])}function CO(t,e){for(let r=0;r<e.length;r++)e[r]=t[r]/255}function ZO(t,e){for(let r=0;r<e.length;r++)e[r]=(t[r]-128)/128}function VO(t){return Math.min(Math.max(Math.round((t*Vw+.5)*255),0),255)}function Hw(t){switch(t){case 0:return 0;case 1:return 9;case 2:return 24;case 3:return 45;case 4:return 72;default:throw new Error(`SPZLoader: spherical harmonics degree ${t} is not supported.`)}}function Ww(t){return t.flags&AO?t.tocByteOffset-js:0}function JO(t,e){return Ww(e)?new Uint8Array(t.slice(js,e.tocByteOffset)):void 0}var HO="4.5.1",Gw={dataType:null,batchType:null,...Ac,version:HO,options:{splats:{shape:"arrow-table"}}};var Kw={...Gw,parse:async(t,e)=>Jw(t,e)};var fe={};We(fe,{$brand:()=>bh,$input:()=>Mg,$output:()=>Rg,NEVER:()=>_h,TimePrecision:()=>Jg,ZodAny:()=>Ev,ZodArray:()=>jv,ZodBase64:()=>qd,ZodBase64URL:()=>Qd,ZodBigInt:()=>Aa,ZodBigIntFormat:()=>rf,ZodBoolean:()=>za,ZodCIDRv4:()=>Yd,ZodCIDRv6:()=>Xd,ZodCUID:()=>Zd,ZodCUID2:()=>Vd,ZodCatch:()=>s_,ZodCodec:()=>gc,ZodCustom:()=>yc,ZodCustomStringFormat:()=>ka,ZodDate:()=>dc,ZodDefault:()=>t_,ZodDiscriminatedUnion:()=>Mv,ZodE164:()=>ef,ZodEmail:()=>Rd,ZodEmoji:()=>Md,ZodEnum:()=>Ia,ZodError:()=>SU,ZodExactOptional:()=>qv,ZodFile:()=>Yv,ZodFirstPartyTypeKind:()=>b_,ZodFunction:()=>y_,ZodGUID:()=>ac,ZodIPv4:()=>Gd,ZodIPv6:()=>Kd,ZodISODate:()=>Nd,ZodISODateTime:()=>Ud,ZodISODuration:()=>Pd,ZodISOTime:()=>Ed,ZodIntersection:()=>Cv,ZodIssueCode:()=>$U,ZodJWT:()=>tf,ZodKSUID:()=>Wd,ZodLazy:()=>h_,ZodLiteral:()=>Kv,ZodMAC:()=>zv,ZodMap:()=>Wv,ZodNaN:()=>u_,ZodNanoID:()=>Cd,ZodNever:()=>Lv,ZodNonOptional:()=>uf,ZodNull:()=>Uv,ZodNullable:()=>e_,ZodNumber:()=>Da,ZodNumberFormat:()=>to,ZodObject:()=>pc,ZodOptional:()=>cf,ZodPipe:()=>mc,ZodPrefault:()=>n_,ZodPreprocess:()=>l_,ZodPromise:()=>g_,ZodReadonly:()=>d_,ZodRealError:()=>Lt,ZodRecord:()=>Sa,ZodSet:()=>Gv,ZodString:()=>$a,ZodStringFormat:()=>ve,ZodSuccess:()=>a_,ZodSymbol:()=>Tv,ZodTemplateLiteral:()=>p_,ZodTransform:()=>Xv,ZodTuple:()=>Vv,ZodType:()=>Y,ZodULID:()=>Jd,ZodURL:()=>lc,ZodUUID:()=>an,ZodUndefined:()=>Bv,ZodUnion:()=>hc,ZodUnknown:()=>Pv,ZodVoid:()=>Fv,ZodXID:()=>Hd,ZodXor:()=>Rv,_ZodString:()=>jd,_default:()=>r_,_function:()=>P$,any:()=>p$,array:()=>fc,base64:()=>YI,base64url:()=>XI,bigint:()=>c$,boolean:()=>Ov,catch:()=>c_,check:()=>L$,cidrv4:()=>GI,cidrv6:()=>KI,clone:()=>gt,codec:()=>B$,coerce:()=>lf,config:()=>Oe,core:()=>on,cuid:()=>RI,cuid2:()=>MI,custom:()=>F$,date:()=>m$,decode:()=>xv,decodeAsync:()=>Sv,describe:()=>j$,discriminatedUnion:()=>x$,e164:()=>qI,email:()=>OI,emoji:()=>FI,encode:()=>bv,encodeAsync:()=>wv,endsWith:()=>ha,enum:()=>af,exactOptional:()=>Qv,file:()=>z$,flattenError:()=>Ws,float32:()=>i$,float64:()=>o$,formatError:()=>Gs,fromJSONSchema:()=>H$,function:()=>P$,getErrorMap:()=>DU,globalRegistry:()=>rt,gt:()=>rn,gte:()=>vt,guid:()=>TI,hash:()=>n$,hex:()=>r$,hostname:()=>t$,httpUrl:()=>LI,includes:()=>fa,instanceof:()=>M$,int:()=>Ld,int32:()=>a$,int64:()=>u$,intersection:()=>Zv,invertCodec:()=>U$,ipv4:()=>JI,ipv6:()=>WI,iso:()=>Qi,json:()=>Z$,jwt:()=>QI,keyof:()=>g$,ksuid:()=>VI,lazy:()=>m_,length:()=>qi,literal:()=>D$,locales:()=>Ki,looseObject:()=>_$,looseRecord:()=>S$,lowercase:()=>la,lt:()=>tn,lte:()=>Jt,mac:()=>HI,map:()=>I$,maxLength:()=>Xi,maxSize:()=>Yn,meta:()=>R$,mime:()=>ma,minLength:()=>Dn,minSize:()=>nn,multipleOf:()=>Kn,nan:()=>T$,nanoid:()=>jI,nativeEnum:()=>k$,negative:()=>Sd,never:()=>nf,nonnegative:()=>$d,nonoptional:()=>o_,nonpositive:()=>Id,normalize:()=>ga,null:()=>Nv,nullable:()=>cc,nullish:()=>A$,number:()=>Av,object:()=>y$,optional:()=>sc,overwrite:()=>br,parse:()=>gv,parseAsync:()=>yv,partialRecord:()=>w$,pipe:()=>Fd,positive:()=>wd,prefault:()=>i_,preprocess:()=>V$,prettifyError:()=>Uh,promise:()=>E$,property:()=>kd,readonly:()=>f_,record:()=>Hv,refine:()=>v_,regex:()=>ua,regexes:()=>Pt,registry:()=>td,safeDecode:()=>$v,safeDecodeAsync:()=>Dv,safeEncode:()=>Iv,safeEncodeAsync:()=>kv,safeParse:()=>vv,safeParseAsync:()=>_v,set:()=>$$,setErrorMap:()=>kU,size:()=>Yi,slugify:()=>ba,startsWith:()=>pa,strictObject:()=>v$,string:()=>oc,stringFormat:()=>e$,stringbool:()=>C$,success:()=>O$,superRefine:()=>__,symbol:()=>d$,templateLiteral:()=>N$,toJSONSchema:()=>Od,toLowerCase:()=>va,toUpperCase:()=>_a,transform:()=>sf,treeifyError:()=>Bh,trim:()=>ya,tuple:()=>Jv,uint32:()=>s$,uint64:()=>l$,ulid:()=>CI,undefined:()=>f$,union:()=>of,unknown:()=>eo,uppercase:()=>da,url:()=>PI,util:()=>b,uuid:()=>BI,uuidv4:()=>UI,uuidv6:()=>NI,uuidv7:()=>EI,void:()=>h$,xid:()=>ZI,xor:()=>b$});var on={};We(on,{$ZodAny:()=>cg,$ZodArray:()=>pg,$ZodAsyncError:()=>_r,$ZodBase64:()=>qm,$ZodBase64URL:()=>Qm,$ZodBigInt:()=>Wl,$ZodBigIntFormat:()=>ig,$ZodBoolean:()=>qs,$ZodCIDRv4:()=>Km,$ZodCIDRv6:()=>Ym,$ZodCUID:()=>Lm,$ZodCUID2:()=>Fm,$ZodCatch:()=>Tg,$ZodCheck:()=>we,$ZodCheckBigIntFormat:()=>pm,$ZodCheckEndsWith:()=>$m,$ZodCheckGreaterThan:()=>Ml,$ZodCheckIncludes:()=>Sm,$ZodCheckLengthEquals:()=>_m,$ZodCheckLessThan:()=>Rl,$ZodCheckLowerCase:()=>xm,$ZodCheckMaxLength:()=>ym,$ZodCheckMaxSize:()=>hm,$ZodCheckMimeType:()=>Dm,$ZodCheckMinLength:()=>vm,$ZodCheckMinSize:()=>mm,$ZodCheckMultipleOf:()=>dm,$ZodCheckNumberFormat:()=>fm,$ZodCheckOverwrite:()=>zm,$ZodCheckProperty:()=>km,$ZodCheckRegex:()=>bm,$ZodCheckSizeEquals:()=>gm,$ZodCheckStartsWith:()=>Im,$ZodCheckStringFormat:()=>sa,$ZodCheckUpperCase:()=>wm,$ZodCodec:()=>ec,$ZodCustom:()=>jg,$ZodCustomStringFormat:()=>rg,$ZodDate:()=>fg,$ZodDefault:()=>Dg,$ZodDiscriminatedUnion:()=>gg,$ZodE164:()=>eg,$ZodEmail:()=>Um,$ZodEmoji:()=>Em,$ZodEncodeError:()=>Vn,$ZodEnum:()=>xg,$ZodError:()=>Hs,$ZodExactOptional:()=>$g,$ZodFile:()=>Sg,$ZodFunction:()=>Pg,$ZodGUID:()=>Tm,$ZodIPv4:()=>Hm,$ZodIPv6:()=>Wm,$ZodISODate:()=>Zm,$ZodISODateTime:()=>Cm,$ZodISODuration:()=>Jm,$ZodISOTime:()=>Vm,$ZodIntersection:()=>yg,$ZodJWT:()=>tg,$ZodKSUID:()=>Mm,$ZodLazy:()=>Fg,$ZodLiteral:()=>wg,$ZodMAC:()=>Gm,$ZodMap:()=>_g,$ZodNaN:()=>Bg,$ZodNanoID:()=>Pm,$ZodNever:()=>lg,$ZodNonOptional:()=>Ag,$ZodNull:()=>sg,$ZodNullable:()=>kg,$ZodNumber:()=>Hl,$ZodNumberFormat:()=>ng,$ZodObject:()=>kS,$ZodObjectJIT:()=>hg,$ZodOptional:()=>Kl,$ZodPipe:()=>Yl,$ZodPrefault:()=>zg,$ZodPreprocess:()=>Ug,$ZodPromise:()=>Lg,$ZodReadonly:()=>Ng,$ZodRealError:()=>Et,$ZodRecord:()=>vg,$ZodRegistry:()=>ed,$ZodSet:()=>bg,$ZodString:()=>Gi,$ZodStringFormat:()=>ye,$ZodSuccess:()=>Og,$ZodSymbol:()=>og,$ZodTemplateLiteral:()=>Eg,$ZodTransform:()=>Ig,$ZodTuple:()=>Gl,$ZodType:()=>H,$ZodULID:()=>jm,$ZodURL:()=>Nm,$ZodUUID:()=>Bm,$ZodUndefined:()=>ag,$ZodUnion:()=>Qs,$ZodUnknown:()=>ug,$ZodVoid:()=>dg,$ZodXID:()=>Rm,$ZodXor:()=>mg,$brand:()=>bh,$constructor:()=>m,$input:()=>Mg,$output:()=>Rg,Doc:()=>Xs,JSONSchema:()=>dv,JSONSchemaGenerator:()=>Td,NEVER:()=>_h,TimePrecision:()=>Jg,_any:()=>fy,_array:()=>_y,_base64:()=>vd,_base64url:()=>_d,_bigint:()=>oy,_boolean:()=>ny,_catch:()=>mU,_check:()=>DI,_cidrv4:()=>gd,_cidrv6:()=>yd,_coercedBigint:()=>ay,_coercedBoolean:()=>iy,_coercedDate:()=>yy,_coercedNumber:()=>Xg,_coercedString:()=>Zg,_cuid:()=>ud,_cuid2:()=>ld,_custom:()=>xy,_date:()=>gy,_decode:()=>Tl,_decodeAsync:()=>Ul,_default:()=>fU,_discriminatedUnion:()=>eU,_e164:()=>bd,_email:()=>rd,_emoji:()=>sd,_encode:()=>Ol,_encodeAsync:()=>Bl,_endsWith:()=>ha,_enum:()=>aU,_file:()=>by,_float32:()=>Qg,_float64:()=>ey,_gt:()=>rn,_gte:()=>vt,_guid:()=>rc,_includes:()=>fa,_int:()=>qg,_int32:()=>ty,_int64:()=>sy,_intersection:()=>tU,_ipv4:()=>hd,_ipv6:()=>md,_isoDate:()=>Wg,_isoDateTime:()=>Hg,_isoDuration:()=>Kg,_isoTime:()=>Gg,_jwt:()=>xd,_ksuid:()=>pd,_lazy:()=>_U,_length:()=>qi,_literal:()=>cU,_lowercase:()=>la,_lt:()=>tn,_lte:()=>Jt,_mac:()=>Vg,_map:()=>iU,_max:()=>Jt,_maxLength:()=>Xi,_maxSize:()=>Yn,_mime:()=>ma,_min:()=>vt,_minLength:()=>Dn,_minSize:()=>nn,_multipleOf:()=>Kn,_nan:()=>vy,_nanoid:()=>cd,_nativeEnum:()=>sU,_negative:()=>Sd,_never:()=>hy,_nonnegative:()=>$d,_nonoptional:()=>pU,_nonpositive:()=>Id,_normalize:()=>ga,_null:()=>dy,_nullable:()=>dU,_number:()=>Yg,_optional:()=>lU,_overwrite:()=>br,_parse:()=>na,_parseAsync:()=>ia,_pipe:()=>gU,_positive:()=>wd,_promise:()=>bU,_property:()=>kd,_readonly:()=>yU,_record:()=>nU,_refine:()=>wy,_regex:()=>ua,_safeDecode:()=>El,_safeDecodeAsync:()=>Ll,_safeEncode:()=>Nl,_safeEncodeAsync:()=>Pl,_safeParse:()=>oa,_safeParseAsync:()=>aa,_set:()=>oU,_size:()=>Yi,_slugify:()=>ba,_startsWith:()=>pa,_string:()=>Cg,_stringFormat:()=>xa,_stringbool:()=>ky,_success:()=>hU,_superRefine:()=>Sy,_symbol:()=>uy,_templateLiteral:()=>vU,_toLowerCase:()=>va,_toUpperCase:()=>_a,_transform:()=>uU,_trim:()=>ya,_tuple:()=>rU,_uint32:()=>ry,_uint64:()=>cy,_ulid:()=>dd,_undefined:()=>ly,_union:()=>qB,_unknown:()=>py,_uppercase:()=>da,_url:()=>nc,_uuid:()=>nd,_uuidv4:()=>id,_uuidv6:()=>od,_uuidv7:()=>ad,_void:()=>my,_xid:()=>fd,_xor:()=>QB,clone:()=>gt,config:()=>Oe,createStandardJSONSchemaMethod:()=>wa,createToJSONSchemaMethod:()=>Dy,decode:()=>bT,decodeAsync:()=>wT,describe:()=>Iy,encode:()=>_T,encodeAsync:()=>xT,extractDefs:()=>qn,finalize:()=>Qn,flattenError:()=>Ws,formatError:()=>Gs,globalConfig:()=>Ji,globalRegistry:()=>rt,initializeContext:()=>Xn,isValidBase64:()=>Xm,isValidBase64URL:()=>wS,isValidJWT:()=>SS,locales:()=>Ki,meta:()=>$y,parse:()=>zl,parseAsync:()=>Al,prettifyError:()=>Uh,process:()=>he,regexes:()=>Pt,registry:()=>td,safeDecode:()=>IT,safeDecodeAsync:()=>kT,safeEncode:()=>ST,safeEncodeAsync:()=>$T,safeParse:()=>Nh,safeParseAsync:()=>Eh,toDotPath:()=>tS,toJSONSchema:()=>Od,treeifyError:()=>Bh,util:()=>b,version:()=>Am});var Yw,_h=Object.freeze({status:"aborted"});function m(t,e,r){function i(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(t))return;s._zod.traits.add(t),e(s,u);let c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let p=l[d];p in s||(s[p]=c[p].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:t});function a(s){var u;let c=r?.Parent?new o:this;i(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}var bh=Symbol("zod_brand"),_r=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Vn=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Yw=globalThis).__zod_globalConfig??(Yw.__zod_globalConfig={});var Ji=globalThis.__zod_globalConfig;function Oe(t){return t&&Object.assign(Ji,t),Ji}var b={};We(b,{BIGINT_FORMAT_RANGES:()=>Oh,Class:()=>wh,NUMBER_FORMAT_RANGES:()=>Ah,aborted:()=>Gn,allowsEval:()=>$h,assert:()=>XO,assertEqual:()=>WO,assertIs:()=>KO,assertNever:()=>YO,assertNotEqual:()=>GO,assignProp:()=>Hn,base64ToUint8Array:()=>qw,base64urlToUint8Array:()=>hT,cached:()=>ta,captureStackTrace:()=>Dl,cleanEnum:()=>pT,cleanRegex:()=>Cs,clone:()=>gt,cloneDef:()=>QO,createTransparentProxy:()=>oT,defineLazy:()=>ne,esc:()=>kl,escapeRegex:()=>nr,explicitlyAborted:()=>Th,extend:()=>cT,finalizeIssue:()=>yt,floatSafeRemainder:()=>Sh,getElementAtPath:()=>eT,getEnumValues:()=>Ms,getLengthableOrigin:()=>Js,getParsedType:()=>iT,getSizableOrigin:()=>Vs,hexToUint8Array:()=>gT,isObject:()=>Hi,isPlainObject:()=>Wn,issue:()=>ra,joinValues:()=>g,jsonStringifyReplacer:()=>ea,merge:()=>lT,mergeDefs:()=>kn,normalizeParams:()=>x,nullish:()=>Jn,numKeys:()=>nT,objectClone:()=>qO,omit:()=>sT,optionalKeys:()=>zh,parsedType:()=>_,partial:()=>dT,pick:()=>aT,prefixIssues:()=>Nt,primitiveTypes:()=>Dh,promiseAllObject:()=>tT,propertyKeyTypes:()=>Zs,randomString:()=>rT,required:()=>fT,safeExtend:()=>uT,shallowClone:()=>kh,slugify:()=>Ih,stringifyPrimitive:()=>v,uint8ArrayToBase64:()=>Qw,uint8ArrayToBase64url:()=>mT,uint8ArrayToHex:()=>yT,unwrapMessage:()=>Rs});function WO(t){return t}function GO(t){return t}function KO(t){}function YO(t){throw new Error("Unexpected value in exhaustive check")}function XO(t){}function Ms(t){let e=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,n])=>e.indexOf(+i)===-1).map(([i,n])=>n)}function g(t,e="|"){return t.map(r=>v(r)).join(e)}function ea(t,e){return typeof e=="bigint"?e.toString():e}function ta(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Jn(t){return t==null}function Cs(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Sh(t,e){let r=t/e,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var Xw=Symbol("evaluating");function ne(t,e,r){let i;Object.defineProperty(t,e,{get(){if(i!==Xw)return i===void 0&&(i=Xw,i=r()),i},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}function qO(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function Hn(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function kn(...t){let e={};for(let r of t){let i=Object.getOwnPropertyDescriptors(r);Object.assign(e,i)}return Object.defineProperties({},e)}function QO(t){return kn(t._zod.def)}function eT(t,e){return e?e.reduce((r,i)=>r?.[i],t):t}function tT(t){let e=Object.keys(t),r=e.map(i=>t[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<e.length;o++)n[e[o]]=i[o];return n})}function rT(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}function kl(t){return JSON.stringify(t)}function Ih(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Dl="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Hi(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var $h=ta(()=>{if(Ji.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function Wn(t){if(Hi(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Hi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function kh(t){return Wn(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function nT(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var iT=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Zs=new Set(["string","number","symbol"]),Dh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gt(t,e,r){let i=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(i._zod.parent=t),i}function x(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function oT(t){let e;return new Proxy({},{get(r,i,n){return e??(e=t()),Reflect.get(e,i,n)},set(r,i,n,o){return e??(e=t()),Reflect.set(e,i,n,o)},has(r,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(r,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(r,i,n){return e??(e=t()),Reflect.defineProperty(e,i,n)}})}function v(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function zh(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Ah={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]},Oh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function aT(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=kn(t._zod.def,{get shape(){let a={};for(let s in e){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&(a[s]=r.shape[s])}return Hn(this,"shape",a),a},checks:[]});return gt(t,o)}function sT(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=kn(t._zod.def,{get shape(){let a={...t._zod.def.shape};for(let s in e){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&delete a[s]}return Hn(this,"shape",a),a},checks:[]});return gt(t,o)}function cT(t,e){if(!Wn(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let o=t._zod.def.shape;for(let a in e)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=kn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return Hn(this,"shape",o),o}});return gt(t,n)}function uT(t,e){if(!Wn(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=kn(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return Hn(this,"shape",i),i}});return gt(t,r)}function lT(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=kn(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e._zod.def.shape};return Hn(this,"shape",i),i},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return gt(t,r)}function dT(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=kn(e._zod.def,{get shape(){let s=e._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=t?new t({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=t?new t({type:"optional",innerType:s[c]}):s[c];return Hn(this,"shape",u),u},checks:[]});return gt(e,a)}function fT(t,e,r){let i=kn(e._zod.def,{get shape(){let n=e._zod.def.shape,o={...n};if(r)for(let a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new t({type:"nonoptional",innerType:n[a]}))}else for(let a in n)o[a]=new t({type:"nonoptional",innerType:n[a]});return Hn(this,"shape",o),o}});return gt(e,i)}function Gn(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function Th(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue===!1)return!0;return!1}function Nt(t,e){return e.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(t),r})}function Rs(t){return typeof t=="string"?t:t?.message}function yt(t,e,r){let i=t.message?t.message:Rs(t.inst?._zod.def?.error?.(t))??Rs(e?.error?.(t))??Rs(r.customError?.(t))??Rs(r.localeError?.(t))??"Invalid input",{inst:n,continue:o,input:a,...s}=t;return s.path??(s.path=[]),s.message=i,e?.reportInput&&(s.input=a),s}function Vs(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Js(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function _(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function ra(...t){let[e,r,i]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:i}:{...e}}function pT(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function qw(t){let e=atob(t),r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r}function Qw(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function hT(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return qw(e+r)}function mT(t){return Qw(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function gT(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)r[i/2]=Number.parseInt(e.slice(i,i+2),16);return r}function yT(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var wh=class{constructor(...e){}};var eS=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,ea,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Hs=m("$ZodError",eS),Et=m("$ZodError",eS,{Parent:Error});function Ws(t,e=r=>r.message){let r={},i=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:r}}function Gs(t,e=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let s=[...o,...a.path];if(s.length===0)r._errors.push(e(a));else{let u=r,c=0;for(;c<s.length;){let l=s[c];c===s.length-1?(u[l]=u[l]||{_errors:[]},u[l]._errors.push(e(a))):u[l]=u[l]||{_errors:[]},u=u[l],c++}}}};return i(t),r}function Bh(t,e=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a,s;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c},[...o,...u.path]));else if(u.code==="invalid_key")i({issues:u.issues},[...o,...u.path]);else if(u.code==="invalid_element")i({issues:u.issues},[...o,...u.path]);else{let c=[...o,...u.path];if(c.length===0){r.errors.push(e(u));continue}let l=r,d=0;for(;d<c.length;){let p=c[d],f=d===c.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),f&&l.errors.push(e(u)),d++}}};return i(t),r}function tS(t){let e=[],r=t.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?e.push(`[${i}]`):typeof i=="symbol"?e.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?e.push(`[${JSON.stringify(i)}]`):(e.length&&e.push("."),e.push(i));return e.join("")}function Uh(t){let e=[],r=[...t.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)e.push(`\u2716 ${i.message}`),i.path?.length&&e.push(` \u2192 at ${tS(i.path)}`);return e.join(`
16
+ ]`}concat(...e){let r=this.schema,i=this.data.concat(e.flatMap(({data:n})=>n));return new Ne(r,i.map(n=>new xe(r,n)))}slice(e,r){let i=this.schema;[e,r]=Ra({length:this.numRows},e,r);let n=du(this.data,this._offsets,e,r);return new Ne(i,n.map(o=>new xe(i,o)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(r=>r.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){let r=this.data.map(i=>i.children[e]);if(r.length===0){let{type:i}=this.schema.fields[e],n=U({type:i,length:0,nullCount:0});r.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new O(r)}return null}setChild(e,r){var i;return this.setChildAt((i=this.schema.fields)===null||i===void 0?void 0:i.findIndex(n=>n.name===e),r)}setChildAt(e,r){let i=this.schema,n=[...this.batches];if(e>-1&&e<this.numCols){r||(r=new O([U({type:new at,length:this.numRows})]));let o=i.fields.slice(),a=o[e].clone({type:r.type}),s=this.schema.fields.map((u,c)=>this.getChildAt(c));[o[e],s[e]]=[a,r],[i,n]=Zu(i,s)}return new Ne(i,n)}select(e){let r=this.schema.fields.reduce((i,n,o)=>i.set(n.name,o),new Map);return this.selectAt(e.map(i=>r.get(i)).filter(i=>i>-1))}selectAt(e){let r=this.schema.selectAt(e),i=this.batches.map(n=>n.selectAt(e));return new Ne(r,i)}assign(e){let r=this.schema.fields,[i,n]=e.schema.fields.reduce((s,u,c)=>{let[l,d]=s,p=r.findIndex(f=>f.name===u.name);return~p?d[p]=c:l.push(c),s},[[],[]]),o=this.schema.assign(e.schema),a=[...r.map((s,u)=>[u,n[u]]).map(([s,u])=>u===void 0?this.getChildAt(s):e.getChildAt(u)),...i.map(s=>e.getChildAt(s))].filter(Boolean);return new Ne(...Zu(o,a))}};px=Symbol.toStringTag;Ne[px]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=go(Za),t.get=go(Fe.getVisitFn(h.Struct)),t.set=fu(et.getVisitFn(h.Struct)),t.indexOf=pu(vi.getVisitFn(h.Struct)),"Table"))(Ne.prototype);var mx,xe=class{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof Q))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=U({nullCount:0,type:new be(this.schema.fields),children:this.schema.fields.map(r=>U({type:r.type,nullCount:0}))})]=e,!(this.data instanceof ee))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=hx(this.schema,this.data.children);break}case 1:{let[r]=e,{fields:i,children:n,length:o}=Object.keys(r).reduce((u,c,l)=>(u.children[l]=r[c],u.length=Math.max(u.length,r[c].length),u.fields[l]=J.new({name:c,type:r[c].type,nullable:!0}),u),{length:0,fields:new Array,children:new Array}),a=new Q(i),s=U({type:new be(i),length:o,children:n,nullCount:0});[this.schema,this.data]=hx(a,s.children,o);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=gx(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Fe.visit(this.data,e)}at(e){return this.get(pi(e,this.numRows))}set(e,r){return et.visit(this.data,e,r)}indexOf(e,r){return vi.visit(this.data,e,r)}[Symbol.iterator](){return yo.visit(new O([this.data]))}toArray(){return[...this]}concat(...e){return new Ne(this.schema,[this,...e])}slice(e,r){let[i]=new O([this.data]).slice(e,r).data;return new xe(this.schema,i)}getChild(e){var r;return this.getChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new O([this.data.children[e]]):null}setChild(e,r){var i;return this.setChildAt((i=this.schema.fields)===null||i===void 0?void 0:i.findIndex(n=>n.name===e),r)}setChildAt(e,r){let i=this.schema,n=this.data;if(e>-1&&e<this.numCols){r||(r=new O([U({type:new at,length:this.numRows})]));let o=i.fields.slice(),a=n.children.slice(),s=o[e].clone({type:r.type});[o[e],a[e]]=[s,r.data[0]],i=new Q(o,new Map(this.schema.metadata)),n=U({type:new be(o),children:a})}return new xe(i,n)}select(e){let r=this.schema.select(e),i=new be(r.fields),n=[];for(let o of e){let a=this.schema.fields.findIndex(s=>s.name===o);~a&&(n[a]=this.data.children[a])}return new xe(r,U({type:i,length:this.numRows,children:n}))}selectAt(e){let r=this.schema.selectAt(e),i=e.map(o=>this.data.children[o]).filter(Boolean),n=U({type:new be(r.fields),length:this.numRows,children:i});return new xe(r,n)}};mx=Symbol.toStringTag;xe[mx]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(xe.prototype);function hx(t,e,r=e.reduce((i,n)=>Math.max(i,n.length),0)){var i;let n=[...t.fields],o=[...e],a=(r+63&-64)>>3;for(let[s,u]of t.fields.entries()){let c=e[s];(!c||c.length!==r)&&(n[s]=u.clone({nullable:!0}),o[s]=(i=c?._changeLengthAndBackfillNullBitmap(r))!==null&&i!==void 0?i:U({type:u.type,length:r,nullCount:r,nullBitmap:new Uint8Array(a)}))}return[t.assign(n),U({type:new be(n),length:r,children:o})]}function gx(t,e,r=new Map){var i,n;if(((i=t?.length)!==null&&i!==void 0?i:0)>0&&t?.length===e?.length)for(let o=-1,a=t.length;++o<a;){let{type:s}=t[o],u=e[o];for(let c of[u,...((n=u?.dictionary)===null||n===void 0?void 0:n.data)||[]])gx(s.children,c?.children,r);if($.isDictionary(s)){let{id:c}=s;if(!r.has(c))u?.dictionary&&r.set(c,u.dictionary);else if(r.get(c)!==u.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return r}var zi=class extends xe{constructor(e){let r=e.fields.map(n=>U({type:n.type})),i=U({type:new be(e.fields),nullCount:0,children:r});super(e,i)}};var up=t=>`Expected ${re[t]} Message in stream, but was null or length 0.`,lp=t=>`Header pointer of flatbuffer-encoded ${re[t]} Message is null or length 0.`,yx=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,vx=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,Do=class{constructor(e){this.source=e instanceof Hr?e:new Hr(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done?$e:e.value===-1&&(e=this.readMetadataLength()).done?$e:(e=this.readMetadata(e.value)).done?$e:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let r;if((r=this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(up(e));return r.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let r=R(this.source.read(e));if(r.byteLength<e)throw new Error(vx(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()}readSchema(e=!1){let r=re.Schema,i=this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(lp(r));return n}readMetadataLength(){let e=this.source.read(Vu),r=e&&new Ve(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}}readMetadata(e){let r=this.source.read(e);if(!r)return $e;if(r.byteLength<e)throw new Error(yx(e,r.byteLength));return{done:!1,value:Ce.decode(r)}}},ys=class{constructor(e,r){this.source=e instanceof Tt?e:Bc(e)?new Nn(e,r):new Tt(e)}[Symbol.asyncIterator](){return this}next(){return D(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done?$e:e.value===-1&&(e=yield this.readMetadataLength()).done?$e:(e=yield this.readMetadata(e.value)).done?$e:e})}throw(e){return D(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return D(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return D(this,void 0,void 0,function*(){let r;if((r=yield this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(up(e));return r.value})}readMessageBody(e){return D(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);let r=R(yield this.source.read(e));if(r.byteLength<e)throw new Error(vx(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()})}readSchema(){return D(this,arguments,void 0,function*(e=!1){let r=re.Schema,i=yield this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(lp(r));return n})}readMetadataLength(){return D(this,void 0,void 0,function*(){let e=yield this.source.read(Vu),r=e&&new Ve(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}})}readMetadata(e){return D(this,void 0,void 0,function*(){let r=yield this.source.read(e);if(!r)return $e;if(r.byteLength<e)throw new Error(yx(e,r.byteLength));return{done:!1,value:Ce.decode(r)}})}},vs=class extends Do{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof Va?e:new Va(e)}next(){let{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Ce.fromJSON(e.schema,re.Schema)};if(this._dictionaryIndex<e.dictionaries.length){let r=e.dictionaries[this._dictionaryIndex++];return this._body=r.data.columns,{done:!1,value:Ce.fromJSON(r,re.DictionaryBatch)}}if(this._batchIndex<e.batches.length){let r=e.batches[this._batchIndex++];return this._body=r.columns,{done:!1,value:Ce.fromJSON(r,re.RecordBatch)}}return this._body=[],$e}readMessageBody(e){return r(this._body);function r(i){return(i||[]).reduce((n,o)=>[...n,...o.VALIDITY&&[o.VALIDITY]||[],...o.TYPE_ID&&[o.TYPE_ID]||[],...o.OFFSET&&[o.OFFSET]||[],...o.DATA&&[o.DATA]||[],...r(o.children)],[])}}readMessage(e){let r;if((r=this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(up(e));return r.value}readSchema(){let e=re.Schema,r=this.readMessage(e),i=r?.header();if(!r||!i)throw new Error(lp(e));return i}},Vu=4,cp="ARROW1",zo=new Uint8Array(cp.length);for(let t=0;t<cp.length;t+=1)zo[t]=cp.codePointAt(t);function Ju(t,e=0){for(let r=-1,i=zo.length;++r<i;)if(zo[r]!==t[e+r])return!1;return!0}var Ao=zo.length,dp=Ao+Vu,_x=Ao*2+Vu;var fp=class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(e){let r=new Uint8Array([1,2,3,4,5,6,7,8]),i=e.encode(r);return this._isValidCompressed(i)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)&&this._hasValidVersion(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.LZ4_FRAME_MAGIC.every((r,i)=>e[i]===r)}_hasValidVersion(e){return(e[4]&192)>>6===1}},pp=class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(e){let r=new Uint8Array([1,2,3,4,5,6,7,8]),i=e.encode(r);return this._isValidCompressed(i)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.ZSTD_MAGIC.every((r,i)=>e[i]===r)}},bx={[dt.LZ4_FRAME]:new fp,[dt.ZSTD]:new pp};var hp=class{constructor(){this.registry={}}set(e,r){if(r?.encode&&typeof r.encode=="function"&&!bx[e].isValidCodecEncode(r))throw new Error(`Encoder for ${dt[e]} is not valid.`);this.registry[e]=r}get(e){var r;return((r=this.registry)===null||r===void 0?void 0:r[e])||null}},Oo=new hp;var pt=class extends wi{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){let r=this._impl.open(e);return ar(r)?r.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return qe.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return qe.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,r){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof pt?e:Oc(e)?_D(e):Bc(e)?wD(e):ar(e)?(()=>D(this,void 0,void 0,function*(){return yield pt.from(yield e)}))():Uc(e)||Ua(e)||Ec(e)||Ht(e)?xD(new Tt(e)):bD(new Hr(e))}static readAll(e){return e instanceof pt?e.isSync()?xx(e):wx(e):Oc(e)||ArrayBuffer.isView(e)||sr(e)||Tc(e)?xx(e):wx(e)}},yn=class extends pt{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Ft(this,arguments,function*(){yield G(yield*no(or(this[Symbol.iterator]())))})}},Ai=class extends pt{constructor(e){super(e),this._impl=e}readAll(){return D(this,void 0,void 0,function*(){var e,r,i,n;let o=new Array;try{for(var a=!0,s=or(this),u;u=yield s.next(),e=u.done,!e;a=!0){n=u.value,a=!1;let c=n;o.push(c)}}catch(c){r={error:c}}finally{try{!a&&!e&&(i=s.return)&&(yield i.call(s))}finally{if(r)throw r.error}}return o})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},Oi=class extends yn{constructor(e){super(e),this._impl=e}},Hu=class extends Ai{constructor(e){super(e),this._impl=e}},Wu=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,r){let i;if(e.compression!=null){let o=Oo.get(e.compression.type);if(o?.decode&&typeof o.decode=="function"){let{decommpressedBody:a,buffers:s}=this._decompressBuffers(e,r,o);i=this._loadCompressedVectors(e,a,this.schema.fields),e=new Me(e.length,e.nodes,s,null)}else throw new Error("Record batch is compressed but codec not found")}else i=this._loadVectors(e,r,this.schema.fields);let n=U({type:new be(this.schema.fields),length:e.length,children:i});return new xe(this.schema,n)}_loadDictionaryBatch(e,r){let{id:i,isDelta:n}=e,{dictionaries:o,schema:a}=this,s=o.get(i),u=a.dictionaries.get(i),c;if(e.data.compression!=null){let l=Oo.get(e.data.compression.type);if(l?.decode&&typeof l.decode=="function"){let{decommpressedBody:d,buffers:p}=this._decompressBuffers(e.data,r,l);c=this._loadCompressedVectors(e.data,d,[u]),e=new ct(new Me(e.data.length,e.data.nodes,p,null),i,n)}else throw new Error("Dictionary batch is compressed but codec not found")}else c=this._loadVectors(e.data,r,[u]);return(s&&n?s.concat(new O(c)):new O(c)).memoize()}_loadVectors(e,r,i){return new So(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(i)}_loadCompressedVectors(e,r,i){return new bu(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(i)}_decompressBuffers(e,r,i){let n=[],o=[],a=0;for(let{offset:s,length:u}of e.buffers){if(u===0){n.push(new Uint8Array(0)),o.push(new Re(a,0));continue}let c=new Ve(r.subarray(s,s+u)),l=se(c.readInt64(0)),d=c.bytes().subarray(8),p=l===-1?d:i.decode(d);n.push(p);let f=(a+7&-8)-a;a+=f,o.push(new Re(a,p.length)),a+=p.length}return{decommpressedBody:n,buffers:o}}},To=class extends Wu{constructor(e,r){super(r),this._reader=Oc(e)?new vs(this._handle=e):new Do(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=Ix(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):$e}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):$e}next(){if(this.closed)return $e;let e,{_reader:r}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=r.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=r.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new zi(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Bo=class extends Wu{constructor(e,r){super(r),this._reader=new ys(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return D(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return D(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=Ix(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return D(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):$e})}return(e){return D(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):$e})}next(){return D(this,void 0,void 0,function*(){if(this.closed)return $e;let e,{_reader:r}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=yield r.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=yield r.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new zi(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return D(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},Gu=class extends To{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,r){super(e instanceof Ja?e:new Ja(e),r)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let r of this._footer.dictionaryBatches())r&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var r;if(this.closed)return null;this._footer||this.open();let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&this._handle.seek(i.offset)){let n=this._reader.readMessage(re.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),a=this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,a)}}return null}_readDictionaryBatch(e){var r;let i=(r=this._footer)===null||r===void 0?void 0:r.getDictionaryBatch(e);if(i&&this._handle.seek(i.offset)){let n=this._reader.readMessage(re.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),a=this._reader.readMessageBody(n.bodyLength),s=this._loadDictionaryBatch(o,a);this.dictionaries.set(o.id,s)}}}_readFooter(){let{_handle:e}=this,r=e.size-dp,i=e.readInt32(r),n=e.readAt(r-i,i);return dn.decode(n)}_readNextMessageAndValidate(e){var r;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(this._recordBatchIndex);if(i&&this._handle.seek(i.offset))return this._reader.readMessage(e)}return null}},mp=class extends Bo{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,...r){let i=typeof r[0]!="number"?r.shift():void 0,n=r[0]instanceof Map?r.shift():void 0;super(e instanceof Nn?e:new Nn(e,i),n)}isFile(){return!0}isAsync(){return!0}open(e){let r=Object.create(null,{open:{get:()=>super.open}});return D(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let i of this._footer.dictionaryBatches())i&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield r.open.call(this,e)})}readRecordBatch(e){return D(this,void 0,void 0,function*(){var r;if(this.closed)return null;this._footer||(yield this.open());let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(re.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),a=yield this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,a)}}return null})}_readDictionaryBatch(e){return D(this,void 0,void 0,function*(){var r;let i=(r=this._footer)===null||r===void 0?void 0:r.getDictionaryBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(re.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),a=yield this._reader.readMessageBody(n.bodyLength),s=this._loadDictionaryBatch(o,a);this.dictionaries.set(o.id,s)}}})}_readFooter(){return D(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let r=e.size-dp,i=yield e.readInt32(r),n=yield e.readAt(r-i,i);return dn.decode(n)})}_readNextMessageAndValidate(e){return D(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let r=this._footer.getRecordBatch(this._recordBatchIndex);if(r&&(yield this._handle.seek(r.offset)))return yield this._reader.readMessage(e)}return null})}},gp=class extends To{constructor(e,r){super(e,r)}_loadVectors(e,r,i){return new _u(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(i)}};function Ix(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*xx(t){let e=pt.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function wx(t){return Ft(this,arguments,function*(){let r=yield G(pt.from(t));try{if(!(yield G(r.open({autoDestroy:!1}))).closed)do yield yield G(r);while(!(yield G(r.reset().open())).closed)}finally{yield G(r.cancel())}})}function _D(t){return new yn(new gp(t))}function bD(t){let e=t.peek(Ao+7&-8);return e&&e.byteLength>=4?Ju(e)?new Oi(new Gu(t.read())):new yn(new To(t)):new yn(new To(function*(){}()))}function xD(t){return D(this,void 0,void 0,function*(){let e=yield t.peek(Ao+7&-8);return e&&e.byteLength>=4?Ju(e)?new Oi(new Gu(yield t.read())):new Ai(new Bo(t)):new Ai(new Bo(function(){return Ft(this,arguments,function*(){})}()))})}function wD(t){return D(this,void 0,void 0,function*(){let{size:e}=yield t.stat(),r=new Nn(t,e);return e>=_x&&Ju(yield r.readAt(0,Ao+7&-8))?new Hu(new mp(r)):new Ai(new Bo(r))})}var De=class extends N{static assemble(...e){let r=n=>n.flatMap(o=>Array.isArray(o)?r(o):o instanceof xe?o.data.children:o.data),i=new De;return i.visitMany(r(e)),i}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(e){if(e instanceof O)return this.visitMany(e.data),this;let{type:r}=e;if(!$.isDictionary(r)){let{length:i}=e;if(i>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if($.isUnion(r))this.nodes.push(new qt(i,0));else{let{nullCount:n}=e;$.isNull(r)||gr.call(this,n<=0?new Uint8Array(0):mi(e.offset,i,e.nullBitmap)),this.nodes.push(new qt(i,n))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function gr(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Re(this._byteLength,e)),this._byteLength+=e,this}function SD(t){var e;let{type:r,length:i,typeIds:n,valueOffsets:o}=t;if(gr.call(this,n),r.mode===_e.Sparse)return yp.call(this,t);if(r.mode===_e.Dense){if(t.offset<=0)return gr.call(this,o),yp.call(this,t);{let a=new Int32Array(i),s=Object.create(null),u=Object.create(null);for(let c,l,d=-1;++d<i;)(c=n[d])!==void 0&&((l=s[c])===void 0&&(l=s[c]=o[d]),a[d]=o[d]-l,u[c]=((e=u[c])!==null&&e!==void 0?e:0)+1);gr.call(this,a),this.visitMany(t.children.map((c,l)=>{let d=r.typeIds[l],p=s[d],f=u[d];return c.slice(p,Math.min(i,f))}))}}return this}function ID(t){let e;return t.nullCount>=t.length?gr.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?gr.call(this,mi(t.offset,t.length,e)):gr.call(this,gi(t.values))}function vn(t){return gr.call(this,t.values.subarray(0,t.length*t.stride))}function Ku(t){let{length:e,values:r,valueOffsets:i}=t,n=se(i[0]),o=se(i[e]),a=Math.min(o-n,r.byteLength-n);return gr.call(this,Lc(-n,e+1,i)),gr.call(this,r.subarray(n,n+a)),this}function vp(t){let{length:e,valueOffsets:r}=t;if(r){let{[0]:i,[e]:n}=r;return gr.call(this,Lc(-i,e+1,r)),this.visit(t.children[0].slice(i,n-i))}return this.visit(t.children[0])}function yp(t){return this.visitMany(t.type.children.map((e,r)=>t.children[r]).filter(Boolean))[0]}De.prototype.visitBool=ID;De.prototype.visitInt=vn;De.prototype.visitFloat=vn;De.prototype.visitUtf8=Ku;De.prototype.visitLargeUtf8=Ku;De.prototype.visitBinary=Ku;De.prototype.visitLargeBinary=Ku;De.prototype.visitFixedSizeBinary=vn;De.prototype.visitDate=vn;De.prototype.visitTimestamp=vn;De.prototype.visitTime=vn;De.prototype.visitDecimal=vn;De.prototype.visitList=vp;De.prototype.visitStruct=yp;De.prototype.visitUnion=SD;De.prototype.visitInterval=vn;De.prototype.visitDuration=vn;De.prototype.visitFixedSizeList=vp;De.prototype.visitMap=vp;var Ti=class extends wi{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,r){throw new Error('"throughDOM" not available in this environment')}constructor(e){if(super(),this._position=0,this._started=!1,this._compression=null,this._sink=new Jr,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,lt(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1,compressionType:null}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1,e.compressionType!=null){if(this._writeLegacyIpcFormat)throw new Error("Legacy IPC format does not support columnar compression. Use modern IPC format (writeLegacyIpcFormat=false).");if(Object.values(dt).includes(e.compressionType))this._compression=new xi(e.compressionType);else{let r=Object.values(dt).filter(i=>typeof i=="string");throw new Error(`Unsupported compressionType: ${e.compressionType} Available types: ${r.join(", ")}`)}}else this._compression=null}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return ar(e)?e.then(r=>this.writeAll(r)):Ht(e)?bp(this,e):_p(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,r=null){return e===this._sink||e instanceof Jr?this._sink=e:(this._sink=new Jr,e&&N_(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&E_(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!r||!Di(r,this._schema))&&(r==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=r,this._writeSchema(r))),this}write(e){let r=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof Ne&&!(r=e.schema))return this.finish()&&void 0;if(e instanceof xe&&!(r=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(r&&!Di(r,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,r)}e instanceof xe?e instanceof zi||this._writeRecordBatch(e):e instanceof Ne?this.writeAll(e.batches):sr(e)&&this.writeAll(e)}_writeMessage(e,r=8){let i=r-1,n=Ce.encode(e),o=n.byteLength,a=this._writeLegacyIpcFormat?4:8,s=o+a+i&~i,u=s-o-a;return e.headerType===re.RecordBatch?this._recordBatchBlocks.push(new mr(s,e.bodyLength,this._position)):e.headerType===re.DictionaryBatch&&this._dictionaryBlocks.push(new mr(s,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(s-a)),o>0&&this._write(n),this._writePadding(u)}_write(e){if(this._started){let r=R(e);r&&r.byteLength>0&&(this._sink.write(r),this._position+=r.byteLength)}return this}_writeSchema(e){return this._writeMessage(Ce.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(zo)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o}=this._assembleRecordBatch(e),a=new Me(e.numRows,i,n,this._compression),s=Ce.from(a,r);return this._writeDictionaries(e)._writeMessage(s)._writeBodyBuffers(o)}_assembleRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o}=De.assemble(e);return this._compression!=null&&({byteLength:r,bufferRegions:n,buffers:o}=this._compressBodyBuffers(o)),{byteLength:r,nodes:i,bufferRegions:n,buffers:o}}_compressBodyBuffers(e){let r=Oo.get(this._compression.type);if(!r?.encode||typeof r.encode!="function")throw new Error(`Codec for compression type "${dt[this._compression.type]}" has invalid encode method`);let i=0,n=[],o=[];for(let s of e){let u=R(s);if(u.length===0){n.push(new Uint8Array(0),new Uint8Array(0)),o.push(new Re(i,0));continue}let c=r.encode(u),l=c.length<u.length,d=l?c:u,p=l?d.length:-1,f=new Ve(new Uint8Array(8));f.writeInt64(0,BigInt(p)),n.push(f.bytes(),new Uint8Array(d));let y=(i+7&-8)-i;i+=y;let w=8+d.length;o.push(new Re(i,w)),i+=w}let a=(i+7&-8)-i;return i+=a,{byteLength:i,bufferRegions:o,buffers:n}}_writeDictionaryBatch(e,r,i=!1){let{byteLength:n,nodes:o,bufferRegions:a,buffers:s}=this._assembleRecordBatch(new O([e])),u=new Me(e.length,o,a,this._compression),c=new ct(u,r,i),l=Ce.from(c,n);return this._writeMessage(l)._writeBodyBuffers(s)}_writeBodyBuffers(e){let r=this._compression!=null?2:1,i=new Array(r);for(let n=0;n<e.length;n+=r){let o=0;for(let s=-1;++s<r;)i[s]=e[n+s],o+=i[s].byteLength;if(o===0)continue;for(let s of i)this._write(s);let a=(o+7&-8)-o;a>0&&this._writePadding(a)}return this}_writeDictionaries(e){var r,i;for(let[n,o]of e.dictionaries){let a=(r=o?.data)!==null&&r!==void 0?r:[],s=this._seenDictionaries.get(n),u=(i=this._dictionaryDeltaOffsets.get(n))!==null&&i!==void 0?i:0;if(!s||s.data[0]!==a[0])for(let[c,l]of a.entries())this._writeDictionaryBatch(l,n,c>0);else if(u<a.length)for(let c of a.slice(u))this._writeDictionaryBatch(c,n,!0);this._seenDictionaries.set(n,o),this._dictionaryDeltaOffsets.set(n,a.length)}return this}},Bi=class extends Ti{static writeAll(e,r){let i=new Bi(r);return ar(e)?e.then(n=>i.writeAll(n)):Ht(e)?bp(i,e):_p(i,e)}},Ui=class extends Ti{static writeAll(e,r){let i=new Ui(r);return ar(e)?e.then(n=>i.writeAll(n)):Ht(e)?bp(i,e):_p(i,e)}constructor(e){super(e),this._autoDestroy=!0,this._writeLegacyIpcFormat=!1}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,r,i=!1){if(!i&&this._seenDictionaries.has(r))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(e,r,i)}_writeFooter(e){let r=dn.encode(new dn(e,pe.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(r)._write(Int32Array.of(r.byteLength))._writeMagic()}};function _p(t,e){let r=e;e instanceof Ne&&(r=e.batches,t.reset(void 0,e.schema));for(let i of r)t.write(i);return t.finish()}function bp(t,e){return D(this,void 0,void 0,function*(){var r,i,n,o,a,s,u;try{for(r=!0,i=or(e);n=yield i.next(),o=n.done,!o;r=!0){u=n.value,r=!1;let c=u;t.write(c)}}catch(c){a={error:c}}finally{try{!r&&!o&&(s=i.return)&&(yield s.call(i))}finally{if(a)throw a.error}}return t.finish()})}function $x(t,e){if(Ht(t))return kD(t,e);if(sr(t))return $D(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function $D(t,e){let r=null,i=e?.type==="bytes"||!1,n=e?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(a){o(a,r||(r=t[Symbol.iterator]()))},pull(a){r?o(a,r):a.close()},cancel(){r?.return&&r.return(),r=null}}),Object.assign({highWaterMark:i?n:void 0},e));function o(a,s){let u,c=null,l=a.desiredSize||null;for(;!(c=s.next(i?l:null)).done;)if(ArrayBuffer.isView(c.value)&&(u=R(c.value))&&(l!=null&&i&&(l=l-u.byteLength+1),c.value=u),a.enqueue(c.value),l!=null&&--l<=0)return;a.close()}}function kD(t,e){let r=null,i=e?.type==="bytes"||!1,n=e?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(a){return D(this,void 0,void 0,function*(){yield o(a,r||(r=t[Symbol.asyncIterator]()))})},pull(a){return D(this,void 0,void 0,function*(){r?yield o(a,r):a.close()})},cancel(){return D(this,void 0,void 0,function*(){r?.return&&(yield r.return()),r=null})}}),Object.assign({highWaterMark:i?n:void 0},e));function o(a,s){return D(this,void 0,void 0,function*(){let u,c=null,l=a.desiredSize||null;for(;!(c=yield s.next(i?l:null)).done;)if(ArrayBuffer.isView(c.value)&&(u=R(c.value))&&(l!=null&&i&&(l=l-u.byteLength+1),c.value=u),a.enqueue(c.value),l!=null&&--l<=0)return;a.close()})}}function zx(t){return new xp(t)}var xp=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:r,["writableStrategy"]:i,["queueingStrategy"]:n="count"}=e,o=T_(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Ii(o),this._getSize=n!=="bytes"?kx:Dx;let{["highWaterMark"]:a=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},r),{["highWaterMark"]:s=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},i);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:u=>{this._maybeFlush(this._builder,this._controller=u)},start:u=>{this._maybeFlush(this._builder,this._controller=u)}},{highWaterMark:a,size:n!=="bytes"?kx:Dx}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:s,size:u=>this._writeValueAndReturnChunkSize(u)})}_writeValueAndReturnChunkSize(e){let r=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-r}_maybeFlush(e,r){r!=null&&(this._bufferedSize>=r.desiredSize&&++this._numChunks&&this._enqueue(r,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(r,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(r,null)))}_enqueue(e,r){this._bufferedSize=0,this._controller=null,r==null?e.close():e.enqueue(r)}},kx=t=>{var e;return(e=t?.length)!==null&&e!==void 0?e:0},Dx=t=>{var e;return(e=t?.byteLength)!==null&&e!==void 0?e:0};function Yu(t,e){let r=new Jr,i=null,n=new ReadableStream({cancel(){return D(this,void 0,void 0,function*(){yield r.close()})},start(s){return D(this,void 0,void 0,function*(){yield a(s,i||(i=yield o()))})},pull(s){return D(this,void 0,void 0,function*(){i?yield a(s,i):s.close()})}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},t)),readable:n};function o(){return D(this,void 0,void 0,function*(){return yield(yield pt.from(r)).open(e)})}function a(s,u){return D(this,void 0,void 0,function*(){let c=s.desiredSize,l=null;for(;!(l=yield u.next()).done;)if(s.enqueue(l.value),c!=null&&--c<=0)return;s.close()})}}function Xu(t,e){let r=new this(t),i=new Tt(r),n=new ReadableStream({cancel(){return D(this,void 0,void 0,function*(){yield i.cancel()})},pull(a){return D(this,void 0,void 0,function*(){yield o(a)})},start(a){return D(this,void 0,void 0,function*(){yield o(a)})}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(r,t),readable:n};function o(a){return D(this,void 0,void 0,function*(){let s=null,u=a.desiredSize;for(;s=yield i.read(u||null);)if(a.enqueue(s),u!=null&&(u-=s.byteLength)<=0)return;a.close()})}}var GD=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Af),tp),Jf),Of),wf),Vf),$f),ip),{compareSchemas:Di,compareFields:dx,compareTypes:fx});qe.toDOMStream=$x;ke.throughDOM=zx;pt.throughDOM=Yu;Oi.throughDOM=Yu;yn.throughDOM=Yu;Ti.throughDOM=Xu;Ui.throughDOM=Xu;Bi.throughDOM=Xu;var wp=.28209479177387814;function qu(t){return(t/255-.5)/wp}function Qu(t){return Math.min(Math.max(t/255,0),1)}function _n(t,e,r,i){let n=Math.hypot(t,e,r,i);return!Number.isFinite(n)||n<=Number.EPSILON?[1,0,0,0]:[t/n,e/n,r/n,i/n]}function _s(t){return(t-128)/128}function bs(t){let e=t&32768?-1:1,r=t>>10&31,i=t&1023;return r===0?e*Math.pow(2,-14)*(i/1024):r===31?i?Number.NaN:e*Number.POSITIVE_INFINITY:e*Math.pow(2,r-15)*(1+i/1024)}function Gr(t){let e={},r=[],i=[];Ox(e,r,i,"POSITION",XD(t.positions,3),{type:"fixed-size-list",listSize:3,children:[{name:"value",type:"float32"}]});let n=qD(t);Uo(e,r,i,"f_dc_0",n[0],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"0","loaders_gl.gaussian_splats.encoding":"coefficient"}),Uo(e,r,i,"f_dc_1",n[1],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"1","loaders_gl.gaussian_splats.encoding":"coefficient"}),Uo(e,r,i,"f_dc_2",n[2],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"2","loaders_gl.gaussian_splats.encoding":"coefficient"}),Uo(e,r,i,"opacity",t.opacities,{"loaders_gl.gaussian_splats.semantic":"opacity","loaders_gl.gaussian_splats.encoding":"linear"}),Ax(e,r,i,"scale",t.scales,3,{"loaders_gl.gaussian_splats.semantic":"scale","loaders_gl.gaussian_splats.encoding":"linear"}),Ax(e,r,i,"rot",t.rotations,4,{"loaders_gl.gaussian_splats.semantic":"rotation","loaders_gl.gaussian_splats.encoding":"quaternion"}),t.sphericalHarmonics&&t.sphericalHarmonicsComponentCount&&YD(e,r,i,t.sphericalHarmonics,t.sphericalHarmonicsComponentCount);let o=new Map([["loaders_gl.semantic_type","gaussian-splats"],["loaders_gl.gaussian_splats.version","1"],["loaders_gl.gaussian_splats.source_format",t.format],["topology","point-list"],["mode","0"]]),a=new Q(r,o);return{shape:"arrow-table",schema:{fields:i,metadata:Object.fromEntries(o)},data:new Ne(a,e),topology:"point-list",loaderData:t.loaderData}}function Ax(t,e,r,i,n,o,a){for(let s=0;s<o;s++){let u=new Float32Array(n.length/o);for(let c=0;c<u.length;c++)u[c]=n[c*o+s];Uo(t,e,r,`${i}_${s}`,u,{...a,"loaders_gl.gaussian_splats.component":String(s)})}}function YD(t,e,r,i,n){for(let o=0;o<n;o++){let a=new Float32Array(i.length/n);for(let s=0;s<a.length;s++)a[s]=i[s*n+o];Uo(t,e,r,`f_rest_${o}`,a,{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_rest","loaders_gl.gaussian_splats.component":String(o),"loaders_gl.gaussian_splats.encoding":"coefficient"})}}function Uo(t,e,r,i,n,o){Ox(t,e,r,i,_i(n),"float32",o)}function Ox(t,e,r,i,n,o,a={}){t[i]=n,e.push(new J(i,n.type,!1,new Map(Object.entries(a)))),r.push({name:i,type:o,nullable:!1,metadata:a})}function XD(t,e){let i=_i(t).data[0],n=new zt(e,new J("value",i.type,!1)),o=new ee(n,0,t.length/e,0,{},[i]);return new O([o])}function qD(t){let e=t.splatCount,r=new Float32Array(e),i=new Float32Array(e),n=new Float32Array(e);for(let o=0;o<e;o++)t.sphericalHarmonicDcs?(r[o]=t.sphericalHarmonicDcs[o*3+0],i[o]=t.sphericalHarmonicDcs[o*3+1],n[o]=t.sphericalHarmonicDcs[o*3+2]):(r[o]=qu(t.colors[o*3+0]),i[o]=qu(t.colors[o*3+1]),n[o]=qu(t.colors[o*3+2]));return[r,i,n]}var xs=32;function Sp(t){return Gr(QD(t))}function QD(t){if(t.byteLength%xs!==0)throw new Error(`SPLATLoader: byte length must be a multiple of ${xs}.`);let e=t.byteLength/xs,r=new DataView(t),i=new Float32Array(e*3),n=new Float32Array(e*3),o=new Float32Array(e*4),a=new Uint8Array(e*3),s=new Float32Array(e);for(let u=0;u<e;u++){let c=u*xs,l=u*3,d=u*4;i[l+0]=r.getFloat32(c+0,!0),i[l+1]=r.getFloat32(c+4,!0),i[l+2]=r.getFloat32(c+8,!0),n[l+0]=r.getFloat32(c+12,!0),n[l+1]=r.getFloat32(c+16,!0),n[l+2]=r.getFloat32(c+20,!0),a[l+0]=r.getUint8(c+24),a[l+1]=r.getUint8(c+25),a[l+2]=r.getUint8(c+26),s[u]=Qu(r.getUint8(c+27));let[p,f,y,w]=_n(_s(r.getUint8(c+28)),_s(r.getUint8(c+29)),_s(r.getUint8(c+30)),_s(r.getUint8(c+31)));o[d+0]=p,o[d+1]=f,o[d+2]=y,o[d+3]=w}return{format:"splat",splatCount:e,positions:i,scales:n,rotations:o,colors:a,opacities:s,loaderData:{format:"splat",splatCount:e,rowByteLength:xs}}}var ez="4.5.3",Tx={dataType:null,batchType:null,...Dc,version:ez,options:{splats:{shape:"arrow-table"}}};var Bx={...Tx,parse:async t=>Sp(t),parseSync:t=>Sp(t)};var Ux=0,tz=1,No=4096,el=1024,rz=3,Nx=rz/2,$p={0:{bytesPerCenter:12,bytesPerScale:12,bytesPerRotation:16,bytesPerColor:4,scaleOffsetBytes:12,colorOffsetBytes:40,sphericalHarmonicsOffsetBytes:44,scaleRange:1,bytesPerSphericalHarmonicsComponent:4},1:{bytesPerCenter:6,bytesPerScale:6,bytesPerRotation:8,bytesPerColor:4,scaleOffsetBytes:6,colorOffsetBytes:20,sphericalHarmonicsOffsetBytes:24,scaleRange:32767,bytesPerSphericalHarmonicsComponent:2},2:{bytesPerCenter:6,bytesPerScale:6,bytesPerRotation:8,bytesPerColor:4,scaleOffsetBytes:6,colorOffsetBytes:20,sphericalHarmonicsOffsetBytes:24,scaleRange:32767,bytesPerSphericalHarmonicsComponent:1}};function kp(t){return Gr(nz(t))}function nz(t){if(t.byteLength<No)throw new Error(`KSPLATLoader: file must contain a ${No}-byte header.`);let e=oz(t);az(e);let r=sz(t,e),i=pz(e,r),n=Math.max(0,...r.slice(0,tl(e)).map(p=>Dp(p.sphericalHarmonicsDegree))),o=new Float32Array(i*3),a=new Float32Array(i*3),s=new Float32Array(i*4),u=new Uint8Array(i*3),c=new Float32Array(i),l=n?new Float32Array(i*n):void 0,d=0;for(let p of r.slice(0,tl(e))){hz(t,p);for(let f=0;f<p.splatCount&&d<i;f++)iz(t,e,p,f,d,o,a,s,u,c,l,n),d++}return{format:"ksplat",splatCount:i,positions:o,scales:a,rotations:s,colors:u,opacities:c,sphericalHarmonics:l,sphericalHarmonicsComponentCount:n,loaderData:{format:"ksplat",...e,sections:r.slice(0,tl(e)).map(p=>({splatCount:p.splatCount,maxSplatCount:p.maxSplatCount,sphericalHarmonicsDegree:p.sphericalHarmonicsDegree}))}}}function iz(t,e,r,i,n,o,a,s,u,c,l,d){let p=$p[e.compressionLevel],f=r.dataBase+r.bytesPerSplat*i,y=n*3,w=n*4,k=uz(t,r,i);o[y+0]=Ip(t,f,0,e,r,k[0]),o[y+1]=Ip(t,f,1,e,r,k[1]),o[y+2]=Ip(t,f,2,e,r,k[2]),a[y+0]=Pn(t,f+p.scaleOffsetBytes,0,e.compressionLevel),a[y+1]=Pn(t,f+p.scaleOffsetBytes,1,e.compressionLevel),a[y+2]=Pn(t,f+p.scaleOffsetBytes,2,e.compressionLevel);let[A,ie,K,z]=_n(Pn(t,f+p.scaleOffsetBytes,3,e.compressionLevel),Pn(t,f+p.scaleOffsetBytes,4,e.compressionLevel),Pn(t,f+p.scaleOffsetBytes,5,e.compressionLevel),Pn(t,f+p.scaleOffsetBytes,6,e.compressionLevel));s[w+0]=A,s[w+1]=ie,s[w+2]=K,s[w+3]=z;let S=f+p.colorOffsetBytes,te=new Uint8Array(t,S,4);u[y+0]=te[0],u[y+1]=te[1],u[y+2]=te[2],c[n]=Qu(te[3]),l&&d&&dz(t,f+p.sphericalHarmonicsOffsetBytes,e,r,n,l,d)}function oz(t){let e=new DataView(t,0,No),r=e.getUint16(20,!0);if(r!==0&&r!==1&&r!==2)throw new Error(`KSPLATLoader: unsupported compression level ${r}.`);return{versionMajor:e.getUint8(0),versionMinor:e.getUint8(1),maxSectionCount:e.getUint32(4,!0),sectionCount:e.getUint32(8,!0),maxSplatCount:e.getUint32(12,!0),splatCount:e.getUint32(16,!0),compressionLevel:r,minSphericalHarmonicsCoeff:e.getFloat32(36,!0)||-Nx,maxSphericalHarmonicsCoeff:e.getFloat32(40,!0)||Nx}}function az(t){if(!(t.versionMajor===Ux?t.versionMinor>=tz:t.versionMajor>Ux))throw new Error(`KSPLATLoader: version ${t.versionMajor}.${t.versionMinor} is not supported.`)}function sz(t,e){if(t.byteLength<No+e.maxSectionCount*el)throw new Error("KSPLATLoader: file does not contain all section headers.");let r=[],i=No+e.maxSectionCount*el,n=0;for(let o=0;o<e.maxSectionCount;o++){let a=No+o*el,s=new DataView(t,a,el),u=s.getUint32(0,!0),c=s.getUint32(4,!0),l=s.getUint32(8,!0),d=s.getUint32(12,!0),p=s.getFloat32(16,!0),f=s.getUint16(20,!0),y=s.getUint32(24,!0)||$p[e.compressionLevel].scaleRange,w=s.getUint32(32,!0),k=s.getUint32(36,!0),A=s.getUint16(40,!0),ie=fz(e.compressionLevel,A),K=k*4,z=f*d+K,S=ie*c+z;r.push({bytesPerSplat:ie,splatCountOffset:n,splatCount:u||c,maxSplatCount:c,bucketSize:l,bucketCount:d,bucketStorageSizeBytes:f,bucketsStorageSizeBytes:z,compressionScaleRange:y,compressionScaleFactor:p/2/y,base:i,bucketsBase:i+K,dataBase:i+z,fullBucketCount:w,partiallyFilledBucketCount:k,sphericalHarmonicsDegree:A}),i+=S,n+=c}return r}function Ip(t,e,r,i,n,o){let a=cz(t,e,r,i.compressionLevel);return i.compressionLevel>=1?(a-n.compressionScaleRange)*n.compressionScaleFactor+o:a}function cz(t,e,r,i){let n=new DataView(t);return i===0?n.getFloat32(e+r*4,!0):n.getUint16(e+r*2,!0)}function uz(t,e,r){if(!e.bucketCount)return[0,0,0];let i=lz(t,e,r),n=e.bucketsBase+i*e.bucketStorageSizeBytes,o=new DataView(t,n,12);return[o.getFloat32(0,!0),o.getFloat32(4,!0),o.getFloat32(8,!0)]}function lz(t,e,r){let i=e.fullBucketCount*e.bucketSize;if(r<i)return Math.floor(r/e.bucketSize);let n=i,o=e.fullBucketCount;for(let a=0;a<e.partiallyFilledBucketCount;a++){let s=new DataView(t,e.base+a*4,4).getUint32(0,!0);if(r<n+s)return o;n+=s,o++}return Math.max(o-1,0)}function dz(t,e,r,i,n,o,a){let s=Dp(i.sphericalHarmonicsDegree),u=n*a;for(let c=0;c<s;c++)o[u+c]=Pn(t,e,c,r.compressionLevel,!0,r.minSphericalHarmonicsCoeff,r.maxSphericalHarmonicsCoeff)}function Pn(t,e,r,i,n=!1,o=0,a=0){let s=new DataView(t);return i===0?s.getFloat32(e+r*4,!0):i===1||!n?bs(s.getUint16(e+r*2,!0)):s.getUint8(e+r)/255*(a-o)+o}function fz(t,e){let r=$p[t];return r.bytesPerCenter+r.bytesPerScale+r.bytesPerRotation+r.bytesPerColor+r.bytesPerSphericalHarmonicsComponent*Dp(e)}function Dp(t){switch(t){case 0:return 0;case 1:return 9;case 2:return 24;case 3:return 45;default:throw new Error(`KSPLATLoader: unsupported spherical harmonics degree ${t}.`)}}function tl(t){return t.sectionCount||t.maxSectionCount}function pz(t,e){let r=e.slice(0,tl(t)).reduce((i,n)=>i+n.splatCount,0);return t.splatCount?Math.min(t.splatCount,r||t.splatCount):r}function hz(t,e){if(e.dataBase+e.bytesPerSplat*e.splatCount>t.byteLength)throw new Error("KSPLATLoader: section data extends beyond the file length.")}var mz="4.5.3",Ex={dataType:null,batchType:null,...zc,version:mz,options:{splats:{shape:"arrow-table"}}};var Px={...Ex,parse:async t=>kp(t),parseSync:t=>kp(t)};var Kr={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document},gz=Kr.self||Kr.window||Kr.global||{},yz=Kr.window||Kr.self||Kr.global||{},vz=Kr.global||Kr.self||Kr.window||{},_z=Kr.document||{};var Eo=Boolean(typeof process!="object"||String(process)!=="[object process]"||process.browser);var Lx=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version),bz=Lx&&parseFloat(Lx[1])||0;var rl=globalThis,xz=globalThis.document||{},nl=globalThis.process||{},wz=globalThis.console,vM=globalThis.navigator||{};function Fx(t){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&Boolean(process.versions?.electron))return!0;let e=typeof navigator<"u"&&navigator.userAgent,r=t||e;return Boolean(r&&r.indexOf("Electron")>=0)}function Ni(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||Fx()}var zp="4.1.1";function Po(t,e){if(!t)throw new Error(e||"Assertion failed")}function Ap(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return Po(Number.isFinite(e)&&e>=0),e}function jx(t){let{logLevel:e,message:r}=t;t.logLevel=Ap(e);let i=t.args?Array.from(t.args):[];for(;i.length&&i.shift()!==r;);switch(typeof e){case"string":case"function":r!==void 0&&i.unshift(r),t.message=e;break;case"object":Object.assign(t,e);break;default:}typeof t.message=="function"&&(t.message=t.message());let n=typeof t.message;return Po(n==="string"||n==="object"),Object.assign(t,{args:i},t.opts)}var Ei=()=>{},il=class{constructor({level:e=0}={}){this.userData={},this._onceCache=new Set,this._level=e}set level(e){this.setLevel(e)}get level(){return this.getLevel()}setLevel(e){return this._level=e,this}getLevel(){return this._level}warn(e,...r){return this._log("warn",0,e,r,{once:!0})}error(e,...r){return this._log("error",0,e,r)}log(e,r,...i){return this._log("log",e,r,i)}info(e,r,...i){return this._log("info",e,r,i)}once(e,r,...i){return this._log("once",e,r,i,{once:!0})}_log(e,r,i,n,o={}){let a=jx({logLevel:r,message:i,args:this._buildArgs(r,i,n),opts:o});return this._createLogFunction(e,a,o)}_buildArgs(e,r,i){return[e,r,...i]}_createLogFunction(e,r,i){if(!this._shouldLog(r.logLevel))return Ei;let n=this._getOnceTag(i.tag??r.tag??r.message);if((i.once||r.once)&&n!==void 0){if(this._onceCache.has(n))return Ei;this._onceCache.add(n)}return this._emit(e,r)}_shouldLog(e){return this.getLevel()>=Ap(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e=="string"?e:String(e)}catch{return}}};function Iz(t){try{let e=window[t],r="__storage_test__";return e.setItem(r,r),e.removeItem(r),e}catch{return null}}var ol=class{constructor(e,r,i="sessionStorage"){this.storage=Iz(i),this.id=e,this.config=r,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){let r=JSON.stringify(this.config);this.storage.setItem(this.id,r)}}_loadConfiguration(){let e={};if(this.storage){let r=this.storage.getItem(this.id);e=r?JSON.parse(r):{}}return Object.assign(this.config,e),this}};function Rx(t){let e;return t<10?e=`${t.toFixed(2)}ms`:t<100?e=`${t.toFixed(1)}ms`:t<1e3?e=`${t.toFixed(0)}ms`:e=`${(t/1e3).toFixed(2)}s`,e}function Mx(t,e=8){let r=Math.max(e-t.length,0);return`${" ".repeat(r)}${t}`}var al;(function(t){t[t.BLACK=30]="BLACK",t[t.RED=31]="RED",t[t.GREEN=32]="GREEN",t[t.YELLOW=33]="YELLOW",t[t.BLUE=34]="BLUE",t[t.MAGENTA=35]="MAGENTA",t[t.CYAN=36]="CYAN",t[t.WHITE=37]="WHITE",t[t.BRIGHT_BLACK=90]="BRIGHT_BLACK",t[t.BRIGHT_RED=91]="BRIGHT_RED",t[t.BRIGHT_GREEN=92]="BRIGHT_GREEN",t[t.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",t[t.BRIGHT_BLUE=94]="BRIGHT_BLUE",t[t.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",t[t.BRIGHT_CYAN=96]="BRIGHT_CYAN",t[t.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(al||(al={}));var $z=10;function Cx(t){return typeof t!="string"?t:(t=t.toUpperCase(),al[t]||al.WHITE)}function Zx(t,e,r){return!Ni&&typeof t=="string"&&(e&&(t=`\x1B[${Cx(e)}m${t}\x1B[39m`),r&&(t=`\x1B[${Cx(r)+$z}m${t}\x1B[49m`)),t}function Vx(t,e=["constructor"]){let r=Object.getPrototypeOf(t),i=Object.getOwnPropertyNames(r),n=t;for(let o of i){let a=n[o];typeof a=="function"&&(e.find(s=>o===s)||(n[o]=a.bind(t)))}}function Lo(){let t;if(Ni()&&rl.performance)t=rl?.performance?.now?.();else if("hrtime"in nl){let e=nl?.hrtime?.();t=e[0]*1e3+e[1]/1e6}else t=Date.now();return t}var Fo={debug:Ni()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},Op={enabled:!0,level:0},bn=class extends il{constructor({id:e}={id:""}){super({level:0}),this.VERSION=zp,this._startTs=Lo(),this._deltaTs=Lo(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new ol(`__probe-${this.id}__`,{[this.id]:Op}),this.timeStamp(`${this.id} started`),Vx(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((Lo()-this._startTs).toPrecision(10))}getDelta(){return Number((Lo()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._updateConfiguration({enabled:e}),this}setLevel(e){return this._updateConfiguration({level:e}),this}get(e){return this._getConfiguration()[e]}set(e,r){this._updateConfiguration({[e]:r})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,r){if(!e)throw new Error(r||"Assertion failed")}warn(e,...r){return this._log("warn",0,e,r,{method:Fo.warn,once:!0})}error(e,...r){return this._log("error",0,e,r,{method:Fo.error})}deprecated(e,r){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${r}\` instead`)}removed(e,r){return this.error(`\`${e}\` has been removed. Use \`${r}\` instead`)}probe(e,r,...i){return this._log("log",e,r,i,{method:Fo.log,time:!0,once:!0})}log(e,r,...i){return this._log("log",e,r,i,{method:Fo.debug})}info(e,r,...i){return this._log("info",e,r,i,{method:console.info})}once(e,r,...i){return this._log("once",e,r,i,{method:Fo.debug||Fo.info,once:!0})}table(e,r,i){return r?this._log("table",e,r,i&&[i]||[],{method:console.table||Ei,tag:Dz(r)}):Ei}time(e,r){return this._log("time",e,r,[],{method:console.time?console.time:console.info})}timeEnd(e,r){return this._log("time",e,r,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(e,r){return this._log("time",e,r,[],{method:console.timeStamp||Ei})}group(e,r,i={collapsed:!1}){let n=(i.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",e,r,[],{method:n})}groupCollapsed(e,r,i={}){return this.group(e,r,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._log("groupEnd",e,"",[],{method:console.groupEnd||Ei})}withGroup(e,r,i){this.group(e,r)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&super._shouldLog(e)}_emit(e,r){let i=r.method;Po(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=Lo();let n=kz(this.id,r.message,r);return i.bind(console,n,...r.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(Op),this._storage.config[this.id]}_updateConfiguration(e){let r=this._storage.config[this.id]||{...Op};this._storage.setConfiguration({[this.id]:{...r,...e}})}};bn.VERSION=zp;function kz(t,e,r){if(typeof e=="string"){let i=r.time?Mx(Rx(r.total)):"";e=r.time?`${t}: ${i} ${e}`:`${t}: ${e}`,e=Zx(e,r.color,r.background)}return e}function Dz(t){for(let e in t)for(let r in t[e])return r||"untitled";return"empty"}globalThis.probe={};var GM=new bn({id:"@probe.gl/log"});var Tp="4.5.3",zz=Tp[0]>="0"&&Tp[0]<="9"?`v${Tp}`:"";function Az(){let t=new bn({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=t,globalThis.loaders.version=zz,globalThis.probe||={},globalThis.probe.loaders=t,t}var Jx=Az();var Bp=t=>typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer;function Hx(t,e){return Wx(t||{},e)}function Wx(t,e,r=0){if(r>3)return e;let i={...t};for(let[n,o]of Object.entries(e))o&&typeof o=="object"&&!Array.isArray(o)?i[n]=Wx(i[n]||{},e[n],r+1):i[n]=e[n];return i}function jo(t){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,t)}function Up(t,e){globalThis.loaders?.modules?.[t]||Jx.warn(`${e}: ${t} library not installed`)()}function sl(t,e){let r=globalThis.loaders?.modules?.[t];if(!r)throw new Error(`${e}: ${t} library not installed`);return r}function Np(t){return globalThis.loaders?.modules?.[t]||null}function Gx(...t){return Oz(t)}function Oz(t){let e=t.map(o=>o instanceof ArrayBuffer?new Uint8Array(o):o),r=e.reduce((o,a)=>o+a.byteLength,0),i=new Uint8Array(r),n=0;for(let o of e)i.set(o,n),n+=o.byteLength;return i.buffer}async function Ep(t){let e=[];for await(let r of t)e.push(Tz(r));return Gx(...e)}function Tz(t){if(t instanceof ArrayBuffer)return t;if(ArrayBuffer.isView(t)){let{buffer:e,byteOffset:r,byteLength:i}=t;return Kx(e,r,i)}return Kx(t)}function Kx(t,e=0,r=t.byteLength-e){let i=new Uint8Array(t,e,r),n=new Uint8Array(i.length);return n.set(i),n.buffer}var Bz="",Yx={};function Xx(t){for(let e in Yx)if(t.startsWith(e)){let r=Yx[e];t=t.replace(e,r)}return!t.startsWith("http://")&&!t.startsWith("https://")&&(t=`${Bz}${t}`),t}function qx(t){return t&&typeof t=="object"&&t.isBuffer}function Ln(t){if(qx(t))return t;if(t instanceof ArrayBuffer)return t;if(Bp(t))return cl(t);if(ArrayBuffer.isView(t)){let e=t.buffer;return t.byteOffset===0&&t.byteLength===t.buffer.byteLength?e:e.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(typeof t=="string"){let e=t;return new TextEncoder().encode(e).buffer}if(t&&typeof t=="object"&&t._toArrayBuffer)return t._toArrayBuffer();throw new Error("toArrayBuffer")}function Pp(t){if(t instanceof ArrayBuffer)return t;if(Bp(t))return cl(t);let{buffer:e,byteOffset:r,byteLength:i}=t;return e instanceof ArrayBuffer&&r===0&&i===e.byteLength?e:cl(e,r,i)}function cl(t,e=0,r=t.byteLength-e){let i=new Uint8Array(t,e,r),n=new Uint8Array(i.length);return n.set(i),n.buffer}function Ro(t){return e=>new Promise((r,i)=>t(e,(n,o)=>n?i(n):r(o)))}var Lp=class{optionsType;options;data;url;loadOptions;fetch;_needsRefresh=!0;constructor(e,r,i){i?this.options=Hx({...i,core:Lp.defaultOptions},r):this.options={...r},this.data=e,this.url=typeof e=="string"?Xx(e):"",this.loadOptions=Nz(this.options.core?.loadOptions),this.fetch=Uz(this.loadOptions)}setProps(e){this.options=Object.assign(this.options,e),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(e=!0){let r=this._needsRefresh;return e&&(this._needsRefresh=!1),r}},Mo=Lp;D_(Mo,"defaultOptions",{core:{type:"auto",attributions:[],loadOptions:{},loaders:[]}});function Uz(t){let e=t?.core?.fetch;if(e&&typeof e=="function")return(i,n)=>e(i,n);let r=t?.fetch;return r&&typeof r!="function"?i=>fetch(i,r):i=>fetch(i)}function Nz(t){let e={...t};t?.core&&(e.core={...t.core});let r=typeof e.baseUri=="string"?e.baseUri:void 0,i=typeof e.baseUrl=="string"?e.baseUrl:void 0;return(r!==void 0||i!==void 0)&&(e.core||={},e.core.baseUrl===void 0&&(e.core.baseUrl=i??r),delete e.baseUri,delete e.baseUrl),e}var Co=class{constructor(e){this.compressBatches=this.compressBatches.bind(this),this.decompressBatches=this.decompressBatches.bind(this)}async preload(e={}){jo(e)}async compress(e){return await this.preload(),this.compressSync(e)}async decompress(e,r){return await this.preload(),this.decompressSync(e,r)}compressSync(e){throw new Error(`${this.name}: sync compression not supported`)}decompressSync(e,r){throw new Error(`${this.name}: sync decompression not supported`)}async*compressBatches(e){let r=await this.concatenate(e);yield this.compress(r)}async*decompressBatches(e){let r=await this.concatenate(e);yield this.decompress(r)}concatenate(e){return Ep(e)}improveError(e){return e.message.includes(this.name)||(e.message=`${this.name} ${e.message}`),e}};var Vi=gf(jw(),1),$n=gf(Rw(),1),Qo=class extends Co{name="deflate";extensions=[];contentEncodings=["deflate"];isSupported=!0;options;_chunks=[];constructor(e={}){super(e),this.options=e}async compress(e){if(!Eo&&this.options.deflate?.useZlib){let r=this.options.deflate?.gzip?await Ro($n.default.gzip)(e):await Ro($n.default.deflate)(e);return Ln(r)}return this.compressSync(e)}async decompress(e){if(!Eo&&this.options.deflate?.useZlib){let r=this.options.deflate?.gzip?await Ro($n.default.gunzip)(e):await Ro($n.default.inflate)(e);return Ln(r)}return this.decompressSync(e)}compressSync(e){if(!Eo&&this.options.deflate?.useZlib){let o=this.options.deflate?.gzip?$n.default.gzipSync(e):$n.default.deflateSync(e);return Ln(o)}let r=this.options?.deflate||{},i=new Uint8Array(e),n=this.options?.raw?Vi.default.deflateRaw:Vi.default.deflate;return Ln(n(i,r).buffer)}decompressSync(e){if(!Eo&&this.options.deflate?.useZlib){let o=this.options.deflate?.gzip?$n.default.gunzipSync(e):$n.default.inflateSync(e);return Ln(o)}let r=this.options?.deflate||{},i=new Uint8Array(e),n=this.options?.raw?Vi.default.inflateRaw:Vi.default.inflate;return Ln(n(i,r).buffer)}async*compressBatches(e){let r=this.options?.deflate||{},i=new Vi.default.Deflate(r);yield*this.transformBatches(i,e)}async*decompressBatches(e){let r=this.options?.deflate||{},i=new Vi.default.Inflate(r);yield*this.transformBatches(i,e)}async*transformBatches(e,r){e.onData=this._onData.bind(this),e.onEnd=this._onEnd.bind(this);for await(let a of r){let s=new Uint8Array(a);if(!e.push(s,!1))throw new Error(`${this._getError()}write`);yield*this._getChunks()}let i=new Uint8Array(0),n=e.push(i,!0);yield*this._getChunks()}_onData(e){this._chunks.push(e)}_onEnd(e){if(e!==0)throw new Error(this._getError(e)+this._chunks.length)}_getChunks(){let e=this._chunks;return this._chunks=[],e}_getError(e=0){let r={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};return`${this.name}: ${r[e]}`}};var Mw=1e6,vh,$l,Fs=class extends Co{name="zstd";extensions=[];contentEncodings=[];isSupported=!0;options;constructor(e){super(e),this.options=e,jo(e?.modules)}async preload(e={}){jo(e),Up("zstd-codec",this.name);let r=Np("zstd-codec");!vh&&r&&(vh=new Promise(i=>r.run(n=>i(n))),$l=await vh)}compressSync(e){sl("zstd-codec",this.name);let r=new $l.Simple,i=new Uint8Array(e);return r.compress(i).buffer}decompressSync(e){sl("zstd-codec",this.name);let r=new $l.Simple,i=new Uint8Array(e);return r.decompress(i).buffer}async decompress(e,r){await this.preload();let i=new $l.Streaming,n=new Uint8Array(e),o=[];for(let s=0;s<=n.length;s+=Mw){let u=n.subarray(s,s+Mw),c=Pp(u);o.push(new Uint8Array(c))}return(await i.decompressChunks(o)).buffer}};var js=32,DO=1347635022,zO=4,AO=2,Vw=.15,OO=Math.SQRT1_2,Cw=(1<<9)-1;async function Jw(t,e){return Gr(await TO(t,e))}async function TO(t,e){let r=BO(t),i=UO(t,r,NO(r)),n=i.map(s=>t.slice(s.compressedOffset,s.compressedOffset+s.compressedSize)),o=new Fs({modules:e?.modules}),a=await Promise.all(n.map((s,u)=>o.decompress(s,i[u].uncompressedSize)));return EO(a,i),PO(r,a,t)}function BO(t){if(t.byteLength<js)throw new Error(`SPZLoader: file must contain a ${js}-byte header.`);let e=new DataView(t),r={magic:e.getUint32(0,!0),version:e.getUint32(4,!0),numPoints:e.getUint32(8,!0),shDegree:e.getUint8(12),fractionalBits:e.getUint8(13),flags:e.getUint8(14),numStreams:e.getUint8(15),tocByteOffset:e.getUint32(16,!0)};if(r.magic!==DO)throw new Error("SPZLoader: NGSP magic header not found.");if(r.version!==zO)throw new Error(`SPZLoader: version ${r.version} is not supported.`);if(r.shDegree>4)throw new Error(`SPZLoader: spherical harmonics degree ${r.shDegree} is not supported.`);if(r.tocByteOffset<js||r.tocByteOffset>t.byteLength)throw new Error("SPZLoader: invalid table of contents byte offset.");return r}function UO(t,e,r){if(e.numStreams!==r.length)throw new Error(`SPZLoader: expected ${r.length} streams, found ${e.numStreams}.`);let i=e.numStreams*16,n=e.tocByteOffset+i;if(n>t.byteLength)throw new Error("SPZLoader: table of contents exceeds file byte length.");let o=new DataView(t),a=n,s=[];for(let u=0;u<e.numStreams;u++){let c=e.tocByteOffset+u*16,l=Zw(o,c),d=Zw(o,c+8),p=r[u];if(d!==p)throw new Error(`SPZLoader: stream ${u} has ${d} uncompressed bytes, expected ${p}.`);if(a+l>t.byteLength)throw new Error(`SPZLoader: stream ${u} exceeds file byte length.`);s.push({compressedSize:l,uncompressedSize:d,compressedOffset:a}),a+=l}if(a!==t.byteLength)throw new Error("SPZLoader: compressed stream byte lengths do not match file byte length.");return s}function Zw(t,e){let r=t.getBigUint64(e,!0);if(r>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("SPZLoader: stream byte length exceeds Number.MAX_SAFE_INTEGER.");return Number(r)}function NO(t){return[t.numPoints*9,t.numPoints,t.numPoints*3,t.numPoints*3,t.numPoints*4,t.numPoints*Hw(t.shDegree)].filter(e=>e>0)}function EO(t,e){for(let r=0;r<t.length;r++)if(t[r].byteLength!==e[r].uncompressedSize)throw new Error(`SPZLoader: decompressed stream ${r} has unexpected byte length.`)}function PO(t,e,r){let i=t.numPoints,n=new Float32Array(i*3),o=new Float32Array(i*3),a=new Float32Array(i*4),s=new Uint8Array(i*3),u=new Float32Array(i*3),c=new Float32Array(i),l=Hw(t.shDegree),d=l?new Float32Array(i*l):void 0,[p,f,y,w,k,A]=e.map(ie=>new Uint8Array(ie));return LO(p,n,t.fractionalBits),FO(w,o),jO(k,a),MO(y,s,u),CO(f,c),d&&A&&ZO(A,d),{format:"spz",splatCount:i,positions:n,scales:o,rotations:a,colors:s,sphericalHarmonicDcs:u,opacities:c,sphericalHarmonics:d,sphericalHarmonicsComponentCount:l,loaderData:{format:"spz",...t,antialiased:Boolean(t.flags&1),extensionByteLength:Ww(t),extensionBytes:JO(r,t)}}}function LO(t,e,r){let i=1/2**r;for(let n=0;n<e.length;n++){let o=n*3,a=t[o]|t[o+1]<<8|t[o+2]<<16;a|=a&8388608?4278190080:0,e[n]=a*i}}function FO(t,e){for(let r=0;r<e.length;r++)e[r]=Math.exp(t[r]/16-10)}function jO(t,e){for(let r=0;r<e.length/4;r++){let i=r*4,n=t[i]|t[i+1]<<8|t[i+2]<<16|t[i+3]<<24,o=RO(n>>>0),[a,s,u,c]=_n(o[3],o[0],o[1],o[2]),l=r*4;e[l+0]=a,e[l+1]=s,e[l+2]=u,e[l+3]=c}}function RO(t){let e=[0,0,0,0],r=t>>>30,i=t,n=0;for(let o=3;o>=0;o--)if(o!==r){let a=i&Cw,s=i>>>9&1;i>>>=10;let u=OO*a/Cw;s&&(u=-u),e[o]=u,n+=u*u}return e[r]=Math.sqrt(Math.max(0,1-n)),e}function MO(t,e,r){for(let i=0;i<e.length;i++)r[i]=(t[i]/255-.5)/Vw,e[i]=VO(r[i])}function CO(t,e){for(let r=0;r<e.length;r++)e[r]=t[r]/255}function ZO(t,e){for(let r=0;r<e.length;r++)e[r]=(t[r]-128)/128}function VO(t){return Math.min(Math.max(Math.round((t*Vw+.5)*255),0),255)}function Hw(t){switch(t){case 0:return 0;case 1:return 9;case 2:return 24;case 3:return 45;case 4:return 72;default:throw new Error(`SPZLoader: spherical harmonics degree ${t} is not supported.`)}}function Ww(t){return t.flags&AO?t.tocByteOffset-js:0}function JO(t,e){return Ww(e)?new Uint8Array(t.slice(js,e.tocByteOffset)):void 0}var HO="4.5.3",Gw={dataType:null,batchType:null,...Ac,version:HO,options:{splats:{shape:"arrow-table"}}};var Kw={...Gw,parse:async(t,e)=>Jw(t,e)};var fe={};We(fe,{$brand:()=>bh,$input:()=>Mg,$output:()=>Rg,NEVER:()=>_h,TimePrecision:()=>Jg,ZodAny:()=>Ev,ZodArray:()=>jv,ZodBase64:()=>qd,ZodBase64URL:()=>Qd,ZodBigInt:()=>Aa,ZodBigIntFormat:()=>rf,ZodBoolean:()=>za,ZodCIDRv4:()=>Yd,ZodCIDRv6:()=>Xd,ZodCUID:()=>Zd,ZodCUID2:()=>Vd,ZodCatch:()=>s_,ZodCodec:()=>gc,ZodCustom:()=>yc,ZodCustomStringFormat:()=>ka,ZodDate:()=>dc,ZodDefault:()=>t_,ZodDiscriminatedUnion:()=>Mv,ZodE164:()=>ef,ZodEmail:()=>Rd,ZodEmoji:()=>Md,ZodEnum:()=>Ia,ZodError:()=>SU,ZodExactOptional:()=>qv,ZodFile:()=>Yv,ZodFirstPartyTypeKind:()=>b_,ZodFunction:()=>y_,ZodGUID:()=>ac,ZodIPv4:()=>Gd,ZodIPv6:()=>Kd,ZodISODate:()=>Nd,ZodISODateTime:()=>Ud,ZodISODuration:()=>Pd,ZodISOTime:()=>Ed,ZodIntersection:()=>Cv,ZodIssueCode:()=>$U,ZodJWT:()=>tf,ZodKSUID:()=>Wd,ZodLazy:()=>h_,ZodLiteral:()=>Kv,ZodMAC:()=>zv,ZodMap:()=>Wv,ZodNaN:()=>u_,ZodNanoID:()=>Cd,ZodNever:()=>Lv,ZodNonOptional:()=>uf,ZodNull:()=>Uv,ZodNullable:()=>e_,ZodNumber:()=>Da,ZodNumberFormat:()=>to,ZodObject:()=>pc,ZodOptional:()=>cf,ZodPipe:()=>mc,ZodPrefault:()=>n_,ZodPreprocess:()=>l_,ZodPromise:()=>g_,ZodReadonly:()=>d_,ZodRealError:()=>Lt,ZodRecord:()=>Sa,ZodSet:()=>Gv,ZodString:()=>$a,ZodStringFormat:()=>ve,ZodSuccess:()=>a_,ZodSymbol:()=>Tv,ZodTemplateLiteral:()=>p_,ZodTransform:()=>Xv,ZodTuple:()=>Vv,ZodType:()=>Y,ZodULID:()=>Jd,ZodURL:()=>lc,ZodUUID:()=>an,ZodUndefined:()=>Bv,ZodUnion:()=>hc,ZodUnknown:()=>Pv,ZodVoid:()=>Fv,ZodXID:()=>Hd,ZodXor:()=>Rv,_ZodString:()=>jd,_default:()=>r_,_function:()=>P$,any:()=>p$,array:()=>fc,base64:()=>YI,base64url:()=>XI,bigint:()=>c$,boolean:()=>Ov,catch:()=>c_,check:()=>L$,cidrv4:()=>GI,cidrv6:()=>KI,clone:()=>gt,codec:()=>B$,coerce:()=>lf,config:()=>Oe,core:()=>on,cuid:()=>RI,cuid2:()=>MI,custom:()=>F$,date:()=>m$,decode:()=>xv,decodeAsync:()=>Sv,describe:()=>j$,discriminatedUnion:()=>x$,e164:()=>qI,email:()=>OI,emoji:()=>FI,encode:()=>bv,encodeAsync:()=>wv,endsWith:()=>ha,enum:()=>af,exactOptional:()=>Qv,file:()=>z$,flattenError:()=>Ws,float32:()=>i$,float64:()=>o$,formatError:()=>Gs,fromJSONSchema:()=>H$,function:()=>P$,getErrorMap:()=>DU,globalRegistry:()=>rt,gt:()=>rn,gte:()=>vt,guid:()=>TI,hash:()=>n$,hex:()=>r$,hostname:()=>t$,httpUrl:()=>LI,includes:()=>fa,instanceof:()=>M$,int:()=>Ld,int32:()=>a$,int64:()=>u$,intersection:()=>Zv,invertCodec:()=>U$,ipv4:()=>JI,ipv6:()=>WI,iso:()=>Qi,json:()=>Z$,jwt:()=>QI,keyof:()=>g$,ksuid:()=>VI,lazy:()=>m_,length:()=>qi,literal:()=>D$,locales:()=>Ki,looseObject:()=>_$,looseRecord:()=>S$,lowercase:()=>la,lt:()=>tn,lte:()=>Jt,mac:()=>HI,map:()=>I$,maxLength:()=>Xi,maxSize:()=>Yn,meta:()=>R$,mime:()=>ma,minLength:()=>Dn,minSize:()=>nn,multipleOf:()=>Kn,nan:()=>T$,nanoid:()=>jI,nativeEnum:()=>k$,negative:()=>Sd,never:()=>nf,nonnegative:()=>$d,nonoptional:()=>o_,nonpositive:()=>Id,normalize:()=>ga,null:()=>Nv,nullable:()=>cc,nullish:()=>A$,number:()=>Av,object:()=>y$,optional:()=>sc,overwrite:()=>br,parse:()=>gv,parseAsync:()=>yv,partialRecord:()=>w$,pipe:()=>Fd,positive:()=>wd,prefault:()=>i_,preprocess:()=>V$,prettifyError:()=>Uh,promise:()=>E$,property:()=>kd,readonly:()=>f_,record:()=>Hv,refine:()=>v_,regex:()=>ua,regexes:()=>Pt,registry:()=>td,safeDecode:()=>$v,safeDecodeAsync:()=>Dv,safeEncode:()=>Iv,safeEncodeAsync:()=>kv,safeParse:()=>vv,safeParseAsync:()=>_v,set:()=>$$,setErrorMap:()=>kU,size:()=>Yi,slugify:()=>ba,startsWith:()=>pa,strictObject:()=>v$,string:()=>oc,stringFormat:()=>e$,stringbool:()=>C$,success:()=>O$,superRefine:()=>__,symbol:()=>d$,templateLiteral:()=>N$,toJSONSchema:()=>Od,toLowerCase:()=>va,toUpperCase:()=>_a,transform:()=>sf,treeifyError:()=>Bh,trim:()=>ya,tuple:()=>Jv,uint32:()=>s$,uint64:()=>l$,ulid:()=>CI,undefined:()=>f$,union:()=>of,unknown:()=>eo,uppercase:()=>da,url:()=>PI,util:()=>b,uuid:()=>BI,uuidv4:()=>UI,uuidv6:()=>NI,uuidv7:()=>EI,void:()=>h$,xid:()=>ZI,xor:()=>b$});var on={};We(on,{$ZodAny:()=>cg,$ZodArray:()=>pg,$ZodAsyncError:()=>_r,$ZodBase64:()=>qm,$ZodBase64URL:()=>Qm,$ZodBigInt:()=>Wl,$ZodBigIntFormat:()=>ig,$ZodBoolean:()=>qs,$ZodCIDRv4:()=>Km,$ZodCIDRv6:()=>Ym,$ZodCUID:()=>Lm,$ZodCUID2:()=>Fm,$ZodCatch:()=>Tg,$ZodCheck:()=>we,$ZodCheckBigIntFormat:()=>pm,$ZodCheckEndsWith:()=>$m,$ZodCheckGreaterThan:()=>Ml,$ZodCheckIncludes:()=>Sm,$ZodCheckLengthEquals:()=>_m,$ZodCheckLessThan:()=>Rl,$ZodCheckLowerCase:()=>xm,$ZodCheckMaxLength:()=>ym,$ZodCheckMaxSize:()=>hm,$ZodCheckMimeType:()=>Dm,$ZodCheckMinLength:()=>vm,$ZodCheckMinSize:()=>mm,$ZodCheckMultipleOf:()=>dm,$ZodCheckNumberFormat:()=>fm,$ZodCheckOverwrite:()=>zm,$ZodCheckProperty:()=>km,$ZodCheckRegex:()=>bm,$ZodCheckSizeEquals:()=>gm,$ZodCheckStartsWith:()=>Im,$ZodCheckStringFormat:()=>sa,$ZodCheckUpperCase:()=>wm,$ZodCodec:()=>ec,$ZodCustom:()=>jg,$ZodCustomStringFormat:()=>rg,$ZodDate:()=>fg,$ZodDefault:()=>Dg,$ZodDiscriminatedUnion:()=>gg,$ZodE164:()=>eg,$ZodEmail:()=>Um,$ZodEmoji:()=>Em,$ZodEncodeError:()=>Vn,$ZodEnum:()=>xg,$ZodError:()=>Hs,$ZodExactOptional:()=>$g,$ZodFile:()=>Sg,$ZodFunction:()=>Pg,$ZodGUID:()=>Tm,$ZodIPv4:()=>Hm,$ZodIPv6:()=>Wm,$ZodISODate:()=>Zm,$ZodISODateTime:()=>Cm,$ZodISODuration:()=>Jm,$ZodISOTime:()=>Vm,$ZodIntersection:()=>yg,$ZodJWT:()=>tg,$ZodKSUID:()=>Mm,$ZodLazy:()=>Fg,$ZodLiteral:()=>wg,$ZodMAC:()=>Gm,$ZodMap:()=>_g,$ZodNaN:()=>Bg,$ZodNanoID:()=>Pm,$ZodNever:()=>lg,$ZodNonOptional:()=>Ag,$ZodNull:()=>sg,$ZodNullable:()=>kg,$ZodNumber:()=>Hl,$ZodNumberFormat:()=>ng,$ZodObject:()=>kS,$ZodObjectJIT:()=>hg,$ZodOptional:()=>Kl,$ZodPipe:()=>Yl,$ZodPrefault:()=>zg,$ZodPreprocess:()=>Ug,$ZodPromise:()=>Lg,$ZodReadonly:()=>Ng,$ZodRealError:()=>Et,$ZodRecord:()=>vg,$ZodRegistry:()=>ed,$ZodSet:()=>bg,$ZodString:()=>Gi,$ZodStringFormat:()=>ye,$ZodSuccess:()=>Og,$ZodSymbol:()=>og,$ZodTemplateLiteral:()=>Eg,$ZodTransform:()=>Ig,$ZodTuple:()=>Gl,$ZodType:()=>H,$ZodULID:()=>jm,$ZodURL:()=>Nm,$ZodUUID:()=>Bm,$ZodUndefined:()=>ag,$ZodUnion:()=>Qs,$ZodUnknown:()=>ug,$ZodVoid:()=>dg,$ZodXID:()=>Rm,$ZodXor:()=>mg,$brand:()=>bh,$constructor:()=>m,$input:()=>Mg,$output:()=>Rg,Doc:()=>Xs,JSONSchema:()=>dv,JSONSchemaGenerator:()=>Td,NEVER:()=>_h,TimePrecision:()=>Jg,_any:()=>fy,_array:()=>_y,_base64:()=>vd,_base64url:()=>_d,_bigint:()=>oy,_boolean:()=>ny,_catch:()=>mU,_check:()=>DI,_cidrv4:()=>gd,_cidrv6:()=>yd,_coercedBigint:()=>ay,_coercedBoolean:()=>iy,_coercedDate:()=>yy,_coercedNumber:()=>Xg,_coercedString:()=>Zg,_cuid:()=>ud,_cuid2:()=>ld,_custom:()=>xy,_date:()=>gy,_decode:()=>Tl,_decodeAsync:()=>Ul,_default:()=>fU,_discriminatedUnion:()=>eU,_e164:()=>bd,_email:()=>rd,_emoji:()=>sd,_encode:()=>Ol,_encodeAsync:()=>Bl,_endsWith:()=>ha,_enum:()=>aU,_file:()=>by,_float32:()=>Qg,_float64:()=>ey,_gt:()=>rn,_gte:()=>vt,_guid:()=>rc,_includes:()=>fa,_int:()=>qg,_int32:()=>ty,_int64:()=>sy,_intersection:()=>tU,_ipv4:()=>hd,_ipv6:()=>md,_isoDate:()=>Wg,_isoDateTime:()=>Hg,_isoDuration:()=>Kg,_isoTime:()=>Gg,_jwt:()=>xd,_ksuid:()=>pd,_lazy:()=>_U,_length:()=>qi,_literal:()=>cU,_lowercase:()=>la,_lt:()=>tn,_lte:()=>Jt,_mac:()=>Vg,_map:()=>iU,_max:()=>Jt,_maxLength:()=>Xi,_maxSize:()=>Yn,_mime:()=>ma,_min:()=>vt,_minLength:()=>Dn,_minSize:()=>nn,_multipleOf:()=>Kn,_nan:()=>vy,_nanoid:()=>cd,_nativeEnum:()=>sU,_negative:()=>Sd,_never:()=>hy,_nonnegative:()=>$d,_nonoptional:()=>pU,_nonpositive:()=>Id,_normalize:()=>ga,_null:()=>dy,_nullable:()=>dU,_number:()=>Yg,_optional:()=>lU,_overwrite:()=>br,_parse:()=>na,_parseAsync:()=>ia,_pipe:()=>gU,_positive:()=>wd,_promise:()=>bU,_property:()=>kd,_readonly:()=>yU,_record:()=>nU,_refine:()=>wy,_regex:()=>ua,_safeDecode:()=>El,_safeDecodeAsync:()=>Ll,_safeEncode:()=>Nl,_safeEncodeAsync:()=>Pl,_safeParse:()=>oa,_safeParseAsync:()=>aa,_set:()=>oU,_size:()=>Yi,_slugify:()=>ba,_startsWith:()=>pa,_string:()=>Cg,_stringFormat:()=>xa,_stringbool:()=>ky,_success:()=>hU,_superRefine:()=>Sy,_symbol:()=>uy,_templateLiteral:()=>vU,_toLowerCase:()=>va,_toUpperCase:()=>_a,_transform:()=>uU,_trim:()=>ya,_tuple:()=>rU,_uint32:()=>ry,_uint64:()=>cy,_ulid:()=>dd,_undefined:()=>ly,_union:()=>qB,_unknown:()=>py,_uppercase:()=>da,_url:()=>nc,_uuid:()=>nd,_uuidv4:()=>id,_uuidv6:()=>od,_uuidv7:()=>ad,_void:()=>my,_xid:()=>fd,_xor:()=>QB,clone:()=>gt,config:()=>Oe,createStandardJSONSchemaMethod:()=>wa,createToJSONSchemaMethod:()=>Dy,decode:()=>bT,decodeAsync:()=>wT,describe:()=>Iy,encode:()=>_T,encodeAsync:()=>xT,extractDefs:()=>qn,finalize:()=>Qn,flattenError:()=>Ws,formatError:()=>Gs,globalConfig:()=>Ji,globalRegistry:()=>rt,initializeContext:()=>Xn,isValidBase64:()=>Xm,isValidBase64URL:()=>wS,isValidJWT:()=>SS,locales:()=>Ki,meta:()=>$y,parse:()=>zl,parseAsync:()=>Al,prettifyError:()=>Uh,process:()=>he,regexes:()=>Pt,registry:()=>td,safeDecode:()=>IT,safeDecodeAsync:()=>kT,safeEncode:()=>ST,safeEncodeAsync:()=>$T,safeParse:()=>Nh,safeParseAsync:()=>Eh,toDotPath:()=>tS,toJSONSchema:()=>Od,treeifyError:()=>Bh,util:()=>b,version:()=>Am});var Yw,_h=Object.freeze({status:"aborted"});function m(t,e,r){function i(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(t))return;s._zod.traits.add(t),e(s,u);let c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let p=l[d];p in s||(s[p]=c[p].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:t});function a(s){var u;let c=r?.Parent?new o:this;i(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}var bh=Symbol("zod_brand"),_r=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Vn=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Yw=globalThis).__zod_globalConfig??(Yw.__zod_globalConfig={});var Ji=globalThis.__zod_globalConfig;function Oe(t){return t&&Object.assign(Ji,t),Ji}var b={};We(b,{BIGINT_FORMAT_RANGES:()=>Oh,Class:()=>wh,NUMBER_FORMAT_RANGES:()=>Ah,aborted:()=>Gn,allowsEval:()=>$h,assert:()=>XO,assertEqual:()=>WO,assertIs:()=>KO,assertNever:()=>YO,assertNotEqual:()=>GO,assignProp:()=>Hn,base64ToUint8Array:()=>qw,base64urlToUint8Array:()=>hT,cached:()=>ta,captureStackTrace:()=>Dl,cleanEnum:()=>pT,cleanRegex:()=>Cs,clone:()=>gt,cloneDef:()=>QO,createTransparentProxy:()=>oT,defineLazy:()=>ne,esc:()=>kl,escapeRegex:()=>nr,explicitlyAborted:()=>Th,extend:()=>cT,finalizeIssue:()=>yt,floatSafeRemainder:()=>Sh,getElementAtPath:()=>eT,getEnumValues:()=>Ms,getLengthableOrigin:()=>Js,getParsedType:()=>iT,getSizableOrigin:()=>Vs,hexToUint8Array:()=>gT,isObject:()=>Hi,isPlainObject:()=>Wn,issue:()=>ra,joinValues:()=>g,jsonStringifyReplacer:()=>ea,merge:()=>lT,mergeDefs:()=>kn,normalizeParams:()=>x,nullish:()=>Jn,numKeys:()=>nT,objectClone:()=>qO,omit:()=>sT,optionalKeys:()=>zh,parsedType:()=>_,partial:()=>dT,pick:()=>aT,prefixIssues:()=>Nt,primitiveTypes:()=>Dh,promiseAllObject:()=>tT,propertyKeyTypes:()=>Zs,randomString:()=>rT,required:()=>fT,safeExtend:()=>uT,shallowClone:()=>kh,slugify:()=>Ih,stringifyPrimitive:()=>v,uint8ArrayToBase64:()=>Qw,uint8ArrayToBase64url:()=>mT,uint8ArrayToHex:()=>yT,unwrapMessage:()=>Rs});function WO(t){return t}function GO(t){return t}function KO(t){}function YO(t){throw new Error("Unexpected value in exhaustive check")}function XO(t){}function Ms(t){let e=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,n])=>e.indexOf(+i)===-1).map(([i,n])=>n)}function g(t,e="|"){return t.map(r=>v(r)).join(e)}function ea(t,e){return typeof e=="bigint"?e.toString():e}function ta(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Jn(t){return t==null}function Cs(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Sh(t,e){let r=t/e,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var Xw=Symbol("evaluating");function ne(t,e,r){let i;Object.defineProperty(t,e,{get(){if(i!==Xw)return i===void 0&&(i=Xw,i=r()),i},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}function qO(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function Hn(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function kn(...t){let e={};for(let r of t){let i=Object.getOwnPropertyDescriptors(r);Object.assign(e,i)}return Object.defineProperties({},e)}function QO(t){return kn(t._zod.def)}function eT(t,e){return e?e.reduce((r,i)=>r?.[i],t):t}function tT(t){let e=Object.keys(t),r=e.map(i=>t[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<e.length;o++)n[e[o]]=i[o];return n})}function rT(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}function kl(t){return JSON.stringify(t)}function Ih(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Dl="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function Hi(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var $h=ta(()=>{if(Ji.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function Wn(t){if(Hi(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Hi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function kh(t){return Wn(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function nT(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}var iT=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Zs=new Set(["string","number","symbol"]),Dh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gt(t,e,r){let i=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(i._zod.parent=t),i}function x(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function oT(t){let e;return new Proxy({},{get(r,i,n){return e??(e=t()),Reflect.get(e,i,n)},set(r,i,n,o){return e??(e=t()),Reflect.set(e,i,n,o)},has(r,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(r,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(r,i,n){return e??(e=t()),Reflect.defineProperty(e,i,n)}})}function v(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function zh(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Ah={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]},Oh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function aT(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=kn(t._zod.def,{get shape(){let a={};for(let s in e){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&(a[s]=r.shape[s])}return Hn(this,"shape",a),a},checks:[]});return gt(t,o)}function sT(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=kn(t._zod.def,{get shape(){let a={...t._zod.def.shape};for(let s in e){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&delete a[s]}return Hn(this,"shape",a),a},checks:[]});return gt(t,o)}function cT(t,e){if(!Wn(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let o=t._zod.def.shape;for(let a in e)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=kn(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return Hn(this,"shape",o),o}});return gt(t,n)}function uT(t,e){if(!Wn(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=kn(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return Hn(this,"shape",i),i}});return gt(t,r)}function lT(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=kn(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e._zod.def.shape};return Hn(this,"shape",i),i},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return gt(t,r)}function dT(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=kn(e._zod.def,{get shape(){let s=e._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=t?new t({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=t?new t({type:"optional",innerType:s[c]}):s[c];return Hn(this,"shape",u),u},checks:[]});return gt(e,a)}function fT(t,e,r){let i=kn(e._zod.def,{get shape(){let n=e._zod.def.shape,o={...n};if(r)for(let a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new t({type:"nonoptional",innerType:n[a]}))}else for(let a in n)o[a]=new t({type:"nonoptional",innerType:n[a]});return Hn(this,"shape",o),o}});return gt(e,i)}function Gn(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function Th(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue===!1)return!0;return!1}function Nt(t,e){return e.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(t),r})}function Rs(t){return typeof t=="string"?t:t?.message}function yt(t,e,r){let i=t.message?t.message:Rs(t.inst?._zod.def?.error?.(t))??Rs(e?.error?.(t))??Rs(r.customError?.(t))??Rs(r.localeError?.(t))??"Invalid input",{inst:n,continue:o,input:a,...s}=t;return s.path??(s.path=[]),s.message=i,e?.reportInput&&(s.input=a),s}function Vs(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Js(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function _(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function ra(...t){let[e,r,i]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:i}:{...e}}function pT(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function qw(t){let e=atob(t),r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r}function Qw(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function hT(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return qw(e+r)}function mT(t){return Qw(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function gT(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)r[i/2]=Number.parseInt(e.slice(i,i+2),16);return r}function yT(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var wh=class{constructor(...e){}};var eS=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,ea,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Hs=m("$ZodError",eS),Et=m("$ZodError",eS,{Parent:Error});function Ws(t,e=r=>r.message){let r={},i=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:r}}function Gs(t,e=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let s=[...o,...a.path];if(s.length===0)r._errors.push(e(a));else{let u=r,c=0;for(;c<s.length;){let l=s[c];c===s.length-1?(u[l]=u[l]||{_errors:[]},u[l]._errors.push(e(a))):u[l]=u[l]||{_errors:[]},u=u[l],c++}}}};return i(t),r}function Bh(t,e=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a,s;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c},[...o,...u.path]));else if(u.code==="invalid_key")i({issues:u.issues},[...o,...u.path]);else if(u.code==="invalid_element")i({issues:u.issues},[...o,...u.path]);else{let c=[...o,...u.path];if(c.length===0){r.errors.push(e(u));continue}let l=r,d=0;for(;d<c.length;){let p=c[d],f=d===c.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),f&&l.errors.push(e(u)),d++}}};return i(t),r}function tS(t){let e=[],r=t.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?e.push(`[${i}]`):typeof i=="symbol"?e.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?e.push(`[${JSON.stringify(i)}]`):(e.length&&e.push("."),e.push(i));return e.join("")}function Uh(t){let e=[],r=[...t.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)e.push(`\u2716 ${i.message}`),i.path?.length&&e.push(` \u2192 at ${tS(i.path)}`);return e.join(`
17
17
  `)}var na=t=>(e,r,i,n)=>{let o=i?{...i,async:!1}:{async:!1},a=e._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new _r;if(a.issues.length){let s=new(n?.Err??t)(a.issues.map(u=>yt(u,o,Oe())));throw Dl(s,n?.callee),s}return a.value},zl=na(Et),ia=t=>async(e,r,i,n)=>{let o=i?{...i,async:!0}:{async:!0},a=e._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??t)(a.issues.map(u=>yt(u,o,Oe())));throw Dl(s,n?.callee),s}return a.value},Al=ia(Et),oa=t=>(e,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=e._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new _r;return o.issues.length?{success:!1,error:new(t??Hs)(o.issues.map(a=>yt(a,n,Oe())))}:{success:!0,data:o.value}},Nh=oa(Et),aa=t=>async(e,r,i)=>{let n=i?{...i,async:!0}:{async:!0},o=e._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new t(o.issues.map(a=>yt(a,n,Oe())))}:{success:!0,data:o.value}},Eh=aa(Et),Ol=t=>(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return na(t)(e,r,n)},_T=Ol(Et),Tl=t=>(e,r,i)=>na(t)(e,r,i),bT=Tl(Et),Bl=t=>async(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return ia(t)(e,r,n)},xT=Bl(Et),Ul=t=>async(e,r,i)=>ia(t)(e,r,i),wT=Ul(Et),Nl=t=>(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return oa(t)(e,r,n)},ST=Nl(Et),El=t=>(e,r,i)=>oa(t)(e,r,i),IT=El(Et),Pl=t=>async(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return aa(t)(e,r,n)},$T=Pl(Et),Ll=t=>async(e,r,i)=>aa(t)(e,r,i),kT=Ll(Et);var Pt={};We(Pt,{base64:()=>Xh,base64url:()=>Fl,bigint:()=>im,boolean:()=>am,browserEmail:()=>NT,cidrv4:()=>Kh,cidrv6:()=>Yh,cuid:()=>Ph,cuid2:()=>Lh,date:()=>em,datetime:()=>rm,domain:()=>LT,duration:()=>Ch,e164:()=>Qh,email:()=>Vh,emoji:()=>Jh,extendedDuration:()=>DT,guid:()=>Zh,hex:()=>FT,hostname:()=>PT,html5Email:()=>TT,httpProtocol:()=>qh,idnEmail:()=>UT,integer:()=>om,ipv4:()=>Hh,ipv6:()=>Wh,ksuid:()=>Rh,lowercase:()=>um,mac:()=>Gh,md5_base64:()=>RT,md5_base64url:()=>MT,md5_hex:()=>jT,nanoid:()=>Mh,null:()=>sm,number:()=>jl,rfc5322Email:()=>BT,sha1_base64:()=>ZT,sha1_base64url:()=>VT,sha1_hex:()=>CT,sha256_base64:()=>HT,sha256_base64url:()=>WT,sha256_hex:()=>JT,sha384_base64:()=>KT,sha384_base64url:()=>YT,sha384_hex:()=>GT,sha512_base64:()=>qT,sha512_base64url:()=>QT,sha512_hex:()=>XT,string:()=>nm,time:()=>tm,ulid:()=>Fh,undefined:()=>cm,unicodeEmail:()=>rS,uppercase:()=>lm,uuid:()=>Wi,uuid4:()=>zT,uuid6:()=>AT,uuid7:()=>OT,xid:()=>jh});var Ph=/^[cC][0-9a-z]{6,}$/,Lh=/^[0-9a-z]+$/,Fh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,jh=/^[0-9a-vA-V]{20}$/,Rh=/^[A-Za-z0-9]{27}$/,Mh=/^[a-zA-Z0-9_-]{21}$/,Ch=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,DT=/^[-+]?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)?)??$/,Zh=/^([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})$/,Wi=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[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)$/,zT=Wi(4),AT=Wi(6),OT=Wi(7),Vh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,TT=/^[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])?)*$/,BT=/^(([^<>()\[\]\\.,;:\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,}))$/,rS=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,UT=rS,NT=/^[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])?)*$/,ET="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Jh(){return new RegExp(ET,"u")}var Hh=/^(?:(?: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])$/,Wh=/^(([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}|:))$/,Gh=t=>{let e=nr(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Kh=/^((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])$/,Yh=/^(([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])$/,Xh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Fl=/^[A-Za-z0-9_-]*$/,PT=/^(?=.{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])?)*\.?$/,LT=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,qh=/^https?$/,Qh=/^\+[1-9]\d{6,14}$/,nS="(?:(?:\\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])))",em=new RegExp(`^${nS}$`);function iS(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tm(t){return new RegExp(`^${iS(t)}$`)}function rm(t){let e=iS({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${e}(?:${r.join("|")})`;return new RegExp(`^${nS}T(?:${i})$`)}var nm=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},im=/^-?\d+n?$/,om=/^-?\d+$/,jl=/^-?\d+(?:\.\d+)?$/,am=/^(?:true|false)$/i,sm=/^null$/i;var cm=/^undefined$/i;var um=/^[^A-Z]*$/,lm=/^[^a-z]*$/,FT=/^[0-9a-fA-F]*$/;function Ks(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function Ys(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var jT=/^[0-9a-fA-F]{32}$/,RT=Ks(22,"=="),MT=Ys(22),CT=/^[0-9a-fA-F]{40}$/,ZT=Ks(27,"="),VT=Ys(27),JT=/^[0-9a-fA-F]{64}$/,HT=Ks(43,"="),WT=Ys(43),GT=/^[0-9a-fA-F]{96}$/,KT=Ks(64,""),YT=Ys(64),XT=/^[0-9a-fA-F]{128}$/,qT=Ks(86,"=="),QT=Ys(86);var we=m("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),aS={number:"number",bigint:"bigint",object:"date"},Rl=m("$ZodCheckLessThan",(t,e)=>{we.init(t,e);let r=aS[typeof e.value];t._zod.onattach.push(i=>{let n=i._zod.bag,o=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<o&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value<e.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Ml=m("$ZodCheckGreaterThan",(t,e)=>{we.init(t,e);let r=aS[typeof e.value];t._zod.onattach.push(i=>{let n=i._zod.bag,o=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>o&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),dm=m("$ZodCheckMultipleOf",(t,e)=>{we.init(t,e),t._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Sh(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),fm=m("$ZodCheckNumberFormat",(t,e)=>{we.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),i=r?"int":"number",[n,o]=Ah[e.format];t._zod.onattach.push(a=>{let s=a._zod.bag;s.format=e.format,s.minimum=n,s.maximum=o,r&&(s.pattern=om)}),t._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:e.format,code:"invalid_type",continue:!1,input:s,inst:t});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),pm=m("$ZodCheckBigIntFormat",(t,e)=>{we.init(t,e);let[r,i]=Oh[e.format];t._zod.onattach.push(n=>{let o=n._zod.bag;o.format=e.format,o.minimum=r,o.maximum=i}),t._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),hm=m("$ZodCheckMaxSize",(t,e)=>{var r;we.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Jn(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let n=i.value;n.size<=e.maximum||i.issues.push({origin:Vs(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),mm=m("$ZodCheckMinSize",(t,e)=>{var r;we.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Jn(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let n=i.value;n.size>=e.minimum||i.issues.push({origin:Vs(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),gm=m("$ZodCheckSizeEquals",(t,e)=>{var r;we.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Jn(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=i=>{let n=i.value,o=n.size;if(o===e.size)return;let a=o>e.size;i.issues.push({origin:Vs(n),...a?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),ym=m("$ZodCheckMaxLength",(t,e)=>{var r;we.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Jn(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let n=i.value;if(n.length<=e.maximum)return;let a=Js(n);i.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),vm=m("$ZodCheckMinLength",(t,e)=>{var r;we.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Jn(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let n=i.value;if(n.length>=e.minimum)return;let a=Js(n);i.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),_m=m("$ZodCheckLengthEquals",(t,e)=>{var r;we.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Jn(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=i=>{let n=i.value,o=n.length;if(o===e.length)return;let a=Js(n),s=o>e.length;i.issues.push({origin:a,...s?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),sa=m("$ZodCheckStringFormat",(t,e)=>{var r,i;we.init(t,e),t._zod.onattach.push(n=>{let o=n._zod.bag;o.format=e.format,e.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=t._zod).check??(i.check=()=>{})}),bm=m("$ZodCheckRegex",(t,e)=>{sa.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),xm=m("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=um),sa.init(t,e)}),wm=m("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=lm),sa.init(t,e)}),Sm=m("$ZodCheckIncludes",(t,e)=>{we.init(t,e);let r=nr(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=i,t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),Im=m("$ZodCheckStartsWith",(t,e)=>{we.init(t,e);let r=new RegExp(`^${nr(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=i=>{i.value.startsWith(e.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:i.value,inst:t,continue:!e.abort})}}),$m=m("$ZodCheckEndsWith",(t,e)=>{we.init(t,e);let r=new RegExp(`.*${nr(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=i=>{i.value.endsWith(e.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:i.value,inst:t,continue:!e.abort})}});function oS(t,e,r){t.issues.length&&e.issues.push(...Nt(r,t.issues))}var km=m("$ZodCheckProperty",(t,e)=>{we.init(t,e),t._zod.check=r=>{let i=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>oS(n,r,e.property));oS(i,r,e.property)}}),Dm=m("$ZodCheckMimeType",(t,e)=>{we.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(i=>{i._zod.bag.mime=e.mime}),t._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:e.mime,input:i.value.type,inst:t,continue:!e.abort})}}),zm=m("$ZodCheckOverwrite",(t,e)=>{we.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}});var Xs=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let i=e.split(`
18
18
  `).filter(a=>a),n=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let e=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new e(...r,n.join(`
19
19
  `))}};var Am={major:4,minor:4,patch:3};var H=m("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Am;let i=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&i.unshift(t);for(let n of i)for(let o of n._zod.onattach)o(t);if(i.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let n=(a,s,u)=>{let c=Gn(a),l;for(let d of s){if(d._zod.def.when){if(Th(a)||!d._zod.def.when(a))continue}else if(c)continue;let p=a.issues.length,f=d._zod.check(a);if(f instanceof Promise&&u?.async===!1)throw new _r;if(l||f instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await f,a.issues.length!==p&&(c||(c=Gn(a,p)))});else{if(a.issues.length===p)continue;c||(c=Gn(a,p))}}return l?l.then(()=>a):a},o=(a,s,u)=>{if(Gn(a))return a.aborted=!0,a;let c=n(s,i,u);if(c instanceof Promise){if(u.async===!1)throw new _r;return c.then(l=>t._zod.parse(l,u))}return t._zod.parse(c,u)};t._zod.run=(a,s)=>{if(s.skipChecks)return t._zod.parse(a,s);if(s.direction==="backward"){let c=t._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(l=>o(l,a,s)):o(c,a,s)}let u=t._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new _r;return u.then(c=>n(c,i,s))}return n(u,i,s)}}ne(t,"~standard",()=>({validate:n=>{try{let o=Nh(t,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Eh(t,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Gi=m("$ZodString",(t,e)=>{H.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??nm(t._zod.bag),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),ye=m("$ZodStringFormat",(t,e)=>{sa.init(t,e),Gi.init(t,e)}),Tm=m("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Zh),ye.init(t,e)}),Bm=m("$ZodUUID",(t,e)=>{if(e.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(i===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Wi(i))}else e.pattern??(e.pattern=Wi());ye.init(t,e)}),Um=m("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Vh),ye.init(t,e)}),Nm=m("$ZodURL",(t,e)=>{ye.init(t,e),t._zod.check=r=>{try{let i=r.value.trim();if(!e.normalize&&e.protocol?.source===qh.source&&!/^https?:\/\//i.test(i)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:t,continue:!e.abort});return}let n=new URL(i);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),Em=m("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Jh()),ye.init(t,e)}),Pm=m("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Mh),ye.init(t,e)}),Lm=m("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Ph),ye.init(t,e)}),Fm=m("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Lh),ye.init(t,e)}),jm=m("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Fh),ye.init(t,e)}),Rm=m("$ZodXID",(t,e)=>{e.pattern??(e.pattern=jh),ye.init(t,e)}),Mm=m("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Rh),ye.init(t,e)}),Cm=m("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=rm(e)),ye.init(t,e)}),Zm=m("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=em),ye.init(t,e)}),Vm=m("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=tm(e)),ye.init(t,e)}),Jm=m("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Ch),ye.init(t,e)}),Hm=m("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Hh),ye.init(t,e),t._zod.bag.format="ipv4"}),Wm=m("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Wh),ye.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Gm=m("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=Gh(e.delimiter)),ye.init(t,e),t._zod.bag.format="mac"}),Km=m("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Kh),ye.init(t,e)}),Ym=m("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=Yh),ye.init(t,e),t._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});function Xm(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var qm=m("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=Xh),ye.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{Xm(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});function wS(t){if(!Fl.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return Xm(r)}var Qm=m("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Fl),ye.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{wS(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),eg=m("$ZodE164",(t,e)=>{e.pattern??(e.pattern=Qh),ye.init(t,e)});function SS(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}var tg=m("$ZodJWT",(t,e)=>{ye.init(t,e),t._zod.check=r=>{SS(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),rg=m("$ZodCustomStringFormat",(t,e)=>{ye.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),Hl=m("$ZodNumber",(t,e)=>{H.init(t,e),t._zod.pattern=t._zod.bag.pattern??jl,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...o?{received:o}:{}}),r}}),ng=m("$ZodNumberFormat",(t,e)=>{fm.init(t,e),Hl.init(t,e)}),qs=m("$ZodBoolean",(t,e)=>{H.init(t,e),t._zod.pattern=am,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=Boolean(r.value)}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),Wl=m("$ZodBigInt",(t,e)=>{H.init(t,e),t._zod.pattern=im,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:t}),r}}),ig=m("$ZodBigIntFormat",(t,e)=>{pm.init(t,e),Wl.init(t,e)}),og=m("$ZodSymbol",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),ag=m("$ZodUndefined",(t,e)=>{H.init(t,e),t._zod.pattern=cm,t._zod.values=new Set([void 0]),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),sg=m("$ZodNull",(t,e)=>{H.init(t,e),t._zod.pattern=sm,t._zod.values=new Set([null]),t._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),cg=m("$ZodAny",(t,e)=>{H.init(t,e),t._zod.parse=r=>r}),ug=m("$ZodUnknown",(t,e)=>{H.init(t,e),t._zod.parse=r=>r}),lg=m("$ZodNever",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),dg=m("$ZodVoid",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),fg=m("$ZodDate",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:t}),r}});function cS(t,e,r){t.issues.length&&e.issues.push(...Nt(r,t.issues)),e.value[r]=t.value}var pg=m("$ZodArray",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);let o=[];for(let a=0;a<n.length;a++){let s=n[a],u=e.element._zod.run({value:s,issues:[]},i);u instanceof Promise?o.push(u.then(c=>cS(c,r,a))):cS(u,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function Jl(t,e,r,i,n,o){let a=r in i;if(t.issues.length){if(n&&o&&!a)return;e.issues.push(...Nt(r,t.issues))}if(!a&&!n){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}t.value===void 0?a&&(e.value[r]=void 0):e.value[r]=t.value}function IS(t){let e=Object.keys(t.shape);for(let i of e)if(!t.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=zh(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function $S(t,e,r,i,n,o){let a=[],s=n.keySet,u=n.catchall._zod,c=u.def.type,l=u.optin==="optional",d=u.optout==="optional";for(let p in e){if(p==="__proto__"||s.has(p))continue;if(c==="never"){a.push(p);continue}let f=u.run({value:e[p],issues:[]},i);f instanceof Promise?t.push(f.then(y=>Jl(y,r,p,e,l,d))):Jl(f,r,p,e,l,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:e,inst:o}),t.length?Promise.all(t).then(()=>r):r}var kS=m("$ZodObject",(t,e)=>{if(H.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let s=e.shape;Object.defineProperty(e,"shape",{get:()=>{let u={...s};return Object.defineProperty(e,"shape",{value:u}),u}})}let i=ta(()=>IS(e));ne(t._zod,"propValues",()=>{let s=e.shape,u={};for(let c in s){let l=s[c]._zod;if(l.values){u[c]??(u[c]=new Set);for(let d of l.values)u[c].add(d)}}return u});let n=Hi,o=e.catchall,a;t._zod.parse=(s,u)=>{a??(a=i.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:t}),s;s.value={};let l=[],d=a.shape;for(let p of a.keys){let f=d[p],y=f._zod.optin==="optional",w=f._zod.optout==="optional",k=f._zod.run({value:c[p],issues:[]},u);k instanceof Promise?l.push(k.then(A=>Jl(A,s,p,c,y,w))):Jl(k,s,p,c,y,w)}return o?$S(l,c,s,u,i.value,t):l.length?Promise.all(l).then(()=>s):s}}),hg=m("$ZodObjectJIT",(t,e)=>{kS.init(t,e);let r=t._zod.parse,i=ta(()=>IS(e)),n=p=>{let f=new Xs(["shape","payload","ctx"]),y=i.value,w=K=>{let z=kl(K);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};f.write("const input = payload.value;");let k=Object.create(null),A=0;for(let K of y.keys)k[K]=`key_${A++}`;f.write("const newResult = {};");for(let K of y.keys){let z=k[K],S=kl(K),te=p[K],oe=te?._zod?.optin==="optional",W=te?._zod?.optout==="optional";f.write(`const ${z} = ${w(K)};`),oe&&W?f.write(`
@@ -77,6 +77,6 @@ return true;`)}function P1(t){return typeof t!="bigint"?dr(t):`${dr(t)}n`}functi
77
77
 
78
78
  `)}f.write("payload.value = newResult;"),f.write("return payload;");let ie=f.compile();return(K,z)=>ie(p,K,z)},o,a=Hi,s=!Ji.jitless,c=s&&$h.value,l=e.catchall,d;t._zod.parse=(p,f)=>{d??(d=i.value);let y=p.value;return a(y)?s&&c&&f?.async===!1&&f.jitless!==!0?(o||(o=n(e.shape)),p=o(p,f),l?$S([],y,p,f,d,t):p):r(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:y,inst:t}),p)}});function uS(t,e,r,i){for(let o of t)if(o.issues.length===0)return e.value=o.value,e;let n=t.filter(o=>!Gn(o));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(a=>yt(a,i,Oe())))}),e)}var Qs=m("$ZodUnion",(t,e)=>{H.init(t,e),ne(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ne(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ne(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),ne(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){let i=e.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>Cs(n.source)).join("|")})$`)}});let r=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of e.options){let u=s._zod.run({value:i.value,issues:[]},n);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(s=>uS(s,i,t,n)):uS(a,i,t,n)}});function lS(t,e,r,i){let n=t.filter(o=>o.issues.length===0);return n.length===1?(e.value=n[0].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(a=>yt(a,i,Oe())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}var mg=m("$ZodXor",(t,e)=>{Qs.init(t,e),e.inclusive=!1;let r=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,a=[];for(let s of e.options){let u=s._zod.run({value:i.value,issues:[]},n);u instanceof Promise?(a.push(u),o=!0):a.push(u)}return o?Promise.all(a).then(s=>lS(s,i,t,n)):lS(a,i,t,n)}}),gg=m("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Qs.init(t,e);let r=t._zod.parse;ne(t._zod,"propValues",()=>{let n={};for(let o of e.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(let[s,u]of Object.entries(a)){n[s]||(n[s]=new Set);for(let c of u)n[s].add(c)}}return n});let i=ta(()=>{let n=e.options,o=new Map;for(let a of n){let s=a._zod.propValues?.[e.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(let u of s){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,a)}}return o});t._zod.parse=(n,o)=>{let a=n.value;if(!Hi(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),n;let s=i.value.get(a?.[e.discriminator]);return s?s._zod.run(n,o):e.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(i.value.keys()),input:a,path:[e.discriminator],inst:t}),n)}}),yg=m("$ZodIntersection",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value,o=e.left._zod.run({value:n,issues:[]},i),a=e.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([u,c])=>dS(r,u,c)):dS(r,o,a)}});function Om(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Wn(t)&&Wn(e)){let r=Object.keys(e),i=Object.keys(t).filter(o=>r.indexOf(o)!==-1),n={...t,...e};for(let o of i){let a=Om(t[o],e[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let n=t[i],o=e[i],a=Om(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function dS(t,e,r){let i=new Map,n;for(let s of e.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else t.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)i.has(u)||i.set(u,{}),i.get(u).r=!0;else t.issues.push(s);let o=[...i].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&t.issues.push({...n,keys:o}),Gn(t))return t;let a=Om(e.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return t.value=a.data,t}var Gl=m("$ZodTuple",(t,e)=>{H.init(t,e);let r=e.items;t._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:t,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],s=fS(r,"optin"),u=fS(r,"optout");if(!e.rest){if(o.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:o,inst:t,origin:"array"}),i;o.length>r.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:o,inst:t,origin:"array"})}let c=new Array(r.length);for(let l=0;l<r.length;l++){let d=r[l]._zod.run({value:o[l],issues:[]},n);d instanceof Promise?a.push(d.then(p=>{c[l]=p})):c[l]=d}if(e.rest){let l=r.length-1,d=o.slice(r.length);for(let p of d){l++;let f=e.rest._zod.run({value:p,issues:[]},n);f instanceof Promise?a.push(f.then(y=>pS(y,i,l))):pS(f,i,l)}}return a.length?Promise.all(a).then(()=>hS(c,i,r,o,u)):hS(c,i,r,o,u)}});function fS(t,e){for(let r=t.length-1;r>=0;r--)if(t[r]._zod[e]!=="optional")return r+1;return 0}function pS(t,e,r){t.issues.length&&e.issues.push(...Nt(r,t.issues)),e.value[r]=t.value}function hS(t,e,r,i,n){for(let o=0;o<r.length;o++){let a=t[o],s=o<i.length;if(a.issues.length){if(!s&&o>=n){e.value.length=o;break}e.issues.push(...Nt(o,a.issues))}e.value[o]=a.value}for(let o=e.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&e.value[o]===void 0);o--)e.value.length=o;return e}var vg=m("$ZodRecord",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!Wn(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;let o=[],a=e.keyType._zod.values;if(a){r.value={};let s=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);let l=e.keyType._zod.run({value:c,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(f=>yt(f,i,Oe())),input:c,path:[c],inst:t});continue}let d=l.value,p=e.valueType._zod.run({value:n[c],issues:[]},i);p instanceof Promise?o.push(p.then(f=>{f.issues.length&&r.issues.push(...Nt(c,f.issues)),r.value[d]=f.value})):(p.issues.length&&r.issues.push(...Nt(c,p.issues)),r.value[d]=p.value)}let u;for(let c in n)s.has(c)||(u=u??[],u.push(c));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:u})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let u=e.keyType._zod.run({value:s,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&jl.test(s)&&u.issues.length){let d=e.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){e.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>yt(d,i,Oe())),input:s,path:[s],inst:t});continue}let l=e.valueType._zod.run({value:n[s],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&r.issues.push(...Nt(s,d.issues)),r.value[u.value]=d.value})):(l.issues.length&&r.issues.push(...Nt(s,l.issues)),r.value[u.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),_g=m("$ZodMap",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;let o=[];r.value=new Map;for(let[a,s]of n){let u=e.keyType._zod.run({value:a,issues:[]},i),c=e.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||c instanceof Promise?o.push(Promise.all([u,c]).then(([l,d])=>{mS(l,d,r,a,n,t,i)})):mS(u,c,r,a,n,t,i)}return o.length?Promise.all(o).then(()=>r):r}});function mS(t,e,r,i,n,o,a){t.issues.length&&(Zs.has(typeof i)?r.issues.push(...Nt(i,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:t.issues.map(s=>yt(s,a,Oe()))})),e.issues.length&&(Zs.has(typeof i)?r.issues.push(...Nt(i,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:e.issues.map(s=>yt(s,a,Oe()))})),r.value.set(t.value,e.value)}var bg=m("$ZodSet",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let a of n){let s=e.valueType._zod.run({value:a,issues:[]},i);s instanceof Promise?o.push(s.then(u=>gS(u,r))):gS(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function gS(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}var xg=m("$ZodEnum",(t,e)=>{H.init(t,e);let r=Ms(e.entries),i=new Set(r);t._zod.values=i,t._zod.pattern=new RegExp(`^(${r.filter(n=>Zs.has(typeof n)).map(n=>typeof n=="string"?nr(n):n.toString()).join("|")})$`),t._zod.parse=(n,o)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:t}),n}}),wg=m("$ZodLiteral",(t,e)=>{if(H.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(i=>typeof i=="string"?nr(i):i?nr(i.toString()):String(i)).join("|")})$`),t._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),i}}),Sg=m("$ZodFile",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),Ig=m("$ZodTransform",(t,e)=>{H.init(t,e),t._zod.optin="optional",t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Vn(t.constructor.name);let n=e.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new _r;return r.value=n,r.fallback=!0,r}});function yS(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Kl=m("$ZodOptional",(t,e)=>{H.init(t,e),t._zod.optin="optional",t._zod.optout="optional",ne(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),ne(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Cs(r.source)})?$`):void 0}),t._zod.parse=(r,i)=>{if(e.innerType._zod.optin==="optional"){let n=r.value,o=e.innerType._zod.run(r,i);return o instanceof Promise?o.then(a=>yS(a,n)):yS(o,n)}return r.value===void 0?r:e.innerType._zod.run(r,i)}}),$g=m("$ZodExactOptional",(t,e)=>{Kl.init(t,e),ne(t._zod,"values",()=>e.innerType._zod.values),ne(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,i)=>e.innerType._zod.run(r,i)}),kg=m("$ZodNullable",(t,e)=>{H.init(t,e),ne(t._zod,"optin",()=>e.innerType._zod.optin),ne(t._zod,"optout",()=>e.innerType._zod.optout),ne(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Cs(r.source)}|null)$`):void 0}),ne(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,i)=>r.value===null?r:e.innerType._zod.run(r,i)}),Dg=m("$ZodDefault",(t,e)=>{H.init(t,e),t._zod.optin="optional",ne(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>vS(o,e)):vS(n,e)}});function vS(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var zg=m("$ZodPrefault",(t,e)=>{H.init(t,e),t._zod.optin="optional",ne(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,i))}),Ag=m("$ZodNonOptional",(t,e)=>{H.init(t,e),ne(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),t._zod.parse=(r,i)=>{let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>_S(o,t)):_S(n,t)}});function _S(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var Og=m("$ZodSuccess",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Vn("ZodSuccess");let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Tg=m("$ZodCatch",(t,e)=>{H.init(t,e),t._zod.optin="optional",ne(t._zod,"optout",()=>e.innerType._zod.optout),ne(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=e.catchValue({...r,error:{issues:o.issues.map(a=>yt(a,i,Oe()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(o=>yt(o,i,Oe()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),Bg=m("$ZodNaN",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Yl=m("$ZodPipe",(t,e)=>{H.init(t,e),ne(t._zod,"values",()=>e.in._zod.values),ne(t._zod,"optin",()=>e.in._zod.optin),ne(t._zod,"optout",()=>e.out._zod.optout),ne(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Cl(a,e.in,i)):Cl(o,e.in,i)}let n=e.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Cl(o,e.out,i)):Cl(n,e.out,i)}});function Cl(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},r)}var ec=m("$ZodCodec",(t,e)=>{H.init(t,e),ne(t._zod,"values",()=>e.in._zod.values),ne(t._zod,"optin",()=>e.in._zod.optin),ne(t._zod,"optout",()=>e.out._zod.optout),ne(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=e.in._zod.run(r,i);return o instanceof Promise?o.then(a=>Zl(a,e,i)):Zl(o,e,i)}else{let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Zl(a,e,i)):Zl(o,e,i)}}});function Zl(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(o=>Vl(t,o,e.out,r)):Vl(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(o=>Vl(t,o,e.in,r)):Vl(t,n,e.in,r)}}function Vl(t,e,r,i){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},i)}var Ug=m("$ZodPreprocess",(t,e)=>{Yl.init(t,e)}),Ng=m("$ZodReadonly",(t,e)=>{H.init(t,e),ne(t._zod,"propValues",()=>e.innerType._zod.propValues),ne(t._zod,"values",()=>e.innerType._zod.values),ne(t._zod,"optin",()=>e.innerType?._zod?.optin),ne(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(bS):bS(n)}});function bS(t){return t.value=Object.freeze(t.value),t}var Eg=m("$ZodTemplateLiteral",(t,e)=>{H.init(t,e);let r=[];for(let i of e.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,a))}else if(i===null||Dh.has(typeof i))r.push(nr(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:t,expected:"string",code:"invalid_type"}),i):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),i)}),Pg=m("$ZodFunction",(t,e)=>(H.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=t._def.input?zl(t._def.input,i):i,o=Reflect.apply(r,this,n);return t._def.output?zl(t._def.output,o):o}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=t._def.input?await Al(t._def.input,i):i,o=await Reflect.apply(r,this,n);return t._def.output?await Al(t._def.output,o):o}},t._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let i=t.constructor;return Array.isArray(r[0])?new i({type:"function",input:new Gl({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new i({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let i=t.constructor;return new i({type:"function",input:t._def.input,output:r})},t)),Lg=m("$ZodPromise",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},i))}),Fg=m("$ZodLazy",(t,e)=>{H.init(t,e),ne(t._zod,"innerType",()=>{let r=e;return r._cachedInner||(r._cachedInner=e.getter()),r._cachedInner}),ne(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),ne(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),ne(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),ne(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(r,i)=>t._zod.innerType._zod.run(r,i)}),jg=m("$ZodCustom",(t,e)=>{we.init(t,e),H.init(t,e),t._zod.parse=(r,i)=>r,t._zod.check=r=>{let i=r.value,n=e.fn(i);if(n instanceof Promise)return n.then(o=>xS(o,r,i,t));xS(n,r,i,t)}});function xS(t,e,r,i){if(!t){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),e.issues.push(ra(n))}}var Ki={};We(Ki,{ar:()=>DS,az:()=>zS,be:()=>OS,bg:()=>TS,ca:()=>BS,cs:()=>US,da:()=>NS,de:()=>ES,el:()=>PS,en:()=>Xl,eo:()=>LS,es:()=>FS,fa:()=>jS,fi:()=>RS,fr:()=>MS,frCA:()=>CS,he:()=>ZS,hr:()=>VS,hu:()=>JS,hy:()=>WS,id:()=>GS,is:()=>KS,it:()=>YS,ja:()=>XS,ka:()=>qS,kh:()=>QS,km:()=>ql,ko:()=>eI,lt:()=>rI,mk:()=>nI,ms:()=>iI,nl:()=>oI,no:()=>aI,ota:()=>sI,pl:()=>uI,ps:()=>cI,pt:()=>lI,ro:()=>dI,ru:()=>pI,sl:()=>hI,sv:()=>mI,ta:()=>gI,th:()=>yI,tr:()=>vI,ua:()=>_I,uk:()=>Ql,ur:()=>bI,uz:()=>xI,vi:()=>wI,yo:()=>$I,zhCN:()=>SI,zhTW:()=>II});var tB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.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 ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\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}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.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 ${v(n.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: ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${n.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`${r[o.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${g(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function DS(){return{localeError:tB()}}var rB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${v(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${g(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function zS(){return{localeError:rB()}}function AS(t,e,r,i){let n=Math.abs(t),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?e:o>=2&&o<=4?r:i}var nB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.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 ${v(n.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 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);if(a){let s=Number(n.maximum),u=AS(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.maximum.toString()} ${u}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);if(a){let s=Number(n.minimum),u=AS(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${g(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function OS(){return{localeError:nB()}}var iB=()=>{let t={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 e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${v(n.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 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${a.unit??"\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 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[o.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${g(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function TS(){return{localeError:iB()}}var oB=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${v(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${g(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",a=e(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=e(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function BS(){return{localeError:oB()}}var aB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${v(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${g(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function US(){return{localeError:aB()}}var sB=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(n){return t[n]??null}let r={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"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${v(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${g(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function NS(){return{localeError:sB()}}var cB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${v(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${g(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function ES(){return{localeError:cB()}}var uB=()=>{let t={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function e(n){return t[n]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${v(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${g(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function PS(){return{localeError:uB()}}var lB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${v(n.values[0])}`:`Invalid option: expected one of ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Xl(){return{localeError:lB()}}var dB=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${v(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${g(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function LS(){return{localeError:dB()}}var fB=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${v(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function FS(){return{localeError:fB()}}var pB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \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 ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${v(n.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 ${g(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${g(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function jS(){return{localeError:pB()}}var hB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${v(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${g(n.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 RS(){return{localeError:hB()}}var mB=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${v(n.values[0])} attendu`:`Option invalide : une valeur parmi ${g(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Trop grand : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${g(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function MS(){return{localeError:mB()}}var gB=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${v(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",a=e(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",a=e(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${g(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function CS(){return{localeError:gB()}}var yB=()=>{let t={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"}},e={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"}},r=c=>c?t[c]:void 0,i=c=>{let l=r(c);return l?l.label:c??t.unknown.label},n=c=>`\u05D4${i(c)}`,o=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?e[c]??null: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"}},u={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let l=c.expected,d=u[l??""]??i(l),p=_(c.input),f=u[p]??t[p]?.label??p;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(c.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 ${v(c.values[0])}`;let l=c.values.map(f=>v(f));if(c.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 ${l[0]} \u05D0\u05D5 ${l[1]}`;let d=l[l.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 ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let l=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let y=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(c.origin==="array"||c.origin==="set"){let y=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",w=c.inclusive?`${c.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`.trim()}let p=c.inclusive?"<=":"<",f=o(c.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.maximum.toString()}`}case"too_small":{let l=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let y=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${y}`}if(c.origin==="array"||c.origin==="set"){let y=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let k=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${k}`}let w=c.inclusive?`${c.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${y} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`.trim()}let p=c.inclusive?">=":">",f=o(c.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${c.minimum.toString()}`}case"invalid_format":{let l=c;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.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 ${l.pattern}`;let d=s[l.format],p=d?.label??l.format,y=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${y}`}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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${g(c.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${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function ZS(){return{localeError:yB()}}var vB=()=>{let t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function e(n){return t[n]??null}let r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${v(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${o}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=i[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${o}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${g(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function VS(){return{localeError:vB()}}var _B=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${v(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function JS(){return{localeError:_B()}}function HS(t,e,r){return Math.abs(t)===1?e:r}function ca(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=t[t.length-1];return t+(e.includes(r)?"\u0576":"\u0568")}var bB=()=>{let t={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 e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.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 ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\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}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.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 ${v(n.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 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);if(a){let s=Number(n.maximum),u=HS(s,a.unit.one,a.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 ${ca(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${u}`}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 ${ca(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);if(a){let s=Number(n.minimum),u=HS(s,a.unit.one,a.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 ${ca(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${u}`}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 ${ca(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.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 ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??n.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 ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${g(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${ca(n.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 ${ca(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function WS(){return{localeError:bB()}}var xB=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${v(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function GS(){return{localeError:xB()}}var wB=()=>{let t={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 e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${v(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${g(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function KS(){return{localeError:wB()}}var SB=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${v(n.values[0])}`:`Opzione non valida: atteso uno tra ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${g(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function YS(){return{localeError:SB()}}var IB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${v(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${g(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=e(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=e(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${g(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function XS(){return{localeError:IB()}}var $B=()=>{let t={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 e(n){return t[n]??null}let r={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 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.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 ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\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}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return n.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 ${v(n.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 ${g(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\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 ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.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 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??n.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 ${n.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${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${g(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.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 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function qS(){return{localeError:$B()}}var kB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.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 ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\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} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.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 ${v(n.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 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${g(n.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 ${n.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 ${n.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 ql(){return{localeError:kB()}}function QS(){return ql()}var DB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${v(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${g(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=e(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${u} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${a}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=e(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${u} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${g(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function eI(){return{localeError:DB()}}var tc=t=>t.charAt(0).toUpperCase()+t.slice(1);function tI(t){let e=Math.abs(t),r=e%10,i=e%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var zB=()=>{let t={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 e(n,o,a,s){let u=t[n]??null;return u===null?u:{unit:u.unit[o],verb:u.verb[s][a?"inclusive":"notInclusive"]}}let r={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"},i={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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${v(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${g(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,a=e(n.origin,tI(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${tc(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${tc(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,a=e(n.origin,tI(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${tc(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${tc(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${g(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${tc(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function rI(){return{localeError:zB()}}var AB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${v(n.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 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`Invalid ${r[o.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`${n.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"}: ${g(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function nI(){return{localeError:AB()}}var OB=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${v(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${g(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function iI(){return{localeError:OB()}}var TB=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(n){return t[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${v(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function oI(){return{localeError:TB()}}var BB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${v(n.values[0])}`:`Ugyldig valg: forventet en av ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${g(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function aI(){return{localeError:BB()}}var UB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${v(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function sI(){return{localeError:UB()}}var NB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${v(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${g(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${g(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function cI(){return{localeError:NB()}}var EB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${v(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function uI(){return{localeError:EB()}}var PB=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${v(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function lI(){return{localeError:PB()}}var LB=()=>{let t={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function e(n){return t[n]??null}let r={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${v(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${g(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function dI(){return{localeError:LB()}}function fI(t,e,r,i){let n=Math.abs(t),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?e:o>=2&&o<=4?r:i}var FB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${v(n.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 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);if(a){let s=Number(n.maximum),u=fI(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${u}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);if(a){let s=Number(n.minimum),u=fI(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${u}`}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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${g(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.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 pI(){return{localeError:FB()}}var jB=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${v(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${g(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function hI(){return{localeError:jB()}}var RB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${v(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${g(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function mI(){return{localeError:RB()}}var MB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.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 ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\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}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.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 ${v(n.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 ${g(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${g(n.keys,", ")}`;case"invalid_key":return`${n.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`${n.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 gI(){return{localeError:MB()}}var CB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={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 n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.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 ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\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 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${v(n.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 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=e(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=e(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.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 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??n.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 ${n.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: ${g(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function yI(){return{localeError:CB()}}var ZB=()=>{let t={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 e(n){return t[n]??null}let r={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"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${v(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${g(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function vI(){return{localeError:ZB()}}var VB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.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 ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\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}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.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 ${v(n.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 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${g(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.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 Ql(){return{localeError:VB()}}function _I(){return Ql()}var JB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${v(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${g(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${g(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function bI(){return{localeError:JB()}}var HB=()=>{let t={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"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${v(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${g(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function xI(){return{localeError:HB()}}var WB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${v(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${g(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function wI(){return{localeError:WB()}}var GB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${v(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${g(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function SI(){return{localeError:GB()}}var KB=()=>{let t={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 e(n){return t[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${v(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${g(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function II(){return{localeError:KB()}}var YB=()=>{let t={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 e(n){return t[n]??null}let r={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"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,a=_(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${v(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${g(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=e(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",a=e(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${o}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${g(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function $I(){return{localeError:YB()}}var kI,Rg=Symbol("ZodOutput"),Mg=Symbol("ZodInput"),ed=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let i=r[0];return this._map.set(e,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function td(){return new ed}(kI=globalThis).__zod_globalRegistry??(kI.__zod_globalRegistry=td());var rt=globalThis.__zod_globalRegistry;function Cg(t,e){return new t({type:"string",...x(e)})}function Zg(t,e){return new t({type:"string",coerce:!0,...x(e)})}function rd(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...x(e)})}function rc(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...x(e)})}function nd(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...x(e)})}function id(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(e)})}function od(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(e)})}function ad(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...x(e)})}function nc(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...x(e)})}function sd(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...x(e)})}function cd(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(e)})}function ud(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...x(e)})}function ld(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(e)})}function dd(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...x(e)})}function fd(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...x(e)})}function pd(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(e)})}function hd(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(e)})}function md(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(e)})}function Vg(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...x(e)})}function gd(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(e)})}function yd(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(e)})}function vd(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...x(e)})}function _d(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...x(e)})}function bd(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...x(e)})}function xd(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...x(e)})}var Jg={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hg(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(e)})}function Wg(t,e){return new t({type:"string",format:"date",check:"string_format",...x(e)})}function Gg(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...x(e)})}function Kg(t,e){return new t({type:"string",format:"duration",check:"string_format",...x(e)})}function Yg(t,e){return new t({type:"number",checks:[],...x(e)})}function Xg(t,e){return new t({type:"number",coerce:!0,checks:[],...x(e)})}function qg(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...x(e)})}function Qg(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...x(e)})}function ey(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...x(e)})}function ty(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...x(e)})}function ry(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...x(e)})}function ny(t,e){return new t({type:"boolean",...x(e)})}function iy(t,e){return new t({type:"boolean",coerce:!0,...x(e)})}function oy(t,e){return new t({type:"bigint",...x(e)})}function ay(t,e){return new t({type:"bigint",coerce:!0,...x(e)})}function sy(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...x(e)})}function cy(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...x(e)})}function uy(t,e){return new t({type:"symbol",...x(e)})}function ly(t,e){return new t({type:"undefined",...x(e)})}function dy(t,e){return new t({type:"null",...x(e)})}function fy(t){return new t({type:"any"})}function py(t){return new t({type:"unknown"})}function hy(t,e){return new t({type:"never",...x(e)})}function my(t,e){return new t({type:"void",...x(e)})}function gy(t,e){return new t({type:"date",...x(e)})}function yy(t,e){return new t({type:"date",coerce:!0,...x(e)})}function vy(t,e){return new t({type:"nan",...x(e)})}function tn(t,e){return new Rl({check:"less_than",...x(e),value:t,inclusive:!1})}function Jt(t,e){return new Rl({check:"less_than",...x(e),value:t,inclusive:!0})}function rn(t,e){return new Ml({check:"greater_than",...x(e),value:t,inclusive:!1})}function vt(t,e){return new Ml({check:"greater_than",...x(e),value:t,inclusive:!0})}function wd(t){return rn(0,t)}function Sd(t){return tn(0,t)}function Id(t){return Jt(0,t)}function $d(t){return vt(0,t)}function Kn(t,e){return new dm({check:"multiple_of",...x(e),value:t})}function Yn(t,e){return new hm({check:"max_size",...x(e),maximum:t})}function nn(t,e){return new mm({check:"min_size",...x(e),minimum:t})}function Yi(t,e){return new gm({check:"size_equals",...x(e),size:t})}function Xi(t,e){return new ym({check:"max_length",...x(e),maximum:t})}function Dn(t,e){return new vm({check:"min_length",...x(e),minimum:t})}function qi(t,e){return new _m({check:"length_equals",...x(e),length:t})}function ua(t,e){return new bm({check:"string_format",format:"regex",...x(e),pattern:t})}function la(t){return new xm({check:"string_format",format:"lowercase",...x(t)})}function da(t){return new wm({check:"string_format",format:"uppercase",...x(t)})}function fa(t,e){return new Sm({check:"string_format",format:"includes",...x(e),includes:t})}function pa(t,e){return new Im({check:"string_format",format:"starts_with",...x(e),prefix:t})}function ha(t,e){return new $m({check:"string_format",format:"ends_with",...x(e),suffix:t})}function kd(t,e,r){return new km({check:"property",property:t,schema:e,...x(r)})}function ma(t,e){return new Dm({check:"mime_type",mime:t,...x(e)})}function br(t){return new zm({check:"overwrite",tx:t})}function ga(t){return br(e=>e.normalize(t))}function ya(){return br(t=>t.trim())}function va(){return br(t=>t.toLowerCase())}function _a(){return br(t=>t.toUpperCase())}function ba(){return br(t=>Ih(t))}function _y(t,e,r){return new t({type:"array",element:e,...x(r)})}function qB(t,e,r){return new t({type:"union",options:e,...x(r)})}function QB(t,e,r){return new t({type:"union",options:e,inclusive:!1,...x(r)})}function eU(t,e,r,i){return new t({type:"union",options:r,discriminator:e,...x(i)})}function tU(t,e,r){return new t({type:"intersection",left:e,right:r})}function rU(t,e,r,i){let n=r instanceof H,o=n?i:r,a=n?r:null;return new t({type:"tuple",items:e,rest:a,...x(o)})}function nU(t,e,r,i){return new t({type:"record",keyType:e,valueType:r,...x(i)})}function iU(t,e,r,i){return new t({type:"map",keyType:e,valueType:r,...x(i)})}function oU(t,e,r){return new t({type:"set",valueType:e,...x(r)})}function aU(t,e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:i,...x(r)})}function sU(t,e,r){return new t({type:"enum",entries:e,...x(r)})}function cU(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...x(r)})}function by(t,e){return new t({type:"file",...x(e)})}function uU(t,e){return new t({type:"transform",transform:e})}function lU(t,e){return new t({type:"optional",innerType:e})}function dU(t,e){return new t({type:"nullable",innerType:e})}function fU(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():kh(r)}})}function pU(t,e,r){return new t({type:"nonoptional",innerType:e,...x(r)})}function hU(t,e){return new t({type:"success",innerType:e})}function mU(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}function gU(t,e,r){return new t({type:"pipe",in:e,out:r})}function yU(t,e){return new t({type:"readonly",innerType:e})}function vU(t,e,r){return new t({type:"template_literal",parts:e,...x(r)})}function _U(t,e){return new t({type:"lazy",getter:e})}function bU(t,e){return new t({type:"promise",innerType:e})}function xy(t,e,r){let i=x(r);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function wy(t,e,r){return new t({type:"custom",check:"custom",fn:e,...x(r)})}function Sy(t,e){let r=DI(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(ra(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(ra(o))}},t(i.value,i)),e);return r}function DI(t,e){let r=new we({check:"custom",...x(e)});return r._zod.check=t,r}function Iy(t){let e=new we({check:"describe"});return e._zod.onattach=[r=>{let i=rt.get(r)??{};rt.add(r,{...i,description:t})}],e._zod.check=()=>{},e}function $y(t){let e=new we({check:"meta"});return e._zod.onattach=[r=>{let i=rt.get(r)??{};rt.add(r,{...i,...t})}],e._zod.check=()=>{},e}function ky(t,e){let r=x(e),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(f=>typeof f=="string"?f.toLowerCase():f),n=n.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(i),a=new Set(n),s=t.Codec??ec,u=t.Boolean??qs,c=t.String??Gi,l=new c({type:"string",error:r.error}),d=new u({type:"boolean",error:r.error}),p=new s({type:"pipe",in:l,out:d,transform:(f,y)=>{let w=f;return r.case!=="sensitive"&&(w=w.toLowerCase()),o.has(w)?!0:a.has(w)?!1:(y.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:y.value,inst:p,continue:!1}),{})},reverseTransform:(f,y)=>f===!0?i[0]||"true":n[0]||"false",error:r.error});return p}function xa(t,e,r,i={}){let n=x(i),o={...x(i),check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new t(o)}function Xn(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??rt,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function he(t,e,r={path:[],schemaPath:[]}){var i;let n=t._zod.def,o=e.seen.get(t);if(o)return o.count++,r.schemaPath.includes(t)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,a);let s=t._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,a.schema,l);else{let p=a.schema,f=e.processors[n.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);f(t,e,p,l)}let d=t._zod.parent;d&&(a.ref||(a.ref=d),he(d,e,l),e.seen.get(d).isParent=!0)}let u=e.metadataRegistry.get(t);return u&&Object.assign(a.schema,u),e.io==="input"&&_t(t)&&(delete a.schema.examples,delete a.schema.default),e.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,e.seen.get(t).schema}function qn(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of t.seen.entries()){let s=t.metadataRegistry.get(a[0])?.id;if(s){let u=i.get(s);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let n=a=>{let s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let d=t.external.registry.get(a[0])?.id,p=t.external.uri??(y=>y);if(d)return{ref:p(d)};let f=a[1].defId??a[1].schema.id??`schema${t.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${s}/${f}`}}if(a[1]===r)return{ref:"#"};let c=`#/${s}/`,l=a[1].schema.id??`__schema${t.counter++}`;return{defId:l,ref:c+l}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:c}=n(a);s.def={...s.schema},c&&(s.defId=c);let l=s.schema;for(let d in l)delete l[d];l.$ref=u};if(t.cycles==="throw")for(let a of t.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
79
79
 
80
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of t.seen.entries()){let s=a[1];if(e===a[0]){o(a);continue}if(t.external){let c=t.external.registry.get(a[0])?.id;if(e!==a[0]&&c){o(a);continue}}if(t.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&t.reused==="ref"){o(a);continue}}}function Qn(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let u=t.seen.get(s);if(u.ref===null)return;let c=u.def??u.schema,l={...c},d=u.ref;if(u.ref=null,d){i(d);let f=t.seen.get(d),y=f.schema;if(y.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(y)):Object.assign(c,y),Object.assign(c,l),s._zod.parent===d)for(let k in c)k==="$ref"||k==="allOf"||k in l||delete c[k];if(y.$ref&&f.def)for(let k in c)k==="$ref"||k==="allOf"||k in f.def&&JSON.stringify(c[k])===JSON.stringify(f.def[k])&&delete c[k]}let p=s._zod.parent;if(p&&p!==d){i(p);let f=t.seen.get(p);if(f?.schema.$ref&&(c.$ref=f.schema.$ref,f.def))for(let y in c)y==="$ref"||y==="allOf"||y in f.def&&JSON.stringify(c[y])===JSON.stringify(f.def[y])&&delete c[y]}t.override({zodSchema:s,jsonSchema:c,path:u.path??[]})};for(let s of[...t.seen.entries()].reverse())i(s[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(s)}Object.assign(n,r.def??r.schema);let o=t.metadataRegistry.get(e)?.id;o!==void 0&&n.id===o&&delete n.id;let a=t.external?.defs??{};for(let s of t.seen.entries()){let u=s[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,a[u.defId]=u.def)}t.external||Object.keys(a).length>0&&(t.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:wa(e,"input",t.processors),output:wa(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function _t(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return _t(i.element,r);if(i.type==="set")return _t(i.valueType,r);if(i.type==="lazy")return _t(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return _t(i.innerType,r);if(i.type==="intersection")return _t(i.left,r)||_t(i.right,r);if(i.type==="record"||i.type==="map")return _t(i.keyType,r)||_t(i.valueType,r);if(i.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:_t(i.in,r)||_t(i.out,r);if(i.type==="object"){for(let n in i.shape)if(_t(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(_t(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(_t(n,r))return!0;return!!(i.rest&&_t(i.rest,r))}return!1}var Dy=(t,e={})=>r=>{let i=Xn({...r,processors:e});return he(t,i),qn(i,t),Qn(i,t)},wa=(t,e,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=Xn({...n??{},target:o,io:e,processors:r});return he(t,a),qn(a,t),Qn(a,t)};var xU={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zy=(t,e,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:u,contentEncoding:c}=t._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=xU[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),u&&u.size>0){let l=[...u];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Ay=(t,e,r,i)=>{let n=r,{minimum:o,maximum:a,format:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:l}=t._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";let d=typeof l=="number"&&l>=(o??Number.NEGATIVE_INFINITY),p=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),f=e.target==="draft-04"||e.target==="openapi-3.0";d?f?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof o=="number"&&(n.minimum=o),p?f?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof u=="number"&&(n.multipleOf=u)},Oy=(t,e,r,i)=>{r.type="boolean"},Ty=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},By=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Uy=(t,e,r,i)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Ny=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Ey=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Py=(t,e,r,i)=>{r.not={}},Ly=(t,e,r,i)=>{},Fy=(t,e,r,i)=>{},jy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Ry=(t,e,r,i)=>{let n=t._zod.def,o=Ms(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},My=(t,e,r,i)=>{let n=t._zod.def,o=[];for(let a of n.values)if(a===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(e.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];r.type=a===null?"null":typeof a,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},Cy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Zy=(t,e,r,i)=>{let n=r,o=t._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},Vy=(t,e,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:u}=t._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),u?u.length===1?(o.contentMediaType=u[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(n,o)},Jy=(t,e,r,i)=>{r.type="boolean"},Hy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Wy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Gy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ky=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Yy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Xy=(t,e,r,i)=>{let n=r,o=t._zod.def,{minimum:a,maximum:s}=t._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=he(o.element,e,{...i,path:[...i.path,"items"]})},qy=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object",n.properties={};let a=o.shape;for(let c in a)n.properties[c]=he(a[c],e,{...i,path:[...i.path,"properties",c]});let s=new Set(Object.keys(a)),u=new Set([...s].filter(c=>{let l=o.shape[c]._zod;return e.io==="input"?l.optin===void 0:l.optout===void 0}));u.size>0&&(n.required=Array.from(u)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=he(o.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},zd=(t,e,r,i)=>{let n=t._zod.def,o=n.inclusive===!1,a=n.options.map((s,u)=>he(s,e,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?r.oneOf=a:r.anyOf=a},Qy=(t,e,r,i)=>{let n=t._zod.def,o=he(n.left,e,{...i,path:[...i.path,"allOf",0]}),a=he(n.right,e,{...i,path:[...i.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=u},ev=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="array";let a=e.target==="draft-2020-12"?"prefixItems":"items",s=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((p,f)=>he(p,e,{...i,path:[...i.path,a,f]})),c=o.rest?he(o.rest,e,{...i,path:[...i.path,s,...e.target==="openapi-3.0"?[o.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=u,c&&(n.items=c)):e.target==="openapi-3.0"?(n.items={anyOf:u},c&&n.items.anyOf.push(c),n.minItems=u.length,c||(n.maxItems=u.length)):(n.items=u,c&&(n.additionalItems=c));let{minimum:l,maximum:d}=t._zod.bag;typeof l=="number"&&(n.minItems=l),typeof d=="number"&&(n.maxItems=d)},tv=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object";let a=o.keyType,u=a._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){let l=he(o.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of u)n.patternProperties[d.source]=l}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=he(o.keyType,e,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=he(o.valueType,e,{...i,path:[...i.path,"additionalProperties"]});let c=a._zod.values;if(c){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l)}},rv=(t,e,r,i)=>{let n=t._zod.def,o=he(n.innerType,e,i),a=e.seen.get(t);e.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},nv=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},iv=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},ov=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},av=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},sv=(t,e,r,i)=>{let n=t._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=e.io==="input"?o?n.out:n.in:n.out;he(a,e,i);let s=e.seen.get(t);s.ref=a},cv=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.readOnly=!0},uv=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},Ad=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},lv=(t,e,r,i)=>{let n=t._zod.innerType;he(n,e,i);let o=e.seen.get(t);o.ref=n},Dd={string:zy,number:Ay,boolean:Oy,bigint:Ty,symbol:By,null:Uy,undefined:Ny,void:Ey,never:Py,any:Ly,unknown:Fy,date:jy,enum:Ry,literal:My,nan:Cy,template_literal:Zy,file:Vy,success:Jy,custom:Hy,function:Wy,transform:Gy,map:Ky,set:Yy,array:Xy,object:qy,union:zd,intersection:Qy,tuple:ev,record:tv,nullable:rv,nonoptional:nv,default:iv,prefault:ov,catch:av,pipe:sv,readonly:cv,promise:uv,optional:Ad,lazy:lv};function Od(t,e){if("_idmap"in t){let i=t,n=Xn({...e,processors:Dd}),o={};for(let u of i._idmap.entries()){let[c,l]=u;he(l,n)}let a={},s={registry:i,uri:e?.uri,defs:o};n.external=s;for(let u of i._idmap.entries()){let[c,l]=u;qn(n,l),a[c]=Qn(n,l)}if(Object.keys(o).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:o}}return{schemas:a}}let r=Xn({...e,processors:Dd});return he(t,r),qn(r,t),Qn(r,t)}var Td=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Xn({processors:Dd,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return he(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),qn(this.ctx,e);let i=Qn(this.ctx,e),{"~standard":n,...o}=i;return o}};var dv={};var ic={};We(ic,{ZodAny:()=>Ev,ZodArray:()=>jv,ZodBase64:()=>qd,ZodBase64URL:()=>Qd,ZodBigInt:()=>Aa,ZodBigIntFormat:()=>rf,ZodBoolean:()=>za,ZodCIDRv4:()=>Yd,ZodCIDRv6:()=>Xd,ZodCUID:()=>Zd,ZodCUID2:()=>Vd,ZodCatch:()=>s_,ZodCodec:()=>gc,ZodCustom:()=>yc,ZodCustomStringFormat:()=>ka,ZodDate:()=>dc,ZodDefault:()=>t_,ZodDiscriminatedUnion:()=>Mv,ZodE164:()=>ef,ZodEmail:()=>Rd,ZodEmoji:()=>Md,ZodEnum:()=>Ia,ZodExactOptional:()=>qv,ZodFile:()=>Yv,ZodFunction:()=>y_,ZodGUID:()=>ac,ZodIPv4:()=>Gd,ZodIPv6:()=>Kd,ZodIntersection:()=>Cv,ZodJWT:()=>tf,ZodKSUID:()=>Wd,ZodLazy:()=>h_,ZodLiteral:()=>Kv,ZodMAC:()=>zv,ZodMap:()=>Wv,ZodNaN:()=>u_,ZodNanoID:()=>Cd,ZodNever:()=>Lv,ZodNonOptional:()=>uf,ZodNull:()=>Uv,ZodNullable:()=>e_,ZodNumber:()=>Da,ZodNumberFormat:()=>to,ZodObject:()=>pc,ZodOptional:()=>cf,ZodPipe:()=>mc,ZodPrefault:()=>n_,ZodPreprocess:()=>l_,ZodPromise:()=>g_,ZodReadonly:()=>d_,ZodRecord:()=>Sa,ZodSet:()=>Gv,ZodString:()=>$a,ZodStringFormat:()=>ve,ZodSuccess:()=>a_,ZodSymbol:()=>Tv,ZodTemplateLiteral:()=>p_,ZodTransform:()=>Xv,ZodTuple:()=>Vv,ZodType:()=>Y,ZodULID:()=>Jd,ZodURL:()=>lc,ZodUUID:()=>an,ZodUndefined:()=>Bv,ZodUnion:()=>hc,ZodUnknown:()=>Pv,ZodVoid:()=>Fv,ZodXID:()=>Hd,ZodXor:()=>Rv,_ZodString:()=>jd,_default:()=>r_,_function:()=>P$,any:()=>p$,array:()=>fc,base64:()=>YI,base64url:()=>XI,bigint:()=>c$,boolean:()=>Ov,catch:()=>c_,check:()=>L$,cidrv4:()=>GI,cidrv6:()=>KI,codec:()=>B$,cuid:()=>RI,cuid2:()=>MI,custom:()=>F$,date:()=>m$,describe:()=>j$,discriminatedUnion:()=>x$,e164:()=>qI,email:()=>OI,emoji:()=>FI,enum:()=>af,exactOptional:()=>Qv,file:()=>z$,float32:()=>i$,float64:()=>o$,function:()=>P$,guid:()=>TI,hash:()=>n$,hex:()=>r$,hostname:()=>t$,httpUrl:()=>LI,instanceof:()=>M$,int:()=>Ld,int32:()=>a$,int64:()=>u$,intersection:()=>Zv,invertCodec:()=>U$,ipv4:()=>JI,ipv6:()=>WI,json:()=>Z$,jwt:()=>QI,keyof:()=>g$,ksuid:()=>VI,lazy:()=>m_,literal:()=>D$,looseObject:()=>_$,looseRecord:()=>S$,mac:()=>HI,map:()=>I$,meta:()=>R$,nan:()=>T$,nanoid:()=>jI,nativeEnum:()=>k$,never:()=>nf,nonoptional:()=>o_,null:()=>Nv,nullable:()=>cc,nullish:()=>A$,number:()=>Av,object:()=>y$,optional:()=>sc,partialRecord:()=>w$,pipe:()=>Fd,prefault:()=>i_,preprocess:()=>V$,promise:()=>E$,readonly:()=>f_,record:()=>Hv,refine:()=>v_,set:()=>$$,strictObject:()=>v$,string:()=>oc,stringFormat:()=>e$,stringbool:()=>C$,success:()=>O$,superRefine:()=>__,symbol:()=>d$,templateLiteral:()=>N$,transform:()=>sf,tuple:()=>Jv,uint32:()=>s$,uint64:()=>l$,ulid:()=>CI,undefined:()=>f$,union:()=>of,unknown:()=>eo,url:()=>PI,uuid:()=>BI,uuidv4:()=>UI,uuidv6:()=>NI,uuidv7:()=>EI,void:()=>h$,xid:()=>ZI,xor:()=>b$});var Bd={};We(Bd,{endsWith:()=>ha,gt:()=>rn,gte:()=>vt,includes:()=>fa,length:()=>qi,lowercase:()=>la,lt:()=>tn,lte:()=>Jt,maxLength:()=>Xi,maxSize:()=>Yn,mime:()=>ma,minLength:()=>Dn,minSize:()=>nn,multipleOf:()=>Kn,negative:()=>Sd,nonnegative:()=>$d,nonpositive:()=>Id,normalize:()=>ga,overwrite:()=>br,positive:()=>wd,property:()=>kd,regex:()=>ua,size:()=>Yi,slugify:()=>ba,startsWith:()=>pa,toLowerCase:()=>va,toUpperCase:()=>_a,trim:()=>ya,uppercase:()=>da});var Qi={};We(Qi,{ZodISODate:()=>Nd,ZodISODateTime:()=>Ud,ZodISODuration:()=>Pd,ZodISOTime:()=>Ed,date:()=>pv,datetime:()=>fv,duration:()=>mv,time:()=>hv});var Ud=m("ZodISODateTime",(t,e)=>{Cm.init(t,e),ve.init(t,e)});function fv(t){return Hg(Ud,t)}var Nd=m("ZodISODate",(t,e)=>{Zm.init(t,e),ve.init(t,e)});function pv(t){return Wg(Nd,t)}var Ed=m("ZodISOTime",(t,e)=>{Vm.init(t,e),ve.init(t,e)});function hv(t){return Gg(Ed,t)}var Pd=m("ZodISODuration",(t,e)=>{Jm.init(t,e),ve.init(t,e)});function mv(t){return Kg(Pd,t)}var zI=(t,e)=>{Hs.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>Gs(t,r)},flatten:{value:r=>Ws(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,ea,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,ea,2)}},isEmpty:{get(){return t.issues.length===0}}})},SU=m("ZodError",zI),Lt=m("ZodError",zI,{Parent:Error});var gv=na(Lt),yv=ia(Lt),vv=oa(Lt),_v=aa(Lt),bv=Ol(Lt),xv=Tl(Lt),wv=Bl(Lt),Sv=Ul(Lt),Iv=Nl(Lt),$v=El(Lt),kv=Pl(Lt),Dv=Ll(Lt);var AI=new WeakMap;function uc(t,e,r){let i=Object.getPrototypeOf(t),n=AI.get(i);if(n||(n=new Set,AI.set(i,n)),!n.has(e)){n.add(e);for(let o in r){let a=r[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var Y=m("ZodType",(t,e)=>(H.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:wa(t,"input"),output:wa(t,"output")}}),t.toJSONSchema=Dy(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(r,i)=>gv(t,r,i,{callee:t.parse}),t.safeParse=(r,i)=>vv(t,r,i),t.parseAsync=async(r,i)=>yv(t,r,i,{callee:t.parseAsync}),t.safeParseAsync=async(r,i)=>_v(t,r,i),t.spa=t.safeParseAsync,t.encode=(r,i)=>bv(t,r,i),t.decode=(r,i)=>xv(t,r,i),t.encodeAsync=async(r,i)=>wv(t,r,i),t.decodeAsync=async(r,i)=>Sv(t,r,i),t.safeEncode=(r,i)=>Iv(t,r,i),t.safeDecode=(r,i)=>$v(t,r,i),t.safeEncodeAsync=async(r,i)=>kv(t,r,i),t.safeDecodeAsync=async(r,i)=>Dv(t,r,i),uc(t,"ZodType",{check(...r){let i=this.def;return this.clone(b.mergeDefs(i,{checks:[...i.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return gt(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(v_(r,i))},superRefine(r,i){return this.check(__(r,i))},overwrite(r){return this.check(br(r))},optional(){return sc(this)},exactOptional(){return Qv(this)},nullable(){return cc(this)},nullish(){return sc(cc(this))},nonoptional(r){return o_(this,r)},array(){return fc(this)},or(r){return of([this,r])},and(r){return Zv(this,r)},transform(r){return Fd(this,sf(r))},default(r){return r_(this,r)},prefault(r){return i_(this,r)},catch(r){return c_(this,r)},pipe(r){return Fd(this,r)},readonly(){return f_(this)},describe(r){let i=this.clone();return rt.add(i,{description:r}),i},meta(...r){if(r.length===0)return rt.get(this);let i=this.clone();return rt.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(t,"description",{get(){return rt.get(t)?.description},configurable:!0}),t)),jd=m("_ZodString",(t,e)=>{Gi.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>zy(t,i,n,o);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,uc(t,"_ZodString",{regex(...i){return this.check(ua(...i))},includes(...i){return this.check(fa(...i))},startsWith(...i){return this.check(pa(...i))},endsWith(...i){return this.check(ha(...i))},min(...i){return this.check(Dn(...i))},max(...i){return this.check(Xi(...i))},length(...i){return this.check(qi(...i))},nonempty(...i){return this.check(Dn(1,...i))},lowercase(i){return this.check(la(i))},uppercase(i){return this.check(da(i))},trim(){return this.check(ya())},normalize(...i){return this.check(ga(...i))},toLowerCase(){return this.check(va())},toUpperCase(){return this.check(_a())},slugify(){return this.check(ba())}})}),$a=m("ZodString",(t,e)=>{Gi.init(t,e),jd.init(t,e),t.email=r=>t.check(rd(Rd,r)),t.url=r=>t.check(nc(lc,r)),t.jwt=r=>t.check(xd(tf,r)),t.emoji=r=>t.check(sd(Md,r)),t.guid=r=>t.check(rc(ac,r)),t.uuid=r=>t.check(nd(an,r)),t.uuidv4=r=>t.check(id(an,r)),t.uuidv6=r=>t.check(od(an,r)),t.uuidv7=r=>t.check(ad(an,r)),t.nanoid=r=>t.check(cd(Cd,r)),t.guid=r=>t.check(rc(ac,r)),t.cuid=r=>t.check(ud(Zd,r)),t.cuid2=r=>t.check(ld(Vd,r)),t.ulid=r=>t.check(dd(Jd,r)),t.base64=r=>t.check(vd(qd,r)),t.base64url=r=>t.check(_d(Qd,r)),t.xid=r=>t.check(fd(Hd,r)),t.ksuid=r=>t.check(pd(Wd,r)),t.ipv4=r=>t.check(hd(Gd,r)),t.ipv6=r=>t.check(md(Kd,r)),t.cidrv4=r=>t.check(gd(Yd,r)),t.cidrv6=r=>t.check(yd(Xd,r)),t.e164=r=>t.check(bd(ef,r)),t.datetime=r=>t.check(fv(r)),t.date=r=>t.check(pv(r)),t.time=r=>t.check(hv(r)),t.duration=r=>t.check(mv(r))});function oc(t){return Cg($a,t)}var ve=m("ZodStringFormat",(t,e)=>{ye.init(t,e),jd.init(t,e)}),Rd=m("ZodEmail",(t,e)=>{Um.init(t,e),ve.init(t,e)});function OI(t){return rd(Rd,t)}var ac=m("ZodGUID",(t,e)=>{Tm.init(t,e),ve.init(t,e)});function TI(t){return rc(ac,t)}var an=m("ZodUUID",(t,e)=>{Bm.init(t,e),ve.init(t,e)});function BI(t){return nd(an,t)}function UI(t){return id(an,t)}function NI(t){return od(an,t)}function EI(t){return ad(an,t)}var lc=m("ZodURL",(t,e)=>{Nm.init(t,e),ve.init(t,e)});function PI(t){return nc(lc,t)}function LI(t){return nc(lc,{protocol:Pt.httpProtocol,hostname:Pt.domain,...b.normalizeParams(t)})}var Md=m("ZodEmoji",(t,e)=>{Em.init(t,e),ve.init(t,e)});function FI(t){return sd(Md,t)}var Cd=m("ZodNanoID",(t,e)=>{Pm.init(t,e),ve.init(t,e)});function jI(t){return cd(Cd,t)}var Zd=m("ZodCUID",(t,e)=>{Lm.init(t,e),ve.init(t,e)});function RI(t){return ud(Zd,t)}var Vd=m("ZodCUID2",(t,e)=>{Fm.init(t,e),ve.init(t,e)});function MI(t){return ld(Vd,t)}var Jd=m("ZodULID",(t,e)=>{jm.init(t,e),ve.init(t,e)});function CI(t){return dd(Jd,t)}var Hd=m("ZodXID",(t,e)=>{Rm.init(t,e),ve.init(t,e)});function ZI(t){return fd(Hd,t)}var Wd=m("ZodKSUID",(t,e)=>{Mm.init(t,e),ve.init(t,e)});function VI(t){return pd(Wd,t)}var Gd=m("ZodIPv4",(t,e)=>{Hm.init(t,e),ve.init(t,e)});function JI(t){return hd(Gd,t)}var zv=m("ZodMAC",(t,e)=>{Gm.init(t,e),ve.init(t,e)});function HI(t){return Vg(zv,t)}var Kd=m("ZodIPv6",(t,e)=>{Wm.init(t,e),ve.init(t,e)});function WI(t){return md(Kd,t)}var Yd=m("ZodCIDRv4",(t,e)=>{Km.init(t,e),ve.init(t,e)});function GI(t){return gd(Yd,t)}var Xd=m("ZodCIDRv6",(t,e)=>{Ym.init(t,e),ve.init(t,e)});function KI(t){return yd(Xd,t)}var qd=m("ZodBase64",(t,e)=>{qm.init(t,e),ve.init(t,e)});function YI(t){return vd(qd,t)}var Qd=m("ZodBase64URL",(t,e)=>{Qm.init(t,e),ve.init(t,e)});function XI(t){return _d(Qd,t)}var ef=m("ZodE164",(t,e)=>{eg.init(t,e),ve.init(t,e)});function qI(t){return bd(ef,t)}var tf=m("ZodJWT",(t,e)=>{tg.init(t,e),ve.init(t,e)});function QI(t){return xd(tf,t)}var ka=m("ZodCustomStringFormat",(t,e)=>{rg.init(t,e),ve.init(t,e)});function e$(t,e,r={}){return xa(ka,t,e,r)}function t$(t){return xa(ka,"hostname",Pt.hostname,t)}function r$(t){return xa(ka,"hex",Pt.hex,t)}function n$(t,e){let r=e?.enc??"hex",i=`${t}_${r}`,n=Pt[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return xa(ka,i,n,e)}var Da=m("ZodNumber",(t,e)=>{Hl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Ay(t,i,n,o),uc(t,"ZodNumber",{gt(i,n){return this.check(rn(i,n))},gte(i,n){return this.check(vt(i,n))},min(i,n){return this.check(vt(i,n))},lt(i,n){return this.check(tn(i,n))},lte(i,n){return this.check(Jt(i,n))},max(i,n){return this.check(Jt(i,n))},int(i){return this.check(Ld(i))},safe(i){return this.check(Ld(i))},positive(i){return this.check(rn(0,i))},nonnegative(i){return this.check(vt(0,i))},negative(i){return this.check(tn(0,i))},nonpositive(i){return this.check(Jt(0,i))},multipleOf(i,n){return this.check(Kn(i,n))},step(i,n){return this.check(Kn(i,n))},finite(){return this}});let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function Av(t){return Yg(Da,t)}var to=m("ZodNumberFormat",(t,e)=>{ng.init(t,e),Da.init(t,e)});function Ld(t){return qg(to,t)}function i$(t){return Qg(to,t)}function o$(t){return ey(to,t)}function a$(t){return ty(to,t)}function s$(t){return ry(to,t)}var za=m("ZodBoolean",(t,e)=>{qs.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Oy(t,r,i,n)});function Ov(t){return ny(za,t)}var Aa=m("ZodBigInt",(t,e)=>{Wl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Ty(t,i,n,o),t.gte=(i,n)=>t.check(vt(i,n)),t.min=(i,n)=>t.check(vt(i,n)),t.gt=(i,n)=>t.check(rn(i,n)),t.gte=(i,n)=>t.check(vt(i,n)),t.min=(i,n)=>t.check(vt(i,n)),t.lt=(i,n)=>t.check(tn(i,n)),t.lte=(i,n)=>t.check(Jt(i,n)),t.max=(i,n)=>t.check(Jt(i,n)),t.positive=i=>t.check(rn(BigInt(0),i)),t.negative=i=>t.check(tn(BigInt(0),i)),t.nonpositive=i=>t.check(Jt(BigInt(0),i)),t.nonnegative=i=>t.check(vt(BigInt(0),i)),t.multipleOf=(i,n)=>t.check(Kn(i,n));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function c$(t){return oy(Aa,t)}var rf=m("ZodBigIntFormat",(t,e)=>{ig.init(t,e),Aa.init(t,e)});function u$(t){return sy(rf,t)}function l$(t){return cy(rf,t)}var Tv=m("ZodSymbol",(t,e)=>{og.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>By(t,r,i,n)});function d$(t){return uy(Tv,t)}var Bv=m("ZodUndefined",(t,e)=>{ag.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ny(t,r,i,n)});function f$(t){return ly(Bv,t)}var Uv=m("ZodNull",(t,e)=>{sg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Uy(t,r,i,n)});function Nv(t){return dy(Uv,t)}var Ev=m("ZodAny",(t,e)=>{cg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ly(t,r,i,n)});function p$(){return fy(Ev)}var Pv=m("ZodUnknown",(t,e)=>{ug.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Fy(t,r,i,n)});function eo(){return py(Pv)}var Lv=m("ZodNever",(t,e)=>{lg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Py(t,r,i,n)});function nf(t){return hy(Lv,t)}var Fv=m("ZodVoid",(t,e)=>{dg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ey(t,r,i,n)});function h$(t){return my(Fv,t)}var dc=m("ZodDate",(t,e)=>{fg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>jy(t,i,n,o),t.min=(i,n)=>t.check(vt(i,n)),t.max=(i,n)=>t.check(Jt(i,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function m$(t){return gy(dc,t)}var jv=m("ZodArray",(t,e)=>{pg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Xy(t,r,i,n),t.element=e.element,uc(t,"ZodArray",{min(r,i){return this.check(Dn(r,i))},nonempty(r){return this.check(Dn(1,r))},max(r,i){return this.check(Xi(r,i))},length(r,i){return this.check(qi(r,i))},unwrap(){return this.element}})});function fc(t,e){return _y(jv,t,e)}function g$(t){let e=t._zod.def.shape;return af(Object.keys(e))}var pc=m("ZodObject",(t,e)=>{hg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>qy(t,r,i,n),b.defineLazy(t,"shape",()=>e.shape),uc(t,"ZodObject",{keyof(){return af(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:eo()})},loose(){return this.clone({...this._zod.def,catchall:eo()})},strict(){return this.clone({...this._zod.def,catchall:nf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return b.extend(this,r)},safeExtend(r){return b.safeExtend(this,r)},merge(r){return b.merge(this,r)},pick(r){return b.pick(this,r)},omit(r){return b.omit(this,r)},partial(...r){return b.partial(cf,this,r[0])},required(...r){return b.required(uf,this,r[0])}})});function y$(t,e){let r={type:"object",shape:t??{},...b.normalizeParams(e)};return new pc(r)}function v$(t,e){return new pc({type:"object",shape:t,catchall:nf(),...b.normalizeParams(e)})}function _$(t,e){return new pc({type:"object",shape:t,catchall:eo(),...b.normalizeParams(e)})}var hc=m("ZodUnion",(t,e)=>{Qs.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>zd(t,r,i,n),t.options=e.options});function of(t,e){return new hc({type:"union",options:t,...b.normalizeParams(e)})}var Rv=m("ZodXor",(t,e)=>{hc.init(t,e),mg.init(t,e),t._zod.processJSONSchema=(r,i,n)=>zd(t,r,i,n),t.options=e.options});function b$(t,e){return new Rv({type:"union",options:t,inclusive:!1,...b.normalizeParams(e)})}var Mv=m("ZodDiscriminatedUnion",(t,e)=>{hc.init(t,e),gg.init(t,e)});function x$(t,e,r){return new Mv({type:"union",options:e,discriminator:t,...b.normalizeParams(r)})}var Cv=m("ZodIntersection",(t,e)=>{yg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Qy(t,r,i,n)});function Zv(t,e){return new Cv({type:"intersection",left:t,right:e})}var Vv=m("ZodTuple",(t,e)=>{Gl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ev(t,r,i,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});function Jv(t,e,r){let i=e instanceof H,n=i?r:e,o=i?e:null;return new Vv({type:"tuple",items:t,rest:o,...b.normalizeParams(n)})}var Sa=m("ZodRecord",(t,e)=>{vg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>tv(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType});function Hv(t,e,r){return!e||!e._zod?new Sa({type:"record",keyType:oc(),valueType:t,...b.normalizeParams(e)}):new Sa({type:"record",keyType:t,valueType:e,...b.normalizeParams(r)})}function w$(t,e,r){let i=gt(t);return i._zod.values=void 0,new Sa({type:"record",keyType:i,valueType:e,...b.normalizeParams(r)})}function S$(t,e,r){return new Sa({type:"record",keyType:t,valueType:e,mode:"loose",...b.normalizeParams(r)})}var Wv=m("ZodMap",(t,e)=>{_g.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ky(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(nn(...r)),t.nonempty=r=>t.check(nn(1,r)),t.max=(...r)=>t.check(Yn(...r)),t.size=(...r)=>t.check(Yi(...r))});function I$(t,e,r){return new Wv({type:"map",keyType:t,valueType:e,...b.normalizeParams(r)})}var Gv=m("ZodSet",(t,e)=>{bg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Yy(t,r,i,n),t.min=(...r)=>t.check(nn(...r)),t.nonempty=r=>t.check(nn(1,r)),t.max=(...r)=>t.check(Yn(...r)),t.size=(...r)=>t.check(Yi(...r))});function $$(t,e){return new Gv({type:"set",valueType:t,...b.normalizeParams(e)})}var Ia=m("ZodEnum",(t,e)=>{xg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Ry(t,i,n,o),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(i,n)=>{let o={};for(let a of i)if(r.has(a))o[a]=e.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ia({...e,checks:[],...b.normalizeParams(n),entries:o})},t.exclude=(i,n)=>{let o={...e.entries};for(let a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Ia({...e,checks:[],...b.normalizeParams(n),entries:o})}});function af(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Ia({type:"enum",entries:r,...b.normalizeParams(e)})}function k$(t,e){return new Ia({type:"enum",entries:t,...b.normalizeParams(e)})}var Kv=m("ZodLiteral",(t,e)=>{wg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>My(t,r,i,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function D$(t,e){return new Kv({type:"literal",values:Array.isArray(t)?t:[t],...b.normalizeParams(e)})}var Yv=m("ZodFile",(t,e)=>{Sg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Vy(t,r,i,n),t.min=(r,i)=>t.check(nn(r,i)),t.max=(r,i)=>t.check(Yn(r,i)),t.mime=(r,i)=>t.check(ma(Array.isArray(r)?r:[r],i))});function z$(t){return by(Yv,t)}var Xv=m("ZodTransform",(t,e)=>{Ig.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Gy(t,r,i,n),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Vn(t.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(b.issue(o,r.value,e));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),r.issues.push(b.issue(a))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function sf(t){return new Xv({type:"transform",transform:t})}var cf=m("ZodOptional",(t,e)=>{Kl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ad(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function sc(t){return new cf({type:"optional",innerType:t})}var qv=m("ZodExactOptional",(t,e)=>{$g.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ad(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Qv(t){return new qv({type:"optional",innerType:t})}var e_=m("ZodNullable",(t,e)=>{kg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>rv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function cc(t){return new e_({type:"nullable",innerType:t})}function A$(t){return sc(cc(t))}var t_=m("ZodDefault",(t,e)=>{Dg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>iv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function r_(t,e){return new t_({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():b.shallowClone(e)}})}var n_=m("ZodPrefault",(t,e)=>{zg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ov(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function i_(t,e){return new n_({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():b.shallowClone(e)}})}var uf=m("ZodNonOptional",(t,e)=>{Ag.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>nv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function o_(t,e){return new uf({type:"nonoptional",innerType:t,...b.normalizeParams(e)})}var a_=m("ZodSuccess",(t,e)=>{Og.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Jy(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function O$(t){return new a_({type:"success",innerType:t})}var s_=m("ZodCatch",(t,e)=>{Tg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>av(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function c_(t,e){return new s_({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var u_=m("ZodNaN",(t,e)=>{Bg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Cy(t,r,i,n)});function T$(t){return vy(u_,t)}var mc=m("ZodPipe",(t,e)=>{Yl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>sv(t,r,i,n),t.in=e.in,t.out=e.out});function Fd(t,e){return new mc({type:"pipe",in:t,out:e})}var gc=m("ZodCodec",(t,e)=>{mc.init(t,e),ec.init(t,e)});function B$(t,e,r){return new gc({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}function U$(t){let e=t._zod.def;return new gc({type:"pipe",in:e.out,out:e.in,transform:e.reverseTransform,reverseTransform:e.transform})}var l_=m("ZodPreprocess",(t,e)=>{mc.init(t,e),Ug.init(t,e)}),d_=m("ZodReadonly",(t,e)=>{Ng.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>cv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function f_(t){return new d_({type:"readonly",innerType:t})}var p_=m("ZodTemplateLiteral",(t,e)=>{Eg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Zy(t,r,i,n)});function N$(t,e){return new p_({type:"template_literal",parts:t,...b.normalizeParams(e)})}var h_=m("ZodLazy",(t,e)=>{Fg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>lv(t,r,i,n),t.unwrap=()=>t._zod.def.getter()});function m_(t){return new h_({type:"lazy",getter:t})}var g_=m("ZodPromise",(t,e)=>{Lg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>uv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function E$(t){return new g_({type:"promise",innerType:t})}var y_=m("ZodFunction",(t,e)=>{Pg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Wy(t,r,i,n)});function P$(t){return new y_({type:"function",input:Array.isArray(t?.input)?Jv(t?.input):t?.input??fc(eo()),output:t?.output??eo()})}var yc=m("ZodCustom",(t,e)=>{jg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Hy(t,r,i,n)});function L$(t){let e=new we({check:"custom"});return e._zod.check=t,e}function F$(t,e){return xy(yc,t??(()=>!0),e)}function v_(t,e={}){return wy(yc,t,e)}function __(t,e){return Sy(t,e)}var j$=Iy,R$=$y;function M$(t,e={}){let r=new yc({type:"custom",check:"custom",fn:i=>i instanceof t,abort:!0,...b.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=i=>{i.value instanceof t||i.issues.push({code:"invalid_type",expected:t.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var C$=(...t)=>ky({Codec:gc,Boolean:za,String:$a},...t);function Z$(t){let e=m_(()=>of([oc(t),Av(),Ov(),Nv(),fc(e),Hv(oc(),e)]));return e}function V$(t,e){return new l_({type:"pipe",in:sf(t),out:e})}var $U={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 kU(t){Oe({customError:t})}function DU(){return Oe().customError}var b_;(function(t){})(b_||(b_={}));var I={...ic,...Bd,iso:Qi},zU=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 AU(t,e){let r=t.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}function OU(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let i=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}function J$(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return I.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return I.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let o=OU(n,e),a=ut(o,e);return e.refs.set(n,a),e.processing.delete(n),a}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return I.null();if(n.length===0)return I.never();if(n.length===1)return I.literal(n[0]);if(n.every(a=>typeof a=="string"))return I.enum(n);let o=n.map(a=>I.literal(a));return o.length<2?o[0]:I.union([o[0],o[1],...o.slice(2)])}if(t.const!==void 0)return I.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...t,type:o};return J$(a,e)});return n.length===0?I.never():n.length===1?n[0]:I.union(n)}if(!r)return I.any();let i;switch(r){case"string":{let n=I.string();if(t.format){let o=t.format;o==="email"?n=n.check(I.email()):o==="uri"||o==="uri-reference"?n=n.check(I.url()):o==="uuid"||o==="guid"?n=n.check(I.uuid()):o==="date-time"?n=n.check(I.iso.datetime()):o==="date"?n=n.check(I.iso.date()):o==="time"?n=n.check(I.iso.time()):o==="duration"?n=n.check(I.iso.duration()):o==="ipv4"?n=n.check(I.ipv4()):o==="ipv6"?n=n.check(I.ipv6()):o==="mac"?n=n.check(I.mac()):o==="cidr"?n=n.check(I.cidrv4()):o==="cidr-v6"?n=n.check(I.cidrv6()):o==="base64"?n=n.check(I.base64()):o==="base64url"?n=n.check(I.base64url()):o==="e164"?n=n.check(I.e164()):o==="jwt"?n=n.check(I.jwt()):o==="emoji"?n=n.check(I.emoji()):o==="nanoid"?n=n.check(I.nanoid()):o==="cuid"?n=n.check(I.cuid()):o==="cuid2"?n=n.check(I.cuid2()):o==="ulid"?n=n.check(I.ulid()):o==="xid"?n=n.check(I.xid()):o==="ksuid"&&(n=n.check(I.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?I.number().int():I.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),i=n;break}case"boolean":{i=I.boolean();break}case"null":{i=I.null();break}case"object":{let n={},o=t.properties||{},a=new Set(t.required||[]);for(let[u,c]of Object.entries(o)){let l=ut(c,e);n[u]=a.has(u)?l:l.optional()}if(t.propertyNames){let u=ut(t.propertyNames,e),c=t.additionalProperties&&typeof t.additionalProperties=="object"?ut(t.additionalProperties,e):I.any();if(Object.keys(n).length===0){i=I.record(u,c);break}let l=I.object(n).passthrough(),d=I.looseRecord(u,c);i=I.intersection(l,d);break}if(t.patternProperties){let u=t.patternProperties,c=Object.keys(u),l=[];for(let p of c){let f=ut(u[p],e),y=I.string().regex(new RegExp(p));l.push(I.looseRecord(y,f))}let d=[];if(Object.keys(n).length>0&&d.push(I.object(n).passthrough()),d.push(...l),d.length===0)i=I.object({}).passthrough();else if(d.length===1)i=d[0];else{let p=I.intersection(d[0],d[1]);for(let f=2;f<d.length;f++)p=I.intersection(p,d[f]);i=p}break}let s=I.object(n);t.additionalProperties===!1?i=s.strict():typeof t.additionalProperties=="object"?i=s.catchall(ut(t.additionalProperties,e)):i=s.passthrough();break}case"array":{let n=t.prefixItems,o=t.items;if(n&&Array.isArray(n)){let a=n.map(u=>ut(u,e)),s=o&&typeof o=="object"&&!Array.isArray(o)?ut(o,e):void 0;s?i=I.tuple(a).rest(s):i=I.tuple(a),typeof t.minItems=="number"&&(i=i.check(I.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(I.maxLength(t.maxItems)))}else if(Array.isArray(o)){let a=o.map(u=>ut(u,e)),s=t.additionalItems&&typeof t.additionalItems=="object"?ut(t.additionalItems,e):void 0;s?i=I.tuple(a).rest(s):i=I.tuple(a),typeof t.minItems=="number"&&(i=i.check(I.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(I.maxLength(t.maxItems)))}else if(o!==void 0){let a=ut(o,e),s=I.array(a);typeof t.minItems=="number"&&(s=s.min(t.minItems)),typeof t.maxItems=="number"&&(s=s.max(t.maxItems)),i=s}else i=I.array(I.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function ut(t,e){if(typeof t=="boolean")return t?I.any():I.never();let r=J$(t,e),i=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let s=t.anyOf.map(c=>ut(c,e)),u=I.union(s);r=i?I.intersection(r,u):u}if(t.oneOf&&Array.isArray(t.oneOf)){let s=t.oneOf.map(c=>ut(c,e)),u=I.xor(s);r=i?I.intersection(r,u):u}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=i?r:I.any();else{let s=i?r:ut(t.allOf[0],e),u=i?0:1;for(let c=u;c<t.allOf.length;c++)s=I.intersection(s,ut(t.allOf[c],e));r=s}t.nullable===!0&&e.version==="openapi-3.0"&&(r=I.nullable(r)),t.readOnly===!0&&(r=I.readonly(r)),t.default!==void 0&&(r=r.default(t.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in t&&(n[s]=t[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in t&&(n[s]=t[s]);for(let s of Object.keys(t))zU.has(s)||(n[s]=t[s]);return Object.keys(n).length>0&&e.registry.add(r,n),t.description&&(r=r.describe(t.description)),r}function H$(t,e){if(typeof t=="boolean")return t?I.any():I.never();let r;try{r=JSON.parse(JSON.stringify(t))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=AU(r,e?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:e?.registry??rt};return ut(r,o)}var lf={};We(lf,{bigint:()=>NU,boolean:()=>UU,date:()=>EU,number:()=>BU,string:()=>TU});function TU(t){return Zg($a,t)}function BU(t){return Xg(Da,t)}function UU(t){return iy(za,t)}function NU(t){return ay(Aa,t)}function EU(t){return yy(dc,t)}Oe(Xl());var bt=fe.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),W$=fe.object({rgbMin:fe.number().finite().optional(),rgbMax:fe.number().finite().optional(),lnScaleMin:fe.number().finite().optional(),lnScaleMax:fe.number().finite().optional(),sh1Max:fe.number().finite().optional(),sh2Max:fe.number().finite().optional(),sh3Max:fe.number().finite().optional(),lodOpacity:fe.boolean().optional()}).passthrough(),PU=fe.object({offset:bt,bytes:bt,base:bt.optional(),count:bt.optional(),filename:fe.string().optional()}).passthrough(),G$=fe.object({version:fe.literal(1),type:fe.literal("gsplat"),count:bt,maxSh:bt.optional(),lodTree:fe.boolean().optional(),chunkSize:bt.optional(),allChunkBytes:bt.optional(),chunks:fe.array(PU),splatEncoding:W$.optional(),shCodeCount:bt.optional(),comment:fe.string().optional()}).passthrough(),LU=fe.object({offset:bt,bytes:bt,property:fe.string(),encoding:fe.string(),compression:fe.string().optional(),min:fe.number().finite().optional(),max:fe.number().finite().optional()}).passthrough(),K$=fe.object({version:fe.literal(1),base:bt,count:bt,payloadBytes:bt,maxSh:bt.optional(),lodTree:fe.boolean().optional(),splatEncoding:W$.optional(),properties:fe.array(LU)}).passthrough();var FU=809779538,jU=1128546642,ei=8,RU=8,MU=new TextDecoder;function x_(t){let e=df(t);if(!e)throw new Error("RADLoader: file must contain a complete RAD metadata header.");return e}function df(t){let e=X$(t);if(e.byteLength<ei)return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0);if(i!==FU)throw new Error(`RADLoader: RAD0 magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=ei+n;if(e.byteLength<o)return null;let a=G$.parse(Y$(e.subarray(ei,o),"RADLoader: failed to parse RAD metadata JSON."));return CU(a,n)}function ff(t){let e=X$(t);if(e.byteLength<ei)throw new Error("RADLoader: RADC chunk must contain an 8-byte metadata header.");let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0);if(i!==jU)throw new Error(`RADLoader: RADC magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=ei+n,a=ei+pf(n),s=a+RU;if(e.byteLength<s)throw new Error("RADLoader: RADC chunk must contain a complete metadata header.");let u=K$.parse(Y$(e.subarray(ei,o),"RADLoader: failed to parse RADC metadata JSON.")),c=VU(r,a,"RADC payload byte length");return ZU(u,n,s,c)}function pf(t){return t+7&-8}function CU(t,e){return{...t,headerJsonByteLength:e,chunksByteOffset:ei+pf(e)}}function ZU(t,e,r,i){if(t.payloadBytes!==i)throw new Error("RADLoader: RADC metadata payload byte length does not match binary header.");return{...t,payloadBytes:i,headerJsonByteLength:e,payloadByteOffset:r,chunkByteLength:r+i}}function Y$(t,e){try{return JSON.parse(MU.decode(t))}catch{throw new Error(e)}}function VU(t,e,r){let i=t.getBigUint64(e,!0);if(i>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`RADLoader: ${r} exceeds Number.MAX_SAFE_INTEGER.`);return Number(i)}function X$(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var JU="4.5.1",q$={dataType:null,batchType:null,...ro,version:JU,options:{}};var HU=new Qo,WU=new Qo({raw:!0});function Q$(t,e){return Gr(S_(t,e))}function S_(t,e){let r=SN(t),i=vN(ff(r),e);if(r.byteLength<i.chunkByteLength)throw new Error("RADLoader: RADC chunk payload is incomplete.");let n=i.count,o=Oa(r,i,yN(i,"center"),3),a=GU(r,i,n),s=YU(r,i,n),u=XU(r,i,n),c=qU(r,i,n),{colors:l,sphericalHarmonicDcs:d}=pN(s),p=e?.radChunk?.includeLoDTree??!0,f=p?eN(r,i,"child_count"):null,y=p?tN(r,i,"child_start"):null,k=e?.radChunk?.includeSphericalHarmonics??!1?QU(r,i):null;return{format:"rad",splatCount:n,positions:o,scales:u,rotations:c,colors:l,sphericalHarmonicDcs:d,opacities:a,sphericalHarmonics:k?.values,sphericalHarmonicsComponentCount:k?.componentCount,loaderData:{format:"rad",base:i.base,count:i.count,maxSh:i.maxSh??0,lodTree:i.lodTree??!1,splatEncoding:i.splatEncoding,childCounts:f??void 0,childStarts:y??void 0}}}function GU(t,e,r){let i=sn(e,"alpha");if(!i)return new Float32Array(r).fill(1);let n=Oa(t,e,i,1);for(let o=0;o<n.length;o++)n[o]=KU(n[o],e,i);return n}function KU(t,e,r){let i=Math.max(t,0);return!e.splatEncoding?.lodOpacity||r.encoding!=="r8"&&r.encoding!=="r8_delta"?i:i*2}function YU(t,e,r){let i=sn(e,"rgb");return i?Oa(t,e,i,3):new Float32Array(r*3).fill(1)}function XU(t,e,r){let i=sn(e,"scales");return i?Oa(t,e,i,3):new Float32Array(r*3).fill(1)}function qU(t,e,r){let i=sn(e,"orientation");if(!i)return hN(r);let n=hf(t,e,i);switch(i.encoding){case"oct88r8":return fN(n,r);case"f32":case"f16":{let o=Oa(t,e,i,3),a=new Float32Array(r*4);for(let s=0;s<r;s++){let u=s*3,c=s*4,l=o[u+0],d=o[u+1],p=o[u+2],f=Math.sqrt(Math.max(0,1-l*l-d*d-p*p)),y=_n(f,l,d,p);a.set(y,c)}return a}default:throw new Error(`RADLoader: unsupported orientation encoding ${i.encoding}.`)}}function QU(t,e){let r=[{property:sn(e,"sh1"),dimensions:9},{property:sn(e,"sh2"),dimensions:15},{property:sn(e,"sh3"),dimensions:21}].filter(a=>a.property!==void 0);if(r.length===0)return null;let i=r.map(a=>({values:Oa(t,e,a.property,a.dimensions),dimensions:a.dimensions})),n=i.reduce((a,s)=>a+s.dimensions,0),o=new Float32Array(e.count*n);for(let a=0;a<e.count;a++){let s=a*n;for(let u of i){let c=a*u.dimensions;o.set(u.values.subarray(c,c+u.dimensions),s),s+=u.dimensions}}return{values:o,componentCount:n}}function Oa(t,e,r,i){let n=hf(t,e,r);switch(r.encoding){case"f32":return nN(n,i,e.count);case"f16":return ek(n,i,e.count);case"f32_lebytes":return iN(n,i,e.count);case"f16_lebytes":return oN(n,i,e.count);case"r8":return aN(n,i,e.count,w_(e,r),vc(e,r));case"r8_delta":return sN(n,i,e.count,w_(e,r),vc(e,r));case"s8":return cN(n,i,e.count,vc(e,r));case"s8_delta":return uN(n,i,e.count,vc(e,r));case"ln_0r8":return lN(n,i,e.count,w_(e,r),vc(e,r));case"ln_f16":return dN(n,i,e.count);default:throw new Error(`RADLoader: unsupported ${r.property} encoding ${r.encoding}.`)}}function eN(t,e,r){let i=sn(e,r);if(!i)return null;if(i.encoding!=="u16")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=hf(t,e,i),o=new Uint16Array(e.count);for(let a=0;a<e.count;a++)o[a]=n[a*2]|n[a*2+1]<<8;return o}function tN(t,e,r){let i=sn(e,r);if(!i)return null;if(i.encoding!=="u32")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=hf(t,e,i),o=new DataView(n.buffer,n.byteOffset,n.byteLength),a=new Uint32Array(e.count);for(let s=0;s<e.count;s++)a[s]=o.getUint32(s*4,!0);return a}function hf(t,e,r){let i=pf(r.bytes),n=e.payloadByteOffset+r.offset;if(n+i>t.byteLength||r.offset+i>e.payloadBytes)throw new Error(`RADLoader: property ${r.property} exceeds RADC payload byte length.`);let a=t.subarray(n,n+r.bytes);if(!r.compression)return a;if(r.compression!=="gz")throw new Error(`RADLoader: unsupported property compression ${r.compression}.`);return rN(a,r.property)}function rN(t,e){let r=wN(t);try{return new Uint8Array(HU.decompressSync(r))}catch{try{return new Uint8Array(WU.decompressSync(r))}catch{throw new Error(`RADLoader: failed to decompress RADC property ${e}.`)}}}function nN(t,e,r){let i=new DataView(t.buffer,t.byteOffset,t.byteLength),n=new Float32Array(r*e);for(let o=0;o<r;o++)for(let a=0;a<e;a++)n[o*e+a]=i.getFloat32((a*r+o)*4,!0);return n}function ek(t,e,r){let i=new Float32Array(r*e);for(let n=0;n<r;n++)for(let o=0;o<e;o++){let a=(o*r+n)*2;i[n*e+o]=bs(t[a]|t[a+1]<<8)}return i}function iN(t,e,r){let i=new Float32Array(r*e),n=r*e,o=new Uint8Array(4),a=new DataView(o.buffer);for(let s=0;s<r;s++)for(let u=0;u<e;u++){let c=u*r+s;for(let l=0;l<4;l++)o[l]=t[c+n*l];i[s*e+u]=a.getFloat32(0,!0)}return i}function oN(t,e,r){let i=new Float32Array(r*e),n=r*e;for(let o=0;o<r;o++)for(let a=0;a<e;a++){let s=a*r+o;i[o*e+a]=bs(t[s]|t[s+n]<<8)}return i}function aN(t,e,r,i,n){let o=new Float32Array(r*e),a=n-i;for(let s=0;s<r;s++)for(let u=0;u<e;u++)o[s*e+u]=t[u*r+s]/255*a+i;return o}function sN(t,e,r,i,n){let o=new Float32Array(r*e),a=n-i,s=new Uint8Array(e);for(let u=0;u<r;u++)for(let c=0;c<e;c++){let l=c*r+u,d=s[c]+t[l]&255;s[c]=d,o[u*e+c]=d/255*a+i}return o}function cN(t,e,r,i){let n=new Float32Array(r*e);for(let o=0;o<r;o++)for(let a=0;a<e;a++){let s=t[a*r+o];n[o*e+a]=(s<<24>>24)/127*i}return n}function uN(t,e,r,i){let n=new Float32Array(r*e),o=new Uint8Array(e);for(let a=0;a<r;a++)for(let s=0;s<e;s++){let u=s*r+a,c=o[s]+t[u]&255;o[s]=c,n[a*e+s]=(c<<24>>24)/127*i}return n}function lN(t,e,r,i,n){let o=new Float32Array(r*e);for(let a=0;a<r;a++)for(let s=0;s<e;s++)o[a*e+s]=mN(t[s*r+a],i,n);return o}function dN(t,e,r){let i=ek(t,e,r);for(let n=0;n<i.length;n++)i[n]=Math.exp(i[n]);return i}function fN(t,e){let r=new Float32Array(e*4);for(let i=0;i<e;i++){let n=i*3,[o,a,s,u]=gN(t[n],t[n+1],t[n+2]);r.set(_n(u,o,a,s),i*4)}return r}function pN(t){let e=new Uint8Array(t.length),r=new Float32Array(t.length);for(let i=0;i<t.length;i++){let n=t[i];e[i]=xN(n),r[i]=(n-.5)/wp}return{colors:e,sphericalHarmonicDcs:r}}function hN(t){let e=new Float32Array(t*4);for(let r=0;r<t;r++)e[r*4]=1;return e}function mN(t,e,r){if(t===0)return 0;let i=(r-e)/254;return Math.exp(e+(t-1)*i)}function gN(t,e,r){let i=t/255*2-1,n=e/255*2-1,o=1-Math.abs(i)-Math.abs(n),a=Math.max(-o,0);i=i>=0?i-a:i+a,n=n>=0?n-a:n+a;let s=Math.hypot(i,n,o),u=s>Number.EPSILON?i/s:1,c=s>Number.EPSILON?n/s:0,l=s>Number.EPSILON?o/s:0,d=r/255*.5*Math.PI,p=Math.sin(d);return[u*p,c*p,l*p,Math.cos(d)]}function yN(t,e){let r=sn(t,e);if(!r)throw new Error(`RADLoader: RADC chunk is missing ${e} property.`);return r}function sn(t,e){return t.properties.find(r=>r.property===e)}function vN(t,e){let r=e?.radChunk?.splatEncoding;return r?{...t,splatEncoding:{...r,...t.splatEncoding}}:t}function w_(t,e){if(e.min===void 0){let r=_N(t.splatEncoding,e.property);if(r!==void 0)return r;throw new Error(`RADLoader: RADC property ${e.property} is missing min.`)}return e.min}function vc(t,e){if(e.max===void 0){let r=bN(t.splatEncoding,e.property);if(r!==void 0)return r;throw new Error(`RADLoader: RADC property ${e.property} is missing max.`)}return e.max}function _N(t,e){switch(e){case"rgb":return t?.rgbMin;case"scales":return t?.lnScaleMin;default:return}}function bN(t,e){switch(e){case"rgb":return t?.rgbMax;case"scales":return t?.lnScaleMax;case"sh1":return t?.sh1Max;case"sh2":return t?.sh2Max;case"sh3":return t?.sh3Max;default:return}}function xN(t){return Math.round(Math.min(Math.max(t,0),1)*255)}function wN(t){let e=new Uint8Array(t.byteLength);return e.set(t),e.buffer}function SN(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var tk={...q$,parse:async t=>x_(t),parseSync:t=>x_(t)};var IN=[64*1024,256*1024,1024*1024],$N=4,kN="4.5.1",I_={dataType:null,batchType:null,...ro,name:"RADSourceLoader",version:kN,type:"rad",fromUrl:!0,fromBlob:!0,options:{rad:{headers:void 0,withCredentials:!1,headerByteLengths:void 0}},defaultOptions:{rad:{headers:void 0,withCredentials:!1,headerByteLengths:void 0}},testURL:t=>/\.rad(?:$|[?#])/i.test(t),createDataSource:(t,e)=>new _c(t,e)},_c=class extends Mo{metadata;_metadataPromise=null;_chunkMetadataPromises=new Map;constructor(e,r){super(e,r,I_.defaultOptions),this.metadata=this.getMetadata()}async initialize(){await this.getMetadata()}async getMetadata(){return this._metadataPromise||(this._metadataPromise=this._loadMetadata()),await this._metadataPromise}async getChunkCount(){return(await this.getMetadata()).chunks.length}async getChunkUrl(e){let r=await this.getMetadata(),i=this._getChunkRange(r,e);return i.filename?mf(this.url,i.filename):typeof this.data=="string"?this.url:null}async getChunk(e,r={}){let i=await this.getMetadata(),n=this._getChunkRange(i,e);if(n.filename){if(typeof this.data!="string")throw new Error("RADSource: sidecar RADC chunks require a URL-backed RAD source.");return await this._fetchArrayBuffer(mf(this.url,n.filename),void 0,{signal:r.signal})}if(n.bytes===0)return new ArrayBuffer(0);let o=i.chunksByteOffset+n.offset;return typeof this.data!="string"?await this.data.slice(o,o+n.bytes).arrayBuffer():await this._fetchArrayBuffer(this.url,{offset:o,bytes:n.bytes},{signal:r.signal})}async getChunkMetadata(e,r={}){let i=this._chunkMetadataPromises.get(e);return i||(i=this.getChunk(e,r).then(n=>ff(n)),this._chunkMetadataPromises.set(e,i)),await i}async getChunkSplats(e,r={}){let i=await this.getMetadata();return S_(await this.getChunk(e,r),this._getChunkDecodeOptions(i,r))}async getChunkTable(e,r={}){let i=await this.getMetadata();return Q$(await this.getChunk(e,r),this._getChunkDecodeOptions(i,r))}async*getChunkTables(e={}){let r=await this.getMetadata(),i=e.startChunkIndex??0,n=e.maxChunks??Number.POSITIVE_INFINITY,o=e.maxSplats??Number.POSITIVE_INFINITY,a=0,s=0;if(e.pruneLoadedLoDParents){let u=DN(r,i,n,o),c=await this._getChunkSplatsConcurrently(u,e),l=0;for(let d of c){a++,s+=d.splatCount;let p=AN(d);l=Math.max(l,p+d.splatCount)}for(let d of c)yield Gr(ON(d,l));return}for(let u=i;u<r.chunks.length&&a<n&&s<o;u++){let c=await this.getChunkTable(u,e);a++,s+=c.data.numRows,yield c}}async _getChunkSplatsConcurrently(e,r){let i=new Array(e.length),n=zN(r.maxConcurrentChunkRequests),o=0;async function a(u){for(;o<e.length;){let c=o++,l=e[c];i[c]=await u.getChunkSplats(l,r)}}let s=Math.min(n,e.length);return await Promise.all(Array.from({length:s},()=>a(this))),i}_getChunkDecodeOptions(e,r){return{...r,radChunk:{splatEncoding:e.splatEncoding,...r.radChunk}}}async _loadMetadata(){let e=this.options.rad?.headerByteLengths?.length?this.options.rad.headerByteLengths:IN;if(typeof this.data!="string"){let r=Math.min(this.data.size,Math.max(...e)),i=df(await this.data.slice(0,r).arrayBuffer());if(i)return i;throw new Error("RADSource: Blob does not contain a complete RAD metadata header.")}for(let r of e){let i=df(await this._fetchArrayBuffer(this.url,{offset:0,bytes:r}));if(i)return i}throw new Error("RADSource: failed to load a complete RAD metadata header.")}_getChunkRange(e,r){if(!Number.isInteger(r)||r<0||r>=e.chunks.length)throw new Error(`RADSource: chunk index ${r} is outside 0-${e.chunks.length-1}.`);return e.chunks[r]}async _fetchArrayBuffer(e,r,i={}){let n=await this._fetchResponse(e,this._getRequestInit(r,i));if(!n.ok)throw new Error(`RADSource: failed to fetch ${e}: ${n.status} ${n.statusText}`);let o=await n.arrayBuffer();return r&&n.status!==206&&o.byteLength>=r.offset+r.bytes?o.slice(r.offset,r.offset+r.bytes):r&&o.byteLength>r.bytes?o.slice(0,r.bytes):o}async _fetchResponse(e,r){return await this.fetch(e,r)}_getRequestInit(e,r={}){let i=new Headers(this.options.rad?.headers);return e&&e.bytes>0&&i.set("Range",`bytes=${e.offset}-${e.offset+e.bytes-1}`),{headers:i,credentials:this.options.rad?.withCredentials?"include":"same-origin",signal:r.signal}}};function DN(t,e,r,i){let n=[],o=0;for(let a=e;a<t.chunks.length&&n.length<r&&o<i;a++){let s=t.chunks[a];n.push(a),o+=s?.count??t.chunkSize??0}return n}function zN(t){return Number.isFinite(t)&&t>0?Math.floor(t):$N}function AN(t){return typeof t.loaderData?.base=="number"?t.loaderData.base:0}function ON(t,e){let r=t.loaderData?.childCounts,i=t.loaderData?.childStarts;if(!(r instanceof Uint16Array)||!(i instanceof Uint32Array))return t;let n=new Uint32Array(t.splatCount),o=0;for(let u=0;u<t.splatCount;u++){let c=r[u],l=i[u];c>0&&l<e||(n[o++]=u)}if(o===t.splatCount)return t;let a=n.subarray(0,o),s=t.sphericalHarmonicsComponentCount??0;return{...t,splatCount:o,positions:zn(t.positions,3,a),scales:zn(t.scales,3,a),rotations:zn(t.rotations,4,a),colors:zn(t.colors,3,a),sphericalHarmonicDcs:t.sphericalHarmonicDcs?zn(t.sphericalHarmonicDcs,3,a):void 0,opacities:zn(t.opacities,1,a),sphericalHarmonics:t.sphericalHarmonics&&s?zn(t.sphericalHarmonics,s,a):void 0,loaderData:{...t.loaderData,count:o,childCounts:zn(r,1,a),childStarts:zn(i,1,a)}}}function zn(t,e,r){let i=new t.constructor(r.length*e);for(let n=0;n<r.length;n++){let o=r[n]*e,a=n*e;i.set(t.subarray(o,o+e),a)}return i}function mf(t,e){if(/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith("/"))return e;if(!t)throw new Error("RADSource: cannot resolve a sidecar RADC chunk without a RAD URL.");try{return new URL(e,t).toString()}catch{let[r,i=""]=t.split(/([?#].*)/,2),n=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));return`${n>=0?r.slice(0,n+1):""}${e}${i}`}}return ck(bc);})();
80
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of t.seen.entries()){let s=a[1];if(e===a[0]){o(a);continue}if(t.external){let c=t.external.registry.get(a[0])?.id;if(e!==a[0]&&c){o(a);continue}}if(t.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}if(s.count>1&&t.reused==="ref"){o(a);continue}}}function Qn(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let u=t.seen.get(s);if(u.ref===null)return;let c=u.def??u.schema,l={...c},d=u.ref;if(u.ref=null,d){i(d);let f=t.seen.get(d),y=f.schema;if(y.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(y)):Object.assign(c,y),Object.assign(c,l),s._zod.parent===d)for(let k in c)k==="$ref"||k==="allOf"||k in l||delete c[k];if(y.$ref&&f.def)for(let k in c)k==="$ref"||k==="allOf"||k in f.def&&JSON.stringify(c[k])===JSON.stringify(f.def[k])&&delete c[k]}let p=s._zod.parent;if(p&&p!==d){i(p);let f=t.seen.get(p);if(f?.schema.$ref&&(c.$ref=f.schema.$ref,f.def))for(let y in c)y==="$ref"||y==="allOf"||y in f.def&&JSON.stringify(c[y])===JSON.stringify(f.def[y])&&delete c[y]}t.override({zodSchema:s,jsonSchema:c,path:u.path??[]})};for(let s of[...t.seen.entries()].reverse())i(s[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(s)}Object.assign(n,r.def??r.schema);let o=t.metadataRegistry.get(e)?.id;o!==void 0&&n.id===o&&delete n.id;let a=t.external?.defs??{};for(let s of t.seen.entries()){let u=s[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,a[u.defId]=u.def)}t.external||Object.keys(a).length>0&&(t.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:wa(e,"input",t.processors),output:wa(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function _t(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return _t(i.element,r);if(i.type==="set")return _t(i.valueType,r);if(i.type==="lazy")return _t(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return _t(i.innerType,r);if(i.type==="intersection")return _t(i.left,r)||_t(i.right,r);if(i.type==="record"||i.type==="map")return _t(i.keyType,r)||_t(i.valueType,r);if(i.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:_t(i.in,r)||_t(i.out,r);if(i.type==="object"){for(let n in i.shape)if(_t(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(_t(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(_t(n,r))return!0;return!!(i.rest&&_t(i.rest,r))}return!1}var Dy=(t,e={})=>r=>{let i=Xn({...r,processors:e});return he(t,i),qn(i,t),Qn(i,t)},wa=(t,e,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=Xn({...n??{},target:o,io:e,processors:r});return he(t,a),qn(a,t),Qn(a,t)};var xU={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zy=(t,e,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:u,contentEncoding:c}=t._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=xU[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),u&&u.size>0){let l=[...u];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Ay=(t,e,r,i)=>{let n=r,{minimum:o,maximum:a,format:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:l}=t._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";let d=typeof l=="number"&&l>=(o??Number.NEGATIVE_INFINITY),p=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),f=e.target==="draft-04"||e.target==="openapi-3.0";d?f?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof o=="number"&&(n.minimum=o),p?f?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof u=="number"&&(n.multipleOf=u)},Oy=(t,e,r,i)=>{r.type="boolean"},Ty=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},By=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Uy=(t,e,r,i)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Ny=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Ey=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Py=(t,e,r,i)=>{r.not={}},Ly=(t,e,r,i)=>{},Fy=(t,e,r,i)=>{},jy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Ry=(t,e,r,i)=>{let n=t._zod.def,o=Ms(n.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},My=(t,e,r,i)=>{let n=t._zod.def,o=[];for(let a of n.values)if(a===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(e.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];r.type=a===null?"null":typeof a,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},Cy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Zy=(t,e,r,i)=>{let n=r,o=t._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},Vy=(t,e,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:u}=t._zod.bag;a!==void 0&&(o.minLength=a),s!==void 0&&(o.maxLength=s),u?u.length===1?(o.contentMediaType=u[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(n,o)},Jy=(t,e,r,i)=>{r.type="boolean"},Hy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Wy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Gy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ky=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Yy=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Xy=(t,e,r,i)=>{let n=r,o=t._zod.def,{minimum:a,maximum:s}=t._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=he(o.element,e,{...i,path:[...i.path,"items"]})},qy=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object",n.properties={};let a=o.shape;for(let c in a)n.properties[c]=he(a[c],e,{...i,path:[...i.path,"properties",c]});let s=new Set(Object.keys(a)),u=new Set([...s].filter(c=>{let l=o.shape[c]._zod;return e.io==="input"?l.optin===void 0:l.optout===void 0}));u.size>0&&(n.required=Array.from(u)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=he(o.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},zd=(t,e,r,i)=>{let n=t._zod.def,o=n.inclusive===!1,a=n.options.map((s,u)=>he(s,e,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?r.oneOf=a:r.anyOf=a},Qy=(t,e,r,i)=>{let n=t._zod.def,o=he(n.left,e,{...i,path:[...i.path,"allOf",0]}),a=he(n.right,e,{...i,path:[...i.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=u},ev=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="array";let a=e.target==="draft-2020-12"?"prefixItems":"items",s=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((p,f)=>he(p,e,{...i,path:[...i.path,a,f]})),c=o.rest?he(o.rest,e,{...i,path:[...i.path,s,...e.target==="openapi-3.0"?[o.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=u,c&&(n.items=c)):e.target==="openapi-3.0"?(n.items={anyOf:u},c&&n.items.anyOf.push(c),n.minItems=u.length,c||(n.maxItems=u.length)):(n.items=u,c&&(n.additionalItems=c));let{minimum:l,maximum:d}=t._zod.bag;typeof l=="number"&&(n.minItems=l),typeof d=="number"&&(n.maxItems=d)},tv=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object";let a=o.keyType,u=a._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){let l=he(o.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of u)n.patternProperties[d.source]=l}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=he(o.keyType,e,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=he(o.valueType,e,{...i,path:[...i.path,"additionalProperties"]});let c=a._zod.values;if(c){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l)}},rv=(t,e,r,i)=>{let n=t._zod.def,o=he(n.innerType,e,i),a=e.seen.get(t);e.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},nv=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},iv=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},ov=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},av=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},sv=(t,e,r,i)=>{let n=t._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=e.io==="input"?o?n.out:n.in:n.out;he(a,e,i);let s=e.seen.get(t);s.ref=a},cv=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.readOnly=!0},uv=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},Ad=(t,e,r,i)=>{let n=t._zod.def;he(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},lv=(t,e,r,i)=>{let n=t._zod.innerType;he(n,e,i);let o=e.seen.get(t);o.ref=n},Dd={string:zy,number:Ay,boolean:Oy,bigint:Ty,symbol:By,null:Uy,undefined:Ny,void:Ey,never:Py,any:Ly,unknown:Fy,date:jy,enum:Ry,literal:My,nan:Cy,template_literal:Zy,file:Vy,success:Jy,custom:Hy,function:Wy,transform:Gy,map:Ky,set:Yy,array:Xy,object:qy,union:zd,intersection:Qy,tuple:ev,record:tv,nullable:rv,nonoptional:nv,default:iv,prefault:ov,catch:av,pipe:sv,readonly:cv,promise:uv,optional:Ad,lazy:lv};function Od(t,e){if("_idmap"in t){let i=t,n=Xn({...e,processors:Dd}),o={};for(let u of i._idmap.entries()){let[c,l]=u;he(l,n)}let a={},s={registry:i,uri:e?.uri,defs:o};n.external=s;for(let u of i._idmap.entries()){let[c,l]=u;qn(n,l),a[c]=Qn(n,l)}if(Object.keys(o).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:o}}return{schemas:a}}let r=Xn({...e,processors:Dd});return he(t,r),qn(r,t),Qn(r,t)}var Td=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Xn({processors:Dd,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return he(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),qn(this.ctx,e);let i=Qn(this.ctx,e),{"~standard":n,...o}=i;return o}};var dv={};var ic={};We(ic,{ZodAny:()=>Ev,ZodArray:()=>jv,ZodBase64:()=>qd,ZodBase64URL:()=>Qd,ZodBigInt:()=>Aa,ZodBigIntFormat:()=>rf,ZodBoolean:()=>za,ZodCIDRv4:()=>Yd,ZodCIDRv6:()=>Xd,ZodCUID:()=>Zd,ZodCUID2:()=>Vd,ZodCatch:()=>s_,ZodCodec:()=>gc,ZodCustom:()=>yc,ZodCustomStringFormat:()=>ka,ZodDate:()=>dc,ZodDefault:()=>t_,ZodDiscriminatedUnion:()=>Mv,ZodE164:()=>ef,ZodEmail:()=>Rd,ZodEmoji:()=>Md,ZodEnum:()=>Ia,ZodExactOptional:()=>qv,ZodFile:()=>Yv,ZodFunction:()=>y_,ZodGUID:()=>ac,ZodIPv4:()=>Gd,ZodIPv6:()=>Kd,ZodIntersection:()=>Cv,ZodJWT:()=>tf,ZodKSUID:()=>Wd,ZodLazy:()=>h_,ZodLiteral:()=>Kv,ZodMAC:()=>zv,ZodMap:()=>Wv,ZodNaN:()=>u_,ZodNanoID:()=>Cd,ZodNever:()=>Lv,ZodNonOptional:()=>uf,ZodNull:()=>Uv,ZodNullable:()=>e_,ZodNumber:()=>Da,ZodNumberFormat:()=>to,ZodObject:()=>pc,ZodOptional:()=>cf,ZodPipe:()=>mc,ZodPrefault:()=>n_,ZodPreprocess:()=>l_,ZodPromise:()=>g_,ZodReadonly:()=>d_,ZodRecord:()=>Sa,ZodSet:()=>Gv,ZodString:()=>$a,ZodStringFormat:()=>ve,ZodSuccess:()=>a_,ZodSymbol:()=>Tv,ZodTemplateLiteral:()=>p_,ZodTransform:()=>Xv,ZodTuple:()=>Vv,ZodType:()=>Y,ZodULID:()=>Jd,ZodURL:()=>lc,ZodUUID:()=>an,ZodUndefined:()=>Bv,ZodUnion:()=>hc,ZodUnknown:()=>Pv,ZodVoid:()=>Fv,ZodXID:()=>Hd,ZodXor:()=>Rv,_ZodString:()=>jd,_default:()=>r_,_function:()=>P$,any:()=>p$,array:()=>fc,base64:()=>YI,base64url:()=>XI,bigint:()=>c$,boolean:()=>Ov,catch:()=>c_,check:()=>L$,cidrv4:()=>GI,cidrv6:()=>KI,codec:()=>B$,cuid:()=>RI,cuid2:()=>MI,custom:()=>F$,date:()=>m$,describe:()=>j$,discriminatedUnion:()=>x$,e164:()=>qI,email:()=>OI,emoji:()=>FI,enum:()=>af,exactOptional:()=>Qv,file:()=>z$,float32:()=>i$,float64:()=>o$,function:()=>P$,guid:()=>TI,hash:()=>n$,hex:()=>r$,hostname:()=>t$,httpUrl:()=>LI,instanceof:()=>M$,int:()=>Ld,int32:()=>a$,int64:()=>u$,intersection:()=>Zv,invertCodec:()=>U$,ipv4:()=>JI,ipv6:()=>WI,json:()=>Z$,jwt:()=>QI,keyof:()=>g$,ksuid:()=>VI,lazy:()=>m_,literal:()=>D$,looseObject:()=>_$,looseRecord:()=>S$,mac:()=>HI,map:()=>I$,meta:()=>R$,nan:()=>T$,nanoid:()=>jI,nativeEnum:()=>k$,never:()=>nf,nonoptional:()=>o_,null:()=>Nv,nullable:()=>cc,nullish:()=>A$,number:()=>Av,object:()=>y$,optional:()=>sc,partialRecord:()=>w$,pipe:()=>Fd,prefault:()=>i_,preprocess:()=>V$,promise:()=>E$,readonly:()=>f_,record:()=>Hv,refine:()=>v_,set:()=>$$,strictObject:()=>v$,string:()=>oc,stringFormat:()=>e$,stringbool:()=>C$,success:()=>O$,superRefine:()=>__,symbol:()=>d$,templateLiteral:()=>N$,transform:()=>sf,tuple:()=>Jv,uint32:()=>s$,uint64:()=>l$,ulid:()=>CI,undefined:()=>f$,union:()=>of,unknown:()=>eo,url:()=>PI,uuid:()=>BI,uuidv4:()=>UI,uuidv6:()=>NI,uuidv7:()=>EI,void:()=>h$,xid:()=>ZI,xor:()=>b$});var Bd={};We(Bd,{endsWith:()=>ha,gt:()=>rn,gte:()=>vt,includes:()=>fa,length:()=>qi,lowercase:()=>la,lt:()=>tn,lte:()=>Jt,maxLength:()=>Xi,maxSize:()=>Yn,mime:()=>ma,minLength:()=>Dn,minSize:()=>nn,multipleOf:()=>Kn,negative:()=>Sd,nonnegative:()=>$d,nonpositive:()=>Id,normalize:()=>ga,overwrite:()=>br,positive:()=>wd,property:()=>kd,regex:()=>ua,size:()=>Yi,slugify:()=>ba,startsWith:()=>pa,toLowerCase:()=>va,toUpperCase:()=>_a,trim:()=>ya,uppercase:()=>da});var Qi={};We(Qi,{ZodISODate:()=>Nd,ZodISODateTime:()=>Ud,ZodISODuration:()=>Pd,ZodISOTime:()=>Ed,date:()=>pv,datetime:()=>fv,duration:()=>mv,time:()=>hv});var Ud=m("ZodISODateTime",(t,e)=>{Cm.init(t,e),ve.init(t,e)});function fv(t){return Hg(Ud,t)}var Nd=m("ZodISODate",(t,e)=>{Zm.init(t,e),ve.init(t,e)});function pv(t){return Wg(Nd,t)}var Ed=m("ZodISOTime",(t,e)=>{Vm.init(t,e),ve.init(t,e)});function hv(t){return Gg(Ed,t)}var Pd=m("ZodISODuration",(t,e)=>{Jm.init(t,e),ve.init(t,e)});function mv(t){return Kg(Pd,t)}var zI=(t,e)=>{Hs.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>Gs(t,r)},flatten:{value:r=>Ws(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,ea,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,ea,2)}},isEmpty:{get(){return t.issues.length===0}}})},SU=m("ZodError",zI),Lt=m("ZodError",zI,{Parent:Error});var gv=na(Lt),yv=ia(Lt),vv=oa(Lt),_v=aa(Lt),bv=Ol(Lt),xv=Tl(Lt),wv=Bl(Lt),Sv=Ul(Lt),Iv=Nl(Lt),$v=El(Lt),kv=Pl(Lt),Dv=Ll(Lt);var AI=new WeakMap;function uc(t,e,r){let i=Object.getPrototypeOf(t),n=AI.get(i);if(n||(n=new Set,AI.set(i,n)),!n.has(e)){n.add(e);for(let o in r){let a=r[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var Y=m("ZodType",(t,e)=>(H.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:wa(t,"input"),output:wa(t,"output")}}),t.toJSONSchema=Dy(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(r,i)=>gv(t,r,i,{callee:t.parse}),t.safeParse=(r,i)=>vv(t,r,i),t.parseAsync=async(r,i)=>yv(t,r,i,{callee:t.parseAsync}),t.safeParseAsync=async(r,i)=>_v(t,r,i),t.spa=t.safeParseAsync,t.encode=(r,i)=>bv(t,r,i),t.decode=(r,i)=>xv(t,r,i),t.encodeAsync=async(r,i)=>wv(t,r,i),t.decodeAsync=async(r,i)=>Sv(t,r,i),t.safeEncode=(r,i)=>Iv(t,r,i),t.safeDecode=(r,i)=>$v(t,r,i),t.safeEncodeAsync=async(r,i)=>kv(t,r,i),t.safeDecodeAsync=async(r,i)=>Dv(t,r,i),uc(t,"ZodType",{check(...r){let i=this.def;return this.clone(b.mergeDefs(i,{checks:[...i.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return gt(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(v_(r,i))},superRefine(r,i){return this.check(__(r,i))},overwrite(r){return this.check(br(r))},optional(){return sc(this)},exactOptional(){return Qv(this)},nullable(){return cc(this)},nullish(){return sc(cc(this))},nonoptional(r){return o_(this,r)},array(){return fc(this)},or(r){return of([this,r])},and(r){return Zv(this,r)},transform(r){return Fd(this,sf(r))},default(r){return r_(this,r)},prefault(r){return i_(this,r)},catch(r){return c_(this,r)},pipe(r){return Fd(this,r)},readonly(){return f_(this)},describe(r){let i=this.clone();return rt.add(i,{description:r}),i},meta(...r){if(r.length===0)return rt.get(this);let i=this.clone();return rt.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(t,"description",{get(){return rt.get(t)?.description},configurable:!0}),t)),jd=m("_ZodString",(t,e)=>{Gi.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>zy(t,i,n,o);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,uc(t,"_ZodString",{regex(...i){return this.check(ua(...i))},includes(...i){return this.check(fa(...i))},startsWith(...i){return this.check(pa(...i))},endsWith(...i){return this.check(ha(...i))},min(...i){return this.check(Dn(...i))},max(...i){return this.check(Xi(...i))},length(...i){return this.check(qi(...i))},nonempty(...i){return this.check(Dn(1,...i))},lowercase(i){return this.check(la(i))},uppercase(i){return this.check(da(i))},trim(){return this.check(ya())},normalize(...i){return this.check(ga(...i))},toLowerCase(){return this.check(va())},toUpperCase(){return this.check(_a())},slugify(){return this.check(ba())}})}),$a=m("ZodString",(t,e)=>{Gi.init(t,e),jd.init(t,e),t.email=r=>t.check(rd(Rd,r)),t.url=r=>t.check(nc(lc,r)),t.jwt=r=>t.check(xd(tf,r)),t.emoji=r=>t.check(sd(Md,r)),t.guid=r=>t.check(rc(ac,r)),t.uuid=r=>t.check(nd(an,r)),t.uuidv4=r=>t.check(id(an,r)),t.uuidv6=r=>t.check(od(an,r)),t.uuidv7=r=>t.check(ad(an,r)),t.nanoid=r=>t.check(cd(Cd,r)),t.guid=r=>t.check(rc(ac,r)),t.cuid=r=>t.check(ud(Zd,r)),t.cuid2=r=>t.check(ld(Vd,r)),t.ulid=r=>t.check(dd(Jd,r)),t.base64=r=>t.check(vd(qd,r)),t.base64url=r=>t.check(_d(Qd,r)),t.xid=r=>t.check(fd(Hd,r)),t.ksuid=r=>t.check(pd(Wd,r)),t.ipv4=r=>t.check(hd(Gd,r)),t.ipv6=r=>t.check(md(Kd,r)),t.cidrv4=r=>t.check(gd(Yd,r)),t.cidrv6=r=>t.check(yd(Xd,r)),t.e164=r=>t.check(bd(ef,r)),t.datetime=r=>t.check(fv(r)),t.date=r=>t.check(pv(r)),t.time=r=>t.check(hv(r)),t.duration=r=>t.check(mv(r))});function oc(t){return Cg($a,t)}var ve=m("ZodStringFormat",(t,e)=>{ye.init(t,e),jd.init(t,e)}),Rd=m("ZodEmail",(t,e)=>{Um.init(t,e),ve.init(t,e)});function OI(t){return rd(Rd,t)}var ac=m("ZodGUID",(t,e)=>{Tm.init(t,e),ve.init(t,e)});function TI(t){return rc(ac,t)}var an=m("ZodUUID",(t,e)=>{Bm.init(t,e),ve.init(t,e)});function BI(t){return nd(an,t)}function UI(t){return id(an,t)}function NI(t){return od(an,t)}function EI(t){return ad(an,t)}var lc=m("ZodURL",(t,e)=>{Nm.init(t,e),ve.init(t,e)});function PI(t){return nc(lc,t)}function LI(t){return nc(lc,{protocol:Pt.httpProtocol,hostname:Pt.domain,...b.normalizeParams(t)})}var Md=m("ZodEmoji",(t,e)=>{Em.init(t,e),ve.init(t,e)});function FI(t){return sd(Md,t)}var Cd=m("ZodNanoID",(t,e)=>{Pm.init(t,e),ve.init(t,e)});function jI(t){return cd(Cd,t)}var Zd=m("ZodCUID",(t,e)=>{Lm.init(t,e),ve.init(t,e)});function RI(t){return ud(Zd,t)}var Vd=m("ZodCUID2",(t,e)=>{Fm.init(t,e),ve.init(t,e)});function MI(t){return ld(Vd,t)}var Jd=m("ZodULID",(t,e)=>{jm.init(t,e),ve.init(t,e)});function CI(t){return dd(Jd,t)}var Hd=m("ZodXID",(t,e)=>{Rm.init(t,e),ve.init(t,e)});function ZI(t){return fd(Hd,t)}var Wd=m("ZodKSUID",(t,e)=>{Mm.init(t,e),ve.init(t,e)});function VI(t){return pd(Wd,t)}var Gd=m("ZodIPv4",(t,e)=>{Hm.init(t,e),ve.init(t,e)});function JI(t){return hd(Gd,t)}var zv=m("ZodMAC",(t,e)=>{Gm.init(t,e),ve.init(t,e)});function HI(t){return Vg(zv,t)}var Kd=m("ZodIPv6",(t,e)=>{Wm.init(t,e),ve.init(t,e)});function WI(t){return md(Kd,t)}var Yd=m("ZodCIDRv4",(t,e)=>{Km.init(t,e),ve.init(t,e)});function GI(t){return gd(Yd,t)}var Xd=m("ZodCIDRv6",(t,e)=>{Ym.init(t,e),ve.init(t,e)});function KI(t){return yd(Xd,t)}var qd=m("ZodBase64",(t,e)=>{qm.init(t,e),ve.init(t,e)});function YI(t){return vd(qd,t)}var Qd=m("ZodBase64URL",(t,e)=>{Qm.init(t,e),ve.init(t,e)});function XI(t){return _d(Qd,t)}var ef=m("ZodE164",(t,e)=>{eg.init(t,e),ve.init(t,e)});function qI(t){return bd(ef,t)}var tf=m("ZodJWT",(t,e)=>{tg.init(t,e),ve.init(t,e)});function QI(t){return xd(tf,t)}var ka=m("ZodCustomStringFormat",(t,e)=>{rg.init(t,e),ve.init(t,e)});function e$(t,e,r={}){return xa(ka,t,e,r)}function t$(t){return xa(ka,"hostname",Pt.hostname,t)}function r$(t){return xa(ka,"hex",Pt.hex,t)}function n$(t,e){let r=e?.enc??"hex",i=`${t}_${r}`,n=Pt[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return xa(ka,i,n,e)}var Da=m("ZodNumber",(t,e)=>{Hl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Ay(t,i,n,o),uc(t,"ZodNumber",{gt(i,n){return this.check(rn(i,n))},gte(i,n){return this.check(vt(i,n))},min(i,n){return this.check(vt(i,n))},lt(i,n){return this.check(tn(i,n))},lte(i,n){return this.check(Jt(i,n))},max(i,n){return this.check(Jt(i,n))},int(i){return this.check(Ld(i))},safe(i){return this.check(Ld(i))},positive(i){return this.check(rn(0,i))},nonnegative(i){return this.check(vt(0,i))},negative(i){return this.check(tn(0,i))},nonpositive(i){return this.check(Jt(0,i))},multipleOf(i,n){return this.check(Kn(i,n))},step(i,n){return this.check(Kn(i,n))},finite(){return this}});let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});function Av(t){return Yg(Da,t)}var to=m("ZodNumberFormat",(t,e)=>{ng.init(t,e),Da.init(t,e)});function Ld(t){return qg(to,t)}function i$(t){return Qg(to,t)}function o$(t){return ey(to,t)}function a$(t){return ty(to,t)}function s$(t){return ry(to,t)}var za=m("ZodBoolean",(t,e)=>{qs.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Oy(t,r,i,n)});function Ov(t){return ny(za,t)}var Aa=m("ZodBigInt",(t,e)=>{Wl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Ty(t,i,n,o),t.gte=(i,n)=>t.check(vt(i,n)),t.min=(i,n)=>t.check(vt(i,n)),t.gt=(i,n)=>t.check(rn(i,n)),t.gte=(i,n)=>t.check(vt(i,n)),t.min=(i,n)=>t.check(vt(i,n)),t.lt=(i,n)=>t.check(tn(i,n)),t.lte=(i,n)=>t.check(Jt(i,n)),t.max=(i,n)=>t.check(Jt(i,n)),t.positive=i=>t.check(rn(BigInt(0),i)),t.negative=i=>t.check(tn(BigInt(0),i)),t.nonpositive=i=>t.check(Jt(BigInt(0),i)),t.nonnegative=i=>t.check(vt(BigInt(0),i)),t.multipleOf=(i,n)=>t.check(Kn(i,n));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});function c$(t){return oy(Aa,t)}var rf=m("ZodBigIntFormat",(t,e)=>{ig.init(t,e),Aa.init(t,e)});function u$(t){return sy(rf,t)}function l$(t){return cy(rf,t)}var Tv=m("ZodSymbol",(t,e)=>{og.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>By(t,r,i,n)});function d$(t){return uy(Tv,t)}var Bv=m("ZodUndefined",(t,e)=>{ag.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ny(t,r,i,n)});function f$(t){return ly(Bv,t)}var Uv=m("ZodNull",(t,e)=>{sg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Uy(t,r,i,n)});function Nv(t){return dy(Uv,t)}var Ev=m("ZodAny",(t,e)=>{cg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ly(t,r,i,n)});function p$(){return fy(Ev)}var Pv=m("ZodUnknown",(t,e)=>{ug.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Fy(t,r,i,n)});function eo(){return py(Pv)}var Lv=m("ZodNever",(t,e)=>{lg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Py(t,r,i,n)});function nf(t){return hy(Lv,t)}var Fv=m("ZodVoid",(t,e)=>{dg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ey(t,r,i,n)});function h$(t){return my(Fv,t)}var dc=m("ZodDate",(t,e)=>{fg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>jy(t,i,n,o),t.min=(i,n)=>t.check(vt(i,n)),t.max=(i,n)=>t.check(Jt(i,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});function m$(t){return gy(dc,t)}var jv=m("ZodArray",(t,e)=>{pg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Xy(t,r,i,n),t.element=e.element,uc(t,"ZodArray",{min(r,i){return this.check(Dn(r,i))},nonempty(r){return this.check(Dn(1,r))},max(r,i){return this.check(Xi(r,i))},length(r,i){return this.check(qi(r,i))},unwrap(){return this.element}})});function fc(t,e){return _y(jv,t,e)}function g$(t){let e=t._zod.def.shape;return af(Object.keys(e))}var pc=m("ZodObject",(t,e)=>{hg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>qy(t,r,i,n),b.defineLazy(t,"shape",()=>e.shape),uc(t,"ZodObject",{keyof(){return af(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:eo()})},loose(){return this.clone({...this._zod.def,catchall:eo()})},strict(){return this.clone({...this._zod.def,catchall:nf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return b.extend(this,r)},safeExtend(r){return b.safeExtend(this,r)},merge(r){return b.merge(this,r)},pick(r){return b.pick(this,r)},omit(r){return b.omit(this,r)},partial(...r){return b.partial(cf,this,r[0])},required(...r){return b.required(uf,this,r[0])}})});function y$(t,e){let r={type:"object",shape:t??{},...b.normalizeParams(e)};return new pc(r)}function v$(t,e){return new pc({type:"object",shape:t,catchall:nf(),...b.normalizeParams(e)})}function _$(t,e){return new pc({type:"object",shape:t,catchall:eo(),...b.normalizeParams(e)})}var hc=m("ZodUnion",(t,e)=>{Qs.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>zd(t,r,i,n),t.options=e.options});function of(t,e){return new hc({type:"union",options:t,...b.normalizeParams(e)})}var Rv=m("ZodXor",(t,e)=>{hc.init(t,e),mg.init(t,e),t._zod.processJSONSchema=(r,i,n)=>zd(t,r,i,n),t.options=e.options});function b$(t,e){return new Rv({type:"union",options:t,inclusive:!1,...b.normalizeParams(e)})}var Mv=m("ZodDiscriminatedUnion",(t,e)=>{hc.init(t,e),gg.init(t,e)});function x$(t,e,r){return new Mv({type:"union",options:e,discriminator:t,...b.normalizeParams(r)})}var Cv=m("ZodIntersection",(t,e)=>{yg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Qy(t,r,i,n)});function Zv(t,e){return new Cv({type:"intersection",left:t,right:e})}var Vv=m("ZodTuple",(t,e)=>{Gl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ev(t,r,i,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});function Jv(t,e,r){let i=e instanceof H,n=i?r:e,o=i?e:null;return new Vv({type:"tuple",items:t,rest:o,...b.normalizeParams(n)})}var Sa=m("ZodRecord",(t,e)=>{vg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>tv(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType});function Hv(t,e,r){return!e||!e._zod?new Sa({type:"record",keyType:oc(),valueType:t,...b.normalizeParams(e)}):new Sa({type:"record",keyType:t,valueType:e,...b.normalizeParams(r)})}function w$(t,e,r){let i=gt(t);return i._zod.values=void 0,new Sa({type:"record",keyType:i,valueType:e,...b.normalizeParams(r)})}function S$(t,e,r){return new Sa({type:"record",keyType:t,valueType:e,mode:"loose",...b.normalizeParams(r)})}var Wv=m("ZodMap",(t,e)=>{_g.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ky(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(nn(...r)),t.nonempty=r=>t.check(nn(1,r)),t.max=(...r)=>t.check(Yn(...r)),t.size=(...r)=>t.check(Yi(...r))});function I$(t,e,r){return new Wv({type:"map",keyType:t,valueType:e,...b.normalizeParams(r)})}var Gv=m("ZodSet",(t,e)=>{bg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Yy(t,r,i,n),t.min=(...r)=>t.check(nn(...r)),t.nonempty=r=>t.check(nn(1,r)),t.max=(...r)=>t.check(Yn(...r)),t.size=(...r)=>t.check(Yi(...r))});function $$(t,e){return new Gv({type:"set",valueType:t,...b.normalizeParams(e)})}var Ia=m("ZodEnum",(t,e)=>{xg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Ry(t,i,n,o),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(i,n)=>{let o={};for(let a of i)if(r.has(a))o[a]=e.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ia({...e,checks:[],...b.normalizeParams(n),entries:o})},t.exclude=(i,n)=>{let o={...e.entries};for(let a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Ia({...e,checks:[],...b.normalizeParams(n),entries:o})}});function af(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Ia({type:"enum",entries:r,...b.normalizeParams(e)})}function k$(t,e){return new Ia({type:"enum",entries:t,...b.normalizeParams(e)})}var Kv=m("ZodLiteral",(t,e)=>{wg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>My(t,r,i,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function D$(t,e){return new Kv({type:"literal",values:Array.isArray(t)?t:[t],...b.normalizeParams(e)})}var Yv=m("ZodFile",(t,e)=>{Sg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Vy(t,r,i,n),t.min=(r,i)=>t.check(nn(r,i)),t.max=(r,i)=>t.check(Yn(r,i)),t.mime=(r,i)=>t.check(ma(Array.isArray(r)?r:[r],i))});function z$(t){return by(Yv,t)}var Xv=m("ZodTransform",(t,e)=>{Ig.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Gy(t,r,i,n),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Vn(t.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(b.issue(o,r.value,e));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),r.issues.push(b.issue(a))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function sf(t){return new Xv({type:"transform",transform:t})}var cf=m("ZodOptional",(t,e)=>{Kl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ad(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function sc(t){return new cf({type:"optional",innerType:t})}var qv=m("ZodExactOptional",(t,e)=>{$g.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ad(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function Qv(t){return new qv({type:"optional",innerType:t})}var e_=m("ZodNullable",(t,e)=>{kg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>rv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function cc(t){return new e_({type:"nullable",innerType:t})}function A$(t){return sc(cc(t))}var t_=m("ZodDefault",(t,e)=>{Dg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>iv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function r_(t,e){return new t_({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():b.shallowClone(e)}})}var n_=m("ZodPrefault",(t,e)=>{zg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ov(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function i_(t,e){return new n_({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():b.shallowClone(e)}})}var uf=m("ZodNonOptional",(t,e)=>{Ag.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>nv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function o_(t,e){return new uf({type:"nonoptional",innerType:t,...b.normalizeParams(e)})}var a_=m("ZodSuccess",(t,e)=>{Og.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Jy(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function O$(t){return new a_({type:"success",innerType:t})}var s_=m("ZodCatch",(t,e)=>{Tg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>av(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function c_(t,e){return new s_({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var u_=m("ZodNaN",(t,e)=>{Bg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Cy(t,r,i,n)});function T$(t){return vy(u_,t)}var mc=m("ZodPipe",(t,e)=>{Yl.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>sv(t,r,i,n),t.in=e.in,t.out=e.out});function Fd(t,e){return new mc({type:"pipe",in:t,out:e})}var gc=m("ZodCodec",(t,e)=>{mc.init(t,e),ec.init(t,e)});function B$(t,e,r){return new gc({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}function U$(t){let e=t._zod.def;return new gc({type:"pipe",in:e.out,out:e.in,transform:e.reverseTransform,reverseTransform:e.transform})}var l_=m("ZodPreprocess",(t,e)=>{mc.init(t,e),Ug.init(t,e)}),d_=m("ZodReadonly",(t,e)=>{Ng.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>cv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function f_(t){return new d_({type:"readonly",innerType:t})}var p_=m("ZodTemplateLiteral",(t,e)=>{Eg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Zy(t,r,i,n)});function N$(t,e){return new p_({type:"template_literal",parts:t,...b.normalizeParams(e)})}var h_=m("ZodLazy",(t,e)=>{Fg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>lv(t,r,i,n),t.unwrap=()=>t._zod.def.getter()});function m_(t){return new h_({type:"lazy",getter:t})}var g_=m("ZodPromise",(t,e)=>{Lg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>uv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});function E$(t){return new g_({type:"promise",innerType:t})}var y_=m("ZodFunction",(t,e)=>{Pg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Wy(t,r,i,n)});function P$(t){return new y_({type:"function",input:Array.isArray(t?.input)?Jv(t?.input):t?.input??fc(eo()),output:t?.output??eo()})}var yc=m("ZodCustom",(t,e)=>{jg.init(t,e),Y.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Hy(t,r,i,n)});function L$(t){let e=new we({check:"custom"});return e._zod.check=t,e}function F$(t,e){return xy(yc,t??(()=>!0),e)}function v_(t,e={}){return wy(yc,t,e)}function __(t,e){return Sy(t,e)}var j$=Iy,R$=$y;function M$(t,e={}){let r=new yc({type:"custom",check:"custom",fn:i=>i instanceof t,abort:!0,...b.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=i=>{i.value instanceof t||i.issues.push({code:"invalid_type",expected:t.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var C$=(...t)=>ky({Codec:gc,Boolean:za,String:$a},...t);function Z$(t){let e=m_(()=>of([oc(t),Av(),Ov(),Nv(),fc(e),Hv(oc(),e)]));return e}function V$(t,e){return new l_({type:"pipe",in:sf(t),out:e})}var $U={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 kU(t){Oe({customError:t})}function DU(){return Oe().customError}var b_;(function(t){})(b_||(b_={}));var I={...ic,...Bd,iso:Qi},zU=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 AU(t,e){let r=t.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}function OU(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let i=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}function J$(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return I.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return I.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let o=OU(n,e),a=ut(o,e);return e.refs.set(n,a),e.processing.delete(n),a}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return I.null();if(n.length===0)return I.never();if(n.length===1)return I.literal(n[0]);if(n.every(a=>typeof a=="string"))return I.enum(n);let o=n.map(a=>I.literal(a));return o.length<2?o[0]:I.union([o[0],o[1],...o.slice(2)])}if(t.const!==void 0)return I.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...t,type:o};return J$(a,e)});return n.length===0?I.never():n.length===1?n[0]:I.union(n)}if(!r)return I.any();let i;switch(r){case"string":{let n=I.string();if(t.format){let o=t.format;o==="email"?n=n.check(I.email()):o==="uri"||o==="uri-reference"?n=n.check(I.url()):o==="uuid"||o==="guid"?n=n.check(I.uuid()):o==="date-time"?n=n.check(I.iso.datetime()):o==="date"?n=n.check(I.iso.date()):o==="time"?n=n.check(I.iso.time()):o==="duration"?n=n.check(I.iso.duration()):o==="ipv4"?n=n.check(I.ipv4()):o==="ipv6"?n=n.check(I.ipv6()):o==="mac"?n=n.check(I.mac()):o==="cidr"?n=n.check(I.cidrv4()):o==="cidr-v6"?n=n.check(I.cidrv6()):o==="base64"?n=n.check(I.base64()):o==="base64url"?n=n.check(I.base64url()):o==="e164"?n=n.check(I.e164()):o==="jwt"?n=n.check(I.jwt()):o==="emoji"?n=n.check(I.emoji()):o==="nanoid"?n=n.check(I.nanoid()):o==="cuid"?n=n.check(I.cuid()):o==="cuid2"?n=n.check(I.cuid2()):o==="ulid"?n=n.check(I.ulid()):o==="xid"?n=n.check(I.xid()):o==="ksuid"&&(n=n.check(I.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?I.number().int():I.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),i=n;break}case"boolean":{i=I.boolean();break}case"null":{i=I.null();break}case"object":{let n={},o=t.properties||{},a=new Set(t.required||[]);for(let[u,c]of Object.entries(o)){let l=ut(c,e);n[u]=a.has(u)?l:l.optional()}if(t.propertyNames){let u=ut(t.propertyNames,e),c=t.additionalProperties&&typeof t.additionalProperties=="object"?ut(t.additionalProperties,e):I.any();if(Object.keys(n).length===0){i=I.record(u,c);break}let l=I.object(n).passthrough(),d=I.looseRecord(u,c);i=I.intersection(l,d);break}if(t.patternProperties){let u=t.patternProperties,c=Object.keys(u),l=[];for(let p of c){let f=ut(u[p],e),y=I.string().regex(new RegExp(p));l.push(I.looseRecord(y,f))}let d=[];if(Object.keys(n).length>0&&d.push(I.object(n).passthrough()),d.push(...l),d.length===0)i=I.object({}).passthrough();else if(d.length===1)i=d[0];else{let p=I.intersection(d[0],d[1]);for(let f=2;f<d.length;f++)p=I.intersection(p,d[f]);i=p}break}let s=I.object(n);t.additionalProperties===!1?i=s.strict():typeof t.additionalProperties=="object"?i=s.catchall(ut(t.additionalProperties,e)):i=s.passthrough();break}case"array":{let n=t.prefixItems,o=t.items;if(n&&Array.isArray(n)){let a=n.map(u=>ut(u,e)),s=o&&typeof o=="object"&&!Array.isArray(o)?ut(o,e):void 0;s?i=I.tuple(a).rest(s):i=I.tuple(a),typeof t.minItems=="number"&&(i=i.check(I.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(I.maxLength(t.maxItems)))}else if(Array.isArray(o)){let a=o.map(u=>ut(u,e)),s=t.additionalItems&&typeof t.additionalItems=="object"?ut(t.additionalItems,e):void 0;s?i=I.tuple(a).rest(s):i=I.tuple(a),typeof t.minItems=="number"&&(i=i.check(I.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(I.maxLength(t.maxItems)))}else if(o!==void 0){let a=ut(o,e),s=I.array(a);typeof t.minItems=="number"&&(s=s.min(t.minItems)),typeof t.maxItems=="number"&&(s=s.max(t.maxItems)),i=s}else i=I.array(I.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function ut(t,e){if(typeof t=="boolean")return t?I.any():I.never();let r=J$(t,e),i=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let s=t.anyOf.map(c=>ut(c,e)),u=I.union(s);r=i?I.intersection(r,u):u}if(t.oneOf&&Array.isArray(t.oneOf)){let s=t.oneOf.map(c=>ut(c,e)),u=I.xor(s);r=i?I.intersection(r,u):u}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=i?r:I.any();else{let s=i?r:ut(t.allOf[0],e),u=i?0:1;for(let c=u;c<t.allOf.length;c++)s=I.intersection(s,ut(t.allOf[c],e));r=s}t.nullable===!0&&e.version==="openapi-3.0"&&(r=I.nullable(r)),t.readOnly===!0&&(r=I.readonly(r)),t.default!==void 0&&(r=r.default(t.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in t&&(n[s]=t[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in t&&(n[s]=t[s]);for(let s of Object.keys(t))zU.has(s)||(n[s]=t[s]);return Object.keys(n).length>0&&e.registry.add(r,n),t.description&&(r=r.describe(t.description)),r}function H$(t,e){if(typeof t=="boolean")return t?I.any():I.never();let r;try{r=JSON.parse(JSON.stringify(t))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=AU(r,e?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:e?.registry??rt};return ut(r,o)}var lf={};We(lf,{bigint:()=>NU,boolean:()=>UU,date:()=>EU,number:()=>BU,string:()=>TU});function TU(t){return Zg($a,t)}function BU(t){return Xg(Da,t)}function UU(t){return iy(za,t)}function NU(t){return ay(Aa,t)}function EU(t){return yy(dc,t)}Oe(Xl());var bt=fe.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),W$=fe.object({rgbMin:fe.number().finite().optional(),rgbMax:fe.number().finite().optional(),lnScaleMin:fe.number().finite().optional(),lnScaleMax:fe.number().finite().optional(),sh1Max:fe.number().finite().optional(),sh2Max:fe.number().finite().optional(),sh3Max:fe.number().finite().optional(),lodOpacity:fe.boolean().optional()}).passthrough(),PU=fe.object({offset:bt,bytes:bt,base:bt.optional(),count:bt.optional(),filename:fe.string().optional()}).passthrough(),G$=fe.object({version:fe.literal(1),type:fe.literal("gsplat"),count:bt,maxSh:bt.optional(),lodTree:fe.boolean().optional(),chunkSize:bt.optional(),allChunkBytes:bt.optional(),chunks:fe.array(PU),splatEncoding:W$.optional(),shCodeCount:bt.optional(),comment:fe.string().optional()}).passthrough(),LU=fe.object({offset:bt,bytes:bt,property:fe.string(),encoding:fe.string(),compression:fe.string().optional(),min:fe.number().finite().optional(),max:fe.number().finite().optional()}).passthrough(),K$=fe.object({version:fe.literal(1),base:bt,count:bt,payloadBytes:bt,maxSh:bt.optional(),lodTree:fe.boolean().optional(),splatEncoding:W$.optional(),properties:fe.array(LU)}).passthrough();var FU=809779538,jU=1128546642,ei=8,RU=8,MU=new TextDecoder;function x_(t){let e=df(t);if(!e)throw new Error("RADLoader: file must contain a complete RAD metadata header.");return e}function df(t){let e=X$(t);if(e.byteLength<ei)return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0);if(i!==FU)throw new Error(`RADLoader: RAD0 magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=ei+n;if(e.byteLength<o)return null;let a=G$.parse(Y$(e.subarray(ei,o),"RADLoader: failed to parse RAD metadata JSON."));return CU(a,n)}function ff(t){let e=X$(t);if(e.byteLength<ei)throw new Error("RADLoader: RADC chunk must contain an 8-byte metadata header.");let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0);if(i!==jU)throw new Error(`RADLoader: RADC magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=ei+n,a=ei+pf(n),s=a+RU;if(e.byteLength<s)throw new Error("RADLoader: RADC chunk must contain a complete metadata header.");let u=K$.parse(Y$(e.subarray(ei,o),"RADLoader: failed to parse RADC metadata JSON.")),c=VU(r,a,"RADC payload byte length");return ZU(u,n,s,c)}function pf(t){return t+7&-8}function CU(t,e){return{...t,headerJsonByteLength:e,chunksByteOffset:ei+pf(e)}}function ZU(t,e,r,i){if(t.payloadBytes!==i)throw new Error("RADLoader: RADC metadata payload byte length does not match binary header.");return{...t,payloadBytes:i,headerJsonByteLength:e,payloadByteOffset:r,chunkByteLength:r+i}}function Y$(t,e){try{return JSON.parse(MU.decode(t))}catch{throw new Error(e)}}function VU(t,e,r){let i=t.getBigUint64(e,!0);if(i>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`RADLoader: ${r} exceeds Number.MAX_SAFE_INTEGER.`);return Number(i)}function X$(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var JU="4.5.3",q$={dataType:null,batchType:null,...ro,version:JU,options:{}};var HU=new Qo,WU=new Qo({raw:!0});function Q$(t,e){return Gr(S_(t,e))}function S_(t,e){let r=SN(t),i=vN(ff(r),e);if(r.byteLength<i.chunkByteLength)throw new Error("RADLoader: RADC chunk payload is incomplete.");let n=i.count,o=Oa(r,i,yN(i,"center"),3),a=GU(r,i,n),s=YU(r,i,n),u=XU(r,i,n),c=qU(r,i,n),{colors:l,sphericalHarmonicDcs:d}=pN(s),p=e?.radChunk?.includeLoDTree??!0,f=p?eN(r,i,"child_count"):null,y=p?tN(r,i,"child_start"):null,k=e?.radChunk?.includeSphericalHarmonics??!1?QU(r,i):null;return{format:"rad",splatCount:n,positions:o,scales:u,rotations:c,colors:l,sphericalHarmonicDcs:d,opacities:a,sphericalHarmonics:k?.values,sphericalHarmonicsComponentCount:k?.componentCount,loaderData:{format:"rad",base:i.base,count:i.count,maxSh:i.maxSh??0,lodTree:i.lodTree??!1,splatEncoding:i.splatEncoding,childCounts:f??void 0,childStarts:y??void 0}}}function GU(t,e,r){let i=sn(e,"alpha");if(!i)return new Float32Array(r).fill(1);let n=Oa(t,e,i,1);for(let o=0;o<n.length;o++)n[o]=KU(n[o],e,i);return n}function KU(t,e,r){let i=Math.max(t,0);return!e.splatEncoding?.lodOpacity||r.encoding!=="r8"&&r.encoding!=="r8_delta"?i:i*2}function YU(t,e,r){let i=sn(e,"rgb");return i?Oa(t,e,i,3):new Float32Array(r*3).fill(1)}function XU(t,e,r){let i=sn(e,"scales");return i?Oa(t,e,i,3):new Float32Array(r*3).fill(1)}function qU(t,e,r){let i=sn(e,"orientation");if(!i)return hN(r);let n=hf(t,e,i);switch(i.encoding){case"oct88r8":return fN(n,r);case"f32":case"f16":{let o=Oa(t,e,i,3),a=new Float32Array(r*4);for(let s=0;s<r;s++){let u=s*3,c=s*4,l=o[u+0],d=o[u+1],p=o[u+2],f=Math.sqrt(Math.max(0,1-l*l-d*d-p*p)),y=_n(f,l,d,p);a.set(y,c)}return a}default:throw new Error(`RADLoader: unsupported orientation encoding ${i.encoding}.`)}}function QU(t,e){let r=[{property:sn(e,"sh1"),dimensions:9},{property:sn(e,"sh2"),dimensions:15},{property:sn(e,"sh3"),dimensions:21}].filter(a=>a.property!==void 0);if(r.length===0)return null;let i=r.map(a=>({values:Oa(t,e,a.property,a.dimensions),dimensions:a.dimensions})),n=i.reduce((a,s)=>a+s.dimensions,0),o=new Float32Array(e.count*n);for(let a=0;a<e.count;a++){let s=a*n;for(let u of i){let c=a*u.dimensions;o.set(u.values.subarray(c,c+u.dimensions),s),s+=u.dimensions}}return{values:o,componentCount:n}}function Oa(t,e,r,i){let n=hf(t,e,r);switch(r.encoding){case"f32":return nN(n,i,e.count);case"f16":return ek(n,i,e.count);case"f32_lebytes":return iN(n,i,e.count);case"f16_lebytes":return oN(n,i,e.count);case"r8":return aN(n,i,e.count,w_(e,r),vc(e,r));case"r8_delta":return sN(n,i,e.count,w_(e,r),vc(e,r));case"s8":return cN(n,i,e.count,vc(e,r));case"s8_delta":return uN(n,i,e.count,vc(e,r));case"ln_0r8":return lN(n,i,e.count,w_(e,r),vc(e,r));case"ln_f16":return dN(n,i,e.count);default:throw new Error(`RADLoader: unsupported ${r.property} encoding ${r.encoding}.`)}}function eN(t,e,r){let i=sn(e,r);if(!i)return null;if(i.encoding!=="u16")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=hf(t,e,i),o=new Uint16Array(e.count);for(let a=0;a<e.count;a++)o[a]=n[a*2]|n[a*2+1]<<8;return o}function tN(t,e,r){let i=sn(e,r);if(!i)return null;if(i.encoding!=="u32")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=hf(t,e,i),o=new DataView(n.buffer,n.byteOffset,n.byteLength),a=new Uint32Array(e.count);for(let s=0;s<e.count;s++)a[s]=o.getUint32(s*4,!0);return a}function hf(t,e,r){let i=pf(r.bytes),n=e.payloadByteOffset+r.offset;if(n+i>t.byteLength||r.offset+i>e.payloadBytes)throw new Error(`RADLoader: property ${r.property} exceeds RADC payload byte length.`);let a=t.subarray(n,n+r.bytes);if(!r.compression)return a;if(r.compression!=="gz")throw new Error(`RADLoader: unsupported property compression ${r.compression}.`);return rN(a,r.property)}function rN(t,e){let r=wN(t);try{return new Uint8Array(HU.decompressSync(r))}catch{try{return new Uint8Array(WU.decompressSync(r))}catch{throw new Error(`RADLoader: failed to decompress RADC property ${e}.`)}}}function nN(t,e,r){let i=new DataView(t.buffer,t.byteOffset,t.byteLength),n=new Float32Array(r*e);for(let o=0;o<r;o++)for(let a=0;a<e;a++)n[o*e+a]=i.getFloat32((a*r+o)*4,!0);return n}function ek(t,e,r){let i=new Float32Array(r*e);for(let n=0;n<r;n++)for(let o=0;o<e;o++){let a=(o*r+n)*2;i[n*e+o]=bs(t[a]|t[a+1]<<8)}return i}function iN(t,e,r){let i=new Float32Array(r*e),n=r*e,o=new Uint8Array(4),a=new DataView(o.buffer);for(let s=0;s<r;s++)for(let u=0;u<e;u++){let c=u*r+s;for(let l=0;l<4;l++)o[l]=t[c+n*l];i[s*e+u]=a.getFloat32(0,!0)}return i}function oN(t,e,r){let i=new Float32Array(r*e),n=r*e;for(let o=0;o<r;o++)for(let a=0;a<e;a++){let s=a*r+o;i[o*e+a]=bs(t[s]|t[s+n]<<8)}return i}function aN(t,e,r,i,n){let o=new Float32Array(r*e),a=n-i;for(let s=0;s<r;s++)for(let u=0;u<e;u++)o[s*e+u]=t[u*r+s]/255*a+i;return o}function sN(t,e,r,i,n){let o=new Float32Array(r*e),a=n-i,s=new Uint8Array(e);for(let u=0;u<r;u++)for(let c=0;c<e;c++){let l=c*r+u,d=s[c]+t[l]&255;s[c]=d,o[u*e+c]=d/255*a+i}return o}function cN(t,e,r,i){let n=new Float32Array(r*e);for(let o=0;o<r;o++)for(let a=0;a<e;a++){let s=t[a*r+o];n[o*e+a]=(s<<24>>24)/127*i}return n}function uN(t,e,r,i){let n=new Float32Array(r*e),o=new Uint8Array(e);for(let a=0;a<r;a++)for(let s=0;s<e;s++){let u=s*r+a,c=o[s]+t[u]&255;o[s]=c,n[a*e+s]=(c<<24>>24)/127*i}return n}function lN(t,e,r,i,n){let o=new Float32Array(r*e);for(let a=0;a<r;a++)for(let s=0;s<e;s++)o[a*e+s]=mN(t[s*r+a],i,n);return o}function dN(t,e,r){let i=ek(t,e,r);for(let n=0;n<i.length;n++)i[n]=Math.exp(i[n]);return i}function fN(t,e){let r=new Float32Array(e*4);for(let i=0;i<e;i++){let n=i*3,[o,a,s,u]=gN(t[n],t[n+1],t[n+2]);r.set(_n(u,o,a,s),i*4)}return r}function pN(t){let e=new Uint8Array(t.length),r=new Float32Array(t.length);for(let i=0;i<t.length;i++){let n=t[i];e[i]=xN(n),r[i]=(n-.5)/wp}return{colors:e,sphericalHarmonicDcs:r}}function hN(t){let e=new Float32Array(t*4);for(let r=0;r<t;r++)e[r*4]=1;return e}function mN(t,e,r){if(t===0)return 0;let i=(r-e)/254;return Math.exp(e+(t-1)*i)}function gN(t,e,r){let i=t/255*2-1,n=e/255*2-1,o=1-Math.abs(i)-Math.abs(n),a=Math.max(-o,0);i=i>=0?i-a:i+a,n=n>=0?n-a:n+a;let s=Math.hypot(i,n,o),u=s>Number.EPSILON?i/s:1,c=s>Number.EPSILON?n/s:0,l=s>Number.EPSILON?o/s:0,d=r/255*.5*Math.PI,p=Math.sin(d);return[u*p,c*p,l*p,Math.cos(d)]}function yN(t,e){let r=sn(t,e);if(!r)throw new Error(`RADLoader: RADC chunk is missing ${e} property.`);return r}function sn(t,e){return t.properties.find(r=>r.property===e)}function vN(t,e){let r=e?.radChunk?.splatEncoding;return r?{...t,splatEncoding:{...r,...t.splatEncoding}}:t}function w_(t,e){if(e.min===void 0){let r=_N(t.splatEncoding,e.property);if(r!==void 0)return r;throw new Error(`RADLoader: RADC property ${e.property} is missing min.`)}return e.min}function vc(t,e){if(e.max===void 0){let r=bN(t.splatEncoding,e.property);if(r!==void 0)return r;throw new Error(`RADLoader: RADC property ${e.property} is missing max.`)}return e.max}function _N(t,e){switch(e){case"rgb":return t?.rgbMin;case"scales":return t?.lnScaleMin;default:return}}function bN(t,e){switch(e){case"rgb":return t?.rgbMax;case"scales":return t?.lnScaleMax;case"sh1":return t?.sh1Max;case"sh2":return t?.sh2Max;case"sh3":return t?.sh3Max;default:return}}function xN(t){return Math.round(Math.min(Math.max(t,0),1)*255)}function wN(t){let e=new Uint8Array(t.byteLength);return e.set(t),e.buffer}function SN(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var tk={...q$,parse:async t=>x_(t),parseSync:t=>x_(t)};var IN=[64*1024,256*1024,1024*1024],$N=4,kN="4.5.3",I_={dataType:null,batchType:null,...ro,name:"RADSourceLoader",version:kN,type:"rad",fromUrl:!0,fromBlob:!0,options:{rad:{headers:void 0,withCredentials:!1,headerByteLengths:void 0}},defaultOptions:{rad:{headers:void 0,withCredentials:!1,headerByteLengths:void 0}},testURL:t=>/\.rad(?:$|[?#])/i.test(t),createDataSource:(t,e)=>new _c(t,e)},_c=class extends Mo{metadata;_metadataPromise=null;_chunkMetadataPromises=new Map;constructor(e,r){super(e,r,I_.defaultOptions),this.metadata=this.getMetadata()}async initialize(){await this.getMetadata()}async getMetadata(){return this._metadataPromise||(this._metadataPromise=this._loadMetadata()),await this._metadataPromise}async getChunkCount(){return(await this.getMetadata()).chunks.length}async getChunkUrl(e){let r=await this.getMetadata(),i=this._getChunkRange(r,e);return i.filename?mf(this.url,i.filename):typeof this.data=="string"?this.url:null}async getChunk(e,r={}){let i=await this.getMetadata(),n=this._getChunkRange(i,e);if(n.filename){if(typeof this.data!="string")throw new Error("RADSource: sidecar RADC chunks require a URL-backed RAD source.");return await this._fetchArrayBuffer(mf(this.url,n.filename),void 0,{signal:r.signal})}if(n.bytes===0)return new ArrayBuffer(0);let o=i.chunksByteOffset+n.offset;return typeof this.data!="string"?await this.data.slice(o,o+n.bytes).arrayBuffer():await this._fetchArrayBuffer(this.url,{offset:o,bytes:n.bytes},{signal:r.signal})}async getChunkMetadata(e,r={}){let i=this._chunkMetadataPromises.get(e);return i||(i=this.getChunk(e,r).then(n=>ff(n)),this._chunkMetadataPromises.set(e,i)),await i}async getChunkSplats(e,r={}){let i=await this.getMetadata();return S_(await this.getChunk(e,r),this._getChunkDecodeOptions(i,r))}async getChunkTable(e,r={}){let i=await this.getMetadata();return Q$(await this.getChunk(e,r),this._getChunkDecodeOptions(i,r))}async*getChunkTables(e={}){let r=await this.getMetadata(),i=e.startChunkIndex??0,n=e.maxChunks??Number.POSITIVE_INFINITY,o=e.maxSplats??Number.POSITIVE_INFINITY,a=0,s=0;if(e.pruneLoadedLoDParents){let u=DN(r,i,n,o),c=await this._getChunkSplatsConcurrently(u,e),l=0;for(let d of c){a++,s+=d.splatCount;let p=AN(d);l=Math.max(l,p+d.splatCount)}for(let d of c)yield Gr(ON(d,l));return}for(let u=i;u<r.chunks.length&&a<n&&s<o;u++){let c=await this.getChunkTable(u,e);a++,s+=c.data.numRows,yield c}}async _getChunkSplatsConcurrently(e,r){let i=new Array(e.length),n=zN(r.maxConcurrentChunkRequests),o=0;async function a(u){for(;o<e.length;){let c=o++,l=e[c];i[c]=await u.getChunkSplats(l,r)}}let s=Math.min(n,e.length);return await Promise.all(Array.from({length:s},()=>a(this))),i}_getChunkDecodeOptions(e,r){return{...r,radChunk:{splatEncoding:e.splatEncoding,...r.radChunk}}}async _loadMetadata(){let e=this.options.rad?.headerByteLengths?.length?this.options.rad.headerByteLengths:IN;if(typeof this.data!="string"){let r=Math.min(this.data.size,Math.max(...e)),i=df(await this.data.slice(0,r).arrayBuffer());if(i)return i;throw new Error("RADSource: Blob does not contain a complete RAD metadata header.")}for(let r of e){let i=df(await this._fetchArrayBuffer(this.url,{offset:0,bytes:r}));if(i)return i}throw new Error("RADSource: failed to load a complete RAD metadata header.")}_getChunkRange(e,r){if(!Number.isInteger(r)||r<0||r>=e.chunks.length)throw new Error(`RADSource: chunk index ${r} is outside 0-${e.chunks.length-1}.`);return e.chunks[r]}async _fetchArrayBuffer(e,r,i={}){let n=await this._fetchResponse(e,this._getRequestInit(r,i));if(!n.ok)throw new Error(`RADSource: failed to fetch ${e}: ${n.status} ${n.statusText}`);let o=await n.arrayBuffer();return r&&n.status!==206&&o.byteLength>=r.offset+r.bytes?o.slice(r.offset,r.offset+r.bytes):r&&o.byteLength>r.bytes?o.slice(0,r.bytes):o}async _fetchResponse(e,r){return await this.fetch(e,r)}_getRequestInit(e,r={}){let i=new Headers(this.options.rad?.headers);return e&&e.bytes>0&&i.set("Range",`bytes=${e.offset}-${e.offset+e.bytes-1}`),{headers:i,credentials:this.options.rad?.withCredentials?"include":"same-origin",signal:r.signal}}};function DN(t,e,r,i){let n=[],o=0;for(let a=e;a<t.chunks.length&&n.length<r&&o<i;a++){let s=t.chunks[a];n.push(a),o+=s?.count??t.chunkSize??0}return n}function zN(t){return Number.isFinite(t)&&t>0?Math.floor(t):$N}function AN(t){return typeof t.loaderData?.base=="number"?t.loaderData.base:0}function ON(t,e){let r=t.loaderData?.childCounts,i=t.loaderData?.childStarts;if(!(r instanceof Uint16Array)||!(i instanceof Uint32Array))return t;let n=new Uint32Array(t.splatCount),o=0;for(let u=0;u<t.splatCount;u++){let c=r[u],l=i[u];c>0&&l<e||(n[o++]=u)}if(o===t.splatCount)return t;let a=n.subarray(0,o),s=t.sphericalHarmonicsComponentCount??0;return{...t,splatCount:o,positions:zn(t.positions,3,a),scales:zn(t.scales,3,a),rotations:zn(t.rotations,4,a),colors:zn(t.colors,3,a),sphericalHarmonicDcs:t.sphericalHarmonicDcs?zn(t.sphericalHarmonicDcs,3,a):void 0,opacities:zn(t.opacities,1,a),sphericalHarmonics:t.sphericalHarmonics&&s?zn(t.sphericalHarmonics,s,a):void 0,loaderData:{...t.loaderData,count:o,childCounts:zn(r,1,a),childStarts:zn(i,1,a)}}}function zn(t,e,r){let i=new t.constructor(r.length*e);for(let n=0;n<r.length;n++){let o=r[n]*e,a=n*e;i.set(t.subarray(o,o+e),a)}return i}function mf(t,e){if(/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith("/"))return e;if(!t)throw new Error("RADSource: cannot resolve a sidecar RADC chunk without a RAD URL.");try{return new URL(e,t).toString()}catch{let[r,i=""]=t.split(/([?#].*)/,2),n=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));return`${n>=0?r.slice(0,n+1):""}${e}${i}`}}return ck(bc);})();
81
81
  return __exports__;
82
82
  });