@loaders.gl/splats 5.0.0-alpha.1 → 5.0.0-alpha.11
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/LICENSE +14 -3
- package/dist/dist.dev.js +36757 -17782
- package/dist/dist.min.js +68 -7
- package/dist/index.cjs +2769 -838
- package/dist/index.cjs.map +3 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/ksplat-loader-types.js +1 -1
- package/dist/ksplat-loader-types.js.map +1 -1
- package/dist/lib/parse-rad-chunk.js +3 -3
- package/dist/lib/parse-rad-chunk.js.map +1 -1
- package/dist/lib/parse-rad.d.ts +23 -7
- package/dist/lib/parse-rad.d.ts.map +1 -1
- package/dist/lib/parse-rad.js +10 -135
- package/dist/lib/parse-rad.js.map +1 -1
- package/dist/lib/parse-spz.d.ts.map +1 -1
- package/dist/lib/parse-spz.js +153 -4
- package/dist/lib/parse-spz.js.map +1 -1
- package/dist/rad-loader-types.js +1 -1
- package/dist/rad-loader-types.js.map +1 -1
- package/dist/rad-metadata.schema.json +133 -0
- package/dist/rad-source-loader.js +1 -1
- package/dist/rad-source-loader.js.map +1 -1
- package/dist/rad-zod-schema.cjs +81 -0
- package/dist/rad-zod-schema.cjs.map +6 -0
- package/dist/rad-zod-schema.d.ts +88 -0
- package/dist/rad-zod-schema.d.ts.map +1 -0
- package/dist/rad-zod-schema.js +70 -0
- package/dist/rad-zod-schema.js.map +1 -0
- package/dist/radc-metadata.schema.json +112 -0
- package/dist/splat-loader-types.js +1 -1
- package/dist/splat-loader-types.js.map +1 -1
- package/dist/spz-loader-types.js +1 -1
- package/dist/spz-loader-types.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +17 -8
- package/src/index.ts +4 -1
- package/src/lib/parse-rad-chunk.ts +3 -3
- package/src/lib/parse-rad.ts +46 -167
- package/src/lib/parse-spz.ts +190 -5
- package/src/rad-zod-schema.ts +83 -0
- package/src/types.ts +7 -0
package/dist/dist.min.js
CHANGED
|
@@ -4,15 +4,76 @@
|
|
|
4
4
|
else if (typeof define === 'function' && define.amd) define([], factory);
|
|
5
5
|
else if (typeof exports === 'object') exports['loaders'] = factory();
|
|
6
6
|
else root['loaders'] = factory();})(globalThis, function () {
|
|
7
|
-
"use strict";var __exports__=(()=>{var Ig=Object.create;var Bs=Object.defineProperty;var Ag=Object.getOwnPropertyDescriptor;var Bg=Object.getOwnPropertyNames;var Dg=Object.getPrototypeOf,Tg=Object.prototype.hasOwnProperty;var Eg=(r,t,e)=>t in r?Bs(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var d=(r,t)=>()=>(r&&(t=r(r=0)),t);var Rt=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),ye=(r,t)=>{for(var e in t)Bs(r,e,{get:t[e],enumerable:!0})},Qo=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bg(t))!Tg.call(r,i)&&i!==e&&Bs(r,i,{get:()=>t[i],enumerable:!(n=Ag(t,i))||n.enumerable});return r},ta=(r,t,e)=>(Qo(r,t,"default"),e&&Qo(e,t,"default")),Sl=(r,t,e)=>(e=r!=null?Ig(Dg(r)):{},Qo(t||!r||!r.__esModule?Bs(e,"default",{value:r,enumerable:!0}):e,r)),Og=r=>Qo(Bs({},"__esModule",{value:!0}),r);var Od=(r,t,e)=>(Eg(r,typeof t!="symbol"?t+"":t,e),e);var Fd=Rt((I1,Ld)=>{Ld.exports=globalThis.loaders});var ea,ra,na,wi,xn=d(()=>{"use strict";ea={name:"SPLAT",id:"splat",module:"splats",format:"splat",extensions:["splat"],mimeTypes:["application/octet-stream"],binary:!0},ra={name:"KSPLAT",id:"ksplat",module:"splats",format:"ksplat",extensions:["ksplat"],mimeTypes:["application/octet-stream"],binary:!0},na={name:"SPZ",id:"spz",module:"splats",format:"spz",extensions:["spz"],mimeTypes:["application/octet-stream"],binary:!0,tests:[new Uint8Array([78,71,83,80]).buffer]},wi={name:"RAD",id:"rad",module:"splats",format:"rad",extensions:["rad"],mimeTypes:["application/octet-stream"],binary:!0,tests:[new Uint8Array([82,65,68,48]).buffer]}});function Md(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]]);return e}function b(r,t,e,n){function i(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((n=n.apply(r,t||[])).next())})}function Nd(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(r){return this instanceof P?(this.v=r,this):new P(r)}function _e(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(p){return function(y){return Promise.resolve(y).then(p,h)}}function a(p,y){n[p]&&(i[p]=function(g){return new Promise(function(N,S){s.push([p,g,N,S])>1||l(p,g)})},y&&(i[p]=y(i[p])))}function l(p,y){try{c(n[p](y))}catch(g){m(s[0][3],g)}}function c(p){p.value instanceof P?Promise.resolve(p.value.v).then(u,h):m(s[0][2],p)}function u(p){l("next",p)}function h(p){l("throw",p)}function m(p,y){p(y),s.shift(),s.length&&l(s[0][0],s[0][1])}}function vi(r){var t,e;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=r[i]?function(o){return(e=!e)?{value:P(r[i](o)),done:!1}:s?s(o):o}:s}}function Ve(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof Nd=="function"?Nd(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=r[s]&&function(o){return new Promise(function(a,l){o=r[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}var ge=d(()=>{});var Rd,Ds,Lg,rr,an=d(()=>{Rd=new TextDecoder("utf-8"),Ds=Rd.decode.bind(Rd),Lg=new TextEncoder,rr=r=>Lg.encode(r)});var Fg,kd,Lt,Xt,ze,je,Te,ia,sa,oa,aa,ca,Cd,Ts,Ud,la,Pd,In=d(()=>{Fg=r=>typeof r=="number",kd=r=>typeof r=="boolean",Lt=r=>typeof r=="function",Xt=r=>r!=null&&Object(r)===r,ze=r=>Xt(r)&&Lt(r.then),je=r=>Xt(r)&&Lt(r[Symbol.iterator]),Te=r=>Xt(r)&&Lt(r[Symbol.asyncIterator]),ia=r=>Xt(r)&&Xt(r.schema),sa=r=>Xt(r)&&"done"in r&&"value"in r,oa=r=>Xt(r)&&Lt(r.stat)&&Fg(r.fd),aa=r=>Xt(r)&&Ts(r.body),ca=r=>"_getDOMStream"in r&&"_getNodeStream"in r,Cd=r=>Xt(r)&&Lt(r.abort)&&Lt(r.getWriter)&&!ca(r),Ts=r=>Xt(r)&&Lt(r.cancel)&&Lt(r.getReader)&&!ca(r),Ud=r=>Xt(r)&&Lt(r.end)&&Lt(r.write)&&kd(r.writable)&&!ca(r),la=r=>Xt(r)&&Lt(r.read)&&Lt(r.pipe)&&kd(r.readable)&&!ca(r),Pd=r=>Xt(r)&&Lt(r.clear)&&Lt(r.bytes)&&Lt(r.position)&&Lt(r.setPosition)&&Lt(r.capacity)&&Lt(r.getBufferIdentifier)&&Lt(r.createLong)});var Tl={};ye(Tl,{compareArrayLike:()=>Dl,joinUint8Arrays:()=>be,memcpy:()=>Es,rebaseValueOffsets:()=>fa,toArrayBufferView:()=>H,toArrayBufferViewAsyncIterator:()=>He,toArrayBufferViewIterator:()=>nr,toBigInt64Array:()=>ua,toBigUint64Array:()=>Ug,toFloat32Array:()=>Pg,toFloat32ArrayAsyncIterator:()=>e0,toFloat32ArrayIterator:()=>Gg,toFloat64Array:()=>Vg,toFloat64ArrayAsyncIterator:()=>r0,toFloat64ArrayIterator:()=>Yg,toInt16Array:()=>Rg,toInt16ArrayAsyncIterator:()=>Xg,toInt16ArrayIterator:()=>Hg,toInt32Array:()=>An,toInt32ArrayAsyncIterator:()=>qg,toInt32ArrayIterator:()=>$g,toInt8Array:()=>Mg,toInt8ArrayAsyncIterator:()=>Jg,toInt8ArrayIterator:()=>jg,toUint16Array:()=>kg,toUint16ArrayAsyncIterator:()=>Qg,toUint16ArrayIterator:()=>Zg,toUint32Array:()=>Cg,toUint32ArrayAsyncIterator:()=>t0,toUint32ArrayIterator:()=>Wg,toUint8Array:()=>F,toUint8ArrayAsyncIterator:()=>Bl,toUint8ArrayIterator:()=>Al,toUint8ClampedArray:()=>zg,toUint8ClampedArrayAsyncIterator:()=>n0,toUint8ClampedArrayIterator:()=>Kg});function Ng(r){let t=r[0]?[r[0]]:[],e,n,i,s;for(let o,a,l=0,c=0,u=r.length;++l<u;){if(o=t[c],a=r[l],!o||!a||o.buffer!==a.buffer||a.byteOffset<o.byteOffset){a&&(t[++c]=a);continue}if({byteOffset:e,byteLength:i}=o,{byteOffset:n,byteLength:s}=a,e+i<n||n+s<e){a&&(t[++c]=a);continue}t[c]=new Uint8Array(o.buffer,e,n-e+s)}return t}function Es(r,t,e=0,n=t.byteLength){let i=r.byteLength,s=new Uint8Array(r.buffer,r.byteOffset,i),o=new Uint8Array(t.buffer,t.byteOffset,Math.min(n,i));return s.set(o,e),r}function be(r,t){let e=Ng(r),n=e.reduce((u,h)=>u+h.byteLength,0),i,s,o,a=0,l=-1,c=Math.min(t||Number.POSITIVE_INFINITY,n);for(let u=e.length;++l<u;){if(i=e[l],s=i.subarray(0,Math.min(i.length,c-a)),c<=a+s.length){s.length<i.length?e[l]=i.subarray(s.length):s.length===i.length&&l++,o?Es(o,s,a):o=s;break}Es(o||(o=new Uint8Array(c)),s,a),a+=s.length}return[o||new Uint8Array(0),e.slice(l),n-(o?o.byteLength:0)]}function H(r,t){let e=sa(t)?t.value:t;return e instanceof r?r===Uint8Array?new r(e.buffer,e.byteOffset,e.byteLength):e:e?(typeof e=="string"&&(e=rr(e)),e instanceof ArrayBuffer?new r(e):e instanceof Il?new r(e):Pd(e)?H(r,e.bytes()):ArrayBuffer.isView(e)?e.byteLength<=0?new r(0):new r(e.buffer,e.byteOffset,e.byteLength/r.BYTES_PER_ELEMENT):r.from(e)):new r(0)}function*nr(r,t){let e=function*(i){yield i},n=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Il?e(t):je(t)?t:e(t);return yield*xl(function*(i){let s=null;do s=i.next(yield H(r,s));while(!s.done)}(n[Symbol.iterator]())),new r}function He(r,t){return _e(this,arguments,function*(){if(ze(t))return yield P(yield P(yield*vi(Ve(He(r,yield P(t))))));let n=function(o){return _e(this,arguments,function*(){yield yield P(yield P(o))})},i=function(o){return _e(this,arguments,function*(){yield P(yield*vi(Ve(xl(function*(a){let l=null;do l=a.next(yield l?.value);while(!l.done)}(o[Symbol.iterator]())))))})},s=typeof t=="string"||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Il?n(t):je(t)?i(t):Te(t)?t:n(t);return yield P(yield*vi(Ve(xl(function(o){return _e(this,arguments,function*(){let a=null;do a=yield P(o.next(yield yield P(H(r,a))));while(!a.done)})}(s[Symbol.asyncIterator]()))))),yield P(new r)})}function fa(r,t,e){if(r!==0){e=e.slice(0,t);for(let n=-1,i=e.length;++n<i;)e[n]+=r}return e.subarray(0,t)}function Dl(r,t){let e=0,n=r.length;if(n!==t.length)return!1;if(n>0)do if(r[e]!==t[e])return!1;while(++e<n);return!0}var Il,Mg,Rg,An,ua,F,kg,Cg,Ug,Pg,Vg,zg,xl,jg,Hg,$g,Al,Zg,Wg,Gg,Yg,Kg,Jg,Xg,qg,Bl,Qg,t0,e0,r0,n0,kt=d(()=>{ge();an();In();Il=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;Mg=r=>H(Int8Array,r),Rg=r=>H(Int16Array,r),An=r=>H(Int32Array,r),ua=r=>H(BigInt64Array,r),F=r=>H(Uint8Array,r),kg=r=>H(Uint16Array,r),Cg=r=>H(Uint32Array,r),Ug=r=>H(BigUint64Array,r),Pg=r=>H(Float32Array,r),Vg=r=>H(Float64Array,r),zg=r=>H(Uint8ClampedArray,r),xl=r=>(r.next(),r);jg=r=>nr(Int8Array,r),Hg=r=>nr(Int16Array,r),$g=r=>nr(Int32Array,r),Al=r=>nr(Uint8Array,r),Zg=r=>nr(Uint16Array,r),Wg=r=>nr(Uint32Array,r),Gg=r=>nr(Float32Array,r),Yg=r=>nr(Float64Array,r),Kg=r=>nr(Uint8ClampedArray,r);Jg=r=>He(Int8Array,r),Xg=r=>He(Int16Array,r),qg=r=>He(Int32Array,r),Bl=r=>He(Uint8Array,r),Qg=r=>He(Uint16Array,r),t0=r=>He(Uint32Array,r),e0=r=>He(Float32Array,r),r0=r=>He(Float64Array,r),n0=r=>He(Uint8ClampedArray,r)});function*i0(r){let t,e=!1,n=[],i,s,o,a=0;function l(){return s==="peek"?be(n,o)[0]:([i,n,a]=be(n,o),i)}({cmd:s,size:o}=(yield(()=>null)())||{cmd:"read",size:0});let c=Al(r)[Symbol.iterator]();try{do if({done:t,value:i}=Number.isNaN(o-a)?c.next():c.next(o-a),!t&&i.byteLength>0&&(n.push(i),a+=i.byteLength),t||o<=a)do({cmd:s,size:o}=yield l());while(o<a);while(!t)}catch(u){e=!0,typeof c.throw=="function"&&c.throw(u)}finally{e===!1&&typeof c.return=="function"&&c.return(null)}return null}function s0(r){return _e(this,arguments,function*(){let e,n=!1,i=[],s,o,a,l=0;function c(){return o==="peek"?be(i,a)[0]:([s,i,l]=be(i,a),s)}({cmd:o,size:a}=(yield yield P((()=>null)()))||{cmd:"read",size:0});let u=Bl(r)[Symbol.asyncIterator]();try{do if({done:e,value:s}=Number.isNaN(a-l)?yield P(u.next()):yield P(u.next(a-l)),!e&&s.byteLength>0&&(i.push(s),l+=s.byteLength),e||a<=l)do({cmd:o,size:a}=yield yield P(c()));while(a<l);while(!e)}catch(h){n=!0,typeof u.throw=="function"&&(yield P(u.throw(h)))}finally{n===!1&&typeof u.return=="function"&&(yield P(u.return(new Uint8Array(0))))}return yield P(null)})}function o0(r){return _e(this,arguments,function*(){let e=!1,n=!1,i=[],s,o,a,l=0;function c(){return o==="peek"?be(i,a)[0]:([s,i,l]=be(i,a),s)}({cmd:o,size:a}=(yield yield P((()=>null)()))||{cmd:"read",size:0});let u=new Ol(r);try{do if({done:e,value:s}=Number.isNaN(a-l)?yield P(u.read()):yield P(u.read(a-l)),!e&&s.byteLength>0&&(i.push(F(s)),l+=s.byteLength),e||a<=l)do({cmd:o,size:a}=yield yield P(c()));while(a<l);while(!e)}catch(h){n=!0,yield P(u.cancel(h))}finally{n===!1?yield P(u.cancel()):r.locked&&u.releaseLock()}return yield P(null)})}function a0(r){return _e(this,arguments,function*(){let e=[],n="error",i=!1,s=null,o,a,l=0,c=[],u;function h(){return o==="peek"?be(c,a)[0]:([u,c,l]=be(c,a),u)}if({cmd:o,size:a}=(yield yield P((()=>null)()))||{cmd:"read",size:0},r.isTTY)return yield yield P(new Uint8Array(0)),yield P(null);try{e[0]=El(r,"end"),e[1]=El(r,"error");do{if(e[2]=El(r,"readable"),[n,s]=yield P(Promise.race(e.map(p=>p[2]))),n==="error")break;if((i=n==="end")||(Number.isFinite(a-l)?(u=F(r.read(a-l)),u.byteLength<a-l&&(u=F(r.read()))):u=F(r.read()),u.byteLength>0&&(c.push(u),l+=u.byteLength)),i||a<=l)do({cmd:o,size:a}=yield yield P(h()));while(a<l)}while(!i)}finally{yield P(m(e,n==="error"?s:null))}return yield P(null);function m(p,y){return u=c=null,new Promise((g,N)=>{for(let[S,G]of p)r.off(S,G);try{let S=r.destroy;S&&S.call(r,y),y=void 0}catch(S){y=S||y}finally{y!=null?N(y):g()}})}})}var zt,da,Ol,El,Os=d(()=>{ge();kt();zt={fromIterable(r){return da(i0(r))},fromAsyncIterable(r){return da(s0(r))},fromDOMStream(r){return da(o0(r))},fromNodeStream(r){return da(a0(r))},toDOMStream(r,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(r,t){throw new Error('"toNodeStream" not available in this environment')}},da=r=>(r.next(),r);Ol=class{constructor(t){this.source=t,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(t){return b(this,void 0,void 0,function*(){let{reader:e,source:n}=this;e&&(yield e.cancel(t).catch(()=>{})),n&&n.locked&&this.releaseLock()})}read(t){return b(this,void 0,void 0,function*(){if(t===0)return{done:this.reader==null,value:new Uint8Array(0)};let e=yield this.reader.read();return!e.done&&(e.value=F(e)),e})}},El=(r,t)=>{let e=i=>n([t,i]),n;return[t,e,new Promise(i=>(n=i)&&r.once(t,e))]}});var it,ha=d(()=>{(function(r){r[r.V1=0]="V1",r[r.V2=1]="V2",r[r.V3=2]="V3",r[r.V4=3]="V4",r[r.V5=4]="V5"})(it||(it={}))});var at,Ll=d(()=>{(function(r){r[r.Sparse=0]="Sparse",r[r.Dense=1]="Dense"})(at||(at={}))});var st,Fl=d(()=>{(function(r){r[r.HALF=0]="HALF",r[r.SINGLE=1]="SINGLE",r[r.DOUBLE=2]="DOUBLE"})(st||(st={}))});var wt,Nl=d(()=>{(function(r){r[r.DAY=0]="DAY",r[r.MILLISECOND=1]="MILLISECOND"})(wt||(wt={}))});var x,Ls=d(()=>{(function(r){r[r.SECOND=0]="SECOND",r[r.MILLISECOND=1]="MILLISECOND",r[r.MICROSECOND=2]="MICROSECOND",r[r.NANOSECOND=3]="NANOSECOND"})(x||(x={}))});var ut,Ml=d(()=>{(function(r){r[r.YEAR_MONTH=0]="YEAR_MONTH",r[r.DAY_TIME=1]="DAY_TIME",r[r.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(ut||(ut={}))});var pa=d(()=>{});var ir,ma,ya,Si,Rl=d(()=>{ir=new Int32Array(2),ma=new Float32Array(ir.buffer),ya=new Float64Array(ir.buffer),Si=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1});var Fs,kl=d(()=>{(function(r){r[r.UTF8_BYTES=1]="UTF8_BYTES",r[r.UTF16_STRING=2]="UTF16_STRING"})(Fs||(Fs={}))});var Ft,Cl=d(()=>{pa();kl();Rl();Ft=class{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new Ft(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readUint64(t){return BigInt.asUintN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readFloat32(t){return ir[0]=this.readInt32(t),ma[0]}readFloat64(t){return ir[Si?0:1]=this.readInt32(t),ir[Si?1:0]=this.readInt32(t+4),ya[0]}writeInt8(t,e){this.bytes_[t]=e}writeUint8(t,e){this.bytes_[t]=e}writeInt16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){ma[0]=e,this.writeInt32(t,ir[0])}writeFloat64(t,e){ya[0]=e,this.writeInt32(t,ir[Si?0:1]),this.writeInt32(t+4,ir[Si?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let t="";for(let e=0;e<4;e++)t+=String.fromCharCode(this.readInt8(this.position_+4+e));return t}__offset(t,e){let n=t-this.readInt32(t);return e<this.readInt16(n)?this.readInt16(n+e):0}__union(t,e){return t.bb_pos=e+this.readInt32(e),t.bb=this,t}__string(t,e){t+=this.readInt32(t);let n=this.readInt32(t);t+=4;let i=this.bytes_.subarray(t,t+n);return e===Fs.UTF8_BYTES?i:this.text_decoder_.decode(i)}__union_with_string(t,e){return typeof t=="string"?this.__string(e):this.__union(t,e)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+4}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(t.length!=4)throw new Error("FlatBuffers: file identifier must be length "+4);for(let e=0;e<4;e++)if(t.charCodeAt(e)!=this.readInt8(this.position()+4+e))return!1;return!0}createScalarList(t,e){let n=[];for(let i=0;i<e;++i){let s=t(i);s!==null&&n.push(s)}return n}createObjList(t,e){let n=[];for(let i=0;i<e;++i){let s=t(i);s!==null&&n.push(s.unpack())}return n}}});var Cr,Vd=d(()=>{Cl();pa();Cr=class{constructor(t){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let e;t?e=t:e=1024,this.bb=Ft.allocate(e),this.space=e}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(t){this.force_defaults=t}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(t,e){t>this.minalign&&(this.minalign=t);let n=~(this.bb.capacity()-this.space+e)+1&t-1;for(;this.space<n+t+e;){let i=this.bb.capacity();this.bb=Cr.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(n)}pad(t){for(let e=0;e<t;e++)this.bb.writeInt8(--this.space,0)}writeInt8(t){this.bb.writeInt8(this.space-=1,t)}writeInt16(t){this.bb.writeInt16(this.space-=2,t)}writeInt32(t){this.bb.writeInt32(this.space-=4,t)}writeInt64(t){this.bb.writeInt64(this.space-=8,t)}writeFloat32(t){this.bb.writeFloat32(this.space-=4,t)}writeFloat64(t){this.bb.writeFloat64(this.space-=8,t)}addInt8(t){this.prep(1,0),this.writeInt8(t)}addInt16(t){this.prep(2,0),this.writeInt16(t)}addInt32(t){this.prep(4,0),this.writeInt32(t)}addInt64(t){this.prep(8,0),this.writeInt64(t)}addFloat32(t){this.prep(4,0),this.writeFloat32(t)}addFloat64(t){this.prep(8,0),this.writeFloat64(t)}addFieldInt8(t,e,n){(this.force_defaults||e!=n)&&(this.addInt8(e),this.slot(t))}addFieldInt16(t,e,n){(this.force_defaults||e!=n)&&(this.addInt16(e),this.slot(t))}addFieldInt32(t,e,n){(this.force_defaults||e!=n)&&(this.addInt32(e),this.slot(t))}addFieldInt64(t,e,n){(this.force_defaults||e!==n)&&(this.addInt64(e),this.slot(t))}addFieldFloat32(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat32(e),this.slot(t))}addFieldFloat64(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat64(e),this.slot(t))}addFieldOffset(t,e,n){(this.force_defaults||e!=n)&&(this.addOffset(e),this.slot(t))}addFieldStruct(t,e,n){e!=n&&(this.nested(e),this.slot(t))}nested(t){if(t!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(t){this.vtable!==null&&(this.vtable[t]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(t){let e=t.capacity();if(e&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");let n=e<<1,i=Ft.allocate(n);return i.setPosition(n-e),i.bytes().set(t.bytes(),n-e),i}addOffset(t){this.prep(4,0),this.writeInt32(this.offset()-t+4)}startObject(t){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=t;for(let e=0;e<t;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);let t=this.offset(),e=this.vtable_in_use-1;for(;e>=0&&this.vtable[e]==0;e--);let n=e+1;for(;e>=0;e--)this.addInt16(this.vtable[e]!=0?t-this.vtable[e]:0);let i=2;this.addInt16(t-this.object_start);let s=(n+i)*2;this.addInt16(s);let o=0,a=this.space;t:for(e=0;e<this.vtables.length;e++){let l=this.bb.capacity()-this.vtables[e];if(s==this.bb.readInt16(l)){for(let c=2;c<s;c+=2)if(this.bb.readInt16(a+c)!=this.bb.readInt16(l+c))continue t;o=this.vtables[e];break}}return o?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,o-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t}finish(t,e,n){let i=n?4:0;if(e){let s=e;if(this.prep(this.minalign,4+4+i),s.length!=4)throw new TypeError("FlatBuffers: file identifier must be length "+4);for(let o=4-1;o>=0;o--)this.writeInt8(s.charCodeAt(o))}this.prep(this.minalign,4+i),this.addOffset(t),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,e){this.finish(t,e,!0)}requiredField(t,e){let n=this.bb.capacity()-t,i=n-this.bb.readInt32(n);if(!(e<this.bb.readInt16(i)&&this.bb.readInt16(i+e)!=0))throw new TypeError("FlatBuffers: field "+e+" must be set")}startVector(t,e,n){this.notNested(),this.vector_num_elems=e,this.prep(4,t*e),this.prep(n,t*e)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);let e=this.createString(t);return this.string_maps.set(t,e),e}createString(t){if(t==null)return 0;let e;return t instanceof Uint8Array?e=t:e=this.text_encoder.encode(t),this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector()}createByteVector(t){return t==null?0:(this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),this.bb.bytes().set(t,this.space),this.endVector())}createObjectOffset(t){return t===null?0:typeof t=="string"?this.createString(t):t.pack(this)}createObjectOffsetList(t){let e=[];for(let n=0;n<t.length;++n){let i=t[n];if(i!==null)e.push(this.createObjectOffset(i));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return e}createStructOffsetList(t,e){return e(this,t.length),this.createObjectOffsetList(t.slice().reverse()),this.endVector()}}});var K=d(()=>{pa();Rl();Vd();Cl();kl()});var Bn,Ul=d(()=>{(function(r){r[r.BUFFER=0]="BUFFER"})(Bn||(Bn={}))});var qt,Ns=d(()=>{(function(r){r[r.LZ4_FRAME=0]="LZ4_FRAME",r[r.ZSTD=1]="ZSTD"})(qt||(qt={}))});var Zt,Pl=d(()=>{K();Ul();Ns();Zt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(t,e){return(e||new Zt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,e){return t.setPosition(t.position()+4),(e||new Zt).__init(t.readInt32(t.position())+t.position(),t)}codec(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):qt.LZ4_FRAME}method(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):Bn.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,qt.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,Bn.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,e,n){return Zt.startBodyCompression(t),Zt.addCodec(t,e),Zt.addMethod(t,n),Zt.endBodyCompression(t)}}});var xi,Vl=d(()=>{xi=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,e,n){return t.prep(8,16),t.writeInt64(BigInt(n??0)),t.writeInt64(BigInt(e??0)),t.offset()}}});var Ii,zl=d(()=>{Ii=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,e,n){return t.prep(8,16),t.writeInt64(BigInt(n??0)),t.writeInt64(BigInt(e??0)),t.offset()}}});var jt,jl=d(()=>{K();Pl();Vl();zl();jt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(t,e){return(e||new jt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,e){return t.setPosition(t.position()+4),(e||new jt).__init(t.readInt32(t.position())+t.position(),t)}length(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}nodes(t,e){let n=this.bb.__offset(this.bb_pos,6);return n?(e||new Ii).__init(this.bb.__vector(this.bb_pos+n)+t*16,this.bb):null}nodesLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){let n=this.bb.__offset(this.bb_pos,8);return n?(e||new xi).__init(this.bb.__vector(this.bb_pos+n)+t*16,this.bb):null}buffersLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new Zt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static addCompression(t,e){t.addFieldOffset(3,e,0)}static endRecordBatch(t){return t.endObject()}}});var Oe,zd=d(()=>{K();jl();Oe=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(t,e){return(e||new Oe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,e){return t.setPosition(t.position()+4),(e||new Oe).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}data(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new jt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){let t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startDictionaryBatch(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addData(t,e){t.addFieldOffset(1,e,0)}static addIsDelta(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryBatch(t){return t.endObject()}}});var cn,Hl=d(()=>{(function(r){r[r.Little=0]="Little",r[r.Big=1]="Big"})(cn||(cn={}))});var Ms,jd=d(()=>{(function(r){r[r.DenseArray=0]="DenseArray"})(Ms||(Ms={}))});var Ct,ga=d(()=>{K();Ct=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInt(t,e){return(e||new Ct).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,e){return t.setPosition(t.position()+4),(e||new Ct).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){let t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startInt(t){t.startObject(2)}static addBitWidth(t,e){t.addFieldInt32(0,e,0)}static addIsSigned(t,e){t.addFieldInt8(1,+e,0)}static endInt(t){return t.endObject()}static createInt(t,e,n){return Ct.startInt(t),Ct.addBitWidth(t,e),Ct.addIsSigned(t,n),Ct.endInt(t)}}});var we,$l=d(()=>{K();jd();ga();we=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryEncoding(t,e){return(e||new we).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,e){return t.setPosition(t.position()+4),(e||new we).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}indexType(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new Ct).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isOrdered(){let t=this.bb.__offset(this.bb_pos,8);return t?!!this.bb.readInt8(this.bb_pos+t):!1}dictionaryKind(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):Ms.DenseArray}static startDictionaryEncoding(t){t.startObject(4)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addIndexType(t,e){t.addFieldOffset(1,e,0)}static addIsOrdered(t,e){t.addFieldInt8(2,+e,0)}static addDictionaryKind(t,e){t.addFieldInt16(3,e,Ms.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}});var ft,Ai=d(()=>{K();ft=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsKeyValue(t,e){return(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,e){return t.setPosition(t.position()+4),(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}key(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}value(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,e){t.addFieldOffset(0,e,0)}static addValue(t,e){t.addFieldOffset(1,e,0)}static endKeyValue(t){return t.endObject()}static createKeyValue(t,e,n){return ft.startKeyValue(t),ft.addKey(t,e),ft.addValue(t,n),ft.endKeyValue(t)}}});var sr,Hd=d(()=>{K();sr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBinary(t,e){return(e||new sr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBinary(t,e){return t.setPosition(t.position()+4),(e||new sr).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(t){t.startObject(0)}static endBinary(t){return t.endObject()}static createBinary(t){return sr.startBinary(t),sr.endBinary(t)}}});var or,$d=d(()=>{K();or=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBool(t,e){return(e||new or).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBool(t,e){return t.setPosition(t.position()+4),(e||new or).__init(t.readInt32(t.position())+t.position(),t)}static startBool(t){t.startObject(0)}static endBool(t){return t.endObject()}static createBool(t){return or.startBool(t),or.endBool(t)}}});var ne,Zl=d(()=>{K();Nl();ne=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDate(t,e){return(e||new ne).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDate(t,e){return t.setPosition(t.position()+4),(e||new ne).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):wt.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,wt.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(t,e){return ne.startDate(t),ne.addUnit(t,e),ne.endDate(t)}}});var Ut,Wl=d(()=>{K();Ut=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDecimal(t,e){return(e||new Ut).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDecimal(t,e){return t.setPosition(t.position()+4),(e||new Ut).__init(t.readInt32(t.position())+t.position(),t)}precision(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}scale(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}bitWidth(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt32(this.bb_pos+t):128}static startDecimal(t){t.startObject(3)}static addPrecision(t,e){t.addFieldInt32(0,e,0)}static addScale(t,e){t.addFieldInt32(1,e,0)}static addBitWidth(t,e){t.addFieldInt32(2,e,128)}static endDecimal(t){return t.endObject()}static createDecimal(t,e,n,i){return Ut.startDecimal(t),Ut.addPrecision(t,e),Ut.addScale(t,n),Ut.addBitWidth(t,i),Ut.endDecimal(t)}}});var ie,Gl=d(()=>{K();Ls();ie=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDuration(t,e){return(e||new ie).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDuration(t,e){return t.setPosition(t.position()+4),(e||new ie).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):x.MILLISECOND}static startDuration(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,x.MILLISECOND)}static endDuration(t){return t.endObject()}static createDuration(t,e){return ie.startDuration(t),ie.addUnit(t,e),ie.endDuration(t)}}});var se,Yl=d(()=>{K();se=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeBinary(t,e){return(e||new se).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeBinary(t,e){return t.setPosition(t.position()+4),(e||new se).__init(t.readInt32(t.position())+t.position(),t)}byteWidth(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeBinary(t){return t.endObject()}static createFixedSizeBinary(t,e){return se.startFixedSizeBinary(t),se.addByteWidth(t,e),se.endFixedSizeBinary(t)}}});var oe,Kl=d(()=>{K();oe=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeList(t,e){return(e||new oe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeList(t,e){return t.setPosition(t.position()+4),(e||new oe).__init(t.readInt32(t.position())+t.position(),t)}listSize(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeList(t){t.startObject(1)}static addListSize(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeList(t){return t.endObject()}static createFixedSizeList(t,e){return oe.startFixedSizeList(t),oe.addListSize(t,e),oe.endFixedSizeList(t)}}});var ae,Jl=d(()=>{K();Fl();ae=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFloatingPoint(t,e){return(e||new ae).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,e){return t.setPosition(t.position()+4),(e||new ae).__init(t.readInt32(t.position())+t.position(),t)}precision(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):st.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,e){t.addFieldInt16(0,e,st.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,e){return ae.startFloatingPoint(t),ae.addPrecision(t,e),ae.endFloatingPoint(t)}}});var ce,Xl=d(()=>{K();Ml();ce=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInterval(t,e){return(e||new ce).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,e){return t.setPosition(t.position()+4),(e||new ce).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):ut.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,ut.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,e){return ce.startInterval(t),ce.addUnit(t,e),ce.endInterval(t)}}});var ar,Zd=d(()=>{K();ar=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeBinary(t,e){return(e||new ar).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeBinary(t,e){return t.setPosition(t.position()+4),(e||new ar).__init(t.readInt32(t.position())+t.position(),t)}static startLargeBinary(t){t.startObject(0)}static endLargeBinary(t){return t.endObject()}static createLargeBinary(t){return ar.startLargeBinary(t),ar.endLargeBinary(t)}}});var cr,Wd=d(()=>{K();cr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeUtf8(t,e){return(e||new cr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeUtf8(t,e){return t.setPosition(t.position()+4),(e||new cr).__init(t.readInt32(t.position())+t.position(),t)}static startLargeUtf8(t){t.startObject(0)}static endLargeUtf8(t){return t.endObject()}static createLargeUtf8(t){return cr.startLargeUtf8(t),cr.endLargeUtf8(t)}}});var lr,Gd=d(()=>{K();lr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsList(t,e){return(e||new lr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsList(t,e){return t.setPosition(t.position()+4),(e||new lr).__init(t.readInt32(t.position())+t.position(),t)}static startList(t){t.startObject(0)}static endList(t){return t.endObject()}static createList(t){return lr.startList(t),lr.endList(t)}}});var le,ql=d(()=>{K();le=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMap(t,e){return(e||new le).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMap(t,e){return t.setPosition(t.position()+4),(e||new le).__init(t.readInt32(t.position())+t.position(),t)}keysSorted(){let t=this.bb.__offset(this.bb_pos,4);return t?!!this.bb.readInt8(this.bb_pos+t):!1}static startMap(t){t.startObject(1)}static addKeysSorted(t,e){t.addFieldInt8(0,+e,0)}static endMap(t){return t.endObject()}static createMap(t,e){return le.startMap(t),le.addKeysSorted(t,e),le.endMap(t)}}});var ur,Yd=d(()=>{K();ur=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsNull(t,e){return(e||new ur).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsNull(t,e){return t.setPosition(t.position()+4),(e||new ur).__init(t.readInt32(t.position())+t.position(),t)}static startNull(t){t.startObject(0)}static endNull(t){return t.endObject()}static createNull(t){return ur.startNull(t),ur.endNull(t)}}});var fr,Kd=d(()=>{K();fr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsStruct_(t,e){return(e||new fr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,e){return t.setPosition(t.position()+4),(e||new fr).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return fr.startStruct_(t),fr.endStruct_(t)}}});var Wt,Ql=d(()=>{K();Ls();Wt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTime(t,e){return(e||new Wt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,e){return t.setPosition(t.position()+4),(e||new Wt).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):x.MILLISECOND}bitWidth(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,x.MILLISECOND)}static addBitWidth(t,e){t.addFieldInt32(1,e,32)}static endTime(t){return t.endObject()}static createTime(t,e,n){return Wt.startTime(t),Wt.addUnit(t,e),Wt.addBitWidth(t,n),Wt.endTime(t)}}});var Gt,tu=d(()=>{K();Ls();Gt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTimestamp(t,e){return(e||new Gt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,e){return t.setPosition(t.position()+4),(e||new Gt).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):x.SECOND}timezone(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,x.SECOND)}static addTimezone(t,e){t.addFieldOffset(1,e,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,e,n){return Gt.startTimestamp(t),Gt.addUnit(t,e),Gt.addTimezone(t,n),Gt.endTimestamp(t)}}});var Pt,eu=d(()=>{K();Ll();Pt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUnion(t,e){return(e||new Pt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,e){return t.setPosition(t.position()+4),(e||new Pt).__init(t.readInt32(t.position())+t.position(),t)}mode(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):at.Sparse}typeIds(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+t*4):0}typeIdsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){let t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(t,e){t.addFieldInt16(0,e,at.Sparse)}static addTypeIds(t,e){t.addFieldOffset(1,e,0)}static createTypeIdsVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addInt32(e[n]);return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,n){return Pt.startUnion(t),Pt.addMode(t,e),Pt.addTypeIds(t,n),Pt.endUnion(t)}}});var dr,Jd=d(()=>{K();dr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(t,e){return(e||new dr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,e){return t.setPosition(t.position()+4),(e||new dr).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return dr.startUtf8(t),dr.endUtf8(t)}}});var ot,ru=d(()=>{(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.FloatingPoint=3]="FloatingPoint",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct_=13]="Struct_",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Duration=18]="Duration",r[r.LargeBinary=19]="LargeBinary",r[r.LargeUtf8=20]="LargeUtf8",r[r.LargeList=21]="LargeList",r[r.RunEndEncoded=22]="RunEndEncoded"})(ot||(ot={}))});var It,nu=d(()=>{K();$l();Ai();ru();It=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(t,e){return(e||new It).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,e){return t.setPosition(t.position()+4),(e||new It).__init(t.readInt32(t.position())+t.position(),t)}name(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){let t=this.bb.__offset(this.bb_pos,6);return t?!!this.bb.readInt8(this.bb_pos+t):!1}typeType(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):ot.NONE}type(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(t){let e=this.bb.__offset(this.bb_pos,12);return e?(t||new we).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(t,e){let n=this.bb.__offset(this.bb_pos,14);return n?(e||new It).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}childrenLength(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let n=this.bb.__offset(this.bb_pos,16);return n?(e||new ft).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(t,e){t.addFieldInt8(2,e,ot.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startChildrenVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(6,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}}});var yt,iu=d(()=>{K();Hl();nu();Ai();yt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(t,e){return(e||new yt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,e){return t.setPosition(t.position()+4),(e||new yt).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):cn.Little}fields(t,e){let n=this.bb.__offset(this.bb_pos,6);return n?(e||new It).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}fieldsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let n=this.bb.__offset(this.bb_pos,8);return n?(e||new ft).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+t*8):BigInt(0)}featuresLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,e){t.addFieldInt16(0,e,cn.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startFieldsVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(2,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static addFeatures(t,e){t.addFieldOffset(3,e,0)}static createFeaturesVector(t,e){t.startVector(8,e.length,8);for(let n=e.length-1;n>=0;n--)t.addInt64(e[n]);return t.endVector()}static startFeaturesVector(t,e){t.startVector(8,e,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,e){t.finish(e)}static finishSizePrefixedSchemaBuffer(t,e){t.finish(e,void 0,!0)}static createSchema(t,e,n,i,s){return yt.startSchema(t),yt.addEndianness(t,e),yt.addFields(t,n),yt.addCustomMetadata(t,i),yt.addFeatures(t,s),yt.endSchema(t)}}});var W,su=d(()=>{(function(r){r[r.NONE=0]="NONE",r[r.Schema=1]="Schema",r[r.DictionaryBatch=2]="DictionaryBatch",r[r.RecordBatch=3]="RecordBatch",r[r.Tensor=4]="Tensor",r[r.SparseTensor=5]="SparseTensor"})(W||(W={}))});var f,Ze,Nt=d(()=>{ha();Ll();Fl();Nl();Ls();Ml();su();(function(r){r[r.NONE=0]="NONE",r[r.Null=1]="Null",r[r.Int=2]="Int",r[r.Float=3]="Float",r[r.Binary=4]="Binary",r[r.Utf8=5]="Utf8",r[r.Bool=6]="Bool",r[r.Decimal=7]="Decimal",r[r.Date=8]="Date",r[r.Time=9]="Time",r[r.Timestamp=10]="Timestamp",r[r.Interval=11]="Interval",r[r.List=12]="List",r[r.Struct=13]="Struct",r[r.Union=14]="Union",r[r.FixedSizeBinary=15]="FixedSizeBinary",r[r.FixedSizeList=16]="FixedSizeList",r[r.Map=17]="Map",r[r.Duration=18]="Duration",r[r.LargeBinary=19]="LargeBinary",r[r.LargeUtf8=20]="LargeUtf8",r[r.Dictionary=-1]="Dictionary",r[r.Int8=-2]="Int8",r[r.Int16=-3]="Int16",r[r.Int32=-4]="Int32",r[r.Int64=-5]="Int64",r[r.Uint8=-6]="Uint8",r[r.Uint16=-7]="Uint16",r[r.Uint32=-8]="Uint32",r[r.Uint64=-9]="Uint64",r[r.Float16=-10]="Float16",r[r.Float32=-11]="Float32",r[r.Float64=-12]="Float64",r[r.DateDay=-13]="DateDay",r[r.DateMillisecond=-14]="DateMillisecond",r[r.TimestampSecond=-15]="TimestampSecond",r[r.TimestampMillisecond=-16]="TimestampMillisecond",r[r.TimestampMicrosecond=-17]="TimestampMicrosecond",r[r.TimestampNanosecond=-18]="TimestampNanosecond",r[r.TimeSecond=-19]="TimeSecond",r[r.TimeMillisecond=-20]="TimeMillisecond",r[r.TimeMicrosecond=-21]="TimeMicrosecond",r[r.TimeNanosecond=-22]="TimeNanosecond",r[r.DenseUnion=-23]="DenseUnion",r[r.SparseUnion=-24]="SparseUnion",r[r.IntervalDayTime=-25]="IntervalDayTime",r[r.IntervalYearMonth=-26]="IntervalYearMonth",r[r.DurationSecond=-27]="DurationSecond",r[r.DurationMillisecond=-28]="DurationMillisecond",r[r.DurationMicrosecond=-29]="DurationMicrosecond",r[r.DurationNanosecond=-30]="DurationNanosecond",r[r.IntervalMonthDayNano=-31]="IntervalMonthDayNano"})(f||(f={}));(function(r){r[r.OFFSET=0]="OFFSET",r[r.DATA=1]="DATA",r[r.VALIDITY=2]="VALIDITY",r[r.TYPE=3]="TYPE"})(Ze||(Ze={}))});var ou={};ye(ou,{valueToString:()=>We});function We(r){if(r===null)return"null";if(r===void 0)return"undefined";switch(typeof r){case"number":return`${r}`;case"bigint":return`${r}`;case"string":return`"${r}"`}return typeof r[Symbol.toPrimitive]=="function"?r[Symbol.toPrimitive]("string"):ArrayBuffer.isView(r)?r instanceof BigInt64Array||r instanceof BigUint64Array?`[${[...r].map(t=>We(t))}]`:`[${r}]`:ArrayBuffer.isView(r)?`[${r}]`:JSON.stringify(r,(t,e)=>typeof e=="bigint"?`${e}`:e)}var Rs=d(()=>{});function q(r){if(typeof r=="bigint"&&(r<Number.MIN_SAFE_INTEGER||r>Number.MAX_SAFE_INTEGER))throw new TypeError(`${r} is not safe to convert to a number.`);return Number(r)}function au(r,t){return q(r/t)+q(r%t)/q(t)}var Ur=d(()=>{});var uu={};ye(uu,{BN:()=>Dn,bigNumToBigInt:()=>qd,bigNumToNumber:()=>lu,bigNumToString:()=>Ti,isArrowBigNumSymbol:()=>Xd});function Ge(r,...t){return t.length===0?Object.setPrototypeOf(H(this.TypedArray,r),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(r,...t),this.constructor.prototype)}function Bi(...r){return Ge.apply(this,r)}function Di(...r){return Ge.apply(this,r)}function ks(...r){return Ge.apply(this,r)}function lu(r,t){let{buffer:e,byteOffset:n,byteLength:i,signed:s}=r,o=new BigUint64Array(e,n,i/8),a=s&&o.at(-1)&BigInt(1)<<BigInt(63),l=BigInt(0),c=0;if(a){for(let u of o)l|=(u^l0)*(BigInt(1)<<BigInt(64*c++));l*=BigInt(-1),l-=BigInt(1)}else for(let u of o)l|=u*(BigInt(1)<<BigInt(64*c++));if(typeof t=="number"&&t>0){let u=BigInt("1".padEnd(t+1,"0")),h=l/u,m=a?-(l%u):l%u,p=q(h),y=`${m}`.padStart(t,"0");return+`${a&&p===0?"-":""}${p}.${y}`}return q(l)}function Ti(r){if(r.byteLength===8)return`${new r.BigIntArray(r.buffer,r.byteOffset,1)[0]}`;if(!r.signed)return cu(r);let t=new Uint16Array(r.buffer,r.byteOffset,r.byteLength/2);if(new Int16Array([t.at(-1)])[0]>=0)return cu(r);t=t.slice();let n=1;for(let s=0;s<t.length;s++){let o=t[s],a=~o+n;t[s]=a,n&=o===0?1:0}return`-${cu(t)}`}function qd(r){return r.byteLength===8?new r.BigIntArray(r.buffer,r.byteOffset,1)[0]:Ti(r)}function cu(r){let t="",e=new Uint32Array(2),n=new Uint16Array(r.buffer,r.byteOffset,r.byteLength/2),i=new Uint32Array((n=new Uint16Array(n).reverse()).buffer),s=-1,o=n.length-1;do{for(e[0]=n[s=0];s<o;)n[s++]=e[1]=e[0]/10,e[0]=(e[0]-e[1]*10<<16)+n[s];n[s]=e[1]=e[0]/10,e[0]=e[0]-e[1]*10,t=`${e[0]}${t}`}while(i[0]||i[1]||i[2]||i[3]);return t??"0"}var Xd,c0,l0,Dn,fu=d(()=>{kt();Ur();Xd=Symbol.for("isArrowBigNum");Ge.prototype[Xd]=!0;Ge.prototype.toJSON=function(){return`"${Ti(this)}"`};Ge.prototype.valueOf=function(r){return lu(this,r)};Ge.prototype.toString=function(){return Ti(this)};Ge.prototype[Symbol.toPrimitive]=function(r="default"){switch(r){case"number":return lu(this);case"string":return Ti(this);case"default":return qd(this)}return Ti(this)};Object.setPrototypeOf(Bi.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(Di.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(ks.prototype,Object.create(Uint32Array.prototype));Object.assign(Bi.prototype,Ge.prototype,{constructor:Bi,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(Di.prototype,Ge.prototype,{constructor:Di,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(ks.prototype,Ge.prototype,{constructor:ks,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});c0=BigInt(4294967296)*BigInt(4294967296),l0=c0-BigInt(1);Dn=class{static new(t,e){switch(e){case!0:return new Bi(t);case!1:return new Di(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new Bi(t)}return t.byteLength===16?new ks(t):new Di(t)}static signed(t){return new Bi(t)}static unsigned(t){return new Di(t)}static decimal(t){return new ks(t)}constructor(t,e){return Dn.new(t,e)}}});function xe(r){let t=r;switch(r.typeId){case f.Decimal:return r.bitWidth/32;case f.Interval:return t.unit===ut.MONTH_DAY_NANO?4:1+t.unit;case f.FixedSizeList:return t.listSize;case f.FixedSizeBinary:return t.byteWidth;default:return 1}}var Qd,th,eh,rh,nh,ih,sh,oh,ah,ch,lh,uh,fh,dh,hh,ph,mh,yh,_h,gh,bh,wh,_,Yt,At,Tn,En,ve,On,Ln,Fn,Nn,Mn,Se,Cs,Rn,kn,hr,pr,mr,yr,_r,gr,br,wr,vr,Sr,xr,Le,ct,Fe,Ir,ue,Ne,u0,fe,_t=d(()=>{Ur();Nt();_=class{static isNull(t){return t?.typeId===f.Null}static isInt(t){return t?.typeId===f.Int}static isFloat(t){return t?.typeId===f.Float}static isBinary(t){return t?.typeId===f.Binary}static isLargeBinary(t){return t?.typeId===f.LargeBinary}static isUtf8(t){return t?.typeId===f.Utf8}static isLargeUtf8(t){return t?.typeId===f.LargeUtf8}static isBool(t){return t?.typeId===f.Bool}static isDecimal(t){return t?.typeId===f.Decimal}static isDate(t){return t?.typeId===f.Date}static isTime(t){return t?.typeId===f.Time}static isTimestamp(t){return t?.typeId===f.Timestamp}static isInterval(t){return t?.typeId===f.Interval}static isDuration(t){return t?.typeId===f.Duration}static isList(t){return t?.typeId===f.List}static isStruct(t){return t?.typeId===f.Struct}static isUnion(t){return t?.typeId===f.Union}static isFixedSizeBinary(t){return t?.typeId===f.FixedSizeBinary}static isFixedSizeList(t){return t?.typeId===f.FixedSizeList}static isMap(t){return t?.typeId===f.Map}static isDictionary(t){return t?.typeId===f.Dictionary}static isDenseUnion(t){return _.isUnion(t)&&t.mode===at.Dense}static isSparseUnion(t){return _.isUnion(t)&&t.mode===at.Sparse}constructor(t){this.typeId=t}};Qd=Symbol.toStringTag;_[Qd]=(r=>(r.children=null,r.ArrayType=Array,r.OffsetArrayType=Int32Array,r[Symbol.toStringTag]="DataType"))(_.prototype);Yt=class extends _{constructor(){super(f.Null)}toString(){return"Null"}};th=Symbol.toStringTag;Yt[th]=(r=>r[Symbol.toStringTag]="Null")(Yt.prototype);At=class extends _{constructor(t,e){super(f.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};eh=Symbol.toStringTag;At[eh]=(r=>(r.isSigned=null,r.bitWidth=null,r[Symbol.toStringTag]="Int"))(At.prototype);Tn=class extends At{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},En=class extends At{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},ve=class extends At{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},On=class extends At{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Ln=class extends At{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Fn=class extends At{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Nn=class extends At{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Mn=class extends At{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Tn.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(En.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(ve.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(On.prototype,"ArrayType",{value:BigInt64Array});Object.defineProperty(Ln.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(Fn.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Nn.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(Mn.prototype,"ArrayType",{value:BigUint64Array});Se=class extends _{constructor(t){super(f.Float),this.precision=t}get ArrayType(){switch(this.precision){case st.HALF:return Uint16Array;case st.SINGLE:return Float32Array;case st.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};rh=Symbol.toStringTag;Se[rh]=(r=>(r.precision=null,r[Symbol.toStringTag]="Float"))(Se.prototype);Cs=class extends Se{constructor(){super(st.HALF)}},Rn=class extends Se{constructor(){super(st.SINGLE)}},kn=class extends Se{constructor(){super(st.DOUBLE)}};Object.defineProperty(Cs.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Rn.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(kn.prototype,"ArrayType",{value:Float64Array});hr=class extends _{constructor(){super(f.Binary)}toString(){return"Binary"}};nh=Symbol.toStringTag;hr[nh]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Binary"))(hr.prototype);pr=class extends _{constructor(){super(f.LargeBinary)}toString(){return"LargeBinary"}};ih=Symbol.toStringTag;pr[ih]=(r=>(r.ArrayType=Uint8Array,r.OffsetArrayType=BigInt64Array,r[Symbol.toStringTag]="LargeBinary"))(pr.prototype);mr=class extends _{constructor(){super(f.Utf8)}toString(){return"Utf8"}};sh=Symbol.toStringTag;mr[sh]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Utf8"))(mr.prototype);yr=class extends _{constructor(){super(f.LargeUtf8)}toString(){return"LargeUtf8"}};oh=Symbol.toStringTag;yr[oh]=(r=>(r.ArrayType=Uint8Array,r.OffsetArrayType=BigInt64Array,r[Symbol.toStringTag]="LargeUtf8"))(yr.prototype);_r=class extends _{constructor(){super(f.Bool)}toString(){return"Bool"}};ah=Symbol.toStringTag;_r[ah]=(r=>(r.ArrayType=Uint8Array,r[Symbol.toStringTag]="Bool"))(_r.prototype);gr=class extends _{constructor(t,e,n=128){super(f.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};ch=Symbol.toStringTag;gr[ch]=(r=>(r.scale=null,r.precision=null,r.ArrayType=Uint32Array,r[Symbol.toStringTag]="Decimal"))(gr.prototype);br=class extends _{constructor(t){super(f.Date),this.unit=t}toString(){return`Date${(this.unit+1)*32}<${wt[this.unit]}>`}get ArrayType(){return this.unit===wt.DAY?Int32Array:BigInt64Array}};lh=Symbol.toStringTag;br[lh]=(r=>(r.unit=null,r[Symbol.toStringTag]="Date"))(br.prototype);wr=class extends _{constructor(t,e){super(f.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${x[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};uh=Symbol.toStringTag;wr[uh]=(r=>(r.unit=null,r.bitWidth=null,r[Symbol.toStringTag]="Time"))(wr.prototype);vr=class extends _{constructor(t,e){super(f.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${x[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};fh=Symbol.toStringTag;vr[fh]=(r=>(r.unit=null,r.timezone=null,r.ArrayType=BigInt64Array,r[Symbol.toStringTag]="Timestamp"))(vr.prototype);Sr=class extends _{constructor(t){super(f.Interval),this.unit=t}toString(){return`Interval<${ut[this.unit]}>`}};dh=Symbol.toStringTag;Sr[dh]=(r=>(r.unit=null,r.ArrayType=Int32Array,r[Symbol.toStringTag]="Interval"))(Sr.prototype);xr=class extends _{constructor(t){super(f.Duration),this.unit=t}toString(){return`Duration<${x[this.unit]}>`}};hh=Symbol.toStringTag;xr[hh]=(r=>(r.unit=null,r.ArrayType=BigInt64Array,r[Symbol.toStringTag]="Duration"))(xr.prototype);Le=class extends _{constructor(t){super(f.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};ph=Symbol.toStringTag;Le[ph]=(r=>(r.children=null,r[Symbol.toStringTag]="List"))(Le.prototype);ct=class extends _{constructor(t){super(f.Struct),this.children=t}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}};mh=Symbol.toStringTag;ct[mh]=(r=>(r.children=null,r[Symbol.toStringTag]="Struct"))(ct.prototype);Fe=class extends _{constructor(t,e,n){super(f.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce((i,s,o)=>(i[s]=o)&&i||i,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(t=>`${t.type}`).join(" | ")}>`}};yh=Symbol.toStringTag;Fe[yh]=(r=>(r.mode=null,r.typeIds=null,r.children=null,r.typeIdToChildIndex=null,r.ArrayType=Int8Array,r[Symbol.toStringTag]="Union"))(Fe.prototype);Ir=class extends _{constructor(t){super(f.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};_h=Symbol.toStringTag;Ir[_h]=(r=>(r.byteWidth=null,r.ArrayType=Uint8Array,r[Symbol.toStringTag]="FixedSizeBinary"))(Ir.prototype);ue=class extends _{constructor(t,e){super(f.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};gh=Symbol.toStringTag;ue[gh]=(r=>(r.children=null,r.listSize=null,r[Symbol.toStringTag]="FixedSizeList"))(ue.prototype);Ne=class extends _{constructor(t,e=!1){var n,i,s;if(super(f.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",!((n=t?.type)===null||n===void 0)&&n.children)){let o=(i=t?.type)===null||i===void 0?void 0:i.children[0];o&&(o.name="key");let a=(s=t?.type)===null||s===void 0?void 0:s.children[1];a&&(a.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}};bh=Symbol.toStringTag;Ne[bh]=(r=>(r.children=null,r.keysSorted=null,r[Symbol.toStringTag]="Map_"))(Ne.prototype);u0=(r=>()=>++r)(-1),fe=class extends _{constructor(t,e,n,i){super(f.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=n==null?u0():q(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};wh=Symbol.toStringTag;fe[wh]=(r=>(r.id=null,r.indices=null,r.isOrdered=null,r.dictionary=null,r[Symbol.toStringTag]="Dictionary"))(fe.prototype)});function d0(r,t,e=!0){return typeof t=="number"?Ei(r,t,e):typeof t=="string"&&t in f?Ei(r,f[t],e):t&&t instanceof _?Ei(r,vh(t),e):t?.type&&t.type instanceof _?Ei(r,vh(t.type),e):Ei(r,f.NONE,e)}function Ei(r,t,e=!0){let n=null;switch(t){case f.Null:n=r.visitNull;break;case f.Bool:n=r.visitBool;break;case f.Int:n=r.visitInt;break;case f.Int8:n=r.visitInt8||r.visitInt;break;case f.Int16:n=r.visitInt16||r.visitInt;break;case f.Int32:n=r.visitInt32||r.visitInt;break;case f.Int64:n=r.visitInt64||r.visitInt;break;case f.Uint8:n=r.visitUint8||r.visitInt;break;case f.Uint16:n=r.visitUint16||r.visitInt;break;case f.Uint32:n=r.visitUint32||r.visitInt;break;case f.Uint64:n=r.visitUint64||r.visitInt;break;case f.Float:n=r.visitFloat;break;case f.Float16:n=r.visitFloat16||r.visitFloat;break;case f.Float32:n=r.visitFloat32||r.visitFloat;break;case f.Float64:n=r.visitFloat64||r.visitFloat;break;case f.Utf8:n=r.visitUtf8;break;case f.LargeUtf8:n=r.visitLargeUtf8;break;case f.Binary:n=r.visitBinary;break;case f.LargeBinary:n=r.visitLargeBinary;break;case f.FixedSizeBinary:n=r.visitFixedSizeBinary;break;case f.Date:n=r.visitDate;break;case f.DateDay:n=r.visitDateDay||r.visitDate;break;case f.DateMillisecond:n=r.visitDateMillisecond||r.visitDate;break;case f.Timestamp:n=r.visitTimestamp;break;case f.TimestampSecond:n=r.visitTimestampSecond||r.visitTimestamp;break;case f.TimestampMillisecond:n=r.visitTimestampMillisecond||r.visitTimestamp;break;case f.TimestampMicrosecond:n=r.visitTimestampMicrosecond||r.visitTimestamp;break;case f.TimestampNanosecond:n=r.visitTimestampNanosecond||r.visitTimestamp;break;case f.Time:n=r.visitTime;break;case f.TimeSecond:n=r.visitTimeSecond||r.visitTime;break;case f.TimeMillisecond:n=r.visitTimeMillisecond||r.visitTime;break;case f.TimeMicrosecond:n=r.visitTimeMicrosecond||r.visitTime;break;case f.TimeNanosecond:n=r.visitTimeNanosecond||r.visitTime;break;case f.Decimal:n=r.visitDecimal;break;case f.List:n=r.visitList;break;case f.Struct:n=r.visitStruct;break;case f.Union:n=r.visitUnion;break;case f.DenseUnion:n=r.visitDenseUnion||r.visitUnion;break;case f.SparseUnion:n=r.visitSparseUnion||r.visitUnion;break;case f.Dictionary:n=r.visitDictionary;break;case f.Interval:n=r.visitInterval;break;case f.IntervalDayTime:n=r.visitIntervalDayTime||r.visitInterval;break;case f.IntervalYearMonth:n=r.visitIntervalYearMonth||r.visitInterval;break;case f.IntervalMonthDayNano:n=r.visitIntervalMonthDayNano||r.visitInterval;break;case f.Duration:n=r.visitDuration;break;case f.DurationSecond:n=r.visitDurationSecond||r.visitDuration;break;case f.DurationMillisecond:n=r.visitDurationMillisecond||r.visitDuration;break;case f.DurationMicrosecond:n=r.visitDurationMicrosecond||r.visitDuration;break;case f.DurationNanosecond:n=r.visitDurationNanosecond||r.visitDuration;break;case f.FixedSizeList:n=r.visitFixedSizeList;break;case f.Map:n=r.visitMap;break}if(typeof n=="function")return n;if(!e)return()=>null;throw new Error(`Unrecognized type '${f[t]}'`)}function vh(r){switch(r.typeId){case f.Null:return f.Null;case f.Int:{let{bitWidth:t,isSigned:e}=r;switch(t){case 8:return e?f.Int8:f.Uint8;case 16:return e?f.Int16:f.Uint16;case 32:return e?f.Int32:f.Uint32;case 64:return e?f.Int64:f.Uint64}return f.Int}case f.Float:switch(r.precision){case st.HALF:return f.Float16;case st.SINGLE:return f.Float32;case st.DOUBLE:return f.Float64}return f.Float;case f.Binary:return f.Binary;case f.LargeBinary:return f.LargeBinary;case f.Utf8:return f.Utf8;case f.LargeUtf8:return f.LargeUtf8;case f.Bool:return f.Bool;case f.Decimal:return f.Decimal;case f.Time:switch(r.unit){case x.SECOND:return f.TimeSecond;case x.MILLISECOND:return f.TimeMillisecond;case x.MICROSECOND:return f.TimeMicrosecond;case x.NANOSECOND:return f.TimeNanosecond}return f.Time;case f.Timestamp:switch(r.unit){case x.SECOND:return f.TimestampSecond;case x.MILLISECOND:return f.TimestampMillisecond;case x.MICROSECOND:return f.TimestampMicrosecond;case x.NANOSECOND:return f.TimestampNanosecond}return f.Timestamp;case f.Date:switch(r.unit){case wt.DAY:return f.DateDay;case wt.MILLISECOND:return f.DateMillisecond}return f.Date;case f.Interval:switch(r.unit){case ut.DAY_TIME:return f.IntervalDayTime;case ut.YEAR_MONTH:return f.IntervalYearMonth;case ut.MONTH_DAY_NANO:return f.IntervalMonthDayNano}return f.Interval;case f.Duration:switch(r.unit){case x.SECOND:return f.DurationSecond;case x.MILLISECOND:return f.DurationMillisecond;case x.MICROSECOND:return f.DurationMicrosecond;case x.NANOSECOND:return f.DurationNanosecond}return f.Duration;case f.Map:return f.Map;case f.List:return f.List;case f.Struct:return f.Struct;case f.Union:switch(r.mode){case at.Dense:return f.DenseUnion;case at.Sparse:return f.SparseUnion}return f.Union;case f.FixedSizeBinary:return f.FixedSizeBinary;case f.FixedSizeList:return f.FixedSizeList;case f.Dictionary:return f.Dictionary}throw new Error(`Unrecognized type '${f[r.typeId]}'`)}var B,Ye=d(()=>{Nt();_t();B=class{visitMany(t,...e){return t.map((n,i)=>this.visit(n,...e.map(s=>s[i])))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return d0(this,t,e)}getVisitFnByTypeId(t,e=!0){return Ei(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitLargeUtf8(t,...e){return null}visitBinary(t,...e){return null}visitLargeBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitDuration(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}};B.prototype.visitInt8=null;B.prototype.visitInt16=null;B.prototype.visitInt32=null;B.prototype.visitInt64=null;B.prototype.visitUint8=null;B.prototype.visitUint16=null;B.prototype.visitUint32=null;B.prototype.visitUint64=null;B.prototype.visitFloat16=null;B.prototype.visitFloat32=null;B.prototype.visitFloat64=null;B.prototype.visitDateDay=null;B.prototype.visitDateMillisecond=null;B.prototype.visitTimestampSecond=null;B.prototype.visitTimestampMillisecond=null;B.prototype.visitTimestampMicrosecond=null;B.prototype.visitTimestampNanosecond=null;B.prototype.visitTimeSecond=null;B.prototype.visitTimeMillisecond=null;B.prototype.visitTimeMicrosecond=null;B.prototype.visitTimeNanosecond=null;B.prototype.visitDenseUnion=null;B.prototype.visitSparseUnion=null;B.prototype.visitIntervalDayTime=null;B.prototype.visitIntervalYearMonth=null;B.prototype.visitIntervalMonthDayNano=null;B.prototype.visitDuration=null;B.prototype.visitDurationSecond=null;B.prototype.visitDurationMillisecond=null;B.prototype.visitDurationMicrosecond=null;B.prototype.visitDurationNanosecond=null});var du={};ye(du,{float64ToUint16:()=>Us,uint16ToFloat64:()=>ba});function ba(r){let t=(r&31744)>>10,e=(r&1023)/1024,n=Math.pow(-1,(r&32768)>>15);switch(t){case 31:return n*(e?Number.NaN:1/0);case 0:return n*(e?6103515625e-14*e:0)}return n*Math.pow(2,t-15)*(1+e)}function Us(r){if(r!==r)return 32256;Sh[0]=r;let t=(Oi[1]&2147483648)>>16&65535,e=Oi[1]&2146435072,n=0;return e>=1089470464?Oi[0]>0?e=31744:(e=(e&2080374784)>>16,n=(Oi[1]&1048575)>>10):e<=1056964608?(n=1048576+(Oi[1]&1048575),n=1048576+(n<<(e>>20)-998)>>21,e=0):(e=e-1056964608>>10,n=(Oi[1]&1048575)+512>>10),t|e|n&65535}var Sh,Oi,Ps=d(()=>{Sh=new Float64Array(1),Oi=new Uint32Array(Sh.buffer)});function k(r){return(t,e,n)=>{if(t.setValid(e,n!=null))return r(t,e,n)}}var L,h0,xh,p0,Pr,hu,Ih,m0,wa,va,pu,Ah,Bh,mu,Sa,xa,Ia,Aa,yu,Ba,Da,Ta,Ea,_u,gu,y0,_0,g0,b0,w0,v0,S0,x0,Dh,Th,I0,bu,Oa,La,Fa,Na,Ma,Ra,ka,wu,A0,Ht,Ie=d(()=>{Ae();Ye();Ur();an();Ps();Nt();L=class extends B{};h0=(r,t,e)=>{r[t]=Math.floor(e/864e5)},xh=(r,t,e,n)=>{if(e+1<t.length){let i=q(t[e]),s=q(t[e+1]);r.set(n.subarray(0,s-i),i)}},p0=({offset:r,values:t},e,n)=>{let i=r+e;n?t[i>>3]|=1<<i%8:t[i>>3]&=~(1<<i%8)},Pr=({values:r},t,e)=>{r[t]=e},hu=({values:r},t,e)=>{r[t]=e},Ih=({values:r},t,e)=>{r[t]=Us(e)},m0=(r,t,e)=>{switch(r.type.precision){case st.HALF:return Ih(r,t,e);case st.SINGLE:case st.DOUBLE:return hu(r,t,e)}},wa=({values:r},t,e)=>{h0(r,t,e.valueOf())},va=({values:r},t,e)=>{r[t]=BigInt(e)},pu=({stride:r,values:t},e,n)=>{t.set(n.subarray(0,r),r*e)},Ah=({values:r,valueOffsets:t},e,n)=>xh(r,t,e,n),Bh=({values:r,valueOffsets:t},e,n)=>xh(r,t,e,rr(n)),mu=(r,t,e)=>{r.type.unit===wt.DAY?wa(r,t,e):va(r,t,e)},Sa=({values:r},t,e)=>{r[t]=BigInt(e/1e3)},xa=({values:r},t,e)=>{r[t]=BigInt(e)},Ia=({values:r},t,e)=>{r[t]=BigInt(e*1e3)},Aa=({values:r},t,e)=>{r[t]=BigInt(e*1e6)},yu=(r,t,e)=>{switch(r.type.unit){case x.SECOND:return Sa(r,t,e);case x.MILLISECOND:return xa(r,t,e);case x.MICROSECOND:return Ia(r,t,e);case x.NANOSECOND:return Aa(r,t,e)}},Ba=({values:r},t,e)=>{r[t]=e},Da=({values:r},t,e)=>{r[t]=e},Ta=({values:r},t,e)=>{r[t]=e},Ea=({values:r},t,e)=>{r[t]=e},_u=(r,t,e)=>{switch(r.type.unit){case x.SECOND:return Ba(r,t,e);case x.MILLISECOND:return Da(r,t,e);case x.MICROSECOND:return Ta(r,t,e);case x.NANOSECOND:return Ea(r,t,e)}},gu=({values:r,stride:t},e,n)=>{r.set(n.subarray(0,t),t*e)},y0=(r,t,e)=>{let n=r.children[0],i=r.valueOffsets,s=Ht.getVisitFn(n);if(Array.isArray(e))for(let o=-1,a=i[t],l=i[t+1];a<l;)s(n,a++,e[++o]);else for(let o=-1,a=i[t],l=i[t+1];a<l;)s(n,a++,e.get(++o))},_0=(r,t,e)=>{let n=r.children[0],{valueOffsets:i}=r,s=Ht.getVisitFn(n),{[t]:o,[t+1]:a}=i,l=e instanceof Map?e.entries():Object.entries(e);for(let c of l)if(s(n,o,c),++o>=a)break},g0=(r,t)=>(e,n,i,s)=>n&&e(n,r,t[s]),b0=(r,t)=>(e,n,i,s)=>n&&e(n,r,t.get(s)),w0=(r,t)=>(e,n,i,s)=>n&&e(n,r,t.get(i.name)),v0=(r,t)=>(e,n,i,s)=>n&&e(n,r,t[i.name]),S0=(r,t,e)=>{let n=r.type.children.map(s=>Ht.getVisitFn(s.type)),i=e instanceof Map?w0(t,e):e instanceof v?b0(t,e):Array.isArray(e)?g0(t,e):v0(t,e);r.type.children.forEach((s,o)=>i(n[o],r.children[o],s,o))},x0=(r,t,e)=>{r.type.mode===at.Dense?Dh(r,t,e):Th(r,t,e)},Dh=(r,t,e)=>{let n=r.type.typeIdToChildIndex[r.typeIds[t]],i=r.children[n];Ht.visit(i,r.valueOffsets[t],e)},Th=(r,t,e)=>{let n=r.type.typeIdToChildIndex[r.typeIds[t]],i=r.children[n];Ht.visit(i,t,e)},I0=(r,t,e)=>{var n;(n=r.dictionary)===null||n===void 0||n.set(r.values[t],e)},bu=(r,t,e)=>{switch(r.type.unit){case ut.YEAR_MONTH:return La(r,t,e);case ut.DAY_TIME:return Oa(r,t,e);case ut.MONTH_DAY_NANO:return Fa(r,t,e)}},Oa=({values:r},t,e)=>{r.set(e.subarray(0,2),2*t)},La=({values:r},t,e)=>{r[t]=e[0]*12+e[1]%12},Fa=({values:r,stride:t},e,n)=>{r.set(n.subarray(0,t),t*e)},Na=({values:r},t,e)=>{r[t]=e},Ma=({values:r},t,e)=>{r[t]=e},Ra=({values:r},t,e)=>{r[t]=e},ka=({values:r},t,e)=>{r[t]=e},wu=(r,t,e)=>{switch(r.type.unit){case x.SECOND:return Na(r,t,e);case x.MILLISECOND:return Ma(r,t,e);case x.MICROSECOND:return Ra(r,t,e);case x.NANOSECOND:return ka(r,t,e)}},A0=(r,t,e)=>{let{stride:n}=r,i=r.children[0],s=Ht.getVisitFn(i);if(Array.isArray(e))for(let o=-1,a=t*n;++o<n;)s(i,a+o,e[o]);else for(let o=-1,a=t*n;++o<n;)s(i,a+o,e.get(o))};L.prototype.visitBool=k(p0);L.prototype.visitInt=k(Pr);L.prototype.visitInt8=k(Pr);L.prototype.visitInt16=k(Pr);L.prototype.visitInt32=k(Pr);L.prototype.visitInt64=k(Pr);L.prototype.visitUint8=k(Pr);L.prototype.visitUint16=k(Pr);L.prototype.visitUint32=k(Pr);L.prototype.visitUint64=k(Pr);L.prototype.visitFloat=k(m0);L.prototype.visitFloat16=k(Ih);L.prototype.visitFloat32=k(hu);L.prototype.visitFloat64=k(hu);L.prototype.visitUtf8=k(Bh);L.prototype.visitLargeUtf8=k(Bh);L.prototype.visitBinary=k(Ah);L.prototype.visitLargeBinary=k(Ah);L.prototype.visitFixedSizeBinary=k(pu);L.prototype.visitDate=k(mu);L.prototype.visitDateDay=k(wa);L.prototype.visitDateMillisecond=k(va);L.prototype.visitTimestamp=k(yu);L.prototype.visitTimestampSecond=k(Sa);L.prototype.visitTimestampMillisecond=k(xa);L.prototype.visitTimestampMicrosecond=k(Ia);L.prototype.visitTimestampNanosecond=k(Aa);L.prototype.visitTime=k(_u);L.prototype.visitTimeSecond=k(Ba);L.prototype.visitTimeMillisecond=k(Da);L.prototype.visitTimeMicrosecond=k(Ta);L.prototype.visitTimeNanosecond=k(Ea);L.prototype.visitDecimal=k(gu);L.prototype.visitList=k(y0);L.prototype.visitStruct=k(S0);L.prototype.visitUnion=k(x0);L.prototype.visitDenseUnion=k(Dh);L.prototype.visitSparseUnion=k(Th);L.prototype.visitDictionary=k(I0);L.prototype.visitInterval=k(bu);L.prototype.visitIntervalDayTime=k(Oa);L.prototype.visitIntervalYearMonth=k(La);L.prototype.visitIntervalMonthDayNano=k(Fa);L.prototype.visitDuration=k(wu);L.prototype.visitDurationSecond=k(Na);L.prototype.visitDurationMillisecond=k(Ma);L.prototype.visitDurationMicrosecond=k(Ra);L.prototype.visitDurationNanosecond=k(ka);L.prototype.visitFixedSizeList=k(A0);L.prototype.visitMap=k(_0);Ht=new L});var Ke,Li,ln,vu,Su,B0,xu=d(()=>{Rs();Cn();Ie();Ke=Symbol.for("parent"),Li=Symbol.for("rowIndex"),ln=class{constructor(t,e){return this[Ke]=t,this[Li]=e,new Proxy(this,B0)}toArray(){return Object.values(this.toJSON())}toJSON(){let t=this[Li],e=this[Ke],n=e.type.children,i={};for(let s=-1,o=n.length;++s<o;)i[n[s].name]=Bt.visit(e.children[s],t);return i}toString(){return`{${[...this].map(([t,e])=>`${We(t)}: ${We(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new vu(this[Ke],this[Li])}},vu=class{constructor(t,e){this.childIndex=0,this.children=t.children,this.rowIndex=e,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let t=this.childIndex;return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,Bt.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}};Object.defineProperties(ln.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Ke]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Li]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});Su=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Ke].type.children.map(e=>e.name)}has(t,e){return t[Ke].type.children.some(n=>n.name===e)}getOwnPropertyDescriptor(t,e){if(t[Ke].type.children.some(n=>n.name===e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let n=t[Ke].type.children.findIndex(i=>i.name===e);if(n!==-1){let i=Bt.visit(t[Ke].children[n],t[Li]);return Reflect.set(t,e,i),i}}set(t,e,n){let i=t[Ke].type.children.findIndex(s=>s.name===e);return i!==-1?(Ht.visit(t[Ke].children[i],t[Li],n),Reflect.set(t,e,n)):Reflect.has(t,e)||typeof e=="symbol"?Reflect.set(t,e,n):!1}},B0=new Su});function M(r){return(t,e)=>t.getValid(e)?r(t,e):null}var D,D0,T0,Eh,E0,Oh,Lh,un,O0,Fh,L0,Nh,Mh,F0,N0,M0,Rh,kh,Ch,Uh,R0,Ph,Vh,zh,jh,k0,C0,U0,P0,V0,z0,Hh,$h,j0,H0,Zh,Wh,Gh,Yh,Kh,Jh,Xh,$0,Z0,Bt,Cn=d(()=>{fu();Ae();Ye();Ca();xu();Ur();an();Ps();Nt();D=class extends B{};D0=(r,t)=>864e5*r[t],T0=(r,t)=>null,Eh=(r,t,e)=>{if(e+1>=t.length)return null;let n=q(t[e]),i=q(t[e+1]);return r.subarray(n,i)},E0=({offset:r,values:t},e)=>{let n=r+e;return(t[n>>3]&1<<n%8)!==0},Oh=({values:r},t)=>D0(r,t),Lh=({values:r},t)=>q(r[t]),un=({stride:r,values:t},e)=>t[r*e],O0=({stride:r,values:t},e)=>ba(t[r*e]),Fh=({values:r},t)=>r[t],L0=({stride:r,values:t},e)=>t.subarray(r*e,r*(e+1)),Nh=({values:r,valueOffsets:t},e)=>Eh(r,t,e),Mh=({values:r,valueOffsets:t},e)=>{let n=Eh(r,t,e);return n!==null?Ds(n):null},F0=({values:r},t)=>r[t],N0=({type:r,values:t},e)=>r.precision!==st.HALF?t[e]:ba(t[e]),M0=(r,t)=>r.type.unit===wt.DAY?Oh(r,t):Lh(r,t),Rh=({values:r},t)=>1e3*q(r[t]),kh=({values:r},t)=>q(r[t]),Ch=({values:r},t)=>au(r[t],BigInt(1e3)),Uh=({values:r},t)=>au(r[t],BigInt(1e6)),R0=(r,t)=>{switch(r.type.unit){case x.SECOND:return Rh(r,t);case x.MILLISECOND:return kh(r,t);case x.MICROSECOND:return Ch(r,t);case x.NANOSECOND:return Uh(r,t)}},Ph=({values:r},t)=>r[t],Vh=({values:r},t)=>r[t],zh=({values:r},t)=>r[t],jh=({values:r},t)=>r[t],k0=(r,t)=>{switch(r.type.unit){case x.SECOND:return Ph(r,t);case x.MILLISECOND:return Vh(r,t);case x.MICROSECOND:return zh(r,t);case x.NANOSECOND:return jh(r,t)}},C0=({values:r,stride:t},e)=>Dn.decimal(r.subarray(t*e,t*(e+1))),U0=(r,t)=>{let{valueOffsets:e,stride:n,children:i}=r,{[t*n]:s,[t*n+1]:o}=e,l=i[0].slice(s,o-s);return new v([l])},P0=(r,t)=>{let{valueOffsets:e,children:n}=r,{[t]:i,[t+1]:s}=e,o=n[0];return new Ar(o.slice(i,s-i))},V0=(r,t)=>new ln(r,t),z0=(r,t)=>r.type.mode===at.Dense?Hh(r,t):$h(r,t),Hh=(r,t)=>{let e=r.type.typeIdToChildIndex[r.typeIds[t]],n=r.children[e];return Bt.visit(n,r.valueOffsets[t])},$h=(r,t)=>{let e=r.type.typeIdToChildIndex[r.typeIds[t]],n=r.children[e];return Bt.visit(n,t)},j0=(r,t)=>{var e;return(e=r.dictionary)===null||e===void 0?void 0:e.get(r.values[t])},H0=(r,t)=>r.type.unit===ut.MONTH_DAY_NANO?Gh(r,t):r.type.unit===ut.DAY_TIME?Zh(r,t):Wh(r,t),Zh=({values:r},t)=>r.subarray(2*t,2*(t+1)),Wh=({values:r},t)=>{let e=r[t],n=new Int32Array(2);return n[0]=Math.trunc(e/12),n[1]=Math.trunc(e%12),n},Gh=({values:r},t)=>r.subarray(4*t,4*(t+1)),Yh=({values:r},t)=>r[t],Kh=({values:r},t)=>r[t],Jh=({values:r},t)=>r[t],Xh=({values:r},t)=>r[t],$0=(r,t)=>{switch(r.type.unit){case x.SECOND:return Yh(r,t);case x.MILLISECOND:return Kh(r,t);case x.MICROSECOND:return Jh(r,t);case x.NANOSECOND:return Xh(r,t)}},Z0=(r,t)=>{let{stride:e,children:n}=r,s=n[0].slice(t*e,e);return new v([s])};D.prototype.visitNull=M(T0);D.prototype.visitBool=M(E0);D.prototype.visitInt=M(F0);D.prototype.visitInt8=M(un);D.prototype.visitInt16=M(un);D.prototype.visitInt32=M(un);D.prototype.visitInt64=M(Fh);D.prototype.visitUint8=M(un);D.prototype.visitUint16=M(un);D.prototype.visitUint32=M(un);D.prototype.visitUint64=M(Fh);D.prototype.visitFloat=M(N0);D.prototype.visitFloat16=M(O0);D.prototype.visitFloat32=M(un);D.prototype.visitFloat64=M(un);D.prototype.visitUtf8=M(Mh);D.prototype.visitLargeUtf8=M(Mh);D.prototype.visitBinary=M(Nh);D.prototype.visitLargeBinary=M(Nh);D.prototype.visitFixedSizeBinary=M(L0);D.prototype.visitDate=M(M0);D.prototype.visitDateDay=M(Oh);D.prototype.visitDateMillisecond=M(Lh);D.prototype.visitTimestamp=M(R0);D.prototype.visitTimestampSecond=M(Rh);D.prototype.visitTimestampMillisecond=M(kh);D.prototype.visitTimestampMicrosecond=M(Ch);D.prototype.visitTimestampNanosecond=M(Uh);D.prototype.visitTime=M(k0);D.prototype.visitTimeSecond=M(Ph);D.prototype.visitTimeMillisecond=M(Vh);D.prototype.visitTimeMicrosecond=M(zh);D.prototype.visitTimeNanosecond=M(jh);D.prototype.visitDecimal=M(C0);D.prototype.visitList=M(U0);D.prototype.visitStruct=M(V0);D.prototype.visitUnion=M(z0);D.prototype.visitDenseUnion=M(Hh);D.prototype.visitSparseUnion=M($h);D.prototype.visitDictionary=M(j0);D.prototype.visitInterval=M(H0);D.prototype.visitIntervalDayTime=M(Zh);D.prototype.visitIntervalYearMonth=M(Wh);D.prototype.visitIntervalMonthDayNano=M(Gh);D.prototype.visitDuration=M($0);D.prototype.visitDurationSecond=M(Yh);D.prototype.visitDurationMillisecond=M(Kh);D.prototype.visitDurationMicrosecond=M(Jh);D.prototype.visitDurationNanosecond=M(Xh);D.prototype.visitFixedSizeList=M(Z0);D.prototype.visitMap=M(P0);Bt=new D});var fn,Ni,Fi,Iu,Ar,Au,Bu,Ca=d(()=>{Ae();Rs();Cn();Ie();fn=Symbol.for("keys"),Ni=Symbol.for("vals"),Fi=Symbol.for("kKeysAsStrings"),Iu=Symbol.for("_kKeysAsStrings"),Ar=class{constructor(t){return this[fn]=new v([t.children[0]]).memoize(),this[Ni]=t.children[1],new Proxy(this,new Bu)}get[Fi](){return this[Iu]||(this[Iu]=Array.from(this[fn].toArray(),String))}[Symbol.iterator](){return new Au(this[fn],this[Ni])}get size(){return this[fn].length}toArray(){return Object.values(this.toJSON())}toJSON(){let t=this[fn],e=this[Ni],n={};for(let i=-1,s=t.length;++i<s;)n[t.get(i)]=Bt.visit(e,i);return n}toString(){return`{${[...this].map(([t,e])=>`${We(t)}: ${We(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},Au=class{constructor(t,e){this.keys=t,this.vals=e,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){let t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),Bt.visit(this.vals,t)]})}},Bu=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Fi]}has(t,e){return t[Fi].includes(e)}getOwnPropertyDescriptor(t,e){if(t[Fi].indexOf(e)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let n=t[Fi].indexOf(e);if(n!==-1){let i=Bt.visit(Reflect.get(t,Ni),n);return Reflect.set(t,e,i),i}}set(t,e,n){let i=t[Fi].indexOf(e);return i!==-1?(Ht.visit(Reflect.get(t,Ni),i,n),Reflect.set(t,e,n)):Reflect.has(t,e)?Reflect.set(t,e,n):!1}};Object.defineProperties(Ar.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[fn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ni]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Iu]:{writable:!0,enumerable:!1,configurable:!1,value:null}})});var Du={};ye(Du,{clampRange:()=>Vs,createElementComparator:()=>dn,wrapIndex:()=>Un});function Vs(r,t,e,n){let{length:i=0}=r,s=typeof t!="number"?0:t,o=typeof e!="number"?i:e;return s<0&&(s=(s%i+i)%i),o<0&&(o=(o%i+i)%i),o<s&&(qh=s,s=o,o=qh),o>i&&(o=i),n?n(r,s,o):[s,o]}function dn(r){if(typeof r!=="object"||r===null)return Qh(r)?Qh:e=>e===r;if(r instanceof Date){let e=r.valueOf();return n=>n instanceof Date?n.valueOf()===e:!1}return ArrayBuffer.isView(r)?e=>e?Dl(r,e):!1:r instanceof Map?G0(r):Array.isArray(r)?W0(r):r instanceof v?Y0(r):K0(r,!0)}function W0(r){let t=[];for(let e=-1,n=r.length;++e<n;)t[e]=dn(r[e]);return Ua(t)}function G0(r){let t=-1,e=[];for(let n of r.values())e[++t]=dn(n);return Ua(e)}function Y0(r){let t=[];for(let e=-1,n=r.length;++e<n;)t[e]=dn(r.get(e));return Ua(t)}function K0(r,t=!1){let e=Object.keys(r);if(!t&&e.length===0)return()=>!1;let n=[];for(let i=-1,s=e.length;++i<s;)n[i]=dn(r[e[i]]);return Ua(n,e)}function Ua(r,t){return e=>{if(!e||typeof e!="object")return!1;switch(e.constructor){case Array:return J0(r,e);case Map:return tp(r,e,e.keys());case Ar:case ln:case Object:case void 0:return tp(r,e,t||Object.keys(e))}return e instanceof v?X0(r,e):!1}}function J0(r,t){let e=r.length;if(t.length!==e)return!1;for(let n=-1;++n<e;)if(!r[n](t[n]))return!1;return!0}function X0(r,t){let e=r.length;if(t.length!==e)return!1;for(let n=-1;++n<e;)if(!r[n](t.get(n)))return!1;return!0}function tp(r,t,e){let n=e[Symbol.iterator](),i=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),s=t instanceof Map?t.values():Object.values(t)[Symbol.iterator](),o=0,a=r.length,l=s.next(),c=n.next(),u=i.next();for(;o<a&&!c.done&&!u.done&&!l.done&&!(c.value!==u.value||!r[o](l.value));++o,c=n.next(),u=i.next(),l=s.next());return o===a&&c.done&&u.done&&l.done?!0:(n.return&&n.return(),i.return&&i.return(),s.return&&s.return(),!1)}var qh,Un,Qh,Mi=d(()=>{Ae();Ca();xu();kt();Un=(r,t)=>r<0?t+r:r,Qh=r=>r!==r});var Tu={};ye(Tu,{BitIterator:()=>Pn,getBit:()=>ep,getBool:()=>Va,packBools:()=>zn,popcnt_array:()=>rp,popcnt_bit_range:()=>zs,popcnt_uint32:()=>Pa,setBool:()=>q0,truncateBitmap:()=>Vn});function Va(r,t,e,n){return(e&1<<n)!==0}function ep(r,t,e,n){return(e&1<<n)>>n}function q0(r,t,e){return e?!!(r[t>>3]|=1<<t%8)||!0:!(r[t>>3]&=~(1<<t%8))&&!1}function Vn(r,t,e){let n=e.byteLength+7&-8;if(r>0||e.byteLength<n){let i=new Uint8Array(n);return i.set(r%8===0?e.subarray(r>>3):zn(new Pn(e,r,t,null,Va)).subarray(0,n)),i}return e}function zn(r){let t=[],e=0,n=0,i=0;for(let o of r)o&&(i|=1<<n),++n===8&&(t[e++]=i,i=n=0);(e===0||n>0)&&(t[e++]=i);let s=new Uint8Array(t.length+7&-8);return s.set(t),s}function zs(r,t,e){if(e-t<=0)return 0;if(e-t<8){let s=0;for(let o of new Pn(r,t,e-t,r,ep))s+=o;return s}let n=e>>3<<3,i=t+(t%8===0?0:8-t%8);return zs(r,t,i)+zs(r,n,e)+rp(r,i>>3,n-i>>3)}function rp(r,t,e){let n=0,i=Math.trunc(t),s=new DataView(r.buffer,r.byteOffset,r.byteLength),o=e===void 0?r.byteLength:i+e;for(;o-i>=4;)n+=Pa(s.getUint32(i)),i+=4;for(;o-i>=2;)n+=Pa(s.getUint16(i)),i+=2;for(;o-i>=1;)n+=Pa(s.getUint8(i)),i+=1;return n}function Pa(r){let t=Math.trunc(r);return t=t-(t>>>1&1431655765),t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}var Pn,Ri=d(()=>{Pn=class{constructor(t,e,n,i,s){this.bytes=t,this.length=n,this.context=i,this.get=s,this.bit=e%8,this.byteIndex=e>>3,this.byte=t[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}});function A(r){return tb.visit(r)}var Q0,Z,jn,tb,Vr=d(()=>{Ae();Nt();_t();Ri();Ye();kt();Q0=-1,Z=class{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:t}=this;return _.isSparseUnion(t)?this.children.some(e=>e.nullable):_.isDenseUnion(t)?this.children.some(e=>e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let t=0,{valueOffsets:e,values:n,nullBitmap:i,typeIds:s}=this;return e&&(t+=e.byteLength),n&&(t+=n.byteLength),i&&(t+=i.byteLength),s&&(t+=s.byteLength),this.children.reduce((o,a)=>o+a.byteLength,t)}get nullCount(){if(_.isUnion(this.type))return this.children.reduce((n,i)=>n+i.nullCount,0);let t=this._nullCount,e;return t<=Q0&&(e=this.nullBitmap)&&(this._nullCount=t=e.length===0?0:this.length-zs(e,this.offset,this.offset+this.length)),t}constructor(t,e,n,i,s,o=[],a){this.type=t,this.children=o,this.dictionary=a,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(n||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1));let l;s instanceof Z?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=xe(t),s&&((l=s[0])&&(this.valueOffsets=l),(l=s[1])&&(this.values=l),(l=s[2])&&(this.nullBitmap=l),(l=s[3])&&(this.typeIds=l)))}getValid(t){let{type:e}=this;if(_.isUnion(e)){let n=e,i=this.children[n.typeIdToChildIndex[this.typeIds[t]]],s=n.mode===at.Dense?this.valueOffsets[t]:t;return i.getValid(s)}if(this.nullable&&this.nullCount>0){let n=this.offset+t;return(this.nullBitmap[n>>3]&1<<n%8)!==0}return!0}setValid(t,e){let n,{type:i}=this;if(_.isUnion(i)){let s=i,o=this.children[s.typeIdToChildIndex[this.typeIds[t]]],a=s.mode===at.Dense?this.valueOffsets[t]:t;n=o.getValid(a),o.setValid(a,e)}else{let{nullBitmap:s}=this,{offset:o,length:a}=this,l=o+t,c=1<<l%8,u=l>>3;(!s||s.byteLength<=u)&&(s=new Uint8Array((o+a+63&-64)>>3).fill(255),this.nullCount>0?(s.set(Vn(o,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:s})):Object.assign(this,{nullBitmap:s,_nullCount:0}));let h=s[u];n=(h&c)!==0,s[u]=e?h|c:h&~c}return n!==!!e&&(this._nullCount=this.nullCount+(e?-1:1)),e}clone(t=this.type,e=this.offset,n=this.length,i=this._nullCount,s=this,o=this.children){return new Z(t,e,n,i,s,o,this.dictionary)}slice(t,e){let{stride:n,typeId:i,children:s}=this,o=+(this._nullCount===0)-1,a=i===16?n:1,l=this._sliceBuffers(t,e,n,i);return this.clone(this.type,this.offset+t,e,o,l,s.length===0||this.valueOffsets?s:this._sliceChildren(s,a*t,a*e))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===f.Null)return this.clone(this.type,0,t,0);let{length:e,nullCount:n}=this,i=new Uint8Array((t+63&-64)>>3).fill(255,0,e>>3);i[e>>3]=(1<<e-(e&-8))-1,n>0&&i.set(Vn(this.offset,e,this.nullBitmap),0);let s=this.buffers;return s[Ze.VALIDITY]=i,this.clone(this.type,0,t,n+(t-e),s)}_sliceBuffers(t,e,n,i){let s,{buffers:o}=this;return(s=o[Ze.TYPE])&&(o[Ze.TYPE]=s.subarray(t,t+e)),(s=o[Ze.OFFSET])&&(o[Ze.OFFSET]=s.subarray(t,t+e+1))||(s=o[Ze.DATA])&&(o[Ze.DATA]=i===6?s:s.subarray(n*t,n*(t+e))),o}_sliceChildren(t,e,n){return t.map(i=>i.slice(e,n))}};Z.prototype.children=Object.freeze([]);jn=class extends B{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){let{["type"]:e,["offset"]:n=0,["length"]:i=0}=t;return new Z(e,n,i,i)}visitBool(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length>>3,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitInt(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitFloat(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitUtf8(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.data),s=F(t.nullBitmap),o=An(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,i,s])}visitLargeUtf8(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.data),s=F(t.nullBitmap),o=ua(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,i,s])}visitBinary(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.data),s=F(t.nullBitmap),o=An(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,i,s])}visitLargeBinary(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.data),s=F(t.nullBitmap),o=ua(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,i,s])}visitFixedSizeBinary(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitDate(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitTimestamp(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitTime(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitDecimal(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitList(t){let{["type"]:e,["offset"]:n=0,["child"]:i}=t,s=F(t.nullBitmap),o=An(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,void 0,s],[i])}visitStruct(t){let{["type"]:e,["offset"]:n=0,["children"]:i=[]}=t,s=F(t.nullBitmap),{length:o=i.reduce((l,{length:c})=>Math.max(l,c),0),nullCount:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,void 0,s],i)}visitUnion(t){let{["type"]:e,["offset"]:n=0,["children"]:i=[]}=t,s=H(e.ArrayType,t.typeIds),{["length"]:o=s.length,["nullCount"]:a=-1}=t;if(_.isSparseUnion(e))return new Z(e,n,o,a,[void 0,void 0,void 0,s],i);let l=An(t.valueOffsets);return new Z(e,n,o,a,[l,void 0,void 0,s],i)}visitDictionary(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.indices.ArrayType,t.data),{["dictionary"]:o=new v([new jn().visit({type:e.dictionary})])}=t,{["length"]:a=s.length,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[void 0,s,i],[],o)}visitInterval(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitDuration(t){let{["type"]:e,["offset"]:n=0}=t,i=F(t.nullBitmap),s=H(e.ArrayType,t.data),{["length"]:o=s.length,["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,s,i])}visitFixedSizeList(t){let{["type"]:e,["offset"]:n=0,["child"]:i=new jn().visit({type:e.valueType})}=t,s=F(t.nullBitmap),{["length"]:o=i.length/xe(e),["nullCount"]:a=t.nullBitmap?-1:0}=t;return new Z(e,n,o,a,[void 0,void 0,s],[i])}visitMap(t){let{["type"]:e,["offset"]:n=0,["child"]:i=new jn().visit({type:e.childType})}=t,s=F(t.nullBitmap),o=An(t.valueOffsets),{["length"]:a=o.length-1,["nullCount"]:l=t.nullBitmap?-1:0}=t;return new Z(e,n,a,l,[o,void 0,s],[i])}},tb=new jn});function np(r){return r.some(t=>t.nullable)}function za(r){return r.reduce((t,e)=>t+e.nullCount,0)}function ja(r){return r.reduce((t,e,n)=>(t[n+1]=t[n]+e.length,t),new Uint32Array(r.length+1))}function Ha(r,t,e,n){let i=[];for(let s=-1,o=r.length;++s<o;){let a=r[s],l=t[s],{length:c}=a;if(l>=n)break;if(e>=l+c)continue;if(l>=e&&l+c<=n){i.push(a);continue}let u=Math.max(0,e-l),h=Math.min(n-l,c);i.push(a.slice(u,h-u))}return i.length===0&&i.push(r[0].slice(0,0)),i}function Eu(r,t,e,n){let i=0,s=0,o=t.length-1;do{if(i>=o-1)return e<t[o]?n(r,i,e-t[i]):null;s=i+Math.trunc((o-i)*.5),e<t[s]?o=s:i=s}while(i<o)}function Hs(r,t){return r.getValid(t)}function ki(r){function t(e,n,i){return r(e[n],i)}return function(e){let n=this.data;return Eu(n,this._offsets,e,t)}}function $a(r){let t;function e(n,i,s){return r(n[i],s,t)}return function(n,i){let s=this.data;t=i;let o=Eu(s,this._offsets,n,e);return t=void 0,o}}function Za(r){let t;function e(n,i,s){let o=s,a=0,l=0;for(let c=i-1,u=n.length;++c<u;){let h=n[c];if(~(a=r(h,t,o)))return l+a;o=0,l+=h.length}return-1}return function(n,i){t=n;let s=this.data,o=typeof i!="number"?e(s,0,0):Eu(s,this._offsets,i,e);return t=void 0,o}}var js,Wa=d(()=>{js=class{constructor(t=0,e){this.numChunks=t,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){let t=this.chunkIterator.next();if(!t.done)return t;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}});function eb(r,t){return t===null&&r.length>0?0:-1}function rb(r,t){let{nullBitmap:e}=r;if(!e||r.nullCount<=0)return-1;let n=0;for(let i of new Pn(e,r.offset+(t||0),r.length,e,Va)){if(!i)return n;++n}return-1}function C(r,t,e){if(t===void 0)return-1;if(t===null)switch(r.typeId){case f.Union:break;case f.Dictionary:break;default:return rb(r,e)}let n=Bt.getVisitFn(r),i=dn(t);for(let s=(e||0)-1,o=r.length;++s<o;)if(i(n(r,s)))return s;return-1}function ip(r,t,e){let n=Bt.getVisitFn(r),i=dn(t);for(let s=(e||0)-1,o=r.length;++s<o;)if(i(n(r,s)))return s;return-1}var T,Hn,Ga=d(()=>{Nt();Ye();Cn();Ri();Mi();T=class extends B{};T.prototype.visitNull=eb;T.prototype.visitBool=C;T.prototype.visitInt=C;T.prototype.visitInt8=C;T.prototype.visitInt16=C;T.prototype.visitInt32=C;T.prototype.visitInt64=C;T.prototype.visitUint8=C;T.prototype.visitUint16=C;T.prototype.visitUint32=C;T.prototype.visitUint64=C;T.prototype.visitFloat=C;T.prototype.visitFloat16=C;T.prototype.visitFloat32=C;T.prototype.visitFloat64=C;T.prototype.visitUtf8=C;T.prototype.visitLargeUtf8=C;T.prototype.visitBinary=C;T.prototype.visitLargeBinary=C;T.prototype.visitFixedSizeBinary=C;T.prototype.visitDate=C;T.prototype.visitDateDay=C;T.prototype.visitDateMillisecond=C;T.prototype.visitTimestamp=C;T.prototype.visitTimestampSecond=C;T.prototype.visitTimestampMillisecond=C;T.prototype.visitTimestampMicrosecond=C;T.prototype.visitTimestampNanosecond=C;T.prototype.visitTime=C;T.prototype.visitTimeSecond=C;T.prototype.visitTimeMillisecond=C;T.prototype.visitTimeMicrosecond=C;T.prototype.visitTimeNanosecond=C;T.prototype.visitDecimal=C;T.prototype.visitList=C;T.prototype.visitStruct=C;T.prototype.visitUnion=C;T.prototype.visitDenseUnion=ip;T.prototype.visitSparseUnion=ip;T.prototype.visitDictionary=C;T.prototype.visitInterval=C;T.prototype.visitIntervalDayTime=C;T.prototype.visitIntervalYearMonth=C;T.prototype.visitIntervalMonthDayNano=C;T.prototype.visitDuration=C;T.prototype.visitDurationSecond=C;T.prototype.visitDurationMillisecond=C;T.prototype.visitDurationMicrosecond=C;T.prototype.visitDurationNanosecond=C;T.prototype.visitFixedSizeList=C;T.prototype.visitMap=C;Hn=new T});function R(r){let{type:t}=r;if(r.nullCount===0&&r.stride===1&&(_.isInt(t)&&t.bitWidth!==64||_.isTime(t)&&t.bitWidth!==64||_.isFloat(t)&&t.precision!==st.HALF))return new js(r.data.length,n=>{let i=r.data[n];return i.values.subarray(0,i.length)[Symbol.iterator]()});let e=0;return new js(r.data.length,n=>{let s=r.data[n].length,o=r.slice(e,e+s);return e+=s,new Ou(o)})}var E,Ou,Ci,Ya=d(()=>{Ye();Nt();_t();Wa();E=class extends B{};Ou=class{constructor(t){this.vector=t,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};E.prototype.visitNull=R;E.prototype.visitBool=R;E.prototype.visitInt=R;E.prototype.visitInt8=R;E.prototype.visitInt16=R;E.prototype.visitInt32=R;E.prototype.visitInt64=R;E.prototype.visitUint8=R;E.prototype.visitUint16=R;E.prototype.visitUint32=R;E.prototype.visitUint64=R;E.prototype.visitFloat=R;E.prototype.visitFloat16=R;E.prototype.visitFloat32=R;E.prototype.visitFloat64=R;E.prototype.visitUtf8=R;E.prototype.visitLargeUtf8=R;E.prototype.visitBinary=R;E.prototype.visitLargeBinary=R;E.prototype.visitFixedSizeBinary=R;E.prototype.visitDate=R;E.prototype.visitDateDay=R;E.prototype.visitDateMillisecond=R;E.prototype.visitTimestamp=R;E.prototype.visitTimestampSecond=R;E.prototype.visitTimestampMillisecond=R;E.prototype.visitTimestampMicrosecond=R;E.prototype.visitTimestampNanosecond=R;E.prototype.visitTime=R;E.prototype.visitTimeSecond=R;E.prototype.visitTimeMillisecond=R;E.prototype.visitTimeMicrosecond=R;E.prototype.visitTimeNanosecond=R;E.prototype.visitDecimal=R;E.prototype.visitList=R;E.prototype.visitStruct=R;E.prototype.visitUnion=R;E.prototype.visitDenseUnion=R;E.prototype.visitSparseUnion=R;E.prototype.visitDictionary=R;E.prototype.visitInterval=R;E.prototype.visitIntervalDayTime=R;E.prototype.visitIntervalYearMonth=R;E.prototype.visitIntervalMonthDayNano=R;E.prototype.visitDuration=R;E.prototype.visitDurationSecond=R;E.prototype.visitDurationMillisecond=R;E.prototype.visitDurationMicrosecond=R;E.prototype.visitDurationNanosecond=R;E.prototype.visitFixedSizeList=R;E.prototype.visitMap=R;Ci=new E});function $n(r){if(r){if(r instanceof Z)return new v([r]);if(r instanceof v)return new v(r.data);if(r.type instanceof _)return new v([A(r)]);if(Array.isArray(r))return new v(r.flatMap(t=>nb(t)));if(ArrayBuffer.isView(r)){r instanceof DataView&&(r=new Uint8Array(r.buffer));let t={offset:0,length:r.length,nullCount:-1,data:r};if(r instanceof Int8Array)return new v([A(Object.assign(Object.assign({},t),{type:new Tn}))]);if(r instanceof Int16Array)return new v([A(Object.assign(Object.assign({},t),{type:new En}))]);if(r instanceof Int32Array)return new v([A(Object.assign(Object.assign({},t),{type:new ve}))]);if(r instanceof BigInt64Array)return new v([A(Object.assign(Object.assign({},t),{type:new On}))]);if(r instanceof Uint8Array||r instanceof Uint8ClampedArray)return new v([A(Object.assign(Object.assign({},t),{type:new Ln}))]);if(r instanceof Uint16Array)return new v([A(Object.assign(Object.assign({},t),{type:new Fn}))]);if(r instanceof Uint32Array)return new v([A(Object.assign(Object.assign({},t),{type:new Nn}))]);if(r instanceof BigUint64Array)return new v([A(Object.assign(Object.assign({},t),{type:new Mn}))]);if(r instanceof Float32Array)return new v([A(Object.assign(Object.assign({},t),{type:new Rn}))]);if(r instanceof Float64Array)return new v([A(Object.assign(Object.assign({},t),{type:new kn}))]);throw new Error("Unrecognized input")}}throw new Error("Unrecognized input")}function nb(r){return r instanceof Z?[r]:r instanceof v?r.data:$n(r).data}var sp,op,ap,v,Ui,Ae=d(()=>{Nt();Mi();_t();Vr();Wa();Cn();Ie();Ga();Ya();_t();op={},ap={},v=class{constructor(t){var e,n,i;let s=t[0]instanceof v?t.flatMap(a=>a.data):t;if(s.length===0||s.some(a=>!(a instanceof Z)))throw new TypeError("Vector constructor expects an Array of Data instances.");let o=(e=s[0])===null||e===void 0?void 0:e.type;switch(s.length){case 0:this._offsets=[0];break;case 1:{let{get:a,set:l,indexOf:c}=op[o.typeId],u=s[0];this.isValid=h=>Hs(u,h),this.get=h=>a(u,h),this.set=(h,m)=>l(u,h,m),this.indexOf=h=>c(u,h),this._offsets=[0,u.length];break}default:Object.setPrototypeOf(this,ap[o.typeId]),this._offsets=ja(s);break}this.data=s,this.type=o,this.stride=xe(o),this.numChildren=(i=(n=o.children)===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((t,e)=>t+e.byteLength,0)}get nullable(){return np(this.data)}get nullCount(){return za(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${f[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}at(t){return this.get(Un(t,this.length))}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>-1}[Symbol.iterator](){return Ci.visit(this)}concat(...t){return new v(this.data.concat(t.flatMap(e=>e.data).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new v(Vs(this,t,e,({data:n,_offsets:i},s,o)=>Ha(n,i,s,o)))}toJSON(){return[...this]}toArray(){let{type:t,data:e,length:n,stride:i,ArrayType:s}=this;switch(t.typeId){case f.Int:case f.Float:case f.Decimal:case f.Time:case f.Timestamp:switch(e.length){case 0:return new s;case 1:return e[0].values.subarray(0,n*i);default:return e.reduce((o,{values:a,length:l})=>(o.array.set(a.subarray(0,l*i),o.offset),o.offset+=l*i,o),{array:new s(n*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var e;return this.getChildAt((e=this.type.children)===null||e===void 0?void 0:e.findIndex(n=>n.name===t))}getChildAt(t){return t>-1&&t<this.numChildren?new v(this.data.map(({children:e})=>e[t])):null}get isMemoized(){return _.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(_.isDictionary(this.type)){let t=new Ui(this.data[0].dictionary),e=this.data.map(n=>{let i=n.clone();return i.dictionary=t,i});return new v(e)}return new Ui(this)}unmemoize(){if(_.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),e=this.data.map(n=>{let i=n.clone();return i.dictionary=t,i});return new v(e)}return this}};sp=Symbol.toStringTag;v[sp]=(r=>{r.type=_.prototype,r.data=[],r.length=0,r.stride=1,r.numChildren=0,r._offsets=new Uint32Array([0]),r[Symbol.isConcatSpreadable]=!0;let t=Object.keys(f).map(e=>f[e]).filter(e=>typeof e=="number"&&e!==f.NONE);for(let e of t){let n=Bt.getVisitFnByTypeId(e),i=Ht.getVisitFnByTypeId(e),s=Hn.getVisitFnByTypeId(e);op[e]={get:n,set:i,indexOf:s},ap[e]=Object.create(r,{isValid:{value:ki(Hs)},get:{value:ki(Bt.getVisitFnByTypeId(e))},set:{value:$a(Ht.getVisitFnByTypeId(e))},indexOf:{value:Za(Hn.getVisitFnByTypeId(e))}})}return"Vector"})(v.prototype);Ui=class extends v{constructor(t){super(t.data);let e=this.get,n=this.set,i=this.slice,s=new Array(this.length);Object.defineProperty(this,"get",{value(o){let a=s[o];if(a!==void 0)return a;let l=e.call(this,o);return s[o]=l,l}}),Object.defineProperty(this,"set",{value(o,a){n.call(this,o,a),s[o]=a}}),Object.defineProperty(this,"slice",{value:(o,a)=>new Ui(i.call(this,o,a))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new v(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}});function cp(r){if(!r||r.length<=0)return function(i){return!0};let t="",e=r.filter(n=>n===n);return e.length>0&&(t=`
|
|
8
|
-
switch (x) {${
|
|
9
|
-
case ${
|
|
7
|
+
"use strict";var __exports__=(()=>{var Rz=Object.create;var Vu=Object.defineProperty;var Vz=Object.getOwnPropertyDescriptor;var Zz=Object.getOwnPropertyNames;var Wz=Object.getPrototypeOf,Jz=Object.prototype.hasOwnProperty;var m=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Hz=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},$e=(t,e)=>{for(var r in e)Vu(t,r,{get:e[r],enumerable:!0})},Ru=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zz(e))!Jz.call(t,n)&&n!==r&&Vu(t,n,{get:()=>e[n],enumerable:!(i=Vz(e,n))||i.enumerable});return t},Zu=(t,e,r)=>(Ru(t,e,"default"),r&&Ru(r,e,"default")),Gz=(t,e,r)=>(r=t!=null?Rz(Wz(t)):{},Ru(e||!t||!t.__esModule?Vu(r,"default",{value:t,enumerable:!0}):r,t)),Kz=t=>Ru(Vu({},"__esModule",{value:!0}),t);var Q$=Hz((wF,q$)=>{q$.exports=globalThis.loaders});var Wu,Ju,Hu,ko,yi=m(()=>{"use strict";Wu={name:"SPLAT",id:"splat",module:"splats",format:"splat",extensions:["splat"],mimeTypes:["application/octet-stream"],binary:!0},Ju={name:"KSPLAT",id:"ksplat",module:"splats",format:"ksplat",extensions:["ksplat"],mimeTypes:["application/octet-stream"],binary:!0},Hu={name:"SPZ",id:"spz",module:"splats",format:"spz",extensions:["spz"],mimeTypes:["application/octet-stream"],binary:!0,tests:[new Uint8Array([78,71,83,80]).buffer]},ko={name:"RAD",id:"rad",module:"splats",format:"rad",extensions:["rad"],mimeTypes:["application/octet-stream"],binary:!0,tests:[new Uint8Array([82,65,68,48]).buffer]}});var Gu,Yz,Ku,Xz,xF,ex=m(()=>{Gu=globalThis,Yz=globalThis.document||{},Ku=globalThis.process||{},Xz=globalThis.console,xF=globalThis.navigator||{}});function tx(t){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;let e=typeof navigator<"u"&&navigator.userAgent,r=t||e;return!!(r&&r.indexOf("Electron")>=0)}var rx=m(()=>{});function vi(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||tx()}var nx=m(()=>{rx()});var Im,Yu=m(()=>{ex();nx();Im="4.1.1"});function Do(t,e){if(!t)throw new Error(e||"Assertion failed")}var Sm=m(()=>{});function km(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 Do(Number.isFinite(e)&&e>=0),e}function ix(t){let{logLevel:e,message:r}=t;t.logLevel=km(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 Do(n==="string"||n==="object"),Object.assign(t,{args:i},t.opts)}var ox=m(()=>{Sm()});var bi,Xu,sx=m(()=>{ox();bi=()=>{},Xu=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 s=ix({logLevel:r,message:i,args:this._buildArgs(r,i,n),opts:o});return this._createLogFunction(e,s,o)}_buildArgs(e,r,i){return[e,r,...i]}_createLogFunction(e,r,i){if(!this._shouldLog(r.logLevel))return bi;let n=this._getOnceTag(i.tag??r.tag??r.message);if((i.once||r.once)&&n!==void 0){if(this._onceCache.has(n))return bi;this._onceCache.add(n)}return this._emit(e,r)}_shouldLog(e){return this.getLevel()>=km(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e=="string"?e:String(e)}catch{return}}}});function Qz(t){try{let e=window[t],r="__storage_test__";return e.setItem(r,r),e.removeItem(r),e}catch{return null}}var qu,ax=m(()=>{qu=class{constructor(e,r,i="sessionStorage"){this.storage=Qz(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 cx(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 ux(t,e=8){let r=Math.max(e-t.length,0);return`${" ".repeat(r)}${t}`}var lx=m(()=>{});function dx(t){return typeof t!="string"?t:(t=t.toUpperCase(),Qu[t]||Qu.WHITE)}function fx(t,e,r){return!vi&&typeof t=="string"&&(e&&(t=`\x1B[${dx(e)}m${t}\x1B[39m`),r&&(t=`\x1B[${dx(r)+eT}m${t}\x1B[49m`)),t}var Qu,eT,px=m(()=>{Yu();(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"})(Qu||(Qu={}));eT=10});function mx(t,e=["constructor"]){let r=Object.getPrototypeOf(t),i=Object.getOwnPropertyNames(r),n=t;for(let o of i){let s=n[o];typeof s=="function"&&(e.find(a=>o===a)||(n[o]=s.bind(t)))}}var hx=m(()=>{});function Ao(){let t;if(vi()&&Gu.performance)t=Gu?.performance?.now?.();else if("hrtime"in Ku){let e=Ku?.hrtime?.();t=e[0]*1e3+e[1]/1e6}else t=Date.now();return t}var gx=m(()=>{Yu()});function tT(t,e,r){if(typeof e=="string"){let i=r.time?ux(cx(r.total)):"";e=r.time?`${t}: ${i} ${e}`:`${t}: ${e}`,e=fx(e,r.color,r.background)}return e}function rT(t){for(let e in t)for(let r in t[e])return r||"untitled";return"empty"}var Oo,Dm,fn,Am=m(()=>{Yu();sx();ax();lx();px();hx();Sm();gx();Oo={debug:vi()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},Dm={enabled:!0,level:0},fn=class extends Xu{constructor({id:e}={id:""}){super({level:0}),this.VERSION=Im,this._startTs=Ao(),this._deltaTs=Ao(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new qu(`__probe-${this.id}__`,{[this.id]:Dm}),this.timeStamp(`${this.id} started`),mx(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((Ao()-this._startTs).toPrecision(10))}getDelta(){return Number((Ao()-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:Oo.warn,once:!0})}error(e,...r){return this._log("error",0,e,r,{method:Oo.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:Oo.log,time:!0,once:!0})}log(e,r,...i){return this._log("log",e,r,i,{method:Oo.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:Oo.debug||Oo.info,once:!0})}table(e,r,i){return r?this._log("table",e,r,i&&[i]||[],{method:console.table||bi,tag:rT(r)}):bi}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||bi})}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||bi})}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;Do(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=Ao();let n=tT(this.id,r.message,r);return i.bind(console,n,...r.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(Dm),this._storage.config[this.id]}_updateConfiguration(e){let r=this._storage.config[this.id]||{...Dm};this._storage.setConfiguration({[this.id]:{...r,...e}})}};fn.VERSION=Im});var yx=m(()=>{globalThis.probe={}});var QF,vx=m(()=>{Am();Am();yx();QF=new fn({id:"@probe.gl/log"})});function iT(){let t=new fn({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=t,globalThis.loaders.version=nT,globalThis.probe||={},globalThis.probe.loaders=t,t}var Om,nT,bx,_x=m(()=>{"use strict";vx();Om="5.0.0-alpha.11",nT=Om[0]>="0"&&Om[0]<="9"?`v${Om}`:"";bx=iT()});var oT,wx,$x,Bm=m(()=>{"use strict";oT=t=>t!==null&&typeof t=="object",wx=t=>oT(t)&&t.constructor==={}.constructor,$x=t=>typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer});function el(t,e){return xx(t||{},e)}function xx(t,e,r=0){if(r>3)return e;let i={...t};for(let[n,o]of Object.entries(e))wx(o)?i[n]=xx(i[n]||{},e[n],r+1):i[n]=e[n];return i}var Ix=m(()=>{"use strict";Bm()});function pn(t){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,t)}function tl(t,e){let r=globalThis.loaders?.modules?.[t];if(!r)throw new Error(`${e}: ${t} library not installed`);return r}function hr(t){return globalThis.loaders?.modules?.[t]||null}var zm=m(()=>{"use strict"});function Sx(...t){return sT(t)}function sT(t){let e=t.map(o=>o instanceof ArrayBuffer?new Uint8Array(o):o),r=e.reduce((o,s)=>o+s.byteLength,0),i=new Uint8Array(r),n=0;for(let o of e)i.set(o,n),n+=o.byteLength;return i.buffer}var kx=m(()=>{"use strict"});async function Tm(t){let e=[];for await(let r of t)e.push(aT(r));return Sx(...e)}function aT(t){if(t instanceof ArrayBuffer)return t;if(ArrayBuffer.isView(t)){let{buffer:e,byteOffset:r,byteLength:i}=t;return Dx(e,r,i)}return Dx(t)}function Dx(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 Ax=m(()=>{"use strict";kx()});function Um(t,e=[]){return t.every(Nm)?t:t.map((r,i)=>{if(Nm(r))return r;let n=e.find(s=>s.type===r?.type);if(!n)throw new Error(`No authentication class registered for credential at index ${i}.`);let o;try{o=new n(r)}catch{throw new Error(`Invalid authentication configuration at index ${i}.`)}if(!Nm(o))throw new Error(`Authentication class returned an invalid credential at index ${i}.`);return o})}function Pm(t){if(!t.core?.credentials?.length)return t;let e=Um(t.core.credentials,t.core.authentications);return e===t.core.credentials?t:{...t,core:{...t.core,credentials:e}}}function Nm(t){return!t||typeof t!="object"||typeof t.id!="string"||!Array.isArray(t.origins)?!1:t.type==="request"?typeof t.authenticate=="function":(t.type==="header"||t.type==="query-parameter")&&typeof t.name=="string"&&(typeof t.token=="string"||typeof t.token=="function")&&Array.isArray(t.refreshStatusCodes)}var Lm=m(()=>{"use strict"});function cT(t){let e=t.fetch||((d,f)=>fetch(d,f)),r=e[Ox],i=new Map(r?.credentialResolutions),n=Um(t.credentials.map(d=>i.get(d)||d),t.authentications);if(t.credentials.forEach((d,f)=>{i.set(d,n[f])}),!t.fetchOptions&&(!n.length||r?.credentials.length===n.length&&n.every((d,f)=>d===r.credentials[f])))return e;let o=r?.fetch||e,s=r?[...new Set([...n,...r.credentials])]:n,a=Bx(r?.fetchOptions||{},t.fetchOptions),c=s.filter(d=>d.type!=="request"),u=s.filter(d=>d.type==="request");for(let d of u)Px(d.origins);let l=async(d,f={})=>{if(f=Bx(a,f),f.signal?.aborted)throw aa();if(!s.length)return o(d,f);let p=dT(d),h=p?await Tx(p,f,c):{url:d,options:f,credentials:[]},y=await zx(h,u,"request"),_=await o(y.url,y.options),k=[];for(let S of h.credentials){let{credential:q}=S;typeof q.token=="function"&&(rl(f)||q.canReplayRequest?.(d,f))&&(rl(y.options)||q.canReplayRequest?.(y.url,y.options))&&(q.refreshStatusCodes.includes(_.status)||await q.shouldRefresh?.(_))&&k.push(S)}let I=rl(f)&&rl(y.options)&&y.credentials.some(S=>S.refreshStatusCodes?.includes(_.status));if(!k.length&&!I)return _;if(f.signal?.aborted)throw aa();let A=new Map;if(await Promise.all(k.map(async({credential:S})=>{let q=await uT(S,d,_);q&&A.set(S,q)})),!A.size&&!I)return _;if(await _.body?.cancel().catch(()=>{}),f.signal?.aborted)throw aa();let L=p?await Tx(p,f,c,A,h.credentials):{url:d,options:f},N=await zx(L,u,"retry",_);return o(N.url,N.options)};return Object.defineProperty(l,Ox,{value:{fetch:o,credentials:s,credentialResolutions:i,fetchOptions:a}}),l}function Nx(t={}){let e=t.fetch??t.core?.fetch,r;return typeof e=="function"?r=e:r=(i,n)=>fetch(i,n),cT({fetch:r,fetchOptions:typeof e=="object"&&e?e:void 0,credentials:t.core?.credentials||[],authentications:t.core?.authentications})}function Bx(t,e){let r={...t,...e};if(t.headers||e?.headers){let i=new Headers(t.headers);new Headers(e?.headers).forEach((n,o)=>i.set(o,n)),r.headers=i}return r}async function zx(t,e,r,i){let n=[],o=t.options.signal;for(let s of e){let a=Ux(t.url);if(!a||!Px(s.origins).includes(a))continue;if(o?.aborted)throw aa();let c=await s.authenticate({url:t.url,options:{...t.options,headers:new Headers(t.options.headers)},reason:r,response:i?{status:i.status,headers:new Headers(i.headers)}:void 0});if(!c||typeof c.url!="string"||!c.options||typeof c.options!="object")throw new Error("Authentication callback returned an invalid request.");t={url:c.url,options:{...c.options,...o?{signal:o}:{}}},n.push(s)}if(o?.aborted)throw aa();return{...t,credentials:n}}function Ux(t){try{let e=new URL(t);return!e.host||e.username||e.password?null:e.origin!=="null"?e.origin:`${e.protocol}//${e.host}`}catch{return null}}function Px(t){if(!t.length)throw new Error("Request authentication requires at least one exact origin.");return t.map(e=>{let r=Ux(e),i;try{i=new URL(e)}catch{throw new Error("Invalid request authentication origin.")}if(!r||i.pathname&&i.pathname!=="/"||i.search||i.hash)throw new Error("Invalid request authentication origin.");return r})}async function Tx(t,e,r,i=new Map,n=[]){let o=new URL(t),s=new Headers(e.headers),a=[],c=new Map(n.map(({credential:u,token:l})=>[u,l]));for(let u of r){if(!u.origins.includes(o.origin))continue;let l=i.get(u),d=c.get(u),f=u.type==="query-parameter"&&d!==void 0,p=u.type==="header"&&d!==void 0;if(u.type==="query-parameter"&&o.searchParams.has(u.name)&&!f||u.type==="header"&&s.has(u.name)&&!p)continue;let h=l??d??await lT(u.token,{url:t.toString(),reason:"request"});h&&(u.type==="query-parameter"?o.searchParams.set(u.name,h):s.set(u.name,`${u.prefix||""}${h}`),a.push({credential:u,token:h}))}return{url:o.toString(),options:{...e,headers:s},credentials:a}}async function uT(t,e,r){let i=Em.get(t);if(i)return i;let n=t.token,o=Promise.resolve(n({url:e,reason:"refresh",response:{status:r.status,headers:r.headers}})).finally(()=>Em.delete(t));return Em.set(t,o),o}async function lT(t,e){return typeof t=="function"?t(e):t}function dT(t){try{let e=new URL(t);return["http:","https:"].includes(e.protocol)?e:null}catch{return null}}function rl(t){let e=(t.method||"GET").toUpperCase();return["GET","HEAD","OPTIONS","PUT","DELETE"].includes(e)?!(t.body&&typeof ReadableStream<"u"&&t.body instanceof ReadableStream):!1}function aa(){return new DOMException("The operation was aborted.","AbortError")}var Ox,Em,Lx=m(()=>{"use strict";Lm();Ox=Symbol("loaders.gl.authenticated-fetch"),Em=new WeakMap});function Cx(t){for(let e in Ex)if(t.startsWith(e)){let r=Ex[e];t=t.replace(e,r)}return!t.startsWith("http://")&&!t.startsWith("https://")&&(t=`${fT}${t}`),t}var fT,Ex,Fx=m(()=>{"use strict";fT="",Ex={}});function nl(t){if(t instanceof ArrayBuffer)return t;if($x(t))return Cm(t);let{buffer:e,byteOffset:r,byteLength:i}=t;return e instanceof ArrayBuffer&&r===0&&i===e.byteLength?e:Cm(e,r,i)}function Cm(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 jx=m(()=>{"use strict";Bm()});function Mx(t){return Nx(t)}function Rx(t){if(t.loadOptions!==void 0||t.core?.loadOptions!==void 0)throw new Error("Source loadOptions and core.loadOptions were removed. Use core and root loader namespaces directly.");let e={...t};if(t?.core){e.core={...t.core};let n=e.core;for(let o of["type","attributions","loaders","onError","loadOptions"])delete n[o];Object.keys(n).length===0&&delete e.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}function mT(t,e){return t instanceof Error?t:typeof t=="string"?new Error(t):new Error(e)}function _i(t){return()=>{throw new Error(`CoreAPI.${t} is unavailable. Use @loaders.gl/core.createDataSource().`)}}var pT,ca,Vx=m(()=>{"use strict";Ix();Fx();_x();Lx();Lm();pT={fetchFile:_i("fetchFile"),parse:_i("parse"),parseFile:_i("parseFile"),parseSync:_i("parseSync"),parseInBatches:_i("parseInBatches"),load:_i("load"),loadInBatches:_i("loadInBatches")},ca=class t{static defaultOptions={core:{type:"auto",attributions:[],loaders:[],onError:void 0}};optionsType;options;data;url;loadOptions;fetch;coreApi;hasCoreApi;_needsRefresh=!0;constructor(e,r,i,n){this.options=el(el(t.defaultOptions,i||{}),r),this.data=e,this.url=typeof e=="string"?Cx(e):"";let o=Pm(Rx(this.options));this.loadOptions=o;let s=Mx(o);this.coreApi=n||pT,this.hasCoreApi=!!n,this.fetch=s}setProps(e){let r=el(this.options,e),i=Pm(Rx(r));this.options=r,this.loadOptions=i,this.fetch=Mx(i),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(e=!0){let r=this._needsRefresh;return e&&(this._needsRefresh=!1),r}reportError(e,r){let i=mT(e,r),n=this.options.core?.onError;return n?n(i,this):bx.warn(`${this.constructor.name}: ${i.message}`)(),i}}});var Bo=m(()=>{"use strict";zm();zm();Ax();jx();Vx()});var il,ol,rr,sl,wi=m(()=>{"use strict";Bo();il=class{async preload(e={}){pn(e)}concatenate(e){return Tm(e)}improveError(e){return e.message.includes(this.name)||(e.message=`${this.name} ${e.message}`),e}},ol=class extends il{constructor(e){super(),this.compressBatches=this.compressBatches.bind(this)}async compress(e){return await this.preload(),this.compressSync(e)}compressSync(e){throw new Error(`${this.name}: sync compression not supported`)}async*compressBatches(e){let r=await this.concatenate(e);yield this.compress(r)}},rr=class extends il{constructor(e){super(),this.decompressBatches=this.decompressBatches.bind(this)}async decompress(e,r){return await this.preload(),this.decompressSync(e,r)}decompressSync(e,r){throw new Error(`${this.name}: sync decompression not supported`)}async*decompressBatches(e){let r=await this.concatenate(e);yield this.decompress(r)}},sl=class extends ol{constructor(e){super(e),this.decompressBatches=this.decompressBatches.bind(this)}async decompress(e,r){return await this.preload(),this.decompressSync(e,r)}decompressSync(e,r){throw new Error(`${this.name}: sync decompression not supported`)}async*decompressBatches(e){let r=await this.concatenate(e);yield this.decompress(r)}}});async function Zx(t,e){let r=hT([t],e);return r?await bT(r):null}function hT(t,e){let r=gT(e);return r?yT(t,r):null}function gT(t){if(typeof globalThis.CompressionStream>"u")return null;try{let e=globalThis.CompressionStream;return new e(t)}catch(e){if(e instanceof TypeError||e?.name==="TypeError")return null;throw e}}async function*yT(t,e){let r=e.writable.getWriter(),i=e.readable.getReader(),n=vT(t,r);n.catch(()=>{});let o=!1;try{for(;;){let{done:s,value:a}=await i.read();if(s){o=!0;break}yield new Uint8Array(a).buffer}await n}finally{o||(await i.cancel().catch(()=>{}),await r.abort().catch(()=>{}),await n.catch(()=>{})),i.releaseLock()}}async function vT(t,e){try{for await(let r of t)await e.write(new Uint8Array(r));await e.close()}catch(r){throw await e.abort(r).catch(()=>{}),r}}async function bT(t){let e=[],r=0;for await(let o of t){let s=new Uint8Array(o);e.push(s),r+=s.byteLength}let i=new Uint8Array(r),n=0;for(let o of e)i.set(o,n),n+=o.byteLength;return i.buffer}var Wx=m(()=>{"use strict"});async function Ur(t,e){let r=mn([t],e);return r?await wT(r):null}function mn(t,e){let r=Hx(e);return r?_T(t,r):null}function Jx(t){return!!Hx(t)}function Hx(t){if(typeof globalThis.DecompressionStream>"u"||globalThis.process?.release?.name==="node"&&typeof globalThis.Buffer>"u")return null;try{let e=globalThis.DecompressionStream;return new e(t)}catch(e){if(e instanceof TypeError||e?.name==="TypeError")return null;throw e}}async function*_T(t,e){let r=e.writable.getWriter(),i=e.readable.getReader(),n=xT(t,r);n.catch(()=>{});let o=!1;try{for(;;){let{done:s,value:a}=await i.read();if(s){o=!0;break}yield $T(a)}await n}finally{o||(await i.cancel().catch(()=>{}),await r.abort().catch(()=>{}),await n.catch(()=>{})),i.releaseLock()}}async function wT(t){let e=[],r=0;for await(let o of t){let s=new Uint8Array(o);e.push(s),r+=s.byteLength}let i=new Uint8Array(r),n=0;for(let o of e)i.set(o,n),n+=o.byteLength;return i.buffer}function $T(t){return new Uint8Array(t).buffer}async function xT(t,e){try{for await(let r of t)await e.write(new Uint8Array(r));await e.close()}catch(r){throw await e.abort(r).catch(()=>{}),r}}var $i=m(()=>{"use strict"});var Gx={};$e(Gx,{NativeDecompressor:()=>Fm});var Fm,Kx=m(()=>{"use strict";wi();$i();Fm=class extends rr{name;extensions;contentEncodings;isSupported=!0;format;constructor(e,r,i={}){super(i),this.name=e.name,this.extensions=[...e.extensions],this.contentEncodings=[...e.contentEncodings],this.format=r}async decompress(e){let r=await Ur(e,this.format);if(!r)throw new Error(`${this.name}: built-in decompression is no longer available`);return r}async*decompressBatches(e){let r=mn(e,this.format);if(!r)throw new Error(`${this.name}: built-in decompression is no longer available`);yield*r}}});function IT(t,e){return{...t,modules:{...t.modules,...e}}}var ua,Yx=m(()=>{"use strict";wi();$i();ua=class extends rr{name;extensions;contentEncodings;isSupported=!0;options;nativeFormat;shouldUseNative;loadFallback;implementation=null;implementationPromise=null;constructor(e,r,i={},n=null,o=()=>!0){super(i),this.name=e.name,this.extensions=[...e.extensions],this.contentEncodings=[...e.contentEncodings],this.options=i,this.nativeFormat=n,this.shouldUseNative=o,this.loadFallback=r}async preload(e={}){if(this.implementation)return this.implementation;let r=IT(this.options,e);this.implementationPromise||=this.loadImplementation(r);try{return this.implementation=await this.implementationPromise,this.implementation}catch(i){throw this.implementationPromise=null,i}}async loadImplementation(e){if(e.useNative!==!1&&this.nativeFormat&&this.shouldUseNative(e)&&Jx(this.nativeFormat)){let{NativeDecompressor:n}=await Promise.resolve().then(()=>(Kx(),Gx));return new n(this,this.nativeFormat,e)}let r=await this.loadFallback(),i=new r({...e,useNative:!1});return await i.preload(e.modules),i}async decompress(e,r){return(await this.preload()).decompress(e,r)}decompressSync(e,r){if(!this.implementation)throw new Error(`${this.name}: call preload() before decompressSync()`);return this.implementation.decompressSync(e,r)}async*decompressBatches(e){yield*(await this.preload()).decompressBatches(e)}}});function iI(t,e){return ll(t,e)}function oI(t,e){return ll(t.subarray(nI(t),-8),e||new At(TT(t)))}function sI(t,e){return ll((NT(t),t.subarray(2,-4)),e)}var At,xi,Xx,qx,Qx,ST,eI,tI,kT,DT,Jj,Rm,la,da,rI,AT,OT,jm,gr,Mm,BT,al,zT,yt,ll,nI,TT,NT,Pr,cl,ul,Vm=m(()=>{"use strict";At=Uint8Array,xi=Uint16Array,Xx=Uint32Array,qx=new At([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Qx=new At([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ST=new At([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),eI=(t,e)=>{let r=new xi(31);for(let n=0;n<31;++n)r[n]=e+=1<<t[n-1];let i=new Xx(r[30]);for(let n=1;n<30;++n)for(let o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return[r,i]},[tI,kT]=eI(qx,2);tI[28]=258,kT[258]=28;[DT,Jj]=eI(Qx,0),Rm=new xi(32768);for(let t=0;t<32768;++t){let e=(t&43690)>>>1|(t&21845)<<1;e=(e&52428)>>>2|(e&13107)<<2,e=(e&61680)>>>4|(e&3855)<<4,Rm[t]=((e&65280)>>>8|(e&255)<<8)>>>1}la=(t,e,r)=>{let i=t.length,n=0,o=new xi(e);for(;n<i;++n)t[n]&&++o[t[n]-1];let s=new xi(e);for(n=0;n<e;++n)s[n]=s[n-1]+o[n-1]<<1;let a;if(r){a=new xi(1<<e);let c=15-e;for(n=0;n<i;++n)if(t[n]){let u=n<<4|t[n],l=e-t[n],d=s[t[n]-1]++<<l;for(let f=d|(1<<l)-1;d<=f;++d)a[Rm[d]>>>c]=u}}else for(a=new xi(i),n=0;n<i;++n)t[n]&&(a[n]=Rm[s[t[n]-1]++]>>>15-t[n]);return a},da=new At(288);for(let t=0;t<144;++t)da[t]=8;for(let t=144;t<256;++t)da[t]=9;for(let t=256;t<280;++t)da[t]=7;for(let t=280;t<288;++t)da[t]=8;rI=new At(32);for(let t=0;t<32;++t)rI[t]=5;AT=la(da,9,1),OT=la(rI,5,1),jm=t=>{let e=t[0];for(let r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},gr=(t,e,r)=>{let i=e/8|0;return(t[i]|t[i+1]<<8)>>(e&7)&r},Mm=(t,e)=>{let r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},BT=t=>(t+7)/8|0,al=(t,e,r)=>{(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);let i=new(t.BYTES_PER_ELEMENT==2?xi:t.BYTES_PER_ELEMENT==4?Xx:At)(r-e);return i.set(t.subarray(e,r)),i},zT=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],yt=(t,e,r)=>{let i=new Error(e||zT[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,yt),!r)throw i;return i},ll=(t,e,r)=>{let i=t.length;if(!i||r&&r.f&&!r.l)return e||new At(0);let n=!e||r,o=!r||r.i;r||(r={}),e||(e=new At(i*3));let s=y=>{let _=e.length;if(y>_){let k=new At(Math.max(_*2,y));k.set(e),e=k}},a=r.f||0,c=r.p||0,u=r.b||0,l=r.l,d=r.d,f=r.m,p=r.n,h=i*8;do{if(!l){a=gr(t,c,1);let I=gr(t,c+1,3);if(c+=3,I)if(I==1)l=AT,d=OT,f=9,p=5;else if(I==2){let A=gr(t,c,31)+257,L=gr(t,c+10,15)+4,N=A+gr(t,c+5,31)+1;c+=14;let S=new At(N),q=new At(19);for(let Ee=0;Ee<L;++Ee)q[ST[Ee]]=gr(t,c+Ee*3,7);c+=L*3;let Ue=jm(q),Re=(1<<Ue)-1,Le=la(q,Ue,1);for(let Ee=0;Ee<N;){let ge=Le[gr(t,c,Re)];c+=ge&15;let se=ge>>>4;if(se<16)S[Ee++]=se;else{let nt=0,dn=0;for(se==16?(dn=3+gr(t,c,3),c+=2,nt=S[Ee-1]):se==17?(dn=3+gr(t,c,7),c+=3):se==18&&(dn=11+gr(t,c,127),c+=7);dn--;)S[Ee++]=nt}}let ut=S.subarray(0,A),gt=S.subarray(A);f=jm(ut),p=jm(gt),l=la(ut,f,1),d=la(gt,p,1)}else yt(1);else{let A=BT(c)+4,L=t[A-4]|t[A-3]<<8,N=A+L;if(N>i){o&&yt(0);break}n&&s(u+L),e.set(t.subarray(A,N),u),r.b=u+=L,r.p=c=N*8,r.f=a;continue}if(c>h){o&&yt(0);break}}n&&s(u+131072);let y=(1<<f)-1,_=(1<<p)-1,k=c;for(;;k=c){let I=l[Mm(t,c)&y],A=I>>>4;if(c+=I&15,c>h){o&&yt(0);break}if(I||yt(2),A<256)e[u++]=A;else if(A==256){k=c,l=void 0;break}else{let L=A-254;if(A>264){let Re=A-257,Le=qx[Re];L=gr(t,c,(1<<Le)-1)+tI[Re],c+=Le}let N=d[Mm(t,c)&_],S=N>>>4;N||yt(3),c+=N&15;let q=DT[S];if(S>3){let Re=Qx[S];q+=Mm(t,c)&(1<<Re)-1,c+=Re}if(c>h){o&&yt(0);break}n&&s(u+131072);let Ue=u+L;for(;u<Ue;u+=4)e[u]=e[u-q],e[u+1]=e[u+1-q],e[u+2]=e[u+2-q],e[u+3]=e[u+3-q];u=Ue}}r.l=l,r.p=k,r.b=u,r.f=a,l&&(a=1,r.m=f,r.d=d,r.n=p)}while(!a);return u==e.length?e:al(e,0,u)},nI=t=>{(t[0]!=31||t[1]!=139||t[2]!=8)&&yt(6,"invalid gzip data");let e=t[3],r=10;e&4&&(r+=t[10]|(t[11]<<8)+2);for(let i=(e>>3&1)+(e>>4&1);i>0;i-=!t[r++]);return r+(e&2)},TT=t=>{let e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},NT=t=>{((t[0]&15)!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&yt(6,"invalid zlib data"),t[1]&32&&yt(6,"invalid zlib data: preset dictionaries not supported")},Pr=class{constructor(e){this.ondata=e}s={};o;p=new At(0);d;ondata;e(e){this.ondata||yt(5),this.d&&yt(4);let r=this.p.length,i=new At(r+e.length);i.set(this.p),i.set(e,r),this.p=i}c(e){this.d=this.s.i=e||!1;let r=this.s.b,i=ll(this.p,this.o,this.s);this.ondata(al(i,r,this.s.b),this.d),this.o=al(i,this.s.b-32768),this.s.b=this.o.length,this.p=al(this.p,this.s.p/8|0),this.s.p&=7}push(e,r){this.e(e),this.c(r)}};cl=class extends Pr{v=1;constructor(e){super(e)}push(e,r){if(Pr.prototype.e.call(this,e),this.v){let i=this.p.length>3?nI(this.p):4;if(i>=this.p.length&&!r)return;this.p=this.p.subarray(i),this.v=0}r&&(this.p.length<8&&yt(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),Pr.prototype.c.call(this,r)}};ul=class extends Pr{v=1;constructor(e){super(e)}push(e,r){if(Pr.prototype.e.call(this,e),this.v){if(this.p.length<2&&!r)return;this.p=this.p.subarray(2),this.v=0}r&&(this.p.length<4&&yt(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Pr.prototype.c.call(this,r)}}});async function*dl(t,e){let r=[];t.ondata=i=>{r.push(i.slice().buffer)};for await(let i of e)t.push(new Uint8Array(i),!1),yield*r.splice(0);t.push(new Uint8Array(0),!0),yield*r}var Zm=m(()=>{"use strict"});var fl,aI=m(()=>{"use strict";Vm();wi();Zm();fl=class extends rr{name="gzip";extensions=["gz","gzip"];contentEncodings=["gzip","x-gzip"];isSupported=!0;constructor(e={}){super(e)}decompressSync(e){return oI(new Uint8Array(e)).slice().buffer}async*decompressBatches(e){yield*dl(new cl,e)}}});var cI={};$e(cI,{GZipDecompressor:()=>Wm});var Wm,uI=m(()=>{"use strict";aI();$i();Wm=class extends fl{options;constructor(e={}){super(e),this.options=e}async decompress(e){if(this.options.useNative!==!1){let r=await Ur(e,"gzip");if(r)return r}return this.decompressSync(e)}async*decompressBatches(e){if(this.options.useNative!==!1){let r=mn(e,"gzip");if(r){yield*r;return}}yield*super.decompressBatches(e)}}});function hl(t,e){for(var r=[],i=+!e,n=0,o=0;t.length;){var s=FT(t,i||e);if(typeof s=="object"){for(i?(e=null,s.w.length==s.u&&(r.push(e=s.w),o+=s.u)):(r.push(e),s.e=0);!s.l;){var a=HT(t,s,e);a||We(5),e?s.e=s.y:(r.push(a),o+=a.length,LT(s.w,0,a.length),s.w.set(a,s.w.length-a.length))}n=s.b+s.c*4}else n=s;t=t.subarray(n)}return GT(r,o)}var UT,Ve,pl,PT,ml,Jm,pa,LT,ET,We,lI,CT,FT,Ii,ma,jT,MT,RT,VT,dI,Hm,ZT,Gm,WT,fa,JT,HT,GT,Km=m(()=>{UT=ArrayBuffer,Ve=Uint8Array,pl=Uint16Array,PT=Int16Array,ml=Int32Array,Jm=function(t,e,r){if(Ve.prototype.slice)return Ve.prototype.slice.call(t,e,r);(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new Ve(r-e);return i.set(t.subarray(e,r)),i},pa=function(t,e,r,i){if(Ve.prototype.fill)return Ve.prototype.fill.call(t,e,r,i);for((r==null||r<0)&&(r=0),(i==null||i>t.length)&&(i=t.length);r<i;++r)t[r]=e;return t},LT=function(t,e,r,i){if(Ve.prototype.copyWithin)return Ve.prototype.copyWithin.call(t,e,r,i);for((r==null||r<0)&&(r=0),(i==null||i>t.length)&&(i=t.length);r<i;)t[e++]=t[r++]},ET=["invalid zstd data","window size too large (>2046MB)","invalid block type","FSE accuracy too high","match distance too far back","unexpected EOF"],We=function(t,e,r){var i=new Error(e||ET[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,We),!r)throw i;return i},lI=function(t,e,r){for(var i=0,n=0;i<r;++i)n|=t[e++]<<(i<<3);return n},CT=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},FT=function(t,e){var r=t[0]|t[1]<<8|t[2]<<16;if(r==3126568&&t[3]==253){var i=t[4],n=i>>5&1,o=i>>2&1,s=i&3,a=i>>6;i&8&&We(0);var c=6-n,u=s==3?4:s,l=lI(t,c,u);c+=u;var d=a?1<<a:n,f=lI(t,c,d)+(a==1&&256),p=f;if(!n){var h=1<<10+(t[5]>>3);p=h+(h>>3)*(t[5]&7)}p>2145386496&&We(1);var y=new Ve((e==1?f||p:e?0:p)+12);return y[0]=1,y[4]=4,y[8]=8,{b:c+d,y:0,l:0,d:l,w:e&&e!=1?e:y.subarray(12),e:p,o:new ml(y.buffer,0,3),u:f,c:o,m:Math.min(131072,p)}}else if((r>>4|t[3]<<20)==25481893)return CT(t,4)+8;We(0)},Ii=function(t){for(var e=0;1<<e<=t;++e);return e-1},ma=function(t,e,r){var i=(e<<3)+4,n=(t[e]&15)+5;n>r&&We(3);for(var o=1<<n,s=o,a=-1,c=-1,u=-1,l=o,d=new UT(512+(o<<2)),f=new PT(d,0,256),p=new pl(d,0,256),h=new pl(d,512,o),y=512+(o<<1),_=new Ve(d,y,o),k=new Ve(d,y+o);a<255&&s>0;){var I=Ii(s+1),A=i>>3,L=(1<<I+1)-1,N=(t[A]|t[A+1]<<8|t[A+2]<<16)>>(i&7)&L,S=(1<<I)-1,q=L-s-1,Ue=N&S;if(Ue<q?(i+=I,N=Ue):(i+=I+1,N>S&&(N-=q)),f[++a]=--N,N==-1?(s+=N,_[--l]=a):s-=N,!N)do{var Re=i>>3;c=(t[Re]|t[Re+1]<<8)>>(i&7)&3,i+=2,a+=c}while(c==3)}(a>255||s)&&We(0);for(var Le=0,ut=(o>>1)+(o>>3)+3,gt=o-1,Ee=0;Ee<=a;++Ee){var ge=f[Ee];if(ge<1){p[Ee]=-ge;continue}for(u=0;u<ge;++u){_[Le]=Ee;do Le=Le+ut>while(Le>=l)}}for(Le&&We(0),u=0;u<o;++u){var se=p[_[u]]++,nt=k[u]=n-Ii(se);h[u]=(se<<nt)-o}return[i+7>>3,{b:n,s:_,n:k,t:h}]},jT=function(t,e){var r=0,i=-1,n=new Ve(292),o=t[e],s=n.subarray(0,256),a=n.subarray(256,268),c=new pl(n.buffer,268);if(o<128){var u=ma(t,e+1,6),l=u[0],d=u[1];e+=o;var f=l<<3,p=t[e];p||We(0);for(var h=0,y=0,_=d.b,k=_,I=(++e<<3)-8+Ii(p);I-=_,!(I<f);){var A=I>>3;if(h+=(t[A]|t[A+1]<<8)>>(I&7)&(1<<_)-1,s[++i]=d.s[h],I-=k,I<f)break;A=I>>3,y+=(t[A]|t[A+1]<<8)>>(I&7)&(1<<k)-1,s[++i]=d.s[y],_=d.n[h],h=d.t[h],k=d.n[y],y=d.t[y]}++i>255&&We(0)}else{for(i=o-127;r<i;r+=2){var L=t[++e];s[r]=L>>4,s[r+1]=L&15}++e}var N=0;for(r=0;r<i;++r){var S=s[r];S>11&&We(0),N+=S&&1<<S-1}var q=Ii(N)+1,Ue=1<<q,Re=Ue-N;for(Re&Re-1&&We(0),s[i++]=Ii(Re)+1,r=0;r<i;++r){var S=s[r];++a[s[r]=S&&q+1-S]}var Le=new Ve(Ue<<1),ut=Le.subarray(0,Ue),gt=Le.subarray(Ue);for(c[q]=0,r=q;r>0;--r){var Ee=c[r];pa(gt,r,Ee,c[r-1]=Ee+a[r]*(1<<q-r))}for(c[0]!=Ue&&We(0),r=0;r<i;++r){var ge=s[r];if(ge){var se=c[ge];pa(ut,r,se,c[ge]=se+(1<<q-ge))}}return[e,{n:gt,b:q,s:ut}]},MT=ma(new Ve([81,16,99,140,49,198,24,99,12,33,196,24,99,102,102,134,70,146,4]),0,6)[1],RT=ma(new Ve([33,20,196,24,99,140,33,132,16,66,8,33,132,16,66,8,33,68,68,68,68,68,68,68,68,36,9]),0,6)[1],VT=ma(new Ve([32,132,16,66,102,70,68,68,68,68,36,73,2]),0,5)[1],dI=function(t,e){for(var r=t.length,i=new ml(r),n=0;n<r;++n)i[n]=e,e+=1<<t[n];return i},Hm=new Ve(new ml([0,0,0,0,16843009,50528770,134678020,202050057,269422093]).buffer,0,36),ZT=dI(Hm,0),Gm=new Ve(new ml([0,0,0,0,0,0,0,0,16843009,50528770,117769220,185207048,252579084,16]).buffer,0,53),WT=dI(Gm,3),fa=function(t,e,r){var i=t.length,n=e.length,o=t[i-1],s=(1<<r.b)-1,a=-r.b;o||We(0);for(var c=0,u=r.b,l=(i<<3)-8+Ii(o)-u,d=-1;l>a&&d<n;){var f=l>>3,p=(t[f]|t[f+1]<<8|t[f+2]<<16)>>(l&7);c=(c<<u|p)&s,e[++d]=r.s[c],l-=u=r.n[c]}(l!=a||d+1!=n)&&We(0)},JT=function(t,e,r){var i=6,n=e.length,o=n+3>>2,s=o<<1,a=o+s;fa(t.subarray(i,i+=t[0]|t[1]<<8),e.subarray(0,o),r),fa(t.subarray(i,i+=t[2]|t[3]<<8),e.subarray(o,s),r),fa(t.subarray(i,i+=t[4]|t[5]<<8),e.subarray(s,a),r),fa(t.subarray(i),e.subarray(a),r)},HT=function(t,e,r){var i,n=e.b,o=t[n],s=o>>1&3;e.l=o&1;var a=o>>3|t[n+1]<<5|t[n+2]<<13,c=(n+=3)+a;if(s==1)return n>=t.length?void 0:(e.b=n+1,r?(pa(r,t[n],e.y,e.y+=a),r):pa(new Ve(a),t[n]));if(!(c>t.length)){if(s==0)return e.b=c,r?(r.set(t.subarray(n,c),e.y),e.y+=a,r):Jm(t,n,c);if(s==2){var u=t[n],l=u&3,d=u>>2&3,f=u>>4,p=0,h=0;l<2?d&1?f|=t[++n]<<4|(d&2&&t[++n]<<12):f=u>>3:(h=d,d<2?(f|=(t[++n]&63)<<4,p=t[n]>>6|t[++n]<<2):d==2?(f|=t[++n]<<4|(t[++n]&3)<<12,p=t[n]>>2|t[++n]<<6):(f|=t[++n]<<4|(t[++n]&63)<<12,p=t[n]>>6|t[++n]<<2|t[++n]<<10)),++n;var y=r?r.subarray(e.y,e.y+e.m):new Ve(e.m),_=y.length-f;if(l==0)y.set(t.subarray(n,n+=f),_);else if(l==1)pa(y,t[n++],_);else{var k=e.h;if(l==2){var I=jT(t,n);p+=n-(n=I[0]),e.h=k=I[1]}else k||We(0);(h?JT:fa)(t.subarray(n,n+=p),y.subarray(_),k)}var A=t[n++];if(A){A==255?A=(t[n++]|t[n++]<<8)+32512:A>127&&(A=A-128<<8|t[n++]);var L=t[n++];L&3&&We(0);for(var N=[RT,VT,MT],S=2;S>-1;--S){var q=L>>(S<<1)+2&3;if(q==1){var Ue=new Ve([0,0,t[n++]]);N[S]={s:Ue.subarray(2,3),n:Ue.subarray(0,1),t:new pl(Ue.buffer,0,1),b:0}}else q==2?(i=ma(t,n,9-(S&1)),n=i[0],N[S]=i[1]):q==3&&(e.t||We(0),N[S]=e.t[S])}var Re=e.t=N,Le=Re[0],ut=Re[1],gt=Re[2],Ee=t[c-1];Ee||We(0);var ge=(c<<3)-8+Ii(Ee)-gt.b,se=ge>>3,nt=0,dn=(t[se]|t[se+1]<<8)>>(ge&7)&(1<<gt.b)-1;se=(ge-=ut.b)>>3;var Cu=(t[se]|t[se+1]<<8)>>(ge&7)&(1<<ut.b)-1;se=(ge-=Le.b)>>3;var Fu=(t[se]|t[se+1]<<8)>>(ge&7)&(1<<Le.b)-1;for(++A;--A;){var $m=gt.s[dn],H$=gt.n[dn],xm=Le.s[Fu],G$=Le.n[Fu],K$=ut.s[Cu],Y$=ut.n[Cu];se=(ge-=K$)>>3;var X$=1<<K$,gi=X$+((t[se]|t[se+1]<<8|t[se+2]<<16|t[se+3]<<24)>>>(ge&7)&X$-1);se=(ge-=Gm[xm])>>3;var ia=WT[xm]+((t[se]|t[se+1]<<8|t[se+2]<<16)>>(ge&7)&(1<<Gm[xm])-1);se=(ge-=Hm[$m])>>3;var ju=ZT[$m]+((t[se]|t[se+1]<<8|t[se+2]<<16)>>(ge&7)&(1<<Hm[$m])-1);if(se=(ge-=H$)>>3,dn=gt.t[dn]+((t[se]|t[se+1]<<8)>>(ge&7)&(1<<H$)-1),se=(ge-=G$)>>3,Fu=Le.t[Fu]+((t[se]|t[se+1]<<8)>>(ge&7)&(1<<G$)-1),se=(ge-=Y$)>>3,Cu=ut.t[Cu]+((t[se]|t[se+1]<<8)>>(ge&7)&(1<<Y$)-1),gi>3)e.o[2]=e.o[1],e.o[1]=e.o[0],e.o[0]=gi-=3;else{var Mu=gi-(ju!=0);Mu?(gi=Mu==3?e.o[0]-1:e.o[Mu],Mu>1&&(e.o[2]=e.o[1]),e.o[1]=e.o[0],e.o[0]=gi):gi=e.o[0]}for(var S=0;S<ju;++S)y[nt+S]=y[_+S];nt+=ju,_+=ju;var oa=nt-gi;if(oa<0){var sa=-oa,Mz=e.e+oa;sa>ia&&(sa=ia);for(var S=0;S<sa;++S)y[nt+S]=e.w[Mz+S];nt+=sa,ia-=sa,oa=0}for(var S=0;S<ia;++S)y[nt+S]=y[oa+S];nt+=ia}if(nt!=_)for(;_<y.length;)y[nt++]=y[_++];else nt=y.length;r?e.y+=nt:y=Jm(y,0,nt)}else if(r){if(e.y+=f,_)for(var S=0;S<f;++S)y[S]=y[_+S]}else _&&(y=Jm(y,_));return e.b=c,y}We(2)}},GT=function(t,e){if(t.length==1)return t[0];for(var r=new Ve(e),i=0,n=0;i<t.length;++i){var o=t[i];r.set(o,n),n+=o.length}return r}});var gl,fI=m(()=>{"use strict";wi();Km();gl=class extends rr{name="zstd";extensions=["zst"];contentEncodings=["zstd"];isSupported=!0;constructor(e={}){super(e)}decompressSync(e){return hl(new Uint8Array(e)).slice().buffer}}});var pI={};$e(pI,{decompressZstd:()=>KT});function KT(t){return hl(t)}var mI=m(()=>{"use strict";Km()});var gI={};$e(gI,{ZstdCompression:()=>Ym});var hI,yl,ha,Ym,yI=m(()=>{"use strict";wi();Bo();Wx();$i();hI=1e6,Ym=class extends sl{name="zstd";extensions=[];contentEncodings=[];isSupported=!0;options;constructor(e={}){super(e),this.options=e,pn(e?.modules)}async preload(e={}){pn(e);let r=hr("zstd-codec");!yl&&r&&(yl=new Promise(i=>r.run(n=>i(n)))),yl&&(ha=await yl)}compressSync(e){tl("zstd-codec",this.name);let r=new ha.Simple,i=new Uint8Array(e);return r.compress(i).buffer}async compress(e){if(this.options.useNative!==!1&&this.options.zstd?.useNative!==!1){let r=await Zx(e,"zstd");if(r)return r}return await this.preload(),this.compressSync(e)}decompressSync(e){tl("zstd-codec",this.name);let r=new ha.Simple,i=new Uint8Array(e);return r.decompress(i).buffer}async decompress(e,r){if(!hr("zstd-codec")&&this.options.useNative!==!1&&this.options.zstd?.useNative!==!1){let a=await Ur(e,"zstd");if(a)return a}await this.preload();let i=new Uint8Array(e);if(!ha){let{decompressZstd:a}=await Promise.resolve().then(()=>(mI(),pI));return nl(a(i))}let n=new ha.Streaming,o=[];for(let a=0;a<=i.length;a+=hI){let c=i.subarray(a,a+hI),u=nl(c);o.push(new Uint8Array(u))}return(await n.decompressChunks(o)).buffer}}});var vI={};$e(vI,{ZstdDecompressor:()=>Xm});var Xm,bI=m(()=>{"use strict";fI();$i();Bo();Xm=class extends gl{options;compatibility=null;constructor(e={}){super(e),this.options=e,pn(e.modules)}async preload(e={}){if(pn(e),hr("zstd-codec")){let{ZstdCompression:r}=await Promise.resolve().then(()=>(yI(),gI));this.compatibility||=new r(this.options),await this.compatibility.preload(e)}}async decompress(e){if(this.options.useNative!==!1){let r=await Ur(e,"zstd");if(r)return r}return hr("zstd-codec")&&await this.preload(this.options.modules),this.decompressSync(e)}decompressSync(e){if(this.compatibility)return this.compatibility.decompressSync(e);if(hr("zstd-codec"))throw new Error("zstd: call preload() before synchronous decompression with zstd-codec");return super.decompressSync(e)}async*decompressBatches(e){if(this.options.useNative!==!1){let r=mn(e,"zstd");if(r){yield*r;return}}if(hr("zstd-codec")){yield this.decompress(await this.concatenate(e));return}yield*super.decompressBatches(e)}}});var YT,XT,ga,ya,_I=m(()=>{"use strict";Yx();Bo();YT={name:"gzip",extensions:["gz"],contentEncodings:["gzip"]},XT={name:"zstd",extensions:["zst"],contentEncodings:["zstd"]},ga=class extends ua{constructor(e={}){super(YT,async()=>(await Promise.resolve().then(()=>(uI(),cI))).GZipDecompressor,e,"gzip")}},ya=class extends ua{constructor(e={}){super(XT,async()=>(await Promise.resolve().then(()=>(bI(),vI))).ZstdDecompressor,e,"zstd",r=>!r.modules?.["zstd-codec"]&&!hr("zstd-codec"))}}});var wI=m(()=>{"use strict";_I()});function xI(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}function T(t,e,r,i){function n(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{u(i.next(l))}catch(d){s(d)}}function c(l){try{u(i.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})}function $I(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ne(t){return this instanceof ne?(this.v=t,this):new ne(t)}function Mt(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(t,e||[]),n,o=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),n[Symbol.asyncIterator]=function(){return this},n;function s(p){return function(h){return Promise.resolve(h).then(p,d)}}function a(p,h){i[p]&&(n[p]=function(y){return new Promise(function(_,k){o.push([p,y,_,k])>1||c(p,y)})},h&&(n[p]=h(n[p])))}function c(p,h){try{u(i[p](h))}catch(y){f(o[0][3],y)}}function u(p){p.value instanceof ne?Promise.resolve(p.value.v).then(l,d):f(o[0][2],p)}function l(p){c("next",p)}function d(p){c("throw",p)}function f(p,h){p(h),o.shift(),o.length&&c(o[0][0],o[0][1])}}function zo(t){var e,r;return e={},i("next"),i("throw",function(n){throw n}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(n,o){e[n]=t[n]?function(s){return(r=!r)?{value:ne(t[n](s)),done:!1}:o?o(s):s}:o}}function yr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof $I=="function"?$I(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),n(a,c,s.done,s.value)})}}function n(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var Rt=m(()=>{});var II,To,qT,Vt,hn=m(()=>{II=new TextDecoder("utf-8"),To=II.decode.bind(II),qT=new TextEncoder,Vt=t=>qT.encode(t)});var QT,SI,Ye,vt,vr,br,nr,vl,bl,_l,wl,$l,kI,va,DI,xl,AI,Si=m(()=>{QT=t=>typeof t=="number",SI=t=>typeof t=="boolean",Ye=t=>typeof t=="function",vt=t=>t!=null&&Object(t)===t,vr=t=>vt(t)&&Ye(t.then),br=t=>vt(t)&&Ye(t[Symbol.iterator]),nr=t=>vt(t)&&Ye(t[Symbol.asyncIterator]),vl=t=>vt(t)&&vt(t.schema),bl=t=>vt(t)&&"done"in t&&"value"in t,_l=t=>vt(t)&&Ye(t.stat)&&QT(t.fd),wl=t=>vt(t)&&va(t.body),$l=t=>"_getDOMStream"in t&&"_getNodeStream"in t,kI=t=>vt(t)&&Ye(t.abort)&&Ye(t.getWriter)&&!$l(t),va=t=>vt(t)&&Ye(t.cancel)&&Ye(t.getReader)&&!$l(t),DI=t=>vt(t)&&Ye(t.end)&&Ye(t.write)&&SI(t.writable)&&!$l(t),xl=t=>vt(t)&&Ye(t.read)&&Ye(t.pipe)&&SI(t.readable)&&!$l(t),AI=t=>vt(t)&&Ye(t.clear)&&Ye(t.bytes)&&Ye(t.position)&&Ye(t.setPosition)&&Ye(t.capacity)&&Ye(t.getBufferIdentifier)&&Ye(t.createLong)});var nh={};$e(nh,{compareArrayLike:()=>rh,joinUint8Arrays:()=>Zt,memcpy:()=>ba,rebaseValueOffsets:()=>Il,toArrayBufferView:()=>ie,toArrayBufferViewAsyncIterator:()=>_r,toArrayBufferViewIterator:()=>Lr,toBigInt64Array:()=>_a,toBigUint64Array:()=>oN,toFloat32Array:()=>sN,toFloat32ArrayAsyncIterator:()=>$N,toFloat32ArrayIterator:()=>mN,toFloat64Array:()=>aN,toFloat64ArrayAsyncIterator:()=>xN,toFloat64ArrayIterator:()=>hN,toInt16Array:()=>rN,toInt16ArrayAsyncIterator:()=>vN,toInt16ArrayIterator:()=>lN,toInt32Array:()=>ki,toInt32ArrayAsyncIterator:()=>bN,toInt32ArrayIterator:()=>dN,toInt8Array:()=>tN,toInt8ArrayAsyncIterator:()=>yN,toInt8ArrayIterator:()=>uN,toUint16Array:()=>nN,toUint16ArrayAsyncIterator:()=>_N,toUint16ArrayIterator:()=>fN,toUint32Array:()=>iN,toUint32ArrayAsyncIterator:()=>wN,toUint32ArrayIterator:()=>pN,toUint8Array:()=>F,toUint8ArrayAsyncIterator:()=>th,toUint8ArrayIterator:()=>eh,toUint8ClampedArray:()=>cN,toUint8ClampedArrayAsyncIterator:()=>IN,toUint8ClampedArrayIterator:()=>gN});function eN(t){let e=t[0]?[t[0]]:[],r,i,n,o;for(let s,a,c=0,u=0,l=t.length;++c<l;){if(s=e[u],a=t[c],!s||!a||s.buffer!==a.buffer||a.byteOffset<s.byteOffset){a&&(e[++u]=a);continue}if({byteOffset:r,byteLength:n}=s,{byteOffset:i,byteLength:o}=a,r+n<i||i+o<r){a&&(e[++u]=a);continue}e[u]=new Uint8Array(s.buffer,r,i-r+o)}return e}function ba(t,e,r=0,i=e.byteLength){let n=t.byteLength,o=new Uint8Array(t.buffer,t.byteOffset,n),s=new Uint8Array(e.buffer,e.byteOffset,Math.min(i,n));return o.set(s,r),t}function Zt(t,e){let r=eN(t),i=r.reduce((l,d)=>l+d.byteLength,0),n,o,s,a=0,c=-1,u=Math.min(e||Number.POSITIVE_INFINITY,i);for(let l=r.length;++c<l;){if(n=r[c],o=n.subarray(0,Math.min(n.length,u-a)),u<=a+o.length){o.length<n.length?r[c]=n.subarray(o.length):o.length===n.length&&c++,s?ba(s,o,a):s=o;break}ba(s||(s=new Uint8Array(u)),o,a),a+=o.length}return[s||new Uint8Array(0),r.slice(c),i-(s?s.byteLength:0)]}function ie(t,e){let r=bl(e)?e.value:e;return r instanceof t?t===Uint8Array?new t(r.buffer,r.byteOffset,r.byteLength):r:r?(typeof r=="string"&&(r=Vt(r)),r instanceof ArrayBuffer?new t(r):r instanceof Qm?new t(r):AI(r)?ie(t,r.bytes()):ArrayBuffer.isView(r)?r.byteLength<=0?new t(0):new t(r.buffer,r.byteOffset,r.byteLength/t.BYTES_PER_ELEMENT):t.from(r)):new t(0)}function*Lr(t,e){let r=function*(n){yield n},i=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Qm?r(e):br(e)?e:r(e);return yield*qm((function*(n){let o=null;do o=n.next(yield ie(t,o));while(!o.done)})(i[Symbol.iterator]())),new t}function _r(t,e){return Mt(this,arguments,function*(){if(vr(e))return yield ne(yield ne(yield*zo(yr(_r(t,yield ne(e))))));let i=function(s){return Mt(this,arguments,function*(){yield yield ne(yield ne(s))})},n=function(s){return Mt(this,arguments,function*(){yield ne(yield*zo(yr(qm((function*(a){let c=null;do c=a.next(yield c?.value);while(!c.done)})(s[Symbol.iterator]())))))})},o=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Qm?i(e):br(e)?n(e):nr(e)?e:i(e);return yield ne(yield*zo(yr(qm((function(s){return Mt(this,arguments,function*(){let a=null;do a=yield ne(s.next(yield yield ne(ie(t,a))));while(!a.done)})})(o[Symbol.asyncIterator]()))))),yield ne(new t)})}function Il(t,e,r){if(t!==0){r=r.slice(0,e);let i=typeof r[0]=="bigint"?BigInt(t):t;for(let n=-1,o=r.length;++n<o;)r[n]+=i}return r.subarray(0,e)}function rh(t,e){let r=0,i=t.length;if(i!==e.length)return!1;if(i>0)do if(t[r]!==e[r])return!1;while(++r<i);return!0}var Qm,tN,rN,ki,_a,F,nN,iN,oN,sN,aN,cN,qm,uN,lN,dN,eh,fN,pN,mN,hN,gN,yN,vN,bN,th,_N,wN,$N,xN,IN,Xe=m(()=>{Rt();hn();Si();Qm=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;tN=t=>ie(Int8Array,t),rN=t=>ie(Int16Array,t),ki=t=>ie(Int32Array,t),_a=t=>ie(BigInt64Array,t),F=t=>ie(Uint8Array,t),nN=t=>ie(Uint16Array,t),iN=t=>ie(Uint32Array,t),oN=t=>ie(BigUint64Array,t),sN=t=>ie(Float32Array,t),aN=t=>ie(Float64Array,t),cN=t=>ie(Uint8ClampedArray,t),qm=t=>(t.next(),t);uN=t=>Lr(Int8Array,t),lN=t=>Lr(Int16Array,t),dN=t=>Lr(Int32Array,t),eh=t=>Lr(Uint8Array,t),fN=t=>Lr(Uint16Array,t),pN=t=>Lr(Uint32Array,t),mN=t=>Lr(Float32Array,t),hN=t=>Lr(Float64Array,t),gN=t=>Lr(Uint8ClampedArray,t);yN=t=>_r(Int8Array,t),vN=t=>_r(Int16Array,t),bN=t=>_r(Int32Array,t),th=t=>_r(Uint8Array,t),_N=t=>_r(Uint16Array,t),wN=t=>_r(Uint32Array,t),$N=t=>_r(Float32Array,t),xN=t=>_r(Float64Array,t),IN=t=>_r(Uint8ClampedArray,t)});function*SN(t){let e,r=!1,i=[],n,o,s,a=0;function c(){return o==="peek"?Zt(i,s)[0]:([n,i,a]=Zt(i,s),n)}({cmd:o,size:s}=(yield null)||{cmd:"read",size:0});let u=eh(t)[Symbol.iterator]();try{do if({done:e,value:n}=Number.isNaN(s-a)?u.next():u.next(s-a),!e&&n.byteLength>0&&(i.push(n),a+=n.byteLength),e||s<=a)do({cmd:o,size:s}=yield c());while(s<a);while(!e)}catch(l){r=!0,typeof u.throw=="function"&&u.throw(l)}finally{r===!1&&typeof u.return=="function"&&u.return(null)}return null}function kN(t){return Mt(this,arguments,function*(){let r,i=!1,n=[],o,s,a,c=0;function u(){return s==="peek"?Zt(n,a)[0]:([o,n,c]=Zt(n,a),o)}({cmd:s,size:a}=(yield yield ne(null))||{cmd:"read",size:0});let l=th(t)[Symbol.asyncIterator]();try{do if({done:r,value:o}=Number.isNaN(a-c)?yield ne(l.next()):yield ne(l.next(a-c)),!r&&o.byteLength>0&&(n.push(o),c+=o.byteLength),r||a<=c)do({cmd:s,size:a}=yield yield ne(u()));while(a<c);while(!r)}catch(d){i=!0,typeof l.throw=="function"&&(yield ne(l.throw(d)))}finally{i===!1&&typeof l.return=="function"&&(yield ne(l.return(new Uint8Array(0))))}return yield ne(null)})}function DN(t){return Mt(this,arguments,function*(){let r=!1,i=!1,n=[],o,s,a,c=0;function u(){return s==="peek"?Zt(n,a)[0]:([o,n,c]=Zt(n,a),o)}({cmd:s,size:a}=(yield yield ne(null))||{cmd:"read",size:0});let l=new oh(t);try{do if({done:r,value:o}=Number.isNaN(a-c)?yield ne(l.read()):yield ne(l.read(a-c)),!r&&o.byteLength>0&&(n.push(F(o)),c+=o.byteLength),r||a<=c)do({cmd:s,size:a}=yield yield ne(u()));while(a<c);while(!r)}catch(d){i=!0,yield ne(l.cancel(d))}finally{i===!1?yield ne(l.cancel()):t.locked&&l.releaseLock()}return yield ne(null)})}function AN(t){return Mt(this,arguments,function*(){let r=[],i="error",n=!1,o=null,s,a,c=0,u=[],l;function d(){return s==="peek"?Zt(u,a)[0]:([l,u,c]=Zt(u,a),l)}if({cmd:s,size:a}=(yield yield ne(null))||{cmd:"read",size:0},t.isTTY)return yield yield ne(new Uint8Array(0)),yield ne(null);try{r[0]=ih(t,"end"),r[1]=ih(t,"error");do{if(r[2]=ih(t,"readable"),[i,o]=yield ne(Promise.race(r.map(p=>p[2]))),i==="error")break;if((n=i==="end")||(Number.isFinite(a-c)?(l=F(t.read(a-c)),l.byteLength<a-c&&(l=F(t.read()))):l=F(t.read()),l.byteLength>0&&(u.push(l),c+=l.byteLength)),n||a<=c)do({cmd:s,size:a}=yield yield ne(d()));while(a<c)}while(!n)}finally{yield ne(f(r,i==="error"?o:null))}return yield ne(null);function f(p,h){return l=u=null,new Promise((y,_)=>{for(let[k,I]of p)t.off(k,I);try{let k=t.destroy;k&&k.call(t,h),h=void 0}catch(k){h=k||h}finally{h!=null?_(h):y()}})}})}var it,Sl,oh,ih,wa=m(()=>{Rt();Xe();it={fromIterable(t){return Sl(SN(t))},fromAsyncIterable(t){return Sl(kN(t))},fromDOMStream(t){return Sl(DN(t))},fromNodeStream(t){return Sl(AN(t))},toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},Sl=t=>(t.next(),t);oh=class{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return T(this,void 0,void 0,function*(){let{reader:r,source:i}=this;r&&(yield r.cancel(e).catch(()=>{})),i&&i.locked&&this.releaseLock()})}read(e){return T(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};let r=yield this.reader.read();return!r.done&&(r.value=F(r)),r})}},ih=(t,e)=>{let r=n=>i([e,n]),i;return[e,r,new Promise(n=>(i=n)&&t.once(e,r))]}});var ye,kl=m(()=>{(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(ye||(ye={}))});var ke,sh=m(()=>{(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(ke||(ke={}))});var xe,ah=m(()=>{(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(xe||(xe={}))});var Ze,ch=m(()=>{(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(Ze||(Ze={}))});var C,$a=m(()=>{(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(C||(C={}))});var Be,uh=m(()=>{(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Be||(Be={}))});var Dl=m(()=>{});var Er,Al,Ol,No,lh=m(()=>{Er=new Int32Array(2),Al=new Float32Array(Er.buffer),Ol=new Float64Array(Er.buffer),No=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1});var xa,dh=m(()=>{(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(xa||(xa={}))});var ot,fh=m(()=>{Dl();dh();lh();ot=class t{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new t(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readUint64(e){return BigInt.asUintN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readFloat32(e){return Er[0]=this.readInt32(e),Al[0]}readFloat64(e){return Er[No?0:1]=this.readInt32(e),Er[No?1:0]=this.readInt32(e+4),Ol[0]}writeInt8(e,r){this.bytes_[e]=r}writeUint8(e,r){this.bytes_[e]=r}writeInt16(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8}writeUint16(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8}writeInt32(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8,this.bytes_[e+2]=r>>16,this.bytes_[e+3]=r>>24}writeUint32(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8,this.bytes_[e+2]=r>>16,this.bytes_[e+3]=r>>24}writeInt64(e,r){this.writeInt32(e,Number(BigInt.asIntN(32,r))),this.writeInt32(e+4,Number(BigInt.asIntN(32,r>>BigInt(32))))}writeUint64(e,r){this.writeUint32(e,Number(BigInt.asUintN(32,r))),this.writeUint32(e+4,Number(BigInt.asUintN(32,r>>BigInt(32))))}writeFloat32(e,r){Al[0]=r,this.writeInt32(e,Er[0])}writeFloat64(e,r){Ol[0]=r,this.writeInt32(e,Er[No?0:1]),this.writeInt32(e+4,Er[No?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let r=0;r<4;r++)e+=String.fromCharCode(this.readInt8(this.position_+4+r));return e}__offset(e,r){let i=e-this.readInt32(e);return r<this.readInt16(i)?this.readInt16(i+r):0}__union(e,r){return e.bb_pos=r+this.readInt32(r),e.bb=this,e}__string(e,r){e+=this.readInt32(e);let i=this.readInt32(e);e+=4;let n=this.bytes_.subarray(e,e+i);return r===xa.UTF8_BYTES?n:this.text_decoder_.decode(n)}__union_with_string(e,r){return typeof e=="string"?this.__string(r):this.__union(e,r)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+4}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=4)throw new Error("FlatBuffers: file identifier must be length "+4);for(let r=0;r<4;r++)if(e.charCodeAt(r)!=this.readInt8(this.position()+4+r))return!1;return!0}createScalarList(e,r){let i=[];for(let n=0;n<r;++n){let o=e(n);o!==null&&i.push(o)}return i}createObjList(e,r){let i=[];for(let n=0;n<r;++n){let o=e(n);o!==null&&i.push(o.unpack())}return i}}});var Di,OI=m(()=>{fh();Dl();Di=class t{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let r;e?r=e:r=1024,this.bb=ot.allocate(r),this.space=r}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,r){e>this.minalign&&(this.minalign=e);let i=~(this.bb.capacity()-this.space+r)+1&e-1;for(;this.space<i+e+r;){let n=this.bb.capacity();this.bb=t.growByteBuffer(this.bb),this.space+=this.bb.capacity()-n}this.pad(i)}pad(e){for(let r=0;r<e;r++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,r,i){(this.force_defaults||r!=i)&&(this.addInt8(r),this.slot(e))}addFieldInt16(e,r,i){(this.force_defaults||r!=i)&&(this.addInt16(r),this.slot(e))}addFieldInt32(e,r,i){(this.force_defaults||r!=i)&&(this.addInt32(r),this.slot(e))}addFieldInt64(e,r,i){(this.force_defaults||r!==i)&&(this.addInt64(r),this.slot(e))}addFieldFloat32(e,r,i){(this.force_defaults||r!=i)&&(this.addFloat32(r),this.slot(e))}addFieldFloat64(e,r,i){(this.force_defaults||r!=i)&&(this.addFloat64(r),this.slot(e))}addFieldOffset(e,r,i){(this.force_defaults||r!=i)&&(this.addOffset(r),this.slot(e))}addFieldStruct(e,r,i){r!=i&&(this.nested(r),this.slot(e))}nested(e){if(e!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){let r=e.capacity();if(r&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");let i=r<<1,n=ot.allocate(i);return n.setPosition(i-r),n.bytes().set(e.bytes(),i-r),n}addOffset(e){this.prep(4,0),this.writeInt32(this.offset()-e+4)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let r=0;r<e;r++)this.vtable[r]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);let e=this.offset(),r=this.vtable_in_use-1;for(;r>=0&&this.vtable[r]==0;r--);let i=r+1;for(;r>=0;r--)this.addInt16(this.vtable[r]!=0?e-this.vtable[r]:0);let n=2;this.addInt16(e-this.object_start);let o=(i+n)*2;this.addInt16(o);let s=0,a=this.space;e:for(r=0;r<this.vtables.length;r++){let c=this.bb.capacity()-this.vtables[r];if(o==this.bb.readInt16(c)){for(let u=2;u<o;u+=2)if(this.bb.readInt16(a+u)!=this.bb.readInt16(c+u))continue e;s=this.vtables[r];break}}return s?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,s-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,r,i){let n=i?4:0;if(r){let o=r;if(this.prep(this.minalign,8+n),o.length!=4)throw new TypeError("FlatBuffers: file identifier must be length "+4);for(let s=3;s>=0;s--)this.writeInt8(o.charCodeAt(s))}this.prep(this.minalign,4+n),this.addOffset(e),n&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,r){this.finish(e,r,!0)}requiredField(e,r){let i=this.bb.capacity()-e,n=i-this.bb.readInt32(i);if(!(r<this.bb.readInt16(n)&&this.bb.readInt16(n+r)!=0))throw new TypeError("FlatBuffers: field "+r+" must be set")}startVector(e,r,i){this.notNested(),this.vector_num_elems=r,this.prep(4,e*r),this.prep(i,e*r)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);let r=this.createString(e);return this.string_maps.set(e,r),r}createString(e){if(e==null)return 0;let r;return e instanceof Uint8Array?r=e:r=this.text_encoder.encode(e),this.addInt8(0),this.startVector(1,r.length,1),this.bb.setPosition(this.space-=r.length),this.bb.bytes().set(r,this.space),this.endVector()}createByteVector(e){return e==null?0:(this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector())}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){let r=[];for(let i=0;i<e.length;++i){let n=e[i];if(n!==null)r.push(this.createObjectOffset(n));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return r}createStructOffsetList(e,r){return r(this,e.length),this.createObjectOffsetList(e.slice().reverse()),this.endVector()}}});var de=m(()=>{Dl();lh();OI();fh();dh()});var Ai,ph=m(()=>{(function(t){t[t.BUFFER=0]="BUFFER"})(Ai||(Ai={}))});var bt,Ia=m(()=>{(function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"})(bt||(bt={}))});var gn,mh=m(()=>{de();ph();Ia();gn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBodyCompression(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}codec(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):bt.LZ4_FRAME}method(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):Ai.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,r){e.addFieldInt8(0,r,bt.LZ4_FRAME)}static addMethod(e,r){e.addFieldInt8(1,r,Ai.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,r,i){return t.startBodyCompression(e),t.addCodec(e,r),t.addMethod(e,i),t.endBodyCompression(e)}}});var Uo,hh=m(()=>{Uo=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)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,r,i){return e.prep(8,16),e.writeInt64(BigInt(i??0)),e.writeInt64(BigInt(r??0)),e.offset()}}});var Po,gh=m(()=>{Po=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,r,i){return e.prep(8,16),e.writeInt64(BigInt(i??0)),e.writeInt64(BigInt(r??0)),e.offset()}}});var lt,yh=m(()=>{de();mh();hh();gh();lt=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsRecordBatch(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}length(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}nodes(e,r){let i=this.bb.__offset(this.bb_pos,6);return i?(r||new Po).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}nodesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new Uo).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}buffersLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){let r=this.bb.__offset(this.bb_pos,10);return r?(e||new gn).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}variadicBufferCounts(e){let r=this.bb.__offset(this.bb_pos,12);return r?this.bb.readInt64(this.bb.__vector(this.bb_pos+r)+e*8):BigInt(0)}variadicBufferCountsLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startRecordBatch(e){e.startObject(5)}static addLength(e,r){e.addFieldInt64(0,r,BigInt("0"))}static addNodes(e,r){e.addFieldOffset(1,r,0)}static startNodesVector(e,r){e.startVector(16,r,8)}static addBuffers(e,r){e.addFieldOffset(2,r,0)}static startBuffersVector(e,r){e.startVector(16,r,8)}static addCompression(e,r){e.addFieldOffset(3,r,0)}static addVariadicBufferCounts(e,r){e.addFieldOffset(4,r,0)}static createVariadicBufferCountsVector(e,r){e.startVector(8,r.length,8);for(let i=r.length-1;i>=0;i--)e.addInt64(r[i]);return e.endVector()}static startVariadicBufferCountsVector(e,r){e.startVector(8,r,8)}static endRecordBatch(e){return e.endObject()}}});var yn,BI=m(()=>{de();yh();yn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDictionaryBatch(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}data(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new lt).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}isDelta(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,r){e.addFieldInt64(0,r,BigInt("0"))}static addData(e,r){e.addFieldOffset(1,r,0)}static addIsDelta(e,r){e.addFieldInt8(2,+r,0)}static endDictionaryBatch(e){return e.endObject()}}});var Fn,vh=m(()=>{(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Fn||(Fn={}))});var Sa,zI=m(()=>{(function(t){t[t.DenseArray=0]="DenseArray"})(Sa||(Sa={}))});var $r,zl=m(()=>{de();$r=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsInt(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,r){e.addFieldInt32(0,r,0)}static addIsSigned(e,r){e.addFieldInt8(1,+r,0)}static endInt(e){return e.endObject()}static createInt(e,r,i){return t.startInt(e),t.addBitWidth(e,r),t.addIsSigned(e,i),t.endInt(e)}}});var Cr,bh=m(()=>{de();zI();zl();Cr=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDictionaryEncoding(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}indexType(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new $r).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}isOrdered(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):Sa.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,r){e.addFieldInt64(0,r,BigInt("0"))}static addIndexType(e,r){e.addFieldOffset(1,r,0)}static addIsOrdered(e,r){e.addFieldInt8(2,+r,0)}static addDictionaryKind(e,r){e.addFieldInt16(3,r,Sa.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}});var Ce,Lo=m(()=>{de();Ce=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsKeyValue(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}key(e){let r=this.bb.__offset(this.bb_pos,4);return r?this.bb.__string(this.bb_pos+r,e):null}value(e){let r=this.bb.__offset(this.bb_pos,6);return r?this.bb.__string(this.bb_pos+r,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,r){e.addFieldOffset(0,r,0)}static addValue(e,r){e.addFieldOffset(1,r,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,r,i){return t.startKeyValue(e),t.addKey(e,r),t.addValue(e,i),t.endKeyValue(e)}}});var ka,TI=m(()=>{de();ka=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBinary(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return t.startBinary(e),t.endBinary(e)}}});var Da,NI=m(()=>{de();Da=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBinaryView(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinaryView(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinaryView(e){e.startObject(0)}static endBinaryView(e){return e.endObject()}static createBinaryView(e){return t.startBinaryView(e),t.endBinaryView(e)}}});var Aa,UI=m(()=>{de();Aa=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBool(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return t.startBool(e),t.endBool(e)}}});var jn,_h=m(()=>{de();ch();jn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDate(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ze.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,Ze.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,r){return t.startDate(e),t.addUnit(e,r),t.endDate(e)}}});var Fr,wh=m(()=>{de();Fr=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDecimal(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,r){e.addFieldInt32(0,r,0)}static addScale(e,r){e.addFieldInt32(1,r,0)}static addBitWidth(e,r){e.addFieldInt32(2,r,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,r,i,n){return t.startDecimal(e),t.addPrecision(e,r),t.addScale(e,i),t.addBitWidth(e,n),t.endDecimal(e)}}});var Mn,$h=m(()=>{de();$a();Mn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDuration(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):C.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,C.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,r){return t.startDuration(e),t.addUnit(e,r),t.endDuration(e)}}});var Rn,xh=m(()=>{de();Rn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFixedSizeBinary(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,r){e.addFieldInt32(0,r,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,r){return t.startFixedSizeBinary(e),t.addByteWidth(e,r),t.endFixedSizeBinary(e)}}});var Vn,Ih=m(()=>{de();Vn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFixedSizeList(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}listSize(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,r){e.addFieldInt32(0,r,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,r){return t.startFixedSizeList(e),t.addListSize(e,r),t.endFixedSizeList(e)}}});var Zn,Sh=m(()=>{de();ah();Zn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFloatingPoint(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):xe.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,r){e.addFieldInt16(0,r,xe.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,r){return t.startFloatingPoint(e),t.addPrecision(e,r),t.endFloatingPoint(e)}}});var Wn,kh=m(()=>{de();uh();Wn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsInterval(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Be.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,Be.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,r){return t.startInterval(e),t.addUnit(e,r),t.endInterval(e)}}});var Oa,PI=m(()=>{de();Oa=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsLargeBinary(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return t.startLargeBinary(e),t.endLargeBinary(e)}}});var Ba,LI=m(()=>{de();Ba=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsLargeList(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeList(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeList(e){e.startObject(0)}static endLargeList(e){return e.endObject()}static createLargeList(e){return t.startLargeList(e),t.endLargeList(e)}}});var za,EI=m(()=>{de();za=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsLargeUtf8(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return t.startLargeUtf8(e),t.endLargeUtf8(e)}}});var Ta,CI=m(()=>{de();Ta=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsList(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return t.startList(e),t.endList(e)}}});var Jn,Dh=m(()=>{de();Jn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsMap(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){let e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,r){e.addFieldInt8(0,+r,0)}static endMap(e){return e.endObject()}static createMap(e,r){return t.startMap(e),t.addKeysSorted(e,r),t.endMap(e)}}});var Na,FI=m(()=>{de();Na=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsNull(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return t.startNull(e),t.endNull(e)}}});var Ua,jI=m(()=>{de();Ua=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsStruct_(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return t.startStruct_(e),t.endStruct_(e)}}});var vn,Ah=m(()=>{de();$a();vn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsTime(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):C.MILLISECOND}bitWidth(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,r){e.addFieldInt16(0,r,C.MILLISECOND)}static addBitWidth(e,r){e.addFieldInt32(1,r,32)}static endTime(e){return e.endObject()}static createTime(e,r,i){return t.startTime(e),t.addUnit(e,r),t.addBitWidth(e,i),t.endTime(e)}}});var bn,Oh=m(()=>{de();$a();bn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsTimestamp(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):C.SECOND}timezone(e){let r=this.bb.__offset(this.bb_pos,6);return r?this.bb.__string(this.bb_pos+r,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,r){e.addFieldInt16(0,r,C.SECOND)}static addTimezone(e,r){e.addFieldOffset(1,r,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,r,i){return t.startTimestamp(e),t.addUnit(e,r),t.addTimezone(e,i),t.endTimestamp(e)}}});var xr,Bh=m(()=>{de();sh();xr=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsUnion(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}mode(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ke.Sparse}typeIds(e){let r=this.bb.__offset(this.bb_pos,6);return r?this.bb.readInt32(this.bb.__vector(this.bb_pos+r)+e*4):0}typeIdsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){let e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,r){e.addFieldInt16(0,r,ke.Sparse)}static addTypeIds(e,r){e.addFieldOffset(1,r,0)}static createTypeIdsVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addInt32(r[i]);return e.endVector()}static startTypeIdsVector(e,r){e.startVector(4,r,4)}static endUnion(e){return e.endObject()}static createUnion(e,r,i){return t.startUnion(e),t.addMode(e,r),t.addTypeIds(e,i),t.endUnion(e)}}});var Pa,MI=m(()=>{de();Pa=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsUtf8(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return t.startUtf8(e),t.endUtf8(e)}}});var La,RI=m(()=>{de();La=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsUtf8View(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8View(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8View(e){e.startObject(0)}static endUtf8View(e){return e.endObject()}static createUtf8View(e){return t.startUtf8View(e),t.endUtf8View(e)}}});var me,zh=m(()=>{(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.RunEndEncoded=22]="RunEndEncoded",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",t[t.ListView=25]="ListView",t[t.LargeListView=26]="LargeListView"})(me||(me={}))});var dt,Th=m(()=>{de();bh();Lo();zh();dt=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsField(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}name(e){let r=this.bb.__offset(this.bb_pos,4);return r?this.bb.__string(this.bb_pos+r,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):me.NONE}type(e){let r=this.bb.__offset(this.bb_pos,10);return r?this.bb.__union(e,this.bb_pos+r):null}dictionary(e){let r=this.bb.__offset(this.bb_pos,12);return r?(e||new Cr).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}children(e,r){let i=this.bb.__offset(this.bb_pos,14);return i?(r||new t).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,16);return i?(r||new Ce).__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,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,r){e.addFieldOffset(0,r,0)}static addNullable(e,r){e.addFieldInt8(1,+r,0)}static addTypeType(e,r){e.addFieldInt8(2,r,me.NONE)}static addType(e,r){e.addFieldOffset(3,r,0)}static addDictionary(e,r){e.addFieldOffset(4,r,0)}static addChildren(e,r){e.addFieldOffset(5,r,0)}static createChildrenVector(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 startChildrenVector(e,r){e.startVector(4,r,4)}static addCustomMetadata(e,r){e.addFieldOffset(6,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 endField(e){return e.endObject()}}});var Ot,Nh=m(()=>{de();vh();Th();Lo();Ot=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsSchema(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Fn.Little}fields(e,r){let i=this.bb.__offset(this.bb_pos,6);return i?(r||new dt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new Ce).__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,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let r=this.bb.__offset(this.bb_pos,10);return r?this.bb.readInt64(this.bb.__vector(this.bb_pos+r)+e*8):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,r){e.addFieldInt16(0,r,Fn.Little)}static addFields(e,r){e.addFieldOffset(1,r,0)}static createFieldsVector(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 startFieldsVector(e,r){e.startVector(4,r,4)}static addCustomMetadata(e,r){e.addFieldOffset(2,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 addFeatures(e,r){e.addFieldOffset(3,r,0)}static createFeaturesVector(e,r){e.startVector(8,r.length,8);for(let i=r.length-1;i>=0;i--)e.addInt64(r[i]);return e.endVector()}static startFeaturesVector(e,r){e.startVector(8,r,8)}static endSchema(e){return e.endObject()}static createSchema(e,r,i,n,o){return t.startSchema(e),t.addEndianness(e,r),t.addFields(e,i),t.addCustomMetadata(e,n),t.addFeatures(e,o),t.endSchema(e)}}});var le,Uh=m(()=>{(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(le||(le={}))});var g,Wt,qe=m(()=>{kl();sh();ah();ch();$a();uh();Uh();(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond",t[t.IntervalMonthDayNano=-31]="IntervalMonthDayNano"})(g||(g={}));(function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"})(Wt||(Wt={}))});var Ph={};$e(Ph,{valueToString:()=>Ir});function Ir(t){if(t===null)return"null";if(t===void 0)return"undefined";switch(typeof t){case"number":return`${t}`;case"bigint":return`${t}`;case"string":return`"${t}"`}return typeof t[Symbol.toPrimitive]=="function"?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map(e=>Ir(e))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(e,r)=>typeof r=="bigint"?`${r}`:r)}var Ea=m(()=>{});function oe(t){if(typeof t=="bigint"&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`);return Number(t)}function Lh(t,e){return oe(t/e)+oe(t%e)/oe(e)}var jr=m(()=>{});var Fh={};$e(Fh,{BN:()=>Fa,bigNumToBigInt:()=>ZI,bigNumToNumber:()=>Ch,bigNumToString:()=>Fo,isArrowBigNumSymbol:()=>VI});function Sr(t,...e){return e.length===0?Object.setPrototypeOf(ie(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function Eo(...t){return Sr.apply(this,t)}function Co(...t){return Sr.apply(this,t)}function Ca(...t){return Sr.apply(this,t)}function Ch(t,e){let{buffer:r,byteOffset:i,byteLength:n,signed:o}=t,s=new BigUint64Array(r,i,n/8),a=o&&s.at(-1)&BigInt(1)<<BigInt(63),c=BigInt(0),u=0;if(a){for(let l of s)c|=(l^BN)*(BigInt(1)<<BigInt(64*u++));c*=BigInt(-1),c-=BigInt(1)}else for(let l of s)c|=l*(BigInt(1)<<BigInt(64*u++));if(typeof e=="number"&&e>0){let l=BigInt("1".padEnd(e+1,"0")),d=c/l,f=a?-(c%l):c%l,p=oe(d),h=`${f}`.padStart(e,"0");return+`${a&&p===0?"-":""}${p}.${h}`}return oe(c)}function Fo(t){if(t.byteLength===8)return`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`;if(!t.signed)return Eh(t);let e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return Eh(t);e=e.slice();let i=1;for(let o=0;o<e.length;o++){let s=e[o],a=~s+i;e[o]=a,i&=s===0?1:0}return`-${Eh(e)}`}function ZI(t){return t.byteLength===8?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:Fo(t)}function Eh(t){let e="",r=new Uint32Array(2),i=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),n=new Uint32Array((i=new Uint16Array(i).reverse()).buffer),o=-1,s=i.length-1;do{for(r[0]=i[o=0];o<s;)i[o++]=r[1]=r[0]/10,r[0]=(r[0]-r[1]*10<<16)+i[o];i[o]=r[1]=r[0]/10,r[0]=r[0]-r[1]*10,e=`${r[0]}${e}`}while(n[0]||n[1]||n[2]||n[3]);return e??"0"}var VI,ON,BN,Fa,jh=m(()=>{Xe();jr();VI=Symbol.for("isArrowBigNum");Sr.prototype[VI]=!0;Sr.prototype.toJSON=function(){return`"${Fo(this)}"`};Sr.prototype.valueOf=function(t){return Ch(this,t)};Sr.prototype.toString=function(){return Fo(this)};Sr.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return Ch(this);case"string":return Fo(this);case"default":return ZI(this)}return Fo(this)};Object.setPrototypeOf(Eo.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(Co.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Ca.prototype,Object.create(Uint32Array.prototype));Object.assign(Eo.prototype,Sr.prototype,{constructor:Eo,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(Co.prototype,Sr.prototype,{constructor:Co,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(Ca.prototype,Sr.prototype,{constructor:Ca,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});ON=BigInt(4294967296)*BigInt(4294967296),BN=ON-BigInt(1);Fa=class t{static new(e,r){switch(r){case!0:return new Eo(e);case!1:return new Co(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new Eo(e)}return e.byteLength===16?new Ca(e):new Co(e)}static signed(e){return new Eo(e)}static unsigned(e){return new Co(e)}static decimal(e){return new Ca(e)}constructor(e,r){return t.new(e,r)}}});function Gt(t){let e=t;switch(t.typeId){case g.Decimal:return t.bitWidth/32;case g.Interval:return e.unit===Be.MONTH_DAY_NANO?4:1+e.unit;case g.BinaryView:case g.Utf8View:return 16;case g.FixedSizeList:return e.listSize;case g.FixedSizeBinary:return e.byteWidth;default:return 1}}var WI,JI,HI,GI,KI,YI,XI,qI,QI,eS,tS,rS,nS,iS,oS,sS,aS,cS,uS,lS,dS,fS,pS,mS,hS,gS,O,ft,Je,Oi,Bi,Jt,zi,Ti,Ni,Ui,Pi,Ht,ja,Li,Ei,Mr,re,Rr,Vr,Bt,Zr,Wr,Jr,Hr,Gr,Kr,Yr,Xr,or,sr,De,ar,qr,zt,cr,zN,Tt,Ie=m(()=>{jr();qe();gS=Symbol.for("apache-arrow/DataType"),O=class t{static isDataType(e){return e?.[gS]===!0}static isNull(e){return e?.typeId===g.Null}static isInt(e){return e?.typeId===g.Int}static isFloat(e){return e?.typeId===g.Float}static isBinary(e){return e?.typeId===g.Binary}static isBinaryView(e){return e?.typeId===g.BinaryView}static isLargeBinary(e){return e?.typeId===g.LargeBinary}static isUtf8(e){return e?.typeId===g.Utf8}static isUtf8View(e){return e?.typeId===g.Utf8View}static isLargeUtf8(e){return e?.typeId===g.LargeUtf8}static isBool(e){return e?.typeId===g.Bool}static isDecimal(e){return e?.typeId===g.Decimal}static isDate(e){return e?.typeId===g.Date}static isTime(e){return e?.typeId===g.Time}static isTimestamp(e){return e?.typeId===g.Timestamp}static isInterval(e){return e?.typeId===g.Interval}static isDuration(e){return e?.typeId===g.Duration}static isList(e){return e?.typeId===g.List}static isLargeList(e){return e?.typeId===g.LargeList}static isStruct(e){return e?.typeId===g.Struct}static isUnion(e){return e?.typeId===g.Union}static isFixedSizeBinary(e){return e?.typeId===g.FixedSizeBinary}static isFixedSizeList(e){return e?.typeId===g.FixedSizeList}static isMap(e){return e?.typeId===g.Map}static isDictionary(e){return e?.typeId===g.Dictionary}static isDenseUnion(e){return t.isUnion(e)&&e.mode===ke.Dense}static isSparseUnion(e){return t.isUnion(e)&&e.mode===ke.Sparse}constructor(e){this.typeId=e}};WI=Symbol.toStringTag;O[WI]=(t=>(t.children=null,t.ArrayType=Array,t.OffsetArrayType=Int32Array,t[gS]=!0,t[Symbol.toStringTag]="DataType"))(O.prototype);ft=class extends O{constructor(){super(g.Null)}toString(){return"Null"}};JI=Symbol.toStringTag;ft[JI]=(t=>t[Symbol.toStringTag]="Null")(ft.prototype);Je=class extends O{constructor(e,r){super(g.Int),this.isSigned=e,this.bitWidth=r}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};HI=Symbol.toStringTag;Je[HI]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(Je.prototype);Oi=class extends Je{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},Bi=class extends Je{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},Jt=class extends Je{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},zi=class extends Je{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Ti=class extends Je{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Ni=class extends Je{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Ui=class extends Je{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Pi=class extends Je{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Oi.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(Bi.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(Jt.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(zi.prototype,"ArrayType",{value:BigInt64Array});Object.defineProperty(Ti.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(Ni.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Ui.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(Pi.prototype,"ArrayType",{value:BigUint64Array});Ht=class extends O{constructor(e){super(g.Float),this.precision=e}get ArrayType(){switch(this.precision){case xe.HALF:return Uint16Array;case xe.SINGLE:return Float32Array;case xe.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};GI=Symbol.toStringTag;Ht[GI]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(Ht.prototype);ja=class extends Ht{constructor(){super(xe.HALF)}},Li=class extends Ht{constructor(){super(xe.SINGLE)}},Ei=class extends Ht{constructor(){super(xe.DOUBLE)}};Object.defineProperty(ja.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Li.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(Ei.prototype,"ArrayType",{value:Float64Array});Mr=class extends O{constructor(){super(g.Binary)}toString(){return"Binary"}};KI=Symbol.toStringTag;Mr[KI]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Mr.prototype);re=class extends O{constructor(){super(g.BinaryView)}toString(){return"BinaryView"}};YI=Symbol.toStringTag;re.ELEMENT_WIDTH=16;re.INLINE_CAPACITY=12;re.LENGTH_OFFSET=0;re.INLINE_OFFSET=4;re.BUFFER_INDEX_OFFSET=8;re.BUFFER_OFFSET_OFFSET=12;re[YI]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="BinaryView"))(re.prototype);Rr=class extends O{constructor(){super(g.LargeBinary)}toString(){return"LargeBinary"}};XI=Symbol.toStringTag;Rr[XI]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(Rr.prototype);Vr=class extends O{constructor(){super(g.Utf8)}toString(){return"Utf8"}};qI=Symbol.toStringTag;Vr[qI]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(Vr.prototype);Bt=class extends O{constructor(){super(g.Utf8View)}toString(){return"Utf8View"}};QI=Symbol.toStringTag;Bt.ELEMENT_WIDTH=re.ELEMENT_WIDTH;Bt.INLINE_CAPACITY=re.INLINE_CAPACITY;Bt[QI]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8View"))(Bt.prototype);Zr=class extends O{constructor(){super(g.LargeUtf8)}toString(){return"LargeUtf8"}};eS=Symbol.toStringTag;Zr[eS]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(Zr.prototype);Wr=class extends O{constructor(){super(g.Bool)}toString(){return"Bool"}};tS=Symbol.toStringTag;Wr[tS]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Wr.prototype);Jr=class extends O{constructor(e,r,i=128){super(g.Decimal),this.scale=e,this.precision=r,this.bitWidth=i}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};rS=Symbol.toStringTag;Jr[rS]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(Jr.prototype);Hr=class extends O{constructor(e){super(g.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Ze[this.unit]}>`}get ArrayType(){return this.unit===Ze.DAY?Int32Array:BigInt64Array}};nS=Symbol.toStringTag;Hr[nS]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(Hr.prototype);Gr=class extends O{constructor(e,r){super(g.Time),this.unit=e,this.bitWidth=r}toString(){return`Time${this.bitWidth}<${C[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};iS=Symbol.toStringTag;Gr[iS]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(Gr.prototype);Kr=class extends O{constructor(e,r){super(g.Timestamp),this.unit=e,this.timezone=r}toString(){return`Timestamp<${C[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};oS=Symbol.toStringTag;Kr[oS]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(Kr.prototype);Yr=class extends O{constructor(e){super(g.Interval),this.unit=e}toString(){return`Interval<${Be[this.unit]}>`}};sS=Symbol.toStringTag;Yr[sS]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(Yr.prototype);Xr=class extends O{constructor(e){super(g.Duration),this.unit=e}toString(){return`Duration<${C[this.unit]}>`}};aS=Symbol.toStringTag;Xr[aS]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(Xr.prototype);or=class extends O{constructor(e){super(g.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};cS=Symbol.toStringTag;or[cS]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(or.prototype);sr=class extends O{constructor(e){super(g.LargeList),this.children=[e]}toString(){return`LargeList<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};uS=Symbol.toStringTag;sr[uS]=(t=>(t.children=null,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeList"))(sr.prototype);De=class extends O{constructor(e){super(g.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};lS=Symbol.toStringTag;De[lS]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(De.prototype);ar=class extends O{constructor(e,r,i){super(g.Union),this.mode=e,this.children=i,this.typeIds=r=Int32Array.from(r),this.typeIdToChildIndex=r.reduce((n,o,s)=>(n[o]=s)&&n||n,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}};dS=Symbol.toStringTag;ar[dS]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(ar.prototype);qr=class extends O{constructor(e){super(g.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};fS=Symbol.toStringTag;qr[fS]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(qr.prototype);zt=class extends O{constructor(e,r){super(g.FixedSizeList),this.listSize=e,this.children=[r]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};pS=Symbol.toStringTag;zt[pS]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(zt.prototype);cr=class extends O{constructor(e,r=!1){var i,n,o;if(super(g.Map),this.children=[e],this.keysSorted=r,e&&(e.name="entries",!((i=e?.type)===null||i===void 0)&&i.children)){let s=(n=e?.type)===null||n===void 0?void 0:n.children[0];s&&(s.name="key");let a=(o=e?.type)===null||o===void 0?void 0:o.children[1];a&&(a.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};mS=Symbol.toStringTag;cr[mS]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(cr.prototype);zN=(t=>()=>++t)(-1),Tt=class extends O{constructor(e,r,i,n){super(g.Dictionary),this.indices=r,this.dictionary=e,this.isOrdered=n||!1,this.id=i==null?zN():oe(i)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};hS=Symbol.toStringTag;Tt[hS]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(Tt.prototype)});function NN(t,e,r=!0){return typeof e=="number"?jo(t,e,r):typeof e=="string"&&e in g?jo(t,g[e],r):e&&e instanceof O?jo(t,yS(e),r):e?.type&&e.type instanceof O?jo(t,yS(e.type),r):jo(t,g.NONE,r)}function jo(t,e,r=!0){let i=null;switch(e){case g.Null:i=t.visitNull;break;case g.Bool:i=t.visitBool;break;case g.Int:i=t.visitInt;break;case g.Int8:i=t.visitInt8||t.visitInt;break;case g.Int16:i=t.visitInt16||t.visitInt;break;case g.Int32:i=t.visitInt32||t.visitInt;break;case g.Int64:i=t.visitInt64||t.visitInt;break;case g.Uint8:i=t.visitUint8||t.visitInt;break;case g.Uint16:i=t.visitUint16||t.visitInt;break;case g.Uint32:i=t.visitUint32||t.visitInt;break;case g.Uint64:i=t.visitUint64||t.visitInt;break;case g.Float:i=t.visitFloat;break;case g.Float16:i=t.visitFloat16||t.visitFloat;break;case g.Float32:i=t.visitFloat32||t.visitFloat;break;case g.Float64:i=t.visitFloat64||t.visitFloat;break;case g.Utf8:i=t.visitUtf8;break;case g.LargeUtf8:i=t.visitLargeUtf8;break;case g.Utf8View:i=t.visitUtf8View||t.visitUtf8;break;case g.Binary:i=t.visitBinary;break;case g.LargeBinary:i=t.visitLargeBinary;break;case g.BinaryView:i=t.visitBinaryView||t.visitBinary;break;case g.FixedSizeBinary:i=t.visitFixedSizeBinary;break;case g.Date:i=t.visitDate;break;case g.DateDay:i=t.visitDateDay||t.visitDate;break;case g.DateMillisecond:i=t.visitDateMillisecond||t.visitDate;break;case g.Timestamp:i=t.visitTimestamp;break;case g.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp;break;case g.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp;break;case g.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp;break;case g.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp;break;case g.Time:i=t.visitTime;break;case g.TimeSecond:i=t.visitTimeSecond||t.visitTime;break;case g.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime;break;case g.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime;break;case g.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime;break;case g.Decimal:i=t.visitDecimal;break;case g.List:i=t.visitList;break;case g.LargeList:i=t.visitLargeList;break;case g.Struct:i=t.visitStruct;break;case g.Union:i=t.visitUnion;break;case g.DenseUnion:i=t.visitDenseUnion||t.visitUnion;break;case g.SparseUnion:i=t.visitSparseUnion||t.visitUnion;break;case g.Dictionary:i=t.visitDictionary;break;case g.Interval:i=t.visitInterval;break;case g.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval;break;case g.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval;break;case g.IntervalMonthDayNano:i=t.visitIntervalMonthDayNano||t.visitInterval;break;case g.Duration:i=t.visitDuration;break;case g.DurationSecond:i=t.visitDurationSecond||t.visitDuration;break;case g.DurationMillisecond:i=t.visitDurationMillisecond||t.visitDuration;break;case g.DurationMicrosecond:i=t.visitDurationMicrosecond||t.visitDuration;break;case g.DurationNanosecond:i=t.visitDurationNanosecond||t.visitDuration;break;case g.FixedSizeList:i=t.visitFixedSizeList;break;case g.Map:i=t.visitMap;break}if(typeof i=="function")return i;if(!r)return()=>null;throw new Error(`Unrecognized type '${g[e]}'`)}function yS(t){switch(t.typeId){case g.Null:return g.Null;case g.Int:{let{bitWidth:e,isSigned:r}=t;switch(e){case 8:return r?g.Int8:g.Uint8;case 16:return r?g.Int16:g.Uint16;case 32:return r?g.Int32:g.Uint32;case 64:return r?g.Int64:g.Uint64}return g.Int}case g.Float:switch(t.precision){case xe.HALF:return g.Float16;case xe.SINGLE:return g.Float32;case xe.DOUBLE:return g.Float64}return g.Float;case g.Binary:return g.Binary;case g.LargeBinary:return g.LargeBinary;case g.BinaryView:return g.BinaryView;case g.Utf8:return g.Utf8;case g.LargeUtf8:return g.LargeUtf8;case g.Utf8View:return g.Utf8View;case g.Bool:return g.Bool;case g.Decimal:return g.Decimal;case g.Time:switch(t.unit){case C.SECOND:return g.TimeSecond;case C.MILLISECOND:return g.TimeMillisecond;case C.MICROSECOND:return g.TimeMicrosecond;case C.NANOSECOND:return g.TimeNanosecond}return g.Time;case g.Timestamp:switch(t.unit){case C.SECOND:return g.TimestampSecond;case C.MILLISECOND:return g.TimestampMillisecond;case C.MICROSECOND:return g.TimestampMicrosecond;case C.NANOSECOND:return g.TimestampNanosecond}return g.Timestamp;case g.Date:switch(t.unit){case Ze.DAY:return g.DateDay;case Ze.MILLISECOND:return g.DateMillisecond}return g.Date;case g.Interval:switch(t.unit){case Be.DAY_TIME:return g.IntervalDayTime;case Be.YEAR_MONTH:return g.IntervalYearMonth;case Be.MONTH_DAY_NANO:return g.IntervalMonthDayNano}return g.Interval;case g.Duration:switch(t.unit){case C.SECOND:return g.DurationSecond;case C.MILLISECOND:return g.DurationMillisecond;case C.MICROSECOND:return g.DurationMicrosecond;case C.NANOSECOND:return g.DurationNanosecond}return g.Duration;case g.Map:return g.Map;case g.List:return g.List;case g.LargeList:return g.LargeList;case g.Struct:return g.Struct;case g.Union:switch(t.mode){case ke.Dense:return g.DenseUnion;case ke.Sparse:return g.SparseUnion}return g.Union;case g.FixedSizeBinary:return g.FixedSizeBinary;case g.FixedSizeList:return g.FixedSizeList;case g.Dictionary:return g.Dictionary}throw new Error(`Unrecognized type '${g[t.typeId]}'`)}var J,kr=m(()=>{qe();Ie();J=class{visitMany(e,...r){return e.map((i,n)=>this.visit(i,...r.map(o=>o[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,r=!0){return NN(this,e,r)}getVisitFnByTypeId(e,r=!0){return jo(this,e,r)}visitNull(e,...r){return null}visitBool(e,...r){return null}visitInt(e,...r){return null}visitFloat(e,...r){return null}visitUtf8(e,...r){return null}visitLargeUtf8(e,...r){return null}visitUtf8View(e,...r){return null}visitBinary(e,...r){return null}visitLargeBinary(e,...r){return null}visitBinaryView(e,...r){return null}visitFixedSizeBinary(e,...r){return null}visitDate(e,...r){return null}visitTimestamp(e,...r){return null}visitTime(e,...r){return null}visitDecimal(e,...r){return null}visitList(e,...r){return null}visitLargeList(e,...r){return null}visitStruct(e,...r){return null}visitUnion(e,...r){return null}visitDictionary(e,...r){return null}visitInterval(e,...r){return null}visitDuration(e,...r){return null}visitFixedSizeList(e,...r){return null}visitMap(e,...r){return null}};J.prototype.visitInt8=null;J.prototype.visitInt16=null;J.prototype.visitInt32=null;J.prototype.visitInt64=null;J.prototype.visitUint8=null;J.prototype.visitUint16=null;J.prototype.visitUint32=null;J.prototype.visitUint64=null;J.prototype.visitFloat16=null;J.prototype.visitFloat32=null;J.prototype.visitFloat64=null;J.prototype.visitDateDay=null;J.prototype.visitDateMillisecond=null;J.prototype.visitTimestampSecond=null;J.prototype.visitTimestampMillisecond=null;J.prototype.visitTimestampMicrosecond=null;J.prototype.visitTimestampNanosecond=null;J.prototype.visitTimeSecond=null;J.prototype.visitTimeMillisecond=null;J.prototype.visitTimeMicrosecond=null;J.prototype.visitTimeNanosecond=null;J.prototype.visitDenseUnion=null;J.prototype.visitSparseUnion=null;J.prototype.visitIntervalDayTime=null;J.prototype.visitIntervalYearMonth=null;J.prototype.visitIntervalMonthDayNano=null;J.prototype.visitDuration=null;J.prototype.visitDurationSecond=null;J.prototype.visitDurationMillisecond=null;J.prototype.visitDurationMicrosecond=null;J.prototype.visitDurationNanosecond=null});var Mh={};$e(Mh,{float64ToUint16:()=>Ma,uint16ToFloat64:()=>Tl});function Tl(t){let e=(t&31744)>>10,r=(t&1023)/1024,i=Math.pow(-1,(t&32768)>>15);switch(e){case 31:return i*(r?Number.NaN:1/0);case 0:return i*(r?6103515625e-14*r:0)}return i*Math.pow(2,e-15)*(1+r)}function Ma(t){if(t!==t)return 32256;vS[0]=t;let e=(Mo[1]&2147483648)>>16&65535,r=Mo[1]&2146435072,i=0;return r>=1089470464?Mo[0]>0?r=31744:(r=(r&2080374784)>>16,i=(Mo[1]&1048575)>>10):r<=1056964608?(i=1048576+(Mo[1]&1048575),i=1048576+(i<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,i=(Mo[1]&1048575)+512>>10),e|r|i&65535}var vS,Mo,Ra=m(()=>{vS=new Float64Array(1),Mo=new Uint32Array(vS.buffer)});function K(t){return(e,r,i)=>{if(e.setValid(r,i!=null))return t(e,r,i)}}var Z,UN,bS,PN,_n,Rh,_S,LN,Nl,Ul,Vh,wS,EN,$S,CN,xS,FN,Zh,Pl,Ll,El,Cl,Wh,Fl,jl,Ml,Rl,Jh,Hh,IS,jN,MN,RN,VN,ZN,WN,JN,SS,kS,HN,Gh,Vl,Zl,Wl,Jl,Hl,Gl,Kl,Kh,GN,st,Kt=m(()=>{Nt();kr();jr();hn();Ra();qe();Ie();Z=class extends J{};UN=(t,e,r)=>{t[e]=Math.floor(r/864e5)},bS=(t,e,r,i)=>{if(r+1<e.length){let n=oe(e[r]),o=oe(e[r+1]);t.set(i.subarray(0,o-n),n)}},PN=({offset:t,values:e},r,i)=>{let n=t+r;i?e[n>>3]|=1<<n%8:e[n>>3]&=~(1<<n%8)},_n=({values:t},e,r)=>{t[e]=r},Rh=({values:t},e,r)=>{t[e]=r},_S=({values:t},e,r)=>{t[e]=Ma(r)},LN=(t,e,r)=>{switch(t.type.precision){case xe.HALF:return _S(t,e,r);case xe.SINGLE:case xe.DOUBLE:return Rh(t,e,r)}},Nl=({values:t},e,r)=>{UN(t,e,r.valueOf())},Ul=({values:t},e,r)=>{t[e]=BigInt(r)},Vh=({stride:t,values:e},r,i)=>{e.set(i.subarray(0,t),t*r)},wS=({values:t,valueOffsets:e},r,i)=>bS(t,e,r,i),EN=t=>{let e=t.variadicBuffers;return(!Array.isArray(e)||Object.isFrozen(e))&&(e=Array.from(e),t.variadicBuffers=e),e},$S=(t,e,r)=>{var i,n,o,s;let a=t.values;if(!a)throw new Error("BinaryView data is missing view buffer");let c=re.ELEMENT_WIDTH,u=e*c,l=u+c;if(u<0||l>a.length)throw new RangeError(`BinaryView index ${e} out of bounds`);a.fill(0,u,l);let d=new DataView(a.buffer,a.byteOffset+u,c),f=r.length;if(d.setInt32(re.LENGTH_OFFSET,f,!0),f<=re.INLINE_CAPACITY){a.set(r,u+re.INLINE_OFFSET);return}let p=((i=r[0])!==null&&i!==void 0?i:0)|((n=r[1])!==null&&n!==void 0?n:0)<<8|((o=r[2])!==null&&o!==void 0?o:0)<<16|((s=r[3])!==null&&s!==void 0?s:0)<<24;d.setUint32(re.INLINE_OFFSET,p>>>0,!0);let h=EN(t),y=r.slice(),_=h.push(y)-1;d.setInt32(re.BUFFER_INDEX_OFFSET,_,!0),d.setInt32(re.BUFFER_OFFSET_OFFSET,0,!0)},CN=(t,e,r)=>{let i=r instanceof Uint8Array?r:new Uint8Array(r);$S(t,e,i)},xS=({values:t,valueOffsets:e},r,i)=>bS(t,e,r,Vt(i)),FN=(t,e,r)=>{let i=Vt(r);$S(t,e,i)},Zh=(t,e,r)=>{t.type.unit===Ze.DAY?Nl(t,e,r):Ul(t,e,r)},Pl=({values:t},e,r)=>{t[e]=BigInt(r/1e3)},Ll=({values:t},e,r)=>{t[e]=BigInt(r)},El=({values:t},e,r)=>{t[e]=BigInt(r*1e3)},Cl=({values:t},e,r)=>{t[e]=BigInt(r*1e6)},Wh=(t,e,r)=>{switch(t.type.unit){case C.SECOND:return Pl(t,e,r);case C.MILLISECOND:return Ll(t,e,r);case C.MICROSECOND:return El(t,e,r);case C.NANOSECOND:return Cl(t,e,r)}},Fl=({values:t},e,r)=>{t[e]=r},jl=({values:t},e,r)=>{t[e]=r},Ml=({values:t},e,r)=>{t[e]=r},Rl=({values:t},e,r)=>{t[e]=r},Jh=(t,e,r)=>{switch(t.type.unit){case C.SECOND:return Fl(t,e,r);case C.MILLISECOND:return jl(t,e,r);case C.MICROSECOND:return Ml(t,e,r);case C.NANOSECOND:return Rl(t,e,r)}},Hh=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},IS=(t,e,r)=>{let i=t.children[0],n=t.valueOffsets,o=st.getVisitFn(i),s=oe(n[e]),a=oe(n[e+1]);if(Array.isArray(r))for(let c=-1,u=s;u<a;)o(i,u++,r[++c]);else for(let c=-1,u=s;u<a;)o(i,u++,r.get(++c))},jN=(t,e,r)=>{let i=t.children[0],{valueOffsets:n}=t,o=st.getVisitFn(i),{[e]:s,[e+1]:a}=n,c=r instanceof Map?r.entries():Object.entries(r);for(let u of c)if(o(i,s,u),++s>=a)break},MN=(t,e)=>(r,i,n,o)=>i&&r(i,t,e[o]),RN=(t,e)=>(r,i,n,o)=>i&&r(i,t,e.get(o)),VN=(t,e)=>(r,i,n,o)=>i&&r(i,t,e.get(n.name)),ZN=(t,e)=>(r,i,n,o)=>i&&r(i,t,e[n.name]),WN=(t,e,r)=>{let i=t.type.children.map(o=>st.getVisitFn(o.type)),n=r instanceof Map?VN(e,r):r instanceof E?RN(e,r):Array.isArray(r)?MN(e,r):ZN(e,r);t.type.children.forEach((o,s)=>n(i[s],t.children[s],o,s))},JN=(t,e,r)=>{t.type.mode===ke.Dense?SS(t,e,r):kS(t,e,r)},SS=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];st.visit(n,t.valueOffsets[e],r)},kS=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];st.visit(n,e,r)},HN=(t,e,r)=>{var i;(i=t.dictionary)===null||i===void 0||i.set(t.values[e],r)},Gh=(t,e,r)=>{switch(t.type.unit){case Be.YEAR_MONTH:return Zl(t,e,r);case Be.DAY_TIME:return Vl(t,e,r);case Be.MONTH_DAY_NANO:return Wl(t,e,r)}},Vl=({values:t},e,r)=>{t.set(r.subarray(0,2),2*e)},Zl=({values:t},e,r)=>{t[e]=r[0]*12+r[1]%12},Wl=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},Jl=({values:t},e,r)=>{t[e]=r},Hl=({values:t},e,r)=>{t[e]=r},Gl=({values:t},e,r)=>{t[e]=r},Kl=({values:t},e,r)=>{t[e]=r},Kh=(t,e,r)=>{switch(t.type.unit){case C.SECOND:return Jl(t,e,r);case C.MILLISECOND:return Hl(t,e,r);case C.MICROSECOND:return Gl(t,e,r);case C.NANOSECOND:return Kl(t,e,r)}},GN=(t,e,r)=>{let{stride:i}=t,n=t.children[0],o=st.getVisitFn(n);if(Array.isArray(r))for(let s=-1,a=e*i;++s<i;)o(n,a+s,r[s]);else for(let s=-1,a=e*i;++s<i;)o(n,a+s,r.get(s))};Z.prototype.visitBool=K(PN);Z.prototype.visitInt=K(_n);Z.prototype.visitInt8=K(_n);Z.prototype.visitInt16=K(_n);Z.prototype.visitInt32=K(_n);Z.prototype.visitInt64=K(_n);Z.prototype.visitUint8=K(_n);Z.prototype.visitUint16=K(_n);Z.prototype.visitUint32=K(_n);Z.prototype.visitUint64=K(_n);Z.prototype.visitFloat=K(LN);Z.prototype.visitFloat16=K(_S);Z.prototype.visitFloat32=K(Rh);Z.prototype.visitFloat64=K(Rh);Z.prototype.visitUtf8=K(xS);Z.prototype.visitLargeUtf8=K(xS);Z.prototype.visitUtf8View=K(FN);Z.prototype.visitBinary=K(wS);Z.prototype.visitLargeBinary=K(wS);Z.prototype.visitBinaryView=K(CN);Z.prototype.visitFixedSizeBinary=K(Vh);Z.prototype.visitDate=K(Zh);Z.prototype.visitDateDay=K(Nl);Z.prototype.visitDateMillisecond=K(Ul);Z.prototype.visitTimestamp=K(Wh);Z.prototype.visitTimestampSecond=K(Pl);Z.prototype.visitTimestampMillisecond=K(Ll);Z.prototype.visitTimestampMicrosecond=K(El);Z.prototype.visitTimestampNanosecond=K(Cl);Z.prototype.visitTime=K(Jh);Z.prototype.visitTimeSecond=K(Fl);Z.prototype.visitTimeMillisecond=K(jl);Z.prototype.visitTimeMicrosecond=K(Ml);Z.prototype.visitTimeNanosecond=K(Rl);Z.prototype.visitDecimal=K(Hh);Z.prototype.visitList=K(IS);Z.prototype.visitLargeList=K(IS);Z.prototype.visitStruct=K(WN);Z.prototype.visitUnion=K(JN);Z.prototype.visitDenseUnion=K(SS);Z.prototype.visitSparseUnion=K(kS);Z.prototype.visitDictionary=K(HN);Z.prototype.visitInterval=K(Gh);Z.prototype.visitIntervalDayTime=K(Vl);Z.prototype.visitIntervalYearMonth=K(Zl);Z.prototype.visitIntervalMonthDayNano=K(Wl);Z.prototype.visitDuration=K(Kh);Z.prototype.visitDurationSecond=K(Jl);Z.prototype.visitDurationMillisecond=K(Hl);Z.prototype.visitDurationMicrosecond=K(Gl);Z.prototype.visitDurationNanosecond=K(Kl);Z.prototype.visitFixedSizeList=K(GN);Z.prototype.visitMap=K(jN);st=new Z});var Dr,Ro,Hn,Yh,Xh,KN,qh=m(()=>{Ea();Ci();Kt();Dr=Symbol.for("parent"),Ro=Symbol.for("rowIndex"),Hn=class{constructor(e,r){return this[Dr]=e,this[Ro]=r,new Proxy(this,KN)}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Ro],r=this[Dr],i=r.type.children,n={};for(let o=-1,s=i.length;++o<s;)n[i[o].name]=He.visit(r.children[o],e);return n}toString(){return`{${[...this].map(([e,r])=>`${Ir(e)}: ${Ir(r)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Yh(this[Dr],this[Ro])}},Yh=class{constructor(e,r){this.childIndex=0,this.children=e.children,this.rowIndex=r,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,He.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}};Object.defineProperties(Hn.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Dr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ro]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});Xh=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Dr].type.children.map(r=>r.name)}has(e,r){return e[Dr].type.children.some(i=>i.name===r)}getOwnPropertyDescriptor(e,r){if(e[Dr].type.children.some(i=>i.name===r))return{writable:!0,enumerable:!0,configurable:!0}}get(e,r){if(Reflect.has(e,r))return e[r];let i=e[Dr].type.children.findIndex(n=>n.name===r);if(i!==-1){let n=He.visit(e[Dr].children[i],e[Ro]);return Reflect.set(e,r,n),n}}set(e,r,i){let n=e[Dr].type.children.findIndex(o=>o.name===r);return n!==-1?(st.visit(e[Dr].children[n],e[Ro],i),Reflect.set(e,r,i)):Reflect.has(e,r)||typeof r=="symbol"?Reflect.set(e,r,i):!1}},KN=new Xh});function H(t){return(e,r)=>e.getValid(r)?t(e,r):null}var j,YN,Vo,XN,qN,DS,QN,AS,OS,Gn,eU,BS,tU,zS,TS,rU,NS,nU,iU,oU,sU,US,PS,LS,ES,aU,CS,FS,jS,MS,cU,uU,RS,lU,dU,fU,VS,ZS,pU,mU,WS,JS,HS,GS,KS,YS,XS,hU,gU,He,Ci=m(()=>{jh();Nt();kr();Yl();qh();jr();hn();Ra();qe();j=class extends J{};YN=(t,e)=>864e5*t[e],Vo=16,XN=12,qN=(t,e)=>null,DS=(t,e,r)=>{if(r+1>=e.length)return null;let i=oe(e[r]),n=oe(e[r+1]);return t.subarray(i,n)},QN=({offset:t,values:e},r)=>{let i=t+r;return(e[i>>3]&1<<i%8)!==0},AS=({values:t},e)=>YN(t,e),OS=({values:t},e)=>oe(t[e]),Gn=({stride:t,values:e},r)=>e[t*r],eU=({stride:t,values:e},r)=>Tl(e[t*r]),BS=({values:t},e)=>t[e],tU=({stride:t,values:e},r)=>e.subarray(t*r,t*(r+1)),zS=({values:t,valueOffsets:e},r)=>DS(t,e,r),TS=(t,e)=>{var r;let i=t.values;if(!i)throw new Error("BinaryView data is missing view buffer");let n=e*Vo,o=n+Vo;if(n<0||o>i.length)throw new Error(`BinaryView data buffer is too short: expected ${Vo} bytes, got ${Math.max(0,i.length-n)}`);let s=i.subarray(n,o);if(s.length<Vo)throw new Error(`BinaryView data buffer is too short: expected ${Vo} bytes, got ${s.length}`);let a=new DataView(i.buffer,s.byteOffset,Vo),c=a.getInt32(0,!0);if(c<=0)return new Uint8Array(0);if(c<=XN)return s.subarray(4,4+c);let u=a.getInt32(8,!0),l=a.getInt32(12,!0),d=(r=t.variadicBuffers)===null||r===void 0?void 0:r[u];if(!d)throw new Error(`BinaryView variadic buffer ${u} is missing`);return d.subarray(l,l+c)},rU=(t,e)=>TS(t,e),NS=({values:t,valueOffsets:e},r)=>{let i=DS(t,e,r);return i!==null?To(i):null},nU=(t,e)=>{let r=TS(t,e);return To(r)},iU=({values:t},e)=>t[e],oU=({type:t,values:e},r)=>t.precision!==xe.HALF?e[r]:Tl(e[r]),sU=(t,e)=>t.type.unit===Ze.DAY?AS(t,e):OS(t,e),US=({values:t},e)=>1e3*oe(t[e]),PS=({values:t},e)=>oe(t[e]),LS=({values:t},e)=>Lh(t[e],BigInt(1e3)),ES=({values:t},e)=>Lh(t[e],BigInt(1e6)),aU=(t,e)=>{switch(t.type.unit){case C.SECOND:return US(t,e);case C.MILLISECOND:return PS(t,e);case C.MICROSECOND:return LS(t,e);case C.NANOSECOND:return ES(t,e)}},CS=({values:t},e)=>t[e],FS=({values:t},e)=>t[e],jS=({values:t},e)=>t[e],MS=({values:t},e)=>t[e],cU=(t,e)=>{switch(t.type.unit){case C.SECOND:return CS(t,e);case C.MILLISECOND:return FS(t,e);case C.MICROSECOND:return jS(t,e);case C.NANOSECOND:return MS(t,e)}},uU=({values:t,stride:e},r)=>Fa.decimal(t.subarray(e*r,e*(r+1))),RS=(t,e)=>{let{valueOffsets:r,stride:i,children:n}=t,o=oe(r[e*i]),s=oe(r[e*i+1]),c=n[0].slice(o,s-o);return new E([c])},lU=(t,e)=>{let{valueOffsets:r,children:i}=t,{[e]:n,[e+1]:o}=r,s=i[0];return new Qr(s.slice(n,o-n))},dU=(t,e)=>new Hn(t,e),fU=(t,e)=>t.type.mode===ke.Dense?VS(t,e):ZS(t,e),VS=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return He.visit(i,t.valueOffsets[e])},ZS=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return He.visit(i,e)},pU=(t,e)=>{var r;return(r=t.dictionary)===null||r===void 0?void 0:r.get(t.values[e])},mU=(t,e)=>t.type.unit===Be.MONTH_DAY_NANO?HS(t,e):t.type.unit===Be.DAY_TIME?WS(t,e):JS(t,e),WS=({values:t},e)=>t.subarray(2*e,2*(e+1)),JS=({values:t},e)=>{let r=t[e],i=new Int32Array(2);return i[0]=Math.trunc(r/12),i[1]=Math.trunc(r%12),i},HS=({values:t},e)=>t.subarray(4*e,4*(e+1)),GS=({values:t},e)=>t[e],KS=({values:t},e)=>t[e],YS=({values:t},e)=>t[e],XS=({values:t},e)=>t[e],hU=(t,e)=>{switch(t.type.unit){case C.SECOND:return GS(t,e);case C.MILLISECOND:return KS(t,e);case C.MICROSECOND:return YS(t,e);case C.NANOSECOND:return XS(t,e)}},gU=(t,e)=>{let{stride:r,children:i}=t,o=i[0].slice(e*r,r);return new E([o])};j.prototype.visitNull=H(qN);j.prototype.visitBool=H(QN);j.prototype.visitInt=H(iU);j.prototype.visitInt8=H(Gn);j.prototype.visitInt16=H(Gn);j.prototype.visitInt32=H(Gn);j.prototype.visitInt64=H(BS);j.prototype.visitUint8=H(Gn);j.prototype.visitUint16=H(Gn);j.prototype.visitUint32=H(Gn);j.prototype.visitUint64=H(BS);j.prototype.visitFloat=H(oU);j.prototype.visitFloat16=H(eU);j.prototype.visitFloat32=H(Gn);j.prototype.visitFloat64=H(Gn);j.prototype.visitUtf8=H(NS);j.prototype.visitLargeUtf8=H(NS);j.prototype.visitUtf8View=H(nU);j.prototype.visitBinary=H(zS);j.prototype.visitLargeBinary=H(zS);j.prototype.visitBinaryView=H(rU);j.prototype.visitFixedSizeBinary=H(tU);j.prototype.visitDate=H(sU);j.prototype.visitDateDay=H(AS);j.prototype.visitDateMillisecond=H(OS);j.prototype.visitTimestamp=H(aU);j.prototype.visitTimestampSecond=H(US);j.prototype.visitTimestampMillisecond=H(PS);j.prototype.visitTimestampMicrosecond=H(LS);j.prototype.visitTimestampNanosecond=H(ES);j.prototype.visitTime=H(cU);j.prototype.visitTimeSecond=H(CS);j.prototype.visitTimeMillisecond=H(FS);j.prototype.visitTimeMicrosecond=H(jS);j.prototype.visitTimeNanosecond=H(MS);j.prototype.visitDecimal=H(uU);j.prototype.visitList=H(RS);j.prototype.visitLargeList=H(RS);j.prototype.visitStruct=H(dU);j.prototype.visitUnion=H(fU);j.prototype.visitDenseUnion=H(VS);j.prototype.visitSparseUnion=H(ZS);j.prototype.visitDictionary=H(pU);j.prototype.visitInterval=H(mU);j.prototype.visitIntervalDayTime=H(WS);j.prototype.visitIntervalYearMonth=H(JS);j.prototype.visitIntervalMonthDayNano=H(HS);j.prototype.visitDuration=H(hU);j.prototype.visitDurationSecond=H(GS);j.prototype.visitDurationMillisecond=H(KS);j.prototype.visitDurationMicrosecond=H(YS);j.prototype.visitDurationNanosecond=H(XS);j.prototype.visitFixedSizeList=H(gU);j.prototype.visitMap=H(lU);He=new j});var Kn,Wo,Zo,Qh,Qr,eg,tg,Yl=m(()=>{Nt();Ea();Ci();Kt();Kn=Symbol.for("keys"),Wo=Symbol.for("vals"),Zo=Symbol.for("kKeysAsStrings"),Qh=Symbol.for("_kKeysAsStrings"),Qr=class{constructor(e){return this[Kn]=new E([e.children[0]]).memoize(),this[Wo]=e.children[1],new Proxy(this,new tg)}get[Zo](){return this[Qh]||(this[Qh]=Array.from(this[Kn].toArray(),String))}[Symbol.iterator](){return new eg(this[Kn],this[Wo])}get size(){return this[Kn].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Kn],r=this[Wo],i={};for(let n=-1,o=e.length;++n<o;)i[e.get(n)]=He.visit(r,n);return i}toString(){return`{${[...this].map(([e,r])=>`${Ir(e)}: ${Ir(r)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},eg=class{constructor(e,r){this.keys=e,this.vals=r,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),He.visit(this.vals,e)]})}},tg=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Zo]}has(e,r){return e[Zo].includes(r)}getOwnPropertyDescriptor(e,r){if(e[Zo].indexOf(r)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,r){if(Reflect.has(e,r))return e[r];let i=e[Zo].indexOf(r);if(i!==-1){let n=He.visit(Reflect.get(e,Wo),i);return Reflect.set(e,r,n),n}}set(e,r,i){let n=e[Zo].indexOf(r);return n!==-1?(st.visit(Reflect.get(e,Wo),n,i),Reflect.set(e,r,i)):Reflect.has(e,r)?Reflect.set(e,r,i):!1}};Object.defineProperties(Qr.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Kn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Wo]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Qh]:{writable:!0,enumerable:!1,configurable:!1,value:null}})});var rg={};$e(rg,{clampRange:()=>Va,createElementComparator:()=>Yn,wrapIndex:()=>Fi});function Va(t,e,r,i){let{length:n=0}=t,o=typeof e!="number"?0:e,s=typeof r!="number"?n:r;return o<0&&(o=(o%n+n)%n),s<0&&(s=(s%n+n)%n),s<o&&(qS=o,o=s,s=qS),s>n&&(s=n),i?i(t,o,s):[o,s]}function Yn(t){if(typeof t!=="object"||t===null)return QS(t)?QS:r=>r===t;if(t instanceof Date){let r=t.valueOf();return i=>i instanceof Date?i.valueOf()===r:!1}return ArrayBuffer.isView(t)?r=>r?rh(t,r):!1:t instanceof Map?vU(t):Array.isArray(t)?yU(t):t instanceof E?bU(t):_U(t,!0)}function yU(t){let e=[];for(let r=-1,i=t.length;++r<i;)e[r]=Yn(t[r]);return Xl(e)}function vU(t){let e=-1,r=[];for(let i of t.values())r[++e]=Yn(i);return Xl(r)}function bU(t){let e=[];for(let r=-1,i=t.length;++r<i;)e[r]=Yn(t.get(r));return Xl(e)}function _U(t,e=!1){let r=Object.keys(t);if(!e&&r.length===0)return()=>!1;let i=[];for(let n=-1,o=r.length;++n<o;)i[n]=Yn(t[r[n]]);return Xl(i,r)}function Xl(t,e){return r=>{if(!r||typeof r!="object")return!1;switch(r.constructor){case Array:return wU(t,r);case Map:return e0(t,r,r.keys());case Qr:case Hn:case Object:case void 0:return e0(t,r,e||Object.keys(r))}return r instanceof E?$U(t,r):!1}}function wU(t,e){let r=t.length;if(e.length!==r)return!1;for(let i=-1;++i<r;)if(!t[i](e[i]))return!1;return!0}function $U(t,e){let r=t.length;if(e.length!==r)return!1;for(let i=-1;++i<r;)if(!t[i](e.get(i)))return!1;return!0}function e0(t,e,r){let i=r[Symbol.iterator](),n=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),o=e instanceof Map?e.values():Object.values(e)[Symbol.iterator](),s=0,a=t.length,c=o.next(),u=i.next(),l=n.next();for(;s<a&&!u.done&&!l.done&&!c.done&&!(u.value!==l.value||!t[s](c.value));++s,u=i.next(),l=n.next(),c=o.next());return s===a&&u.done&&l.done&&c.done?!0:(i.return&&i.return(),n.return&&n.return(),o.return&&o.return(),!1)}var qS,Fi,QS,Jo=m(()=>{Nt();Yl();qh();Xe();Fi=(t,e)=>t<0?e+t:t,QS=t=>t!==t});var ng={};$e(ng,{BitIterator:()=>ji,getBit:()=>t0,getBool:()=>Ql,packBools:()=>Ri,popcnt_array:()=>r0,popcnt_bit_range:()=>Za,popcnt_uint32:()=>ql,setBool:()=>xU,truncateBitmap:()=>Mi});function Ql(t,e,r,i){return(r&1<<i)!==0}function t0(t,e,r,i){return(r&1<<i)>>i}function xU(t,e,r){return r?!!(t[e>>3]|=1<<e%8)||!0:!(t[e>>3]&=~(1<<e%8))&&!1}function Mi(t,e,r){let i=r.byteLength+7&-8;if(t>0||r.byteLength<i){let n=new Uint8Array(i);return n.set(t%8===0?r.subarray(t>>3):Ri(new ji(r,t,e,null,Ql)).subarray(0,i)),n}return r}function Ri(t){let e=[],r=0,i=0,n=0;for(let s of t)s&&(n|=1<<i),++i===8&&(e[r++]=n,n=i=0);(r===0||i>0)&&(e[r++]=n);let o=new Uint8Array(e.length+7&-8);return o.set(e),o}function Za(t,e,r){if(r-e<=0)return 0;if(r-e<8){let o=0;for(let s of new ji(t,e,r-e,t,t0))o+=s;return o}let i=r>>3<<3,n=e+(e%8===0?0:8-e%8);return Za(t,e,n)+Za(t,i,r)+r0(t,n>>3,i-n>>3)}function r0(t,e,r){let i=0,n=Math.trunc(e),o=new DataView(t.buffer,t.byteOffset,t.byteLength),s=r===void 0?t.byteLength:n+r;for(;s-n>=4;)i+=ql(o.getUint32(n)),n+=4;for(;s-n>=2;)i+=ql(o.getUint16(n)),n+=2;for(;s-n>=1;)i+=ql(o.getUint8(n)),n+=1;return i}function ql(t){let e=Math.trunc(t);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}var ji,Ho=m(()=>{ji=class{constructor(e,r,i,n,o){this.bytes=e,this.length=i,this.context=n,this.get=o,this.bit=r%8,this.byteIndex=r>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}});function P(t){return SU.visit(t)}var IU,n0,ee,ig,SU,Ar=m(()=>{Nt();qe();Ie();Ho();Ie();kr();Xe();IU=-1,n0=Symbol.for("apache-arrow/Data"),ee=class t{static isData(e){return e?.[n0]===!0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:e}=this;return O.isSparseUnion(e)?this.children.some(r=>r.nullable):O.isDenseUnion(e)?this.children.some(r=>r.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:r,values:i,nullBitmap:n,typeIds:o}=this;return r&&(e+=r.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),o&&(e+=o.byteLength),e+=this.variadicBuffers.reduce((s,a)=>{var c;return s+((c=a?.byteLength)!==null&&c!==void 0?c:0)},0),this.children.reduce((s,a)=>s+a.byteLength,e)}get nullCount(){if(O.isUnion(this.type))return this.children.reduce((i,n)=>i+n.nullCount,0);let e=this._nullCount,r;return e<=IU&&(r=this.nullBitmap)&&(this._nullCount=e=r.length===0?0:this.length-Za(r,this.offset,this.offset+this.length)),e}constructor(e,r,i,n,o,s=[],a,c=[]){var u;this.type=e,this.children=s,this.dictionary=a,this.offset=Math.floor(Math.max(r||0,0)),this.length=Math.floor(Math.max(i||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1));let l;o instanceof t?(this.stride=o.stride,this.values=o.values,this.typeIds=o.typeIds,this.nullBitmap=o.nullBitmap,this.valueOffsets=o.valueOffsets,this.variadicBuffers=o.variadicBuffers):(this.stride=Gt(e),o&&((l=o[0])&&(this.valueOffsets=l),(l=o[1])&&(this.values=l),(l=o[2])&&(this.nullBitmap=l),(l=o[3])&&(this.typeIds=l)),this.variadicBuffers=c),(u=this.variadicBuffers)!==null&&u!==void 0||(this.variadicBuffers=[])}getValid(e){let{type:r}=this;if(O.isUnion(r)){let i=r,n=this.typeIds[e],o=i.typeIdToChildIndex[n],s=this.children[o],a=this.valueOffsets,c=i.mode===ke.Dense&&a?Number(a[e]):e;return s.getValid(c)}if(this.nullable&&this.nullCount>0){let i=this.offset+e;return(this.nullBitmap[i>>3]&1<<i%8)!==0}return!0}setValid(e,r){let i,{type:n}=this;if(O.isUnion(n)){let o=n,s=this.typeIds[e],a=o.typeIdToChildIndex[s],c=this.children[a],u=this.valueOffsets,l=o.mode===ke.Dense&&u?Number(u[e]):e;i=c.getValid(l),c.setValid(l,r)}else{let{nullBitmap:o}=this,{offset:s,length:a}=this,c=s+e,u=1<<c%8,l=c>>3;(!o||o.byteLength<=l)&&(o=new Uint8Array((s+a+63&-64)>>3).fill(255),this.nullCount>0?(o.set(Mi(s,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:o})):Object.assign(this,{nullBitmap:o,_nullCount:0}));let d=o[l];i=(d&u)!==0,o[l]=r?d|u:d&~u}return i!==!!r&&(this._nullCount=this.nullCount+(r?-1:1)),r}clone(e=this.type,r=this.offset,i=this.length,n=this._nullCount,o=this,s=this.children,a=this.variadicBuffers){return new t(e,r,i,n,o,s,this.dictionary,a)}slice(e,r){let{stride:i,typeId:n,children:o}=this,s=+(this._nullCount===0)-1,a=n===16?i:1,c=this._sliceBuffers(e,r,i,n);return this.clone(this.type,this.offset+e,r,s,c,o.length===0||this.valueOffsets?o:this._sliceChildren(o,a*e,a*r),this.variadicBuffers)}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===g.Null)return this.clone(this.type,0,e,0,this.buffers,this.children,this.variadicBuffers);let{length:r,nullCount:i}=this,n=new Uint8Array((e+63&-64)>>3).fill(255,0,r>>3);n[r>>3]=(1<<r-(r&-8))-1,i>0&&n.set(Mi(this.offset,r,this.nullBitmap),0);let o=this.buffers;return o[Wt.VALIDITY]=n,this.clone(this.type,0,e,i+(e-r),o,this.children,this.variadicBuffers)}_sliceBuffers(e,r,i,n){let o,{buffers:s}=this;if((o=s[Wt.TYPE])&&(s[Wt.TYPE]=o.subarray(e,e+r)),O.isBinaryView(this.type)||O.isUtf8View(this.type)){let a=re.ELEMENT_WIDTH;(o=s[Wt.DATA])&&(s[Wt.DATA]=o.subarray(e*a,(e+r)*a))}else(o=s[Wt.OFFSET])&&(s[Wt.OFFSET]=o.subarray(e,e+r+1))||(o=s[Wt.DATA])&&(s[Wt.DATA]=n===6?o:o.subarray(i*e,i*(e+r)));return s}_sliceChildren(e,r,i){return e.map(n=>n.slice(r,i))}};ee.prototype.children=Object.freeze([]);ee.prototype[n0]=!0;Object.defineProperty(ee,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===ee&&ee.isData(e)}});ig=class t extends J{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{["type"]:r,["offset"]:i=0,["length"]:n=0}=e;return new ee(r,i,n,n)}visitBool(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length>>3,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitInt(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitFloat(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitUtf8(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.data),o=F(e.nullBitmap),s=ki(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new ee(r,i,a,c,[s,n,o])}visitUtf8View(e){var r;let{["type"]:i,["offset"]:n=0}=e,o=ie(i.ArrayType,e.views),s=F(e.nullBitmap),a=(e.variadicBuffers||[]).map(l=>F(l)),c=(r=e.length)!==null&&r!==void 0?r:Math.trunc(o.length/Bt.ELEMENT_WIDTH),u=e.nullBitmap?-1:0;return new ee(i,n,c,u,[void 0,o,s],[],void 0,a)}visitLargeUtf8(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.data),o=F(e.nullBitmap),s=_a(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new ee(r,i,a,c,[s,n,o])}visitBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.data),o=F(e.nullBitmap),s=ki(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new ee(r,i,a,c,[s,n,o])}visitBinaryView(e){var r;let{["type"]:i,["offset"]:n=0}=e,o=ie(i.ArrayType,e.views),s=F(e.nullBitmap),a=(e.variadicBuffers||[]).map(l=>F(l)),c=(r=e.length)!==null&&r!==void 0?r:Math.trunc(o.length/re.ELEMENT_WIDTH),u=e.nullBitmap?-1:0;return new ee(i,n,c,u,[void 0,o,s],[],void 0,a)}visitLargeBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.data),o=F(e.nullBitmap),s=_a(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new ee(r,i,a,c,[s,n,o])}visitFixedSizeBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length/Gt(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitDate(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length/Gt(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitTimestamp(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length/Gt(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitTime(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length/Gt(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitDecimal(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length/Gt(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitList(e){let{["type"]:r,["offset"]:i=0,["child"]:n}=e,o=F(e.nullBitmap),s=ki(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new ee(r,i,a,c,[s,void 0,o],[n])}visitLargeList(e){let{["type"]:r,["offset"]:i=0,["child"]:n}=e,o=F(e.nullBitmap),s=_a(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new ee(r,i,a,c,[s,void 0,o],[n])}visitStruct(e){let{["type"]:r,["offset"]:i=0,["children"]:n=[]}=e,o=F(e.nullBitmap),{length:s=n.reduce((c,{length:u})=>Math.max(c,u),0),nullCount:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,void 0,o],n)}visitUnion(e){let{["type"]:r,["offset"]:i=0,["children"]:n=[]}=e,o=ie(r.ArrayType,e.typeIds),{["length"]:s=o.length,["nullCount"]:a=-1}=e;if(O.isSparseUnion(r))return new ee(r,i,s,a,[void 0,void 0,void 0,o],n);let c=ki(e.valueOffsets);return new ee(r,i,s,a,[c,void 0,void 0,o],n)}visitDictionary(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.indices.ArrayType,e.data),{["dictionary"]:s=new E([new t().visit({type:r.dictionary})])}=e,{["length"]:a=o.length,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new ee(r,i,a,c,[void 0,o,n],[],s)}visitInterval(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length/Gt(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitDuration(e){let{["type"]:r,["offset"]:i=0}=e,n=F(e.nullBitmap),o=ie(r.ArrayType,e.data),{["length"]:s=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,o,n])}visitFixedSizeList(e){let{["type"]:r,["offset"]:i=0,["child"]:n=new t().visit({type:r.valueType})}=e,o=F(e.nullBitmap),{["length"]:s=n.length/Gt(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new ee(r,i,s,a,[void 0,void 0,o],[n])}visitMap(e){let{["type"]:r,["offset"]:i=0,["child"]:n=new t().visit({type:r.childType})}=e,o=F(e.nullBitmap),s=ki(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new ee(r,i,a,c,[s,void 0,o],[n])}},SU=new ig});function i0(t){return t.some(e=>e.nullable)}function ed(t){return t.reduce((e,r)=>e+r.nullCount,0)}function td(t){return t.reduce((e,r,i)=>(e[i+1]=e[i]+r.length,e),new Uint32Array(t.length+1))}function rd(t,e,r,i){let n=[];for(let o=-1,s=t.length;++o<s;){let a=t[o],c=e[o],{length:u}=a;if(c>=i)break;if(r>=c+u)continue;if(c>=r&&c+u<=i){n.push(a);continue}let l=Math.max(0,r-c),d=Math.min(i-c,u);n.push(a.slice(l,d-l))}return n.length===0&&n.push(t[0].slice(0,0)),n}function og(t,e,r,i){let n=0,o=0,s=e.length-1;do{if(n>=s-1)return r<e[s]?i(t,n,r-e[n]):null;o=n+Math.trunc((s-n)*.5),r<e[o]?s=o:n=o}while(n<s)}function Ja(t,e){return t.getValid(e)}function Go(t){function e(r,i,n){return t(r[i],n)}return function(r){let i=this.data;return og(i,this._offsets,r,e)}}function nd(t){let e;function r(i,n,o){return t(i[n],o,e)}return function(i,n){let o=this.data;e=n;let s=og(o,this._offsets,i,r);return e=void 0,s}}function id(t){let e;function r(i,n,o){let s=o,a=0,c=0;for(let u=n-1,l=i.length;++u<l;){let d=i[u];if(~(a=t(d,e,s)))return c+a;s=0,c+=d.length}return-1}return function(i,n){e=i;let o=this.data,s=typeof n!="number"?r(o,0,0):og(o,this._offsets,n,r);return e=void 0,s}}var Wa,od=m(()=>{Wa=class{constructor(e=0,r){this.numChunks=e,this.getChunkIterator=r,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){let e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}});function kU(t,e){return e===null&&t.length>0?0:-1}function DU(t,e){let{nullBitmap:r}=t;if(!r||t.nullCount<=0)return-1;let i=0;for(let n of new ji(r,t.offset+(e||0),t.length,r,Ql)){if(!n)return i;++i}return-1}function X(t,e,r){if(e===void 0)return-1;if(e===null)switch(t.typeId){case g.Union:break;case g.Dictionary:break;default:return DU(t,r)}let i=He.getVisitFn(t),n=Yn(e);for(let o=(r||0)-1,s=t.length;++o<s;)if(n(i(t,o)))return o;return-1}function o0(t,e,r){let i=He.getVisitFn(t),n=Yn(e);for(let o=(r||0)-1,s=t.length;++o<s;)if(n(i(t,o)))return o;return-1}var M,Vi,sd=m(()=>{qe();kr();Ci();Ho();Jo();M=class extends J{};M.prototype.visitNull=kU;M.prototype.visitBool=X;M.prototype.visitInt=X;M.prototype.visitInt8=X;M.prototype.visitInt16=X;M.prototype.visitInt32=X;M.prototype.visitInt64=X;M.prototype.visitUint8=X;M.prototype.visitUint16=X;M.prototype.visitUint32=X;M.prototype.visitUint64=X;M.prototype.visitFloat=X;M.prototype.visitFloat16=X;M.prototype.visitFloat32=X;M.prototype.visitFloat64=X;M.prototype.visitUtf8=X;M.prototype.visitLargeUtf8=X;M.prototype.visitUtf8View=X;M.prototype.visitBinary=X;M.prototype.visitLargeBinary=X;M.prototype.visitBinaryView=X;M.prototype.visitFixedSizeBinary=X;M.prototype.visitDate=X;M.prototype.visitDateDay=X;M.prototype.visitDateMillisecond=X;M.prototype.visitTimestamp=X;M.prototype.visitTimestampSecond=X;M.prototype.visitTimestampMillisecond=X;M.prototype.visitTimestampMicrosecond=X;M.prototype.visitTimestampNanosecond=X;M.prototype.visitTime=X;M.prototype.visitTimeSecond=X;M.prototype.visitTimeMillisecond=X;M.prototype.visitTimeMicrosecond=X;M.prototype.visitTimeNanosecond=X;M.prototype.visitDecimal=X;M.prototype.visitList=X;M.prototype.visitLargeList=X;M.prototype.visitStruct=X;M.prototype.visitUnion=X;M.prototype.visitDenseUnion=o0;M.prototype.visitSparseUnion=o0;M.prototype.visitDictionary=X;M.prototype.visitInterval=X;M.prototype.visitIntervalDayTime=X;M.prototype.visitIntervalYearMonth=X;M.prototype.visitIntervalMonthDayNano=X;M.prototype.visitDuration=X;M.prototype.visitDurationSecond=X;M.prototype.visitDurationMillisecond=X;M.prototype.visitDurationMicrosecond=X;M.prototype.visitDurationNanosecond=X;M.prototype.visitFixedSizeList=X;M.prototype.visitMap=X;Vi=new M});function G(t){let{type:e}=t;if(t.nullCount===0&&t.stride===1&&(O.isInt(e)&&e.bitWidth!==64||O.isTime(e)&&e.bitWidth!==64||O.isFloat(e)&&e.precision!==xe.HALF))return new Wa(t.data.length,i=>{let n=t.data[i];return n.values.subarray(0,n.length)[Symbol.iterator]()});let r=0;return new Wa(t.data.length,i=>{let o=t.data[i].length,s=t.slice(r,r+o);return r+=o,new sg(s)})}var R,sg,Ko,ad=m(()=>{kr();qe();Ie();od();R=class extends J{};sg=class{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};R.prototype.visitNull=G;R.prototype.visitBool=G;R.prototype.visitInt=G;R.prototype.visitInt8=G;R.prototype.visitInt16=G;R.prototype.visitInt32=G;R.prototype.visitInt64=G;R.prototype.visitUint8=G;R.prototype.visitUint16=G;R.prototype.visitUint32=G;R.prototype.visitUint64=G;R.prototype.visitFloat=G;R.prototype.visitFloat16=G;R.prototype.visitFloat32=G;R.prototype.visitFloat64=G;R.prototype.visitUtf8=G;R.prototype.visitLargeUtf8=G;R.prototype.visitUtf8View=G;R.prototype.visitBinary=G;R.prototype.visitLargeBinary=G;R.prototype.visitBinaryView=G;R.prototype.visitFixedSizeBinary=G;R.prototype.visitDate=G;R.prototype.visitDateDay=G;R.prototype.visitDateMillisecond=G;R.prototype.visitTimestamp=G;R.prototype.visitTimestampSecond=G;R.prototype.visitTimestampMillisecond=G;R.prototype.visitTimestampMicrosecond=G;R.prototype.visitTimestampNanosecond=G;R.prototype.visitTime=G;R.prototype.visitTimeSecond=G;R.prototype.visitTimeMillisecond=G;R.prototype.visitTimeMicrosecond=G;R.prototype.visitTimeNanosecond=G;R.prototype.visitDecimal=G;R.prototype.visitList=G;R.prototype.visitLargeList=G;R.prototype.visitStruct=G;R.prototype.visitUnion=G;R.prototype.visitDenseUnion=G;R.prototype.visitSparseUnion=G;R.prototype.visitDictionary=G;R.prototype.visitInterval=G;R.prototype.visitIntervalDayTime=G;R.prototype.visitIntervalYearMonth=G;R.prototype.visitIntervalMonthDayNano=G;R.prototype.visitDuration=G;R.prototype.visitDurationSecond=G;R.prototype.visitDurationMillisecond=G;R.prototype.visitDurationMicrosecond=G;R.prototype.visitDurationNanosecond=G;R.prototype.visitFixedSizeList=G;R.prototype.visitMap=G;Ko=new R});function Zi(t){if(t){if(t instanceof ee)return new E([t]);if(t instanceof E)return new E(t.data);if(t.type instanceof O)return new E([P(t)]);if(Array.isArray(t))return new E(t.flatMap(e=>AU(e)));if(ArrayBuffer.isView(t)){t instanceof DataView&&(t=new Uint8Array(t.buffer));let e={offset:0,length:t.length,nullCount:-1,data:t};if(t instanceof Int8Array)return new E([P(Object.assign(Object.assign({},e),{type:new Oi}))]);if(t instanceof Int16Array)return new E([P(Object.assign(Object.assign({},e),{type:new Bi}))]);if(t instanceof Int32Array)return new E([P(Object.assign(Object.assign({},e),{type:new Jt}))]);if(t instanceof BigInt64Array)return new E([P(Object.assign(Object.assign({},e),{type:new zi}))]);if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return new E([P(Object.assign(Object.assign({},e),{type:new Ti}))]);if(t instanceof Uint16Array)return new E([P(Object.assign(Object.assign({},e),{type:new Ni}))]);if(t instanceof Uint32Array)return new E([P(Object.assign(Object.assign({},e),{type:new Ui}))]);if(t instanceof BigUint64Array)return new E([P(Object.assign(Object.assign({},e),{type:new Pi}))]);if(t instanceof Float32Array)return new E([P(Object.assign(Object.assign({},e),{type:new Li}))]);if(t instanceof Float64Array)return new E([P(Object.assign(Object.assign({},e),{type:new Ei}))]);throw new Error("Unrecognized input")}}throw new Error("Unrecognized input")}function AU(t){return t instanceof ee?[t]:t instanceof E?t.data:Zi(t).data}var s0,a0,c0,u0,E,cd,Nt=m(()=>{qe();Jo();Ie();Ar();od();Ci();Kt();sd();ad();Ie();a0=Symbol.for("apache-arrow/Vector"),c0={},u0={},E=class t{static isVector(e){return e?.[a0]===!0}constructor(e){var r,i,n;let o=e[0]instanceof t?e.flatMap(a=>a.data):e;if(o.length===0||o.some(a=>!(a instanceof ee)))throw new TypeError("Vector constructor expects an Array of Data instances.");let s=(r=o[0])===null||r===void 0?void 0:r.type;switch(o.length){case 0:this._offsets=[0];break;case 1:{let{get:a,set:c,indexOf:u}=c0[s.typeId],l=o[0];this.isValid=d=>Ja(l,d),this.get=d=>a(l,d),this.set=(d,f)=>c(l,d,f),this.indexOf=d=>u(l,d),this._offsets=[0,l.length];break}default:Object.setPrototypeOf(this,u0[s.typeId]),this._offsets=td(o);break}this.data=o,this.type=s,this.stride=Gt(s),this.numChildren=(n=(i=s.children)===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,r)=>e+r.byteLength,0)}get nullable(){return i0(this.data)}get nullCount(){return ed(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${g[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(Fi(e,this.length))}set(e,r){}indexOf(e,r){return-1}includes(e,r){return this.indexOf(e,r)>-1}[Symbol.iterator](){return Ko.visit(this)}concat(...e){return new t(this.data.concat(e.flatMap(r=>r.data).flat(Number.POSITIVE_INFINITY)))}slice(e,r){return new t(Va(this,e,r,({data:i,_offsets:n},o,s)=>rd(i,n,o,s)))}toJSON(){return[...this]}toArray(){let{type:e,data:r,length:i,stride:n,ArrayType:o}=this;switch(e.typeId){case g.Int:case g.Float:case g.Decimal:case g.Time:case g.Timestamp:switch(r.length){case 0:return new o;case 1:return r[0].values.subarray(0,i*n);default:return r.reduce((s,{values:a,length:c})=>(s.array.set(a.subarray(0,c*n),s.offset),s.offset+=c*n,s),{array:new o(i*n),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var r;return this.getChildAt((r=this.type.children)===null||r===void 0?void 0:r.findIndex(i=>i.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new t(this.data.map(({children:r})=>r[e])):null}get isMemoized(){return O.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(O.isDictionary(this.type)){let e=new cd(this.data[0].dictionary),r=this.data.map(i=>{let n=i.clone();return n.dictionary=e,n});return new t(r)}return new cd(this)}unmemoize(){if(O.isDictionary(this.type)&&this.isMemoized){let e=this.data[0].dictionary.unmemoize(),r=this.data.map(i=>{let n=i.clone();return n.dictionary=e,n});return new t(r)}return this}};s0=Symbol.toStringTag;E[s0]=(t=>{t.type=O.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0,t[a0]=!0;let e=Object.keys(g).map(r=>g[r]).filter(r=>typeof r=="number"&&r!==g.NONE);for(let r of e){let i=He.getVisitFnByTypeId(r),n=st.getVisitFnByTypeId(r),o=Vi.getVisitFnByTypeId(r);c0[r]={get:i,set:n,indexOf:o},u0[r]=Object.create(t,{isValid:{value:Go(Ja)},get:{value:Go(He.getVisitFnByTypeId(r))},set:{value:nd(st.getVisitFnByTypeId(r))},indexOf:{value:id(Vi.getVisitFnByTypeId(r))}})}return"Vector"})(E.prototype);Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===E&&E.isVector(e)}});cd=class t extends E{constructor(e){super(e.data);let r=this.get,i=this.set,n=this.slice,o=new Array(this.length);Object.defineProperty(this,"get",{value(s){let a=o[s];if(a!==void 0)return a;let c=r.call(this,s);return o[s]=c,c}}),Object.defineProperty(this,"set",{value(s,a){i.call(this,s,a),o[s]=a}}),Object.defineProperty(this,"slice",{value:(s,a)=>new t(n.call(this,s,a))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new E(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}});function l0(t){if(!t||t.length<=0)return function(n){return!0};let e="",r=t.filter(i=>i===i);return r.length>0&&(e=`
|
|
8
|
+
switch (x) {${r.map(i=>`
|
|
9
|
+
case ${OU(i)}:`).join("")}
|
|
10
10
|
return false;
|
|
11
|
-
}`),
|
|
12
|
-
${
|
|
13
|
-
return true;`)}function ib(r){return typeof r!="bigint"?We(r):`${We(r)}n`}var lp=d(()=>{Rs()});function Lu(r,t){let e=Math.ceil(r)*t-1;return(e-e%64+64||64)/t}function up(r,t=0){return r.length>=t?r.subarray(0,t):Es(new r.constructor(t),r,0)}var Je,zr,Pi,Vi,jr=d(()=>{kt();Je=class{constructor(t,e=0,n=1){this.length=Math.ceil(e/n),this.buffer=new t(this.length),this.stride=n,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t}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(t,e){return this}append(t){return this.set(this.length,t)}reserve(t){if(t>0){this.length+=t;let e=this.stride,n=this.length*e,i=this.buffer.length;n>=i&&this._resize(i===0?Lu(n*1,this.BYTES_PER_ELEMENT):Lu(n*2,this.BYTES_PER_ELEMENT))}return this}flush(t=this.length){t=Lu(t*this.stride,this.BYTES_PER_ELEMENT);let e=up(this.buffer,t);return this.clear(),e}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(t){return this.buffer=up(this.buffer,t)}},zr=class extends Je{last(){return this.get(this.length-1)}get(t){return this.buffer[t]}set(t,e){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=e,this}},Pi=class extends zr{constructor(){super(Uint8Array,0,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(t){return this.buffer[t>>3]>>t%8&1}set(t,e){let{buffer:n}=this.reserve(t-this.length+1),i=t>>3,s=t%8,o=n[i]>>s&1;return e?o===0&&(n[i]|=1<<s,++this.numValid):o===1&&(n[i]&=~(1<<s),--this.numValid),this}clear(){return this.numValid=0,super.clear()}},Vi=class extends zr{constructor(t){super(t.OffsetArrayType,1,1)}append(t){return this.set(this.length-1,t)}set(t,e){let n=this.length-1,i=this.reserve(t-n+1).buffer;return n<t++&&n>=0&&i.fill(i[n],n,t),i[t]=i[t-1]+e,this}flush(t=this.length-1){return t>this.length&&this.set(t-1,this.BYTES_PER_ELEMENT>4?BigInt(0):0),super.flush(t+1)}}});var ht,Dt,de,gt=d(()=>{Ae();Vr();Ca();_t();lp();jr();ht=class{static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t){throw new Error('"throughDOM" not available in this environment')}constructor({type:t,nullValues:e}){this.length=0,this.finished=!1,this.type=t,this.children=[],this.nullValues=e,this.stride=xe(t),this._nulls=new Pi,e&&e.length>0&&(this._isValid=cp(e))}toVector(){return new v([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let t=0,{_offsets:e,_values:n,_nulls:i,_typeIds:s,children:o}=this;return e&&(t+=e.byteLength),n&&(t+=n.byteLength),i&&(t+=i.byteLength),s&&(t+=s.byteLength),o.reduce((a,l)=>a+l.byteLength,t)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce((e,n)=>e+n.reservedByteLength,t)}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(t){return this.set(this.length,t)}isValid(t){return this._isValid(t)}set(t,e){return this.setValid(t,this.isValid(e))&&this.setValue(t,e),this}setValue(t,e){this._setValue(this,t,e)}setValid(t,e){return this.length=this._nulls.set(t,+e).length,e}addChild(t,e=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(t){return this.children[t]||null}flush(){let t,e,n,i,{type:s,length:o,nullCount:a,_typeIds:l,_offsets:c,_values:u,_nulls:h}=this;(e=l?.flush(o))?i=c?.flush(o):(i=c?.flush(o))?t=u?.flush(c.last()):t=u?.flush(o),a>0&&(n=h?.flush(o));let m=this.children.map(p=>p.flush());return this.clear(),A({type:s,length:o,nullCount:a,children:m,child:m[0],data:t,typeIds:e,nullBitmap:n,valueOffsets:i})}finish(){this.finished=!0;for(let t of this.children)t.finish();return this}clear(){var t,e,n,i;this.length=0,(t=this._nulls)===null||t===void 0||t.clear(),(e=this._values)===null||e===void 0||e.clear(),(n=this._offsets)===null||n===void 0||n.clear(),(i=this._typeIds)===null||i===void 0||i.clear();for(let s of this.children)s.clear();return this}};ht.prototype.length=1;ht.prototype.stride=1;ht.prototype.children=null;ht.prototype.finished=!1;ht.prototype.nullValues=null;ht.prototype._isValid=()=>!0;Dt=class extends ht{constructor(t){super(t),this._values=new zr(this.ArrayType,0,this.stride)}setValue(t,e){let n=this._values;return n.reserve(t-n.length+1),super.setValue(t,e)}},de=class extends ht{constructor(t){super(t),this._pendingLength=0,this._offsets=new Vi(t.type)}setValue(t,e){let n=this._pending||(this._pending=new Map),i=n.get(t);i&&(this._pendingLength-=i.length),this._pendingLength+=e instanceof Ar?e[fn].length:e.length,n.set(t,e)}setValid(t,e){return super.setValid(t,e)?!0:((this._pending||(this._pending=new Map)).set(t,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 t=this._pending,e=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,e),this}}});var Zn,Fu=d(()=>{Zn=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,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(t,e,n,i){return t.prep(8,24),t.writeInt64(BigInt(i??0)),t.pad(4),t.writeInt32(n),t.writeInt64(BigInt(e??0)),t.offset()}}});var Kt,fp=d(()=>{K();Fu();Ai();ha();iu();Kt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new Kt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new Kt).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):it.V1}schema(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new yt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){let n=this.bb.__offset(this.bb_pos,8);return n?(e||new Zn).__init(this.bb.__vector(this.bb_pos+n)+t*24,this.bb):null}dictionariesLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,e){let n=this.bb.__offset(this.bb_pos,10);return n?(e||new Zn).__init(this.bb.__vector(this.bb_pos+n)+t*24,this.bb):null}recordBatchesLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let n=this.bb.__offset(this.bb_pos,12);return n?(e||new ft).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,it.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,e){t.finish(e)}static finishSizePrefixedFooterBuffer(t,e){t.finish(e,void 0,!0)}}});function Ka(r,t){return new Map([...r||new Map,...t||new Map])}function Nu(r,t=new Map){for(let e=-1,n=r.length;++e<n;){let s=r[e].type;if(_.isDictionary(s)){if(!t.has(s.id))t.set(s.id,s.dictionary);else if(t.get(s.id)!==s.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}s.children&&s.children.length>0&&Nu(s.children,t)}return t}var $,U,Be=d(()=>{Nt();_t();$=class{constructor(t=[],e,n,i=it.V5){this.fields=t||[],this.metadata=e||new Map,n||(n=Nu(this.fields)),this.dictionaries=n,this.metadataVersion=i}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(t=>t.name)}toString(){return`Schema<{ ${this.fields.map((t,e)=>`${e}: ${t}`).join(", ")} }>`}select(t){let e=new Set(t),n=this.fields.filter(i=>e.has(i.name));return new $(n,this.metadata)}selectAt(t){let e=t.map(n=>this.fields[n]).filter(Boolean);return new $(e,this.metadata)}assign(...t){let e=t[0]instanceof $?t[0]:Array.isArray(t[0])?new $(t[0]):new $(t),n=[...this.fields],i=Ka(Ka(new Map,this.metadata),e.metadata),s=e.fields.filter(a=>{let l=n.findIndex(c=>c.name===a.name);return~l?(n[l]=a.clone({metadata:Ka(Ka(new Map,n[l].metadata),a.metadata)}))&&!1:!0}),o=Nu(s,new Map);return new $([...n,...s],i,new Map([...this.dictionaries,...o]))}};$.prototype.fields=null;$.prototype.metadata=null;$.prototype.dictionaries=null;U=class{static new(...t){let[e,n,i,s]=t;return t[0]&&typeof t[0]=="object"&&({name:e}=t[0],n===void 0&&(n=t[0].type),i===void 0&&(i=t[0].nullable),s===void 0&&(s=t[0].metadata)),new U(`${e}`,n,i,s)}constructor(t,e,n=!1,i){this.name=t,this.type=e,this.nullable=n,this.metadata=i||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[e,n,i,s]=t;return!t[0]||typeof t[0]!="object"?[e=this.name,n=this.type,i=this.nullable,s=this.metadata]=t:{name:e=this.name,type:n=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=t[0],U.new(e,n,i,s)}};U.prototype.type=null;U.prototype.name=null;U.prototype.nullable=null;U.prototype.metadata=null});var sb,ob,Hr,Mu,Xe,Ru=d(()=>{Fu();fp();K();Be();Nt();kt();Ur();sb=Cr,ob=Ft,Hr=class{static decode(t){t=new ob(F(t));let e=Kt.getRootAsFooter(t),n=$.decode(e.schema(),new Map,e.version());return new Mu(n,e)}static encode(t){let e=new sb,n=$.encode(e,t.schema);Kt.startRecordBatchesVector(e,t.numRecordBatches);for(let o of[...t.recordBatches()].slice().reverse())Xe.encode(e,o);let i=e.endVector();Kt.startDictionariesVector(e,t.numDictionaries);for(let o of[...t.dictionaryBatches()].slice().reverse())Xe.encode(e,o);let s=e.endVector();return Kt.startFooter(e),Kt.addSchema(e,n),Kt.addVersion(e,it.V5),Kt.addRecordBatches(e,i),Kt.addDictionaries(e,s),Kt.finishFooterBuffer(e,Kt.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(t,e=it.V5,n,i){this.schema=t,this.version=e,n&&(this._recordBatches=n),i&&(this._dictionaryBatches=i)}*recordBatches(){for(let t,e=-1,n=this.numRecordBatches;++e<n;)(t=this.getRecordBatch(e))&&(yield t)}*dictionaryBatches(){for(let t,e=-1,n=this.numDictionaries;++e<n;)(t=this.getDictionaryBatch(e))&&(yield t)}getRecordBatch(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}getDictionaryBatch(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}},Mu=class extends Hr{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(t,e){super(t,e.version()),this._footer=e}getRecordBatch(t){if(t>=0&&t<this.numRecordBatches){let e=this._footer.recordBatches(t);if(e)return Xe.decode(e)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){let e=this._footer.dictionaries(t);if(e)return Xe.decode(e)}return null}},Xe=class{static decode(t){return new Xe(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,e){let{metaDataLength:n}=e,i=BigInt(e.offset),s=BigInt(e.bodyLength);return Zn.createBlock(t,i,n,s)}constructor(t,e,n){this.metaDataLength=t,this.offset=q(n),this.bodyLength=q(e)}}});var vt,dp=d(()=>{K();Ai();su();ha();vt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(t,e){return(e||new vt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,e){return t.setPosition(t.position()+4),(e||new vt).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):it.V1}headerType(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):W.NONE}header(t){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}customMetadata(t,e){let n=this.bb.__offset(this.bb_pos,12);return n?(e||new ft).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+t*4),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,it.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,W.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,BigInt("0"))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,e){t.finish(e)}static finishSizePrefixedMessageBuffer(t,e){t.finish(e,void 0,!0)}static createMessage(t,e,n,i,s,o){return vt.startMessage(t),vt.addVersion(t,e),vt.addHeaderType(t,n),vt.addHeader(t,i),vt.addBodyLength(t,s),vt.addCustomMetadata(t,o),vt.endMessage(t)}}});var ku,Ja,hp=d(()=>{Ye();Yd();ga();Jl();Hd();Zd();$d();Jd();Wd();Wl();Zl();Ql();tu();Xl();Gl();Gd();Kd();eu();$l();Yl();Kl();ql();ku=class extends B{visit(t,e){return t==null||e==null?void 0:super.visit(t,e)}visitNull(t,e){return ur.startNull(e),ur.endNull(e)}visitInt(t,e){return Ct.startInt(e),Ct.addBitWidth(e,t.bitWidth),Ct.addIsSigned(e,t.isSigned),Ct.endInt(e)}visitFloat(t,e){return ae.startFloatingPoint(e),ae.addPrecision(e,t.precision),ae.endFloatingPoint(e)}visitBinary(t,e){return sr.startBinary(e),sr.endBinary(e)}visitLargeBinary(t,e){return ar.startLargeBinary(e),ar.endLargeBinary(e)}visitBool(t,e){return or.startBool(e),or.endBool(e)}visitUtf8(t,e){return dr.startUtf8(e),dr.endUtf8(e)}visitLargeUtf8(t,e){return cr.startLargeUtf8(e),cr.endLargeUtf8(e)}visitDecimal(t,e){return Ut.startDecimal(e),Ut.addScale(e,t.scale),Ut.addPrecision(e,t.precision),Ut.addBitWidth(e,t.bitWidth),Ut.endDecimal(e)}visitDate(t,e){return ne.startDate(e),ne.addUnit(e,t.unit),ne.endDate(e)}visitTime(t,e){return Wt.startTime(e),Wt.addUnit(e,t.unit),Wt.addBitWidth(e,t.bitWidth),Wt.endTime(e)}visitTimestamp(t,e){let n=t.timezone&&e.createString(t.timezone)||void 0;return Gt.startTimestamp(e),Gt.addUnit(e,t.unit),n!==void 0&&Gt.addTimezone(e,n),Gt.endTimestamp(e)}visitInterval(t,e){return ce.startInterval(e),ce.addUnit(e,t.unit),ce.endInterval(e)}visitDuration(t,e){return ie.startDuration(e),ie.addUnit(e,t.unit),ie.endDuration(e)}visitList(t,e){return lr.startList(e),lr.endList(e)}visitStruct(t,e){return fr.startStruct_(e),fr.endStruct_(e)}visitUnion(t,e){Pt.startTypeIdsVector(e,t.typeIds.length);let n=Pt.createTypeIdsVector(e,t.typeIds);return Pt.startUnion(e),Pt.addMode(e,t.mode),Pt.addTypeIds(e,n),Pt.endUnion(e)}visitDictionary(t,e){let n=this.visit(t.indices,e);return we.startDictionaryEncoding(e),we.addId(e,BigInt(t.id)),we.addIsOrdered(e,t.isOrdered),n!==void 0&&we.addIndexType(e,n),we.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return se.startFixedSizeBinary(e),se.addByteWidth(e,t.byteWidth),se.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return oe.startFixedSizeList(e),oe.addListSize(e,t.listSize),oe.endFixedSizeList(e)}visitMap(t,e){return le.startMap(e),le.addKeysSorted(e,t.keysSorted),le.endMap(e)}},Ja=new ku});function _p(r,t=new Map){return new $(ab(r,t),Xa(r.metadata),t)}function Cu(r){return new Et(r.count,bp(r.columns),wp(r.columns),null)}function gp(r){return new Jt(Cu(r.data),r.id,r.isDelta)}function ab(r,t){return(r.fields||[]).filter(Boolean).map(e=>U.fromJSON(e,t))}function pp(r,t){return(r.children||[]).filter(Boolean).map(e=>U.fromJSON(e,t))}function bp(r){return(r||[]).reduce((t,e)=>[...t,new Me(e.count,cb(e.VALIDITY)),...bp(e.children)],[])}function wp(r,t=[]){for(let e=-1,n=(r||[]).length;++e<n;){let i=r[e];i.VALIDITY&&t.push(new Tt(t.length,i.VALIDITY.length)),i.TYPE_ID&&t.push(new Tt(t.length,i.TYPE_ID.length)),i.OFFSET&&t.push(new Tt(t.length,i.OFFSET.length)),i.DATA&&t.push(new Tt(t.length,i.DATA.length)),t=wp(i.children,t)}return t}function cb(r){return(r||[]).reduce((t,e)=>t+ +(e===0),0)}function vp(r,t){let e,n,i,s,o,a;return!t||!(s=r.dictionary)?(o=yp(r,pp(r,t)),i=new U(r.name,o,r.nullable,Xa(r.metadata))):t.has(e=s.id)?(n=(n=s.indexType)?mp(n):new ve,a=new fe(t.get(e),n,e,s.isOrdered),i=new U(r.name,a,r.nullable,Xa(r.metadata))):(n=(n=s.indexType)?mp(n):new ve,t.set(e,o=yp(r,pp(r,t))),a=new fe(o,n,e,s.isOrdered),i=new U(r.name,a,r.nullable,Xa(r.metadata))),i||null}function Xa(r=[]){return new Map(r.map(({key:t,value:e})=>[t,e]))}function mp(r){return new At(r.isSigned,r.bitWidth)}function yp(r,t){let e=r.type.name;switch(e){case"NONE":return new Yt;case"null":return new Yt;case"binary":return new hr;case"largebinary":return new pr;case"utf8":return new mr;case"largeutf8":return new yr;case"bool":return new _r;case"list":return new Le((t||[])[0]);case"struct":return new ct(t||[]);case"struct_":return new ct(t||[])}switch(e){case"int":{let n=r.type;return new At(n.isSigned,n.bitWidth)}case"floatingpoint":{let n=r.type;return new Se(st[n.precision])}case"decimal":{let n=r.type;return new gr(n.scale,n.precision,n.bitWidth)}case"date":{let n=r.type;return new br(wt[n.unit])}case"time":{let n=r.type;return new wr(x[n.unit],n.bitWidth)}case"timestamp":{let n=r.type;return new vr(x[n.unit],n.timezone)}case"interval":{let n=r.type;return new Sr(ut[n.unit])}case"duration":{let n=r.type;return new xr(x[n.unit])}case"union":{let n=r.type,[i,...s]=(n.mode+"").toLowerCase(),o=i.toUpperCase()+s.join("");return new Fe(at[o],n.typeIds||[],t||[])}case"fixedsizebinary":{let n=r.type;return new Ir(n.byteWidth)}case"fixedsizelist":{let n=r.type;return new ue(n.listSize,(t||[])[0])}case"map":{let n=r.type;return new Ne((t||[])[0],n.keysSorted)}}throw new Error(`Unrecognized type: "${e}"`)}var Sp=d(()=>{Be();_t();Wn();Nt()});function fb(r,t){return()=>{switch(t){case W.Schema:return $.fromJSON(r);case W.RecordBatch:return Et.fromJSON(r);case W.DictionaryBatch:return Jt.fromJSON(r)}throw new Error(`Unrecognized Message type: { name: ${W[t]}, type: ${t} }`)}}function db(r,t){return()=>{switch(t){case W.Schema:return $.decode(r.header(new yt),new Map,r.version());case W.RecordBatch:return Et.decode(r.header(new jt),r.version());case W.DictionaryBatch:return Jt.decode(r.header(new Oe),r.version())}throw new Error(`Unrecognized Message type: { name: ${W[t]}, type: ${t} }`)}}function hb(r,t=new Map,e=it.V5){let n=wb(r,t);return new $(n,qa(r),t,e)}function pb(r,t=it.V5){return new Et(r.length(),gb(r),bb(r,t),Bp(r.compression()))}function mb(r,t=it.V5){return new Jt(Et.decode(r.data(),t),r.id(),r.isDelta())}function yb(r){return new Tt(r.offset(),r.length())}function _b(r){return new Me(r.length(),r.nullCount())}function gb(r){let t=[];for(let e,n=-1,i=-1,s=r.nodesLength();++n<s;)(e=r.nodes(n))&&(t[++i]=Me.decode(e));return t}function bb(r,t){let e=[];for(let n,i=-1,s=-1,o=r.buffersLength();++i<o;)(n=r.buffers(i))&&(t<it.V4&&(n.bb_pos+=8*(i+1)),e[++s]=Tt.decode(n));return e}function wb(r,t){let e=[];for(let n,i=-1,s=-1,o=r.fieldsLength();++i<o;)(n=r.fields(i))&&(e[++s]=U.decode(n,t));return e}function xp(r,t){let e=[];for(let n,i=-1,s=-1,o=r.childrenLength();++i<o;)(n=r.children(i))&&(e[++s]=U.decode(n,t));return e}function vb(r,t){let e,n,i,s,o,a;return!t||!(a=r.dictionary())?(i=Ap(r,xp(r,t)),n=new U(r.name(),i,r.nullable(),qa(r))):t.has(e=q(a.id()))?(s=(s=a.indexType())?Ip(s):new ve,o=new fe(t.get(e),s,e,a.isOrdered()),n=new U(r.name(),o,r.nullable(),qa(r))):(s=(s=a.indexType())?Ip(s):new ve,t.set(e,i=Ap(r,xp(r,t))),o=new fe(i,s,e,a.isOrdered()),n=new U(r.name(),o,r.nullable(),qa(r))),n||null}function qa(r){let t=new Map;if(r)for(let e,n,i=-1,s=Math.trunc(r.customMetadataLength());++i<s;)(e=r.customMetadata(i))&&(n=e.key())!=null&&t.set(n,e.value());return t}function Ip(r){return new At(r.isSigned(),r.bitWidth())}function Ap(r,t){let e=r.typeType();switch(e){case ot.NONE:return new Yt;case ot.Null:return new Yt;case ot.Binary:return new hr;case ot.LargeBinary:return new pr;case ot.Utf8:return new mr;case ot.LargeUtf8:return new yr;case ot.Bool:return new _r;case ot.List:return new Le((t||[])[0]);case ot.Struct_:return new ct(t||[])}switch(e){case ot.Int:{let n=r.type(new Ct);return new At(n.isSigned(),n.bitWidth())}case ot.FloatingPoint:{let n=r.type(new ae);return new Se(n.precision())}case ot.Decimal:{let n=r.type(new Ut);return new gr(n.scale(),n.precision(),n.bitWidth())}case ot.Date:{let n=r.type(new ne);return new br(n.unit())}case ot.Time:{let n=r.type(new Wt);return new wr(n.unit(),n.bitWidth())}case ot.Timestamp:{let n=r.type(new Gt);return new vr(n.unit(),n.timezone())}case ot.Interval:{let n=r.type(new ce);return new Sr(n.unit())}case ot.Duration:{let n=r.type(new ie);return new xr(n.unit())}case ot.Union:{let n=r.type(new Pt);return new Fe(n.mode(),n.typeIdsArray()||[],t||[])}case ot.FixedSizeBinary:{let n=r.type(new se);return new Ir(n.byteWidth())}case ot.FixedSizeList:{let n=r.type(new oe);return new ue(n.listSize(),(t||[])[0])}case ot.Map:{let n=r.type(new le);return new Ne((t||[])[0],n.keysSorted())}}throw new Error(`Unrecognized type: "${ot[e]}" (${e})`)}function Bp(r){return r?new Gn(r.codec(),r.method()):null}function Sb(r,t){let e=t.fields.map(s=>U.encode(r,s));yt.startFieldsVector(r,e.length);let n=yt.createFieldsVector(r,e),i=t.metadata&&t.metadata.size>0?yt.createCustomMetadataVector(r,[...t.metadata].map(([s,o])=>{let a=r.createString(`${s}`),l=r.createString(`${o}`);return ft.startKeyValue(r),ft.addKey(r,a),ft.addValue(r,l),ft.endKeyValue(r)})):-1;return yt.startSchema(r),yt.addFields(r,n),yt.addEndianness(r,Tb?cn.Little:cn.Big),i!==-1&&yt.addCustomMetadata(r,i),yt.endSchema(r)}function xb(r,t){let e=-1,n=-1,i=-1,s=t.type,o=t.typeId;_.isDictionary(s)?(o=s.dictionary.typeId,i=Ja.visit(s,r),n=Ja.visit(s.dictionary,r)):n=Ja.visit(s,r);let a=(s.children||[]).map(u=>U.encode(r,u)),l=It.createChildrenVector(r,a),c=t.metadata&&t.metadata.size>0?It.createCustomMetadataVector(r,[...t.metadata].map(([u,h])=>{let m=r.createString(`${u}`),p=r.createString(`${h}`);return ft.startKeyValue(r),ft.addKey(r,m),ft.addValue(r,p),ft.endKeyValue(r)})):-1;return t.name&&(e=r.createString(t.name)),It.startField(r),It.addType(r,n),It.addTypeType(r,o),It.addChildren(r,l),It.addNullable(r,!!t.nullable),e!==-1&&It.addName(r,e),i!==-1&&It.addDictionary(r,i),c!==-1&&It.addCustomMetadata(r,c),It.endField(r)}function Ib(r,t){let e=t.nodes||[],n=t.buffers||[];jt.startNodesVector(r,e.length);for(let a of e.slice().reverse())Me.encode(r,a);let i=r.endVector();jt.startBuffersVector(r,n.length);for(let a of n.slice().reverse())Tt.encode(r,a);let s=r.endVector(),o=null;return t.compression!==null&&(o=Dp(r,t.compression)),jt.startRecordBatch(r),jt.addLength(r,BigInt(t.length)),jt.addNodes(r,i),jt.addBuffers(r,s),t.compression!==null&&o&&jt.addCompression(r,o),jt.endRecordBatch(r)}function Dp(r,t){return Zt.startBodyCompression(r),Zt.addCodec(r,t.type),Zt.addMethod(r,t.method),Zt.endBodyCompression(r)}function Ab(r,t){let e=Et.encode(r,t.data);return Oe.startDictionaryBatch(r),Oe.addId(r,BigInt(t.id)),Oe.addIsDelta(r,t.isDelta),Oe.addData(r,e),Oe.endDictionaryBatch(r)}function Bb(r,t){return Ii.createFieldNode(r,BigInt(t.length),BigInt(t.nullCount))}function Db(r,t){return xi.createBuffer(r,BigInt(t.offset),BigInt(t.length))}var lb,ub,Ot,Et,Jt,Tt,Me,Gn,Tb,Wn=d(()=>{K();iu();ga();jl();zd();Vl();nu();zl();ru();Ai();Hl();Jl();Wl();Zl();Ql();tu();Xl();Gl();eu();Yl();Kl();ql();dp();Pl();Ul();Be();kt();Ur();Nt();hp();Sp();_t();lb=Cr,ub=Ft,Ot=class{static fromJSON(t,e){let n=new Ot(0,it.V5,e);return n._createHeader=fb(t,e),n}static decode(t){t=new ub(F(t));let e=vt.getRootAsMessage(t),n=e.bodyLength(),i=e.version(),s=e.headerType(),o=new Ot(n,i,s);return o._createHeader=db(e,s),o}static encode(t){let e=new lb,n=-1;return t.isSchema()?n=$.encode(e,t.header()):t.isRecordBatch()?n=Et.encode(e,t.header()):t.isDictionaryBatch()&&(n=Jt.encode(e,t.header())),vt.startMessage(e),vt.addVersion(e,it.V5),vt.addHeader(e,n),vt.addHeaderType(e,t.headerType),vt.addBodyLength(e,BigInt(t.bodyLength)),vt.finishMessageBuffer(e,vt.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof $)return new Ot(0,it.V5,W.Schema,t);if(t instanceof Et)return new Ot(e,it.V5,W.RecordBatch,t);if(t instanceof Jt)return new Ot(e,it.V5,W.DictionaryBatch,t);throw new Error(`Unrecognized Message header: ${t}`)}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===W.Schema}isRecordBatch(){return this.headerType===W.RecordBatch}isDictionaryBatch(){return this.headerType===W.DictionaryBatch}constructor(t,e,n,i){this._version=e,this._headerType=n,this.body=new Uint8Array(0),this._compression=i?.compression,i&&(this._createHeader=()=>i),this._bodyLength=q(t)}},Et=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}constructor(t,e,n,i){this._nodes=e,this._buffers=n,this._length=q(t),this._compression=i}},Jt=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(t,e,n=!1){this._data=t,this._isDelta=n,this._id=q(e)}},Tt=class{constructor(t,e){this.offset=q(t),this.length=q(e)}},Me=class{constructor(t,e){this.length=q(t),this.nullCount=q(e)}},Gn=class{constructor(t,e=Bn.BUFFER){this.type=t,this.method=e}};U.encode=xb;U.decode=vb;U.fromJSON=vp;$.encode=Sb;$.decode=hb;$.fromJSON=_p;Et.encode=Ib;Et.decode=pb;Et.fromJSON=Cu;Jt.encode=Ab;Jt.decode=mb;Jt.fromJSON=gp;Me.encode=Bb;Me.decode=_b;Tt.encode=Db;Tt.decode=yb;Gn.encode=Dp;Gn.decode=Bp;Tb=(()=>{let r=new ArrayBuffer(2);return new DataView(r).setInt16(0,256,!0),new Int16Array(r)[0]===256})()});var dt,$s,Yn,Qa,Zs=d(()=>{ge();Os();dt=Object.freeze({done:!0,value:void 0}),$s=class{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}},Yn=class{tee(){return this._getDOMStream().tee()}pipe(t,e){return this._getNodeStream().pipe(t,e)}pipeTo(t,e){return this._getDOMStream().pipeTo(t,e)}pipeThrough(t,e){return this._getDOMStream().pipeThrough(t,e)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}},Qa=class extends Yn{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}get closed(){return this._closedPromise}cancel(t){return b(this,void 0,void 0,function*(){yield this.return(t)})}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){let{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(dt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return zt.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return zt.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return b(this,void 0,void 0,function*(){return yield this.abort(t),dt})}return(t){return b(this,void 0,void 0,function*(){return yield this.close(),dt})}read(t){return b(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return b(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(...t){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((e,n)=>{this.resolvers.push({resolve:e,reject:n})}):Promise.resolve(dt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}});var Br,Dr,he,Uu,$r,Kn=d(()=>{ge();Os();an();Zs();kt();In();Br=class extends Qa{write(t){if((t=F(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?Ds(this.toUint8Array(!0)):this.toUint8Array(!1).then(Ds)}toUint8Array(t=!1){return t?be(this._values)[0]:(()=>b(this,void 0,void 0,function*(){var e,n,i,s;let o=[],a=0;try{for(var l=!0,c=Ve(this),u;u=yield c.next(),e=u.done,!e;l=!0){s=u.value,l=!1;let h=s;o.push(h),a+=h.byteLength}}catch(h){n={error:h}}finally{try{!l&&!e&&(i=c.return)&&(yield i.call(c))}finally{if(n)throw n.error}}return be(o,a)[0]}))()}},Dr=class{constructor(t){t&&(this.source=new Uu(zt.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},he=class{constructor(t){t instanceof he?this.source=t.source:t instanceof Br?this.source=new $r(zt.fromAsyncIterable(t)):la(t)?this.source=new $r(zt.fromNodeStream(t)):Ts(t)?this.source=new $r(zt.fromDOMStream(t)):aa(t)?this.source=new $r(zt.fromDOMStream(t.body)):je(t)?this.source=new $r(zt.fromIterable(t)):ze(t)?this.source=new $r(zt.fromAsyncIterable(t)):Te(t)&&(this.source=new $r(zt.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},Uu=class{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||dt)}return(t){return Object.create(this.source.return&&this.source.return(t)||dt)}},$r=class{constructor(t){this.source=t,this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}cancel(t){return b(this,void 0,void 0,function*(){yield this.return(t)})}get closed(){return this._closedPromise}read(t){return b(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return b(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(t){return b(this,arguments,void 0,function*(e,n="read"){return yield this.source.next({cmd:n,size:e})})}throw(t){return b(this,void 0,void 0,function*(){let e=this.source.throw&&(yield this.source.throw(t))||dt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}return(t){return b(this,void 0,void 0,function*(){let e=this.source.return&&(yield this.source.return(t))||dt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}}});var Ws,hn,Pu=d(()=>{ge();Kn();kt();Ws=class extends Dr{constructor(t,e){super(),this.position=0,this.buffer=F(t),this.size=e===void 0?this.buffer.byteLength:e}readInt32(t){let{buffer:e,byteOffset:n}=this.readAt(t,4);return new DataView(e,n).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t<this.size}read(t){let{buffer:e,size:n,position:i}=this;return e&&i<n?(typeof t!="number"&&(t=Number.POSITIVE_INFINITY),this.position=Math.min(n,i+Math.min(n-i,t)),e.subarray(i,this.position)):null}readAt(t,e){let n=this.buffer,i=Math.min(this.size,t+e);return n?n.subarray(t,i):new Uint8Array(e)}close(){this.buffer&&(this.buffer=null)}throw(t){return this.close(),{done:!0,value:t}}return(t){return this.close(),{done:!0,value:t}}},hn=class extends he{constructor(t,e){super(),this.position=0,this._handle=t,typeof e=="number"?this.size=e:this._pending=(()=>b(this,void 0,void 0,function*(){this.size=(yield t.stat()).size,delete this._pending}))()}readInt32(t){return b(this,void 0,void 0,function*(){let{buffer:e,byteOffset:n}=yield this.readAt(t,4);return new DataView(e,n).getInt32(0,!0)})}seek(t){return b(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),t<this.size})}read(t){return b(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:e,size:n,position:i}=this;if(e&&i<n){typeof t!="number"&&(t=Number.POSITIVE_INFINITY);let s=i,o=0,a=0,l=Math.min(n,s+Math.min(n-s,t)),c=new Uint8Array(Math.max(0,(this.position=l)-s));for(;(s+=a)<l&&(o+=a)<c.byteLength;)({bytesRead:a}=yield e.read(c,o,c.byteLength-o,s));return c}return null})}readAt(t,e){return b(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:n,size:i}=this;if(n&&t+e<i){let s=Math.min(i,t+e),o=new Uint8Array(s-t);return(yield n.read(o,0,e,t)).buffer}return new Uint8Array(e)})}close(){return b(this,void 0,void 0,function*(){let t=this._handle;this._handle=null,t&&(yield t.close())})}throw(t){return b(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}return(t){return b(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}}});var zu={};ye(zu,{BaseInt64:()=>Gs,Int128:()=>pe,Int64:()=>Vt,Uint64:()=>rt});function zi(r){return r<0&&(r=4294967295+r+1),`0x${r.toString(16)}`}var ji,Vu,Gs,rt,Vt,pe,ju=d(()=>{ji=8,Vu=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Gs=class{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){let e=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),n=new Uint32Array([t.buffer[1]>>>16,t.buffer[1]&65535,t.buffer[0]>>>16,t.buffer[0]&65535]),i=e[3]*n[3];this.buffer[0]=i&65535;let s=i>>>16;return i=e[2]*n[3],s+=i,i=e[3]*n[2]>>>0,s+=i,this.buffer[0]+=s<<16,this.buffer[1]=s>>>0<i?65536:0,this.buffer[1]+=s>>>16,this.buffer[1]+=e[1]*n[3]+e[2]*n[2]+e[3]*n[1],this.buffer[1]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0]<<16,this}_plus(t){let e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}equals(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}greaterThan(t){return t.lessThan(this)}hex(){return`${zi(this.buffer[1])} ${zi(this.buffer[0])}`}},rt=class extends Gs{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,e=new Uint32Array(2)){return rt.fromString(typeof t=="string"?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return rt.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){let n=t.length,i=new rt(e);for(let s=0;s<n;){let o=ji<n-s?ji:n-s,a=new rt(new Uint32Array([Number.parseInt(t.slice(s,s+o),10),0])),l=new rt(new Uint32Array([Vu[o],0]));i.times(l),i.plus(a),s+=o}return i}static convertArray(t){let e=new Uint32Array(t.length*2);for(let n=-1,i=t.length;++n<i;)rt.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2));return e}static multiply(t,e){return new rt(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new rt(new Uint32Array(t.buffer)).plus(e)}},Vt=class extends Gs{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(t){return this._times(t),this}plus(t){return this._plus(t),this}lessThan(t){let e=this.buffer[1]<<0,n=t.buffer[1]<<0;return e<n||e===n&&this.buffer[0]<t.buffer[0]}static from(t,e=new Uint32Array(2)){return Vt.fromString(typeof t=="string"?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return Vt.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){let n=t.startsWith("-"),i=t.length,s=new Vt(e);for(let o=n?1:0;o<i;){let a=ji<i-o?ji:i-o,l=new Vt(new Uint32Array([Number.parseInt(t.slice(o,o+a),10),0])),c=new Vt(new Uint32Array([Vu[a],0]));s.times(c),s.plus(l),o+=a}return n?s.negate():s}static convertArray(t){let e=new Uint32Array(t.length*2);for(let n=-1,i=t.length;++n<i;)Vt.from(t[n],new Uint32Array(e.buffer,e.byteOffset+2*n*4,2));return e}static multiply(t,e){return new Vt(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new Vt(new Uint32Array(t.buffer)).plus(e)}},pe=class{constructor(t){this.buffer=t}high(){return new Vt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Vt(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(t){let e=new rt(new Uint32Array([this.buffer[3],0])),n=new rt(new Uint32Array([this.buffer[2],0])),i=new rt(new Uint32Array([this.buffer[1],0])),s=new rt(new Uint32Array([this.buffer[0],0])),o=new rt(new Uint32Array([t.buffer[3],0])),a=new rt(new Uint32Array([t.buffer[2],0])),l=new rt(new Uint32Array([t.buffer[1],0])),c=new rt(new Uint32Array([t.buffer[0],0])),u=rt.multiply(s,c);this.buffer[0]=u.low();let h=new rt(new Uint32Array([u.high(),0]));return u=rt.multiply(i,c),h.plus(u),u=rt.multiply(s,l),h.plus(u),this.buffer[1]=h.low(),this.buffer[3]=h.lessThan(u)?1:0,this.buffer[2]=h.high(),new rt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(rt.multiply(n,c)).plus(rt.multiply(i,l)).plus(rt.multiply(s,a)),this.buffer[3]+=rt.multiply(e,c).plus(rt.multiply(n,l)).plus(rt.multiply(i,a)).plus(rt.multiply(s,o)).low(),this}plus(t){let e=new Uint32Array(4);return e[3]=this.buffer[3]+t.buffer[3]>>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]<this.buffer[0]>>>0&&++e[1],e[1]<this.buffer[1]>>>0&&++e[2],e[2]<this.buffer[2]>>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${zi(this.buffer[3])} ${zi(this.buffer[2])} ${zi(this.buffer[1])} ${zi(this.buffer[0])}`}static multiply(t,e){return new pe(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new pe(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return pe.fromString(typeof t=="string"?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return pe.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){let n=t.startsWith("-"),i=t.length,s=new pe(e);for(let o=n?1:0;o<i;){let a=ji<i-o?ji:i-o,l=new pe(new Uint32Array([Number.parseInt(t.slice(o,o+a),10),0,0,0])),c=new pe(new Uint32Array([Vu[a],0,0,0]));s.times(c),s.plus(l),o+=a}return n?s.negate():s}static convertArray(t){let e=new Uint32Array(t.length*4);for(let n=-1,i=t.length;++n<i;)pe.from(t[n],new Uint32Array(e.buffer,e.byteOffset+4*4*n,4));return e}}});var Zu={};ye(Zu,{toIntervalDayTimeInt32Array:()=>Hu,toIntervalDayTimeObjects:()=>Eb,toIntervalMonthDayNanoInt32Array:()=>$u,toIntervalMonthDayNanoObjects:()=>Ob});function Hu(r){var t,e;let n=r.length,i=new Int32Array(n*2);for(let s=0,o=0;s<n;s++){let a=r[s];i[o++]=(t=a.days)!==null&&t!==void 0?t:0,i[o++]=(e=a.milliseconds)!==null&&e!==void 0?e:0}return i}function $u(r){var t,e;let n=r.length,i=new Int32Array(n*4);for(let s=0,o=0;s<n;s++){let a=r[s];i[o++]=(t=a.months)!==null&&t!==void 0?t:0,i[o++]=(e=a.days)!==null&&e!==void 0?e:0;let l=a.nanoseconds;l?(i[o++]=Number(BigInt(l)&BigInt(4294967295)),i[o++]=Number(BigInt(l)>>BigInt(32))):o+=2}return i}function Eb(r){let t=r.length,e=new Array(t/2);for(let n=0,i=0;n<t;n+=2)e[i++]={days:r[n],milliseconds:r[n+1]};return e}function Ob(r,t){let e=r.length,n=new Array(e/4);for(let i=0,s=0;i<e;i+=4){let o=BigInt(r[i+3])<<BigInt(32)|BigInt(r[i+2]>>>0);n[s++]={months:r[i],days:r[i+1],nanoseconds:t?`${o}`:o}}return n}var Wu=d(()=>{});function Lb(r){let t=r.join(""),e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)e[n>>1]=Number.parseInt(t.slice(n,n+2),16);return e}var Hi,tc,ec,Ep=d(()=>{Vr();Be();_t();Ye();Ri();an();ju();Nt();kt();Wu();Hi=class extends B{constructor(t,e,n,i,s=it.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=t,this.nodes=e,this.buffers=n,this.dictionaries=i,this.metadataVersion=s}visit(t){return super.visit(t instanceof U?t.type:t)}visitNull(t,{length:e}=this.nextFieldNode()){return A({type:t,length:e})}visitBool(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitInt(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFloat(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeUtf8(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitFixedSizeBinary(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDate(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTimestamp(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitTime(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDecimal(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitList(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitStruct(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),children:this.visitMany(t.children)})}visitUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return this.metadataVersion<it.V5&&this.readNullBitmap(t,n),t.mode===at.Sparse?this.visitSparseUnion(t,{length:e,nullCount:n}):this.visitDenseUnion(t,{length:e,nullCount:n})}visitDenseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),valueOffsets:this.readOffsets(t),children:this.visitMany(t.children)})}visitSparseUnion(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t.indices),dictionary:this.readDictionary(t)})}visitInterval(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitDuration(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),data:this.readData(t)})}visitFixedSizeList(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),child:this.visit(t.children[0])})}visitMap(t,{length:e,nullCount:n}=this.nextFieldNode()){return A({type:t,length:e,nullCount:n,nullBitmap:this.readNullBitmap(t,n),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(t,e,n=this.nextBufferRange()){return e>0&&this.readData(t,n)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:n}=this.nextBufferRange()){return this.bytes.subarray(n,n+e)}readDictionary(t){return this.dictionaries.get(t.id)}},tc=class extends Hi{constructor(t,e,n,i,s){super(new Uint8Array(0),e,n,i,s),this.sources=t}readNullBitmap(t,e,{offset:n}=this.nextBufferRange()){return e<=0?new Uint8Array(0):zn(this.sources[n])}readOffsets(t,{offset:e}=this.nextBufferRange()){return H(Uint8Array,H(t.OffsetArrayType,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return H(Uint8Array,H(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){let{sources:n}=this;if(_.isTimestamp(t))return H(Uint8Array,Vt.convertArray(n[e]));if((_.isInt(t)||_.isTime(t))&&t.bitWidth===64||_.isDuration(t))return H(Uint8Array,Vt.convertArray(n[e]));if(_.isDate(t)&&t.unit===wt.MILLISECOND)return H(Uint8Array,Vt.convertArray(n[e]));if(_.isDecimal(t))return H(Uint8Array,pe.convertArray(n[e]));if(_.isBinary(t)||_.isLargeBinary(t)||_.isFixedSizeBinary(t))return Lb(n[e]);if(_.isBool(t))return zn(n[e]);if(_.isUtf8(t)||_.isLargeUtf8(t))return rr(n[e].join(""));if(_.isInterval(t))switch(t.unit){case ut.DAY_TIME:return Hu(n[e]);case ut.MONTH_DAY_NANO:return $u(n[e]);default:break}return H(Uint8Array,H(t.ArrayType,n[e].map(i=>+i)))}};ec=class extends Hi{constructor(t,e,n,i,s){super(new Uint8Array(0),e,n,i,s),this.bodyChunks=t}readData(t,e=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}}});var $i,Gu=d(()=>{jr();gt();kt();$i=class extends de{constructor(t){super(t),this._values=new Je(Uint8Array)}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,F(e))}_flushPending(t,e){let n=this._offsets,i=this._values.reserve(e).buffer,s=0;for(let[o,a]of t)if(a===void 0)n.set(o,0);else{let l=a.length;i.set(a,s),n.set(o,l),s+=l}}}});var Zi,Yu=d(()=>{kt();jr();gt();Zi=class extends de{constructor(t){super(t),this._values=new Je(Uint8Array)}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,F(e))}_flushPending(t,e){let n=this._offsets,i=this._values.reserve(e).buffer,s=0;for(let[o,a]of t)if(a===void 0)n.set(o,BigInt(0));else{let l=a.length;i.set(a,s),n.set(o,BigInt(l)),s+=l}}}});var rc,Op=d(()=>{jr();gt();rc=class extends ht{constructor(t){super(t),this._values=new Pi}setValue(t,e){this._values.set(t,+e)}}});var Jn,Ys,Ks,Lp=d(()=>{gt();Ie();Jn=class extends Dt{};Jn.prototype._setValue=mu;Ys=class extends Jn{};Ys.prototype._setValue=wa;Ks=class extends Jn{};Ks.prototype._setValue=va});var Js,Fp=d(()=>{gt();Ie();Js=class extends Dt{};Js.prototype._setValue=gu});var nc,Np=d(()=>{_t();gt();Ku();nc=class extends ht{constructor({type:t,nullValues:e,dictionaryHashFunction:n}){super({type:new fe(t.dictionary,t.indices,t.id,t.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Xn({type:this.type.indices,nullValues:e}),this.dictionary=Xn({type:this.type.dictionary,nullValues:null}),typeof n=="function"&&(this.valueToKey=n)}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(t){return this.indices.isValid(t)}setValid(t,e){let n=this.indices;return e=n.setValid(t,e),this.length=n.length,e}setValue(t,e){let n=this._keysToIndices,i=this.valueToKey(e),s=n[i];return s===void 0&&(n[i]=s=this._dictionaryOffset+this.dictionary.append(e).length-1),this.indices.setValue(t,s)}flush(){let t=this.type,e=this._dictionary,n=this.dictionary.toVector(),i=this.indices.flush().clone(t);return i.dictionary=e?e.concat(n):n,this.finished||(this._dictionaryOffset+=n.length),this._dictionary=i.dictionary,this.clear(),i}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(t){return typeof t=="string"?t:`${t}`}}});var Xs,Mp=d(()=>{gt();Ie();Xs=class extends Dt{};Xs.prototype._setValue=pu});var ic,Rp=d(()=>{Be();gt();_t();ic=class extends ht{setValue(t,e){let[n]=this.children,i=t*this.stride;for(let s=-1,o=this.stride;++s<o;)n.set(i+s,e[s])}setValid(t,e){return super.setValid(t,e)||this.children[0].setValid((t+1)*this.stride-1,!1),e}addChild(t,e="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");let n=this.children.push(t);return this.type=new ue(this.type.listSize,new U(e,t.type,!0)),n}}});var qn,sc,oc,ac,kp=d(()=>{Ps();gt();qn=class extends Dt{setValue(t,e){this._values.set(t,e)}},sc=class extends qn{setValue(t,e){super.setValue(t,Us(e))}},oc=class extends qn{},ac=class extends qn{}});var pn,qs,Qs,to,Cp=d(()=>{gt();Ie();pn=class extends Dt{};pn.prototype._setValue=bu;qs=class extends pn{};qs.prototype._setValue=Oa;Qs=class extends pn{};Qs.prototype._setValue=La;to=class extends pn{};to.prototype._setValue=Fa});var Zr,eo,ro,no,io,Up=d(()=>{gt();Ie();Zr=class extends Dt{};Zr.prototype._setValue=wu;eo=class extends Zr{};eo.prototype._setValue=Na;ro=class extends Zr{};ro.prototype._setValue=Ma;no=class extends Zr{};no.prototype._setValue=Ra;io=class extends Zr{};io.prototype._setValue=ka});var Re,cc,lc,uc,fc,dc,hc,pc,mc,Pp=d(()=>{gt();Re=class extends Dt{setValue(t,e){this._values.set(t,e)}},cc=class extends Re{},lc=class extends Re{},uc=class extends Re{},fc=class extends Re{},dc=class extends Re{},hc=class extends Re{},pc=class extends Re{},mc=class extends Re{}});var yc,Vp=d(()=>{Be();_t();jr();gt();yc=class extends de{constructor(t){super(t),this._offsets=new Vi(t.type)}addChild(t,e="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Le(new U(e,t.type,!0)),this.numChildren-1}_flushPending(t){let e=this._offsets,[n]=this.children;for(let[i,s]of t)if(typeof s>"u")e.set(i,0);else{let o=s,a=o.length,l=e.set(i,a).buffer[i];for(let c=-1;++c<a;)n.set(l+c,o[c])}}}});var _c,zp=d(()=>{Be();_t();gt();_c=class extends de{set(t,e){return super.set(t,e)}setValue(t,e){let n=e instanceof Map?e:new Map(Object.entries(e)),i=this._pending||(this._pending=new Map),s=i.get(t);s&&(this._pendingLength-=s.size),this._pendingLength+=n.size,i.set(t,n)}addChild(t,e=`${this.numChildren}`){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Ne(new U(e,t.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(t){let e=this._offsets,[n]=this.children;for(let[i,s]of t)if(s===void 0)e.set(i,0);else{let{[i]:o,[i+1]:a}=e.set(i,s.size).buffer;for(let l of s.entries())if(n.set(o,l),++o>=a)break}}}});var gc,jp=d(()=>{gt();gc=class extends ht{setValue(t,e){}setValid(t,e){return this.length=Math.max(t+1,this.length),e}}});var bc,Hp=d(()=>{Be();gt();_t();bc=class extends ht{setValue(t,e){let{children:n,type:i}=this;switch(Array.isArray(e)||e.constructor){case!0:return i.children.forEach((s,o)=>n[o].set(t,e[o]));case Map:return i.children.forEach((s,o)=>n[o].set(t,e.get(s.name)));default:return i.children.forEach((s,o)=>n[o].set(t,e[s.name]))}}setValid(t,e){return super.setValid(t,e)||this.children.forEach(n=>n.setValid(t,e)),e}addChild(t,e=`${this.numChildren}`){let n=this.children.push(t);return this.type=new ct([...this.type.children,new U(e,t.type,!0)]),n}}});var Wr,so,oo,ao,co,$p=d(()=>{gt();Ie();Wr=class extends Dt{};Wr.prototype._setValue=yu;so=class extends Wr{};so.prototype._setValue=Sa;oo=class extends Wr{};oo.prototype._setValue=xa;ao=class extends Wr{};ao.prototype._setValue=Ia;co=class extends Wr{};co.prototype._setValue=Aa});var Gr,lo,uo,fo,ho,Zp=d(()=>{gt();Ie();Gr=class extends Dt{};Gr.prototype._setValue=_u;lo=class extends Gr{};lo.prototype._setValue=Ba;uo=class extends Gr{};uo.prototype._setValue=Da;fo=class extends Gr{};fo.prototype._setValue=Ta;ho=class extends Gr{};ho.prototype._setValue=Ea});var Wi,wc,vc,Wp=d(()=>{Be();jr();gt();_t();Wi=class extends ht{constructor(t){super(t),this._typeIds=new zr(Int8Array,0,1),typeof t.valueToChildTypeId=="function"&&(this._valueToChildTypeId=t.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(t,e){return this.set(this.length,t,e)}set(t,e,n){return n===void 0&&(n=this._valueToChildTypeId(this,e,t)),this.setValue(t,e,n),this}setValue(t,e,n){this._typeIds.set(t,n);let i=this.type.typeIdToChildIndex[n],s=this.children[i];s?.set(t,e),this.length=Math.max(t+1,this.length)}addChild(t,e=`${this.children.length}`){let n=this.children.push(t),{type:{children:i,mode:s,typeIds:o}}=this,a=[...i,new U(e,t.type)];return this.type=new Fe(s,[...o,n],a),n}_valueToChildTypeId(t,e,n){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.")}},wc=class extends Wi{},vc=class extends Wi{constructor(t){super(t),this._offsets=new zr(Int32Array)}setValue(t,e,n){let i=this._typeIds.set(t,n).buffer[t],s=this.getChildAt(this.type.typeIdToChildIndex[i]),o=this._offsets.set(t,s.length).buffer[t];s?.set(o,e),this.length=Math.max(t+1,this.length)}}});var po,Gp=d(()=>{an();Gu();jr();gt();po=class extends de{constructor(t){super(t),this._values=new Je(Uint8Array)}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,rr(e))}_flushPending(t,e){}};po.prototype._flushPending=$i.prototype._flushPending});var mo,Yp=d(()=>{an();jr();gt();Yu();mo=class extends de{constructor(t){super(t),this._values=new Je(Uint8Array)}get byteLength(){let t=this._pendingLength+this.length*4;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,rr(e))}_flushPending(t,e){}};mo.prototype._flushPending=Zi.prototype._flushPending});var Ju,Kp,Jp=d(()=>{Ye();Gu();Yu();Op();Lp();Fp();Np();Mp();Rp();kp();Cp();Up();Pp();Vp();zp();jp();Hp();$p();Zp();Wp();Gp();Yp();Ju=class extends B{visitNull(){return gc}visitBool(){return rc}visitInt(){return Re}visitInt8(){return cc}visitInt16(){return lc}visitInt32(){return uc}visitInt64(){return fc}visitUint8(){return dc}visitUint16(){return hc}visitUint32(){return pc}visitUint64(){return mc}visitFloat(){return qn}visitFloat16(){return sc}visitFloat32(){return oc}visitFloat64(){return ac}visitUtf8(){return po}visitLargeUtf8(){return mo}visitBinary(){return $i}visitLargeBinary(){return Zi}visitFixedSizeBinary(){return Xs}visitDate(){return Jn}visitDateDay(){return Ys}visitDateMillisecond(){return Ks}visitTimestamp(){return Wr}visitTimestampSecond(){return so}visitTimestampMillisecond(){return oo}visitTimestampMicrosecond(){return ao}visitTimestampNanosecond(){return co}visitTime(){return Gr}visitTimeSecond(){return lo}visitTimeMillisecond(){return uo}visitTimeMicrosecond(){return fo}visitTimeNanosecond(){return ho}visitDecimal(){return Js}visitList(){return yc}visitStruct(){return bc}visitUnion(){return Wi}visitDenseUnion(){return vc}visitSparseUnion(){return wc}visitDictionary(){return nc}visitInterval(){return pn}visitIntervalDayTime(){return qs}visitIntervalYearMonth(){return Qs}visitIntervalMonthDayNano(){return to}visitDuration(){return Zr}visitDurationSecond(){return eo}visitDurationMillisecond(){return ro}visitDurationMicrosecond(){return no}visitDurationNanosecond(){return io}visitFixedSizeList(){return ic}visitMap(){return _c}},Kp=new Ju});function Qt(r,t){return t instanceof r.constructor}function Qn(r,t){return r===t||Qt(r,t)}function Yr(r,t){return r===t||Qt(r,t)&&r.bitWidth===t.bitWidth&&r.isSigned===t.isSigned}function Sc(r,t){return r===t||Qt(r,t)&&r.precision===t.precision}function Fb(r,t){return r===t||Qt(r,t)&&r.byteWidth===t.byteWidth}function Xu(r,t){return r===t||Qt(r,t)&&r.unit===t.unit}function yo(r,t){return r===t||Qt(r,t)&&r.unit===t.unit&&r.timezone===t.timezone}function _o(r,t){return r===t||Qt(r,t)&&r.unit===t.unit&&r.bitWidth===t.bitWidth}function Nb(r,t){return r===t||Qt(r,t)&&r.children.length===t.children.length&&Tr.compareManyFields(r.children,t.children)}function Mb(r,t){return r===t||Qt(r,t)&&r.children.length===t.children.length&&Tr.compareManyFields(r.children,t.children)}function qu(r,t){return r===t||Qt(r,t)&&r.mode===t.mode&&r.typeIds.every((e,n)=>e===t.typeIds[n])&&Tr.compareManyFields(r.children,t.children)}function Rb(r,t){return r===t||Qt(r,t)&&r.id===t.id&&r.isOrdered===t.isOrdered&&Tr.visit(r.indices,t.indices)&&Tr.visit(r.dictionary,t.dictionary)}function xc(r,t){return r===t||Qt(r,t)&&r.unit===t.unit}function go(r,t){return r===t||Qt(r,t)&&r.unit===t.unit}function kb(r,t){return r===t||Qt(r,t)&&r.listSize===t.listSize&&r.children.length===t.children.length&&Tr.compareManyFields(r.children,t.children)}function Cb(r,t){return r===t||Qt(r,t)&&r.keysSorted===t.keysSorted&&r.children.length===t.children.length&&Tr.compareManyFields(r.children,t.children)}function ti(r,t){return Tr.compareSchemas(r,t)}function Xp(r,t){return Tr.compareFields(r,t)}function qp(r,t){return Tr.visit(r,t)}var O,Tr,Ic=d(()=>{Ye();O=class extends B{compareSchemas(t,e){return t===e||e instanceof t.constructor&&this.compareManyFields(t.fields,e.fields)}compareManyFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((n,i)=>this.compareFields(n,e[i]))}compareFields(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&this.visit(t.type,e.type)}};O.prototype.visitNull=Qn;O.prototype.visitBool=Qn;O.prototype.visitInt=Yr;O.prototype.visitInt8=Yr;O.prototype.visitInt16=Yr;O.prototype.visitInt32=Yr;O.prototype.visitInt64=Yr;O.prototype.visitUint8=Yr;O.prototype.visitUint16=Yr;O.prototype.visitUint32=Yr;O.prototype.visitUint64=Yr;O.prototype.visitFloat=Sc;O.prototype.visitFloat16=Sc;O.prototype.visitFloat32=Sc;O.prototype.visitFloat64=Sc;O.prototype.visitUtf8=Qn;O.prototype.visitLargeUtf8=Qn;O.prototype.visitBinary=Qn;O.prototype.visitLargeBinary=Qn;O.prototype.visitFixedSizeBinary=Fb;O.prototype.visitDate=Xu;O.prototype.visitDateDay=Xu;O.prototype.visitDateMillisecond=Xu;O.prototype.visitTimestamp=yo;O.prototype.visitTimestampSecond=yo;O.prototype.visitTimestampMillisecond=yo;O.prototype.visitTimestampMicrosecond=yo;O.prototype.visitTimestampNanosecond=yo;O.prototype.visitTime=_o;O.prototype.visitTimeSecond=_o;O.prototype.visitTimeMillisecond=_o;O.prototype.visitTimeMicrosecond=_o;O.prototype.visitTimeNanosecond=_o;O.prototype.visitDecimal=Qn;O.prototype.visitList=Nb;O.prototype.visitStruct=Mb;O.prototype.visitUnion=qu;O.prototype.visitDenseUnion=qu;O.prototype.visitSparseUnion=qu;O.prototype.visitDictionary=Rb;O.prototype.visitInterval=xc;O.prototype.visitIntervalDayTime=xc;O.prototype.visitIntervalYearMonth=xc;O.prototype.visitIntervalMonthDayNano=xc;O.prototype.visitDuration=go;O.prototype.visitDurationSecond=go;O.prototype.visitDurationMillisecond=go;O.prototype.visitDurationMicrosecond=go;O.prototype.visitDurationNanosecond=go;O.prototype.visitFixedSizeList=kb;O.prototype.visitMap=Cb;Tr=new O});function Xn(r){let t=r.type,e=new(Kp.getVisitFn(t)())(r);if(t.children&&t.children.length>0){let n=r.children||[],i={nullValues:r.nullValues},s=Array.isArray(n)?(o,a)=>n[a]||i:({name:o})=>n[o]||i;for(let[o,a]of t.children.entries()){let{type:l}=a,c=s(a,o);e.children.push(Xn(Object.assign(Object.assign({},c),{type:l})))}}return e}var Ku=d(()=>{Jp()});function Ac(r,t){return Ub(r,t.map(e=>e.data.concat()))}function Ub(r,t){let e=[...r.fields],n=[],i={numBatches:t.reduce((h,m)=>Math.max(h,m.length),0)},s=0,o=0,a=-1,l=t.length,c,u=[];for(;i.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,a=-1;++a<l;)u[a]=c=t[a].shift(),o=Math.min(o,c?c.length:o);Number.isFinite(o)&&(u=Pb(e,o,u,t,i),o>0&&(n[s++]=A({type:new ct(e),length:o,nullCount:0,children:u.slice()})))}return[r=r.assign(e),n.map(h=>new lt(r,h))]}function Pb(r,t,e,n,i){var s;let o=(t+63&-64)>>3;for(let a=-1,l=n.length;++a<l;){let c=e[a],u=c?.length;if(u>=t)u===t?e[a]=c:(e[a]=c.slice(0,t),i.numBatches=Math.max(i.numBatches,n[a].unshift(c.slice(t,u-t))));else{let h=r[a];r[a]=h.clone({nullable:!0}),e[a]=(s=c?._changeLengthAndBackfillNullBitmap(t))!==null&&s!==void 0?s:A({type:h.type,length:t,nullCount:t,nullBitmap:new Uint8Array(o)})}}return e}var Qp=d(()=>{Vr();_t();Gi()});var tm,St,Bc=d(()=>{Nt();Vr();Ae();Be();_t();Ic();Qp();Wa();Cn();Ie();Ga();Ya();Mi();Gi();St=class{constructor(...t){var e,n;if(t.length===0)return this.batches=[],this.schema=new $([]),this._offsets=[0],this;let i,s;t[0]instanceof $&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(s=t.pop());let o=l=>{if(l){if(l instanceof lt)return[l];if(l instanceof St)return l.batches;if(l instanceof Z){if(l.type instanceof ct)return[new lt(new $(l.type.children),l)]}else{if(Array.isArray(l))return l.flatMap(c=>o(c));if(typeof l[Symbol.iterator]=="function")return[...l].flatMap(c=>o(c));if(typeof l=="object"){let c=Object.keys(l),u=c.map(p=>new v([l[p]])),h=i??new $(c.map((p,y)=>new U(String(p),u[y].type,u[y].nullable))),[,m]=Ac(h,u);return m.length===0?[new lt(l)]:m}}}return[]},a=t.flatMap(l=>o(l));if(i=(n=i??((e=a[0])===null||e===void 0?void 0:e.schema))!==null&&n!==void 0?n:new $([]),!(i instanceof $))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let l of a){if(!(l instanceof lt))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!ti(i,l.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=a,this._offsets=s??ja(this.data)}get data(){return this.batches.map(({data:t})=>t)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((t,e)=>t+e.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=za(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}at(t){return this.get(Un(t,this.numRows))}set(t,e){}indexOf(t,e){return-1}[Symbol.iterator](){return this.batches.length>0?Ci.visit(new v(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
|
11
|
+
}`),t.length!==r.length&&(e=`if (x !== x) return false;
|
|
12
|
+
${e}`),new Function("x",`${e}
|
|
13
|
+
return true;`)}function OU(t){return typeof t!="bigint"?Ir(t):`${Ir(t)}n`}var d0=m(()=>{Ea()});function ag(t,e){let r=Math.ceil(t)*e-1;return(r-r%64+64||64)/e}function f0(t,e=0){return t.length>=e?t.subarray(0,e):ba(new t.constructor(e),t,0)}var Ut,wn,Yo,Xn,Or=m(()=>{Xe();Ut=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?ag(i*1,this.BYTES_PER_ELEMENT):ag(i*2,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=ag(e*this.stride,this.BYTES_PER_ELEMENT);let r=f0(this.buffer,e);return this.clear(),r}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(e){return this.buffer=f0(this.buffer,e)}},wn=class extends Ut{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}},Yo=class extends wn{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,s=i[n]>>o&1;return r?s===0&&(i[n]|=1<<o,++this.numValid):s===1&&(i[n]&=~(1<<o),--this.numValid),this}clear(){return this.numValid=0,super.clear()}},Xn=class extends wn{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 Ae,Ge,pt,Ne=m(()=>{Nt();Ar();Yl();Ie();d0();Or();Ae=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=Gt(e),this._nulls=new Yo,r&&r.length>0&&(this._isValid=l0(r))}toVector(){return new E([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:s}=this;return r&&(e+=r.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),o&&(e+=o.byteLength),s.reduce((a,c)=>a+c.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:s,nullCount:a,_typeIds:c,_offsets:u,_values:l,_nulls:d}=this;(r=c?.flush(s))?n=u?.flush(s):(n=u?.flush(s))?e=l?.flush(u.last()):e=l?.flush(s),a>0&&(i=d?.flush(s));let f=this.children.map(p=>p.flush());return this.clear(),P({type:o,length:s,nullCount:a,children:f,child:f[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}};Ae.prototype.length=1;Ae.prototype.stride=1;Ae.prototype.children=null;Ae.prototype.finished=!1;Ae.prototype.nullValues=null;Ae.prototype._isValid=()=>!0;Ge=class extends Ae{constructor(e){super(e),this._values=new wn(this.ArrayType,0,this.stride)}setValue(e,r){let i=this._values;return i.reserve(e-i.length+1),super.setValue(e,r)}},pt=class extends Ae{constructor(e){super(e),this._pendingLength=0,this._offsets=new Xn(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 Qr?r[Kn].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 Wi,cg=m(()=>{Wi=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 Yt,p0=m(()=>{de();cg();Lo();kl();Nh();Yt=class t{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 t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,r){return e.setPosition(e.position()+4),(r||new t).__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):ye.V1}schema(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new Ot).__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 Wi).__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 Wi).__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 Ce).__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,ye.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)}}});function ud(t,e){return new Map([...t||new Map,...e||new Map])}function ug(t,e=new Map){for(let r=-1,i=t.length;++r<i;){let o=t[r].type;if(O.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&&ug(o.children,e)}return e}var m0,h0,ue,Y,_t=m(()=>{qe();Ie();m0=Symbol.for("apache-arrow/Schema"),h0=Symbol.for("apache-arrow/Field"),ue=class t{static isSchema(e){return e?.[m0]===!0}constructor(e=[],r,i,n=ye.V5){this.fields=e||[],this.metadata=r||new Map,i||(i=ug(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 t(i,this.metadata)}selectAt(e){let r=e.map(i=>this.fields[i]).filter(Boolean);return new t(r,this.metadata)}assign(...e){let r=e[0]instanceof t?e[0]:Array.isArray(e[0])?new t(e[0]):new t(e),i=[...this.fields],n=ud(ud(new Map,this.metadata),r.metadata),o=r.fields.filter(a=>{let c=i.findIndex(u=>u.name===a.name);return~c?(i[c]=a.clone({metadata:ud(ud(new Map,i[c].metadata),a.metadata)}))&&!1:!0}),s=ug(o,new Map);return new t([...i,...o],n,new Map([...this.dictionaries,...s]))}};ue.prototype.fields=null;ue.prototype.metadata=null;ue.prototype.dictionaries=null;ue.prototype[m0]=!0;Object.defineProperty(ue,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===ue&&ue.isSchema(e)}});Y=class t{static isField(e){return e?.[h0]===!0}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 t(`${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],t.new(r,i,n,o)}};Y.prototype.type=null;Y.prototype.name=null;Y.prototype.nullable=null;Y.prototype.metadata=null;Y.prototype[h0]=!0;Object.defineProperty(Y,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===Y&&Y.isField(e)}})});var BU,zU,$n,lg,xn,dg=m(()=>{cg();p0();de();_t();qe();Xe();jr();BU=Di,zU=ot,$n=class{static decode(e){e=new zU(F(e));let r=Yt.getRootAsFooter(e),i=ue.decode(r.schema(),new Map,r.version());return new lg(i,r)}static encode(e){let r=new BU,i=ue.encode(r,e.schema);Yt.startRecordBatchesVector(r,e.numRecordBatches);for(let s of[...e.recordBatches()].slice().reverse())xn.encode(r,s);let n=r.endVector();Yt.startDictionariesVector(r,e.numDictionaries);for(let s of[...e.dictionaryBatches()].slice().reverse())xn.encode(r,s);let o=r.endVector();return Yt.startFooter(r),Yt.addSchema(r,i),Yt.addVersion(r,ye.V5),Yt.addRecordBatches(r,n),Yt.addDictionaries(r,o),Yt.finishFooterBuffer(r,Yt.endFooter(r)),r.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,r=ye.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}},lg=class extends $n{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 xn.decode(r)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){let r=this._footer.dictionaries(e);if(r)return xn.decode(r)}return null}},xn=class t{static decode(e){return new t(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,r){let{metaDataLength:i}=r,n=BigInt(r.offset),o=BigInt(r.bodyLength);return Wi.createBlock(e,n,i,o)}constructor(e,r,i){this.metaDataLength=e,this.offset=oe(i),this.bodyLength=oe(r)}}});var Xt,g0=m(()=>{de();Lo();Uh();kl();Xt=class t{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 t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,r){return e.setPosition(e.position()+4),(r||new t).__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):ye.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):le.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 Ce).__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,ye.V1)}static addHeaderType(e,r){e.addFieldInt8(1,r,le.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,s){return t.startMessage(e),t.addVersion(e,r),t.addHeaderType(e,i),t.addHeader(e,n),t.addBodyLength(e,o),t.addCustomMetadata(e,s),t.endMessage(e)}}});var fg,ld,y0=m(()=>{kr();FI();zl();Sh();TI();NI();PI();UI();MI();RI();EI();wh();_h();Ah();Oh();kh();$h();CI();LI();jI();Bh();bh();xh();Ih();Dh();fg=class extends J{visit(e,r){return e==null||r==null?void 0:super.visit(e,r)}visitNull(e,r){return Na.startNull(r),Na.endNull(r)}visitInt(e,r){return $r.startInt(r),$r.addBitWidth(r,e.bitWidth),$r.addIsSigned(r,e.isSigned),$r.endInt(r)}visitFloat(e,r){return Zn.startFloatingPoint(r),Zn.addPrecision(r,e.precision),Zn.endFloatingPoint(r)}visitBinary(e,r){return ka.startBinary(r),ka.endBinary(r)}visitBinaryView(e,r){return Da.startBinaryView(r),Da.endBinaryView(r)}visitLargeBinary(e,r){return Oa.startLargeBinary(r),Oa.endLargeBinary(r)}visitBool(e,r){return Aa.startBool(r),Aa.endBool(r)}visitUtf8(e,r){return Pa.startUtf8(r),Pa.endUtf8(r)}visitUtf8View(e,r){return La.startUtf8View(r),La.endUtf8View(r)}visitLargeUtf8(e,r){return za.startLargeUtf8(r),za.endLargeUtf8(r)}visitDecimal(e,r){return Fr.startDecimal(r),Fr.addScale(r,e.scale),Fr.addPrecision(r,e.precision),Fr.addBitWidth(r,e.bitWidth),Fr.endDecimal(r)}visitDate(e,r){return jn.startDate(r),jn.addUnit(r,e.unit),jn.endDate(r)}visitTime(e,r){return vn.startTime(r),vn.addUnit(r,e.unit),vn.addBitWidth(r,e.bitWidth),vn.endTime(r)}visitTimestamp(e,r){let i=e.timezone&&r.createString(e.timezone)||void 0;return bn.startTimestamp(r),bn.addUnit(r,e.unit),i!==void 0&&bn.addTimezone(r,i),bn.endTimestamp(r)}visitInterval(e,r){return Wn.startInterval(r),Wn.addUnit(r,e.unit),Wn.endInterval(r)}visitDuration(e,r){return Mn.startDuration(r),Mn.addUnit(r,e.unit),Mn.endDuration(r)}visitList(e,r){return Ta.startList(r),Ta.endList(r)}visitLargeList(e,r){return Ba.startLargeList(r),Ba.endLargeList(r)}visitStruct(e,r){return Ua.startStruct_(r),Ua.endStruct_(r)}visitUnion(e,r){xr.startTypeIdsVector(r,e.typeIds.length);let i=xr.createTypeIdsVector(r,e.typeIds);return xr.startUnion(r),xr.addMode(r,e.mode),xr.addTypeIds(r,i),xr.endUnion(r)}visitDictionary(e,r){let i=this.visit(e.indices,r);return Cr.startDictionaryEncoding(r),Cr.addId(r,BigInt(e.id)),Cr.addIsOrdered(r,e.isOrdered),i!==void 0&&Cr.addIndexType(r,i),Cr.endDictionaryEncoding(r)}visitFixedSizeBinary(e,r){return Rn.startFixedSizeBinary(r),Rn.addByteWidth(r,e.byteWidth),Rn.endFixedSizeBinary(r)}visitFixedSizeList(e,r){return Vn.startFixedSizeList(r),Vn.addListSize(r,e.listSize),Vn.endFixedSizeList(r)}visitMap(e,r){return Jn.startMap(r),Jn.addKeysSorted(r,e.keysSorted),Jn.endMap(r)}},ld=new fg});function w0(t,e=new Map){return new ue(TU(t,e),dd(t.metadata),e)}function pg(t){return new Ke(t.count,x0(t.columns),I0(t.columns),null,S0(t.columns))}function $0(t){return new mt(pg(t.data),t.id,t.isDelta)}function TU(t,e){return(t.fields||[]).filter(Boolean).map(r=>Y.fromJSON(r,e))}function v0(t,e){return(t.children||[]).filter(Boolean).map(r=>Y.fromJSON(r,e))}function x0(t){return(t||[]).reduce((e,r)=>[...e,new ur(r.count,NU(r.VALIDITY)),...x0(r.children)],[])}function I0(t,e=[]){for(let r=-1,i=(t||[]).length;++r<i;){let n=t[r];if(n.VALIDITY&&e.push(new je(e.length,n.VALIDITY.length)),n.TYPE_ID&&e.push(new je(e.length,n.TYPE_ID.length)),n.OFFSET&&e.push(new je(e.length,n.OFFSET.length)),n.DATA&&e.push(new je(e.length,n.DATA.length)),n.VIEWS&&e.push(new je(e.length,n.VIEWS.length)),n.VARIADIC_DATA_BUFFERS)for(let o of n.VARIADIC_DATA_BUFFERS)e.push(new je(e.length,o.length));e=I0(n.children,e)}return e}function NU(t){return(t||[]).reduce((e,r)=>e+ +(r===0),0)}function S0(t){return(t||[]).reduce((e,r)=>[...e,...r.VARIADIC_DATA_BUFFERS?[r.VARIADIC_DATA_BUFFERS.length]:[],...S0(r.children)],[])}function k0(t,e){let r,i,n,o,s,a;return!e||!(o=t.dictionary)?(s=_0(t,v0(t,e)),n=new Y(t.name,s,t.nullable,dd(t.metadata))):e.has(r=o.id)?(i=(i=o.indexType)?b0(i):new Jt,a=new Tt(e.get(r),i,r,o.isOrdered),n=new Y(t.name,a,t.nullable,dd(t.metadata))):(i=(i=o.indexType)?b0(i):new Jt,e.set(r,s=_0(t,v0(t,e))),a=new Tt(s,i,r,o.isOrdered),n=new Y(t.name,a,t.nullable,dd(t.metadata))),n||null}function dd(t=[]){return new Map(t.map(({key:e,value:r})=>[e,r]))}function b0(t){return new Je(t.isSigned,t.bitWidth)}function _0(t,e){let r=t.type.name;switch(r){case"NONE":return new ft;case"null":return new ft;case"binary":return new Mr;case"largebinary":return new Rr;case"binaryview":return new re;case"utf8":return new Vr;case"largeutf8":return new Zr;case"utf8view":return new Bt;case"bool":return new Wr;case"list":return new or((e||[])[0]);case"largelist":return new sr((e||[])[0]);case"struct":return new De(e||[]);case"struct_":return new De(e||[])}switch(r){case"int":{let i=t.type;return new Je(i.isSigned,i.bitWidth)}case"floatingpoint":{let i=t.type;return new Ht(xe[i.precision])}case"decimal":{let i=t.type;return new Jr(i.scale,i.precision,i.bitWidth)}case"date":{let i=t.type;return new Hr(Ze[i.unit])}case"time":{let i=t.type;return new Gr(C[i.unit],i.bitWidth)}case"timestamp":{let i=t.type;return new Kr(C[i.unit],i.timezone)}case"interval":{let i=t.type;return new Yr(Be[i.unit])}case"duration":{let i=t.type;return new Xr(C[i.unit])}case"union":{let i=t.type,[n,...o]=(i.mode+"").toLowerCase(),s=n.toUpperCase()+o.join("");return new ar(ke[s],i.typeIds||[],e||[])}case"fixedsizebinary":{let i=t.type;return new qr(i.byteWidth)}case"fixedsizelist":{let i=t.type;return new zt(i.listSize,(e||[])[0])}case"map":{let i=t.type;return new cr((e||[])[0],i.keysSorted)}}throw new Error(`Unrecognized type: "${r}"`)}var D0=m(()=>{_t();Ie();Ji();qe()});function LU(t,e){return(()=>{switch(e){case le.Schema:return ue.fromJSON(t);case le.RecordBatch:return Ke.fromJSON(t);case le.DictionaryBatch:return mt.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${le[e]}, type: ${e} }`)})}function EU(t,e){return(()=>{switch(e){case le.Schema:return ue.decode(t.header(new Ot),new Map,t.version());case le.RecordBatch:return Ke.decode(t.header(new lt),t.version());case le.DictionaryBatch:return mt.decode(t.header(new yn),t.version())}throw new Error(`Unrecognized Message type: { name: ${le[e]}, type: ${e} }`)})}function CU(t,e=new Map,r=ye.V5){let i=JU(t,e);return new ue(i,fd(t),e,r)}function FU(t,e=ye.V5){return new Ke(t.length(),VU(t),ZU(t,e),z0(t.compression()),WU(t))}function jU(t,e=ye.V5){return new mt(Ke.decode(t.data(),e),t.id(),t.isDelta())}function MU(t){return new je(t.offset(),t.length())}function RU(t){return new ur(t.length(),t.nullCount())}function VU(t){let e=[];for(let r,i=-1,n=-1,o=t.nodesLength();++i<o;)(r=t.nodes(i))&&(e[++n]=ur.decode(r));return e}function ZU(t,e){let r=[];for(let i,n=-1,o=-1,s=t.buffersLength();++n<s;)(i=t.buffers(n))&&(e<ye.V4&&(i.bb_pos+=8*(n+1)),r[++o]=je.decode(i));return r}function WU(t){let e=[],r=Math.trunc(t.variadicBufferCountsLength());for(let i=0;i<r;++i)e.push(oe(t.variadicBufferCounts(i)));return e}function JU(t,e){let r=[];for(let i,n=-1,o=-1,s=t.fieldsLength();++n<s;)(i=t.fields(n))&&(r[++o]=Y.decode(i,e));return r}function A0(t,e){let r=[];for(let i,n=-1,o=-1,s=t.childrenLength();++n<s;)(i=t.children(n))&&(r[++o]=Y.decode(i,e));return r}function HU(t,e){let r,i,n,o,s,a;return!e||!(a=t.dictionary())?(n=B0(t,A0(t,e)),i=new Y(t.name(),n,t.nullable(),fd(t))):e.has(r=oe(a.id()))?(o=(o=a.indexType())?O0(o):new Jt,s=new Tt(e.get(r),o,r,a.isOrdered()),i=new Y(t.name(),s,t.nullable(),fd(t))):(o=(o=a.indexType())?O0(o):new Jt,e.set(r,n=B0(t,A0(t,e))),s=new Tt(n,o,r,a.isOrdered()),i=new Y(t.name(),s,t.nullable(),fd(t))),i||null}function fd(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 GU(t){let e=new Map;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 O0(t){return new Je(t.isSigned(),t.bitWidth())}function B0(t,e){let r=t.typeType();switch(r){case me.NONE:return new ft;case me.Null:return new ft;case me.Binary:return new Mr;case me.LargeBinary:return new Rr;case me.BinaryView:return new re;case me.Utf8:return new Vr;case me.LargeUtf8:return new Zr;case me.Utf8View:return new Bt;case me.Bool:return new Wr;case me.List:return new or((e||[])[0]);case me.LargeList:return new sr((e||[])[0]);case me.Struct_:return new De(e||[])}switch(r){case me.Int:{let i=t.type(new $r);return new Je(i.isSigned(),i.bitWidth())}case me.FloatingPoint:{let i=t.type(new Zn);return new Ht(i.precision())}case me.Decimal:{let i=t.type(new Fr);return new Jr(i.scale(),i.precision(),i.bitWidth())}case me.Date:{let i=t.type(new jn);return new Hr(i.unit())}case me.Time:{let i=t.type(new vn);return new Gr(i.unit(),i.bitWidth())}case me.Timestamp:{let i=t.type(new bn);return new Kr(i.unit(),i.timezone())}case me.Interval:{let i=t.type(new Wn);return new Yr(i.unit())}case me.Duration:{let i=t.type(new Mn);return new Xr(i.unit())}case me.Union:{let i=t.type(new xr);return new ar(i.mode(),i.typeIdsArray()||[],e||[])}case me.FixedSizeBinary:{let i=t.type(new Rn);return new qr(i.byteWidth())}case me.FixedSizeList:{let i=t.type(new Vn);return new zt(i.listSize(),(e||[])[0])}case me.Map:{let i=t.type(new Jn);return new cr((e||[])[0],i.keysSorted())}}throw new Error(`Unrecognized type: "${me[r]}" (${r})`)}function z0(t){return t?new Hi(t.codec(),t.method()):null}function KU(t,e){let r=e.fields.map(o=>Y.encode(t,o));Ot.startFieldsVector(t,r.length);let i=Ot.createFieldsVector(t,r),n=e.metadata&&e.metadata.size>0?Ot.createCustomMetadataVector(t,[...e.metadata].map(([o,s])=>{let a=t.createString(`${o}`),c=t.createString(`${s}`);return Ce.startKeyValue(t),Ce.addKey(t,a),Ce.addValue(t,c),Ce.endKeyValue(t)})):-1;return Ot.startSchema(t),Ot.addFields(t,i),Ot.addEndianness(t,tP?Fn.Little:Fn.Big),n!==-1&&Ot.addCustomMetadata(t,n),Ot.endSchema(t)}function YU(t,e){let r=-1,i=-1,n=-1,o=e.type,s=e.typeId;O.isDictionary(o)?(s=o.dictionary.typeId,n=ld.visit(o,t),i=ld.visit(o.dictionary,t)):i=ld.visit(o,t);let a=(o.children||[]).map(l=>Y.encode(t,l)),c=dt.createChildrenVector(t,a),u=e.metadata&&e.metadata.size>0?dt.createCustomMetadataVector(t,[...e.metadata].map(([l,d])=>{let f=t.createString(`${l}`),p=t.createString(`${d}`);return Ce.startKeyValue(t),Ce.addKey(t,f),Ce.addValue(t,p),Ce.endKeyValue(t)})):-1;return e.name&&(r=t.createString(e.name)),dt.startField(t),dt.addType(t,i),dt.addTypeType(t,s),dt.addChildren(t,c),dt.addNullable(t,!!e.nullable),r!==-1&&dt.addName(t,r),n!==-1&&dt.addDictionary(t,n),u!==-1&&dt.addCustomMetadata(t,u),dt.endField(t)}function XU(t,e){let r=e.nodes||[],i=e.buffers||[],n=e.variadicBufferCounts||[];lt.startNodesVector(t,r.length);for(let u of r.slice().reverse())ur.encode(t,u);let o=t.endVector();lt.startBuffersVector(t,i.length);for(let u of i.slice().reverse())je.encode(t,u);let s=t.endVector(),a=null;e.compression!==null&&(a=T0(t,e.compression));let c=-1;return n.length>0&&(c=lt.createVariadicBufferCountsVector(t,n.map(BigInt))),lt.startRecordBatch(t),lt.addLength(t,BigInt(e.length)),lt.addNodes(t,o),lt.addBuffers(t,s),e.compression!==null&&a&<.addCompression(t,a),c!==-1&<.addVariadicBufferCounts(t,c),lt.endRecordBatch(t)}function T0(t,e){return gn.startBodyCompression(t),gn.addCodec(t,e.type),gn.addMethod(t,e.method),gn.endBodyCompression(t)}function qU(t,e){let r=Ke.encode(t,e.data);return yn.startDictionaryBatch(t),yn.addId(t,BigInt(e.id)),yn.addIsDelta(t,e.isDelta),yn.addData(t,r),yn.endDictionaryBatch(t)}function QU(t,e){return Po.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))}function eP(t,e){return Uo.createBuffer(t,BigInt(e.offset),BigInt(e.length))}var UU,PU,Pt,Ke,mt,je,ur,Hi,tP,Ji=m(()=>{de();Nh();zl();yh();BI();hh();Th();gh();zh();Lo();vh();Sh();wh();_h();Ah();Oh();kh();$h();Bh();xh();Ih();Dh();g0();mh();ph();_t();Xe();jr();qe();y0();D0();Ie();UU=Di,PU=ot,Pt=class t{static fromJSON(e,r){let i=new t(0,ye.V5,r);return i._createHeader=LU(e,r),i}static decode(e){e=new PU(F(e));let r=Xt.getRootAsMessage(e),i=r.bodyLength(),n=r.version(),o=r.headerType(),s=GU(r),a=new t(i,n,o,void 0,s);return a._createHeader=EU(r,o),a}static encode(e){let r=new UU,i=-1;e.isSchema()?i=ue.encode(r,e.header()):e.isRecordBatch()?i=Ke.encode(r,e.header()):e.isDictionaryBatch()&&(i=mt.encode(r,e.header()));let n=e.metadata&&e.metadata.size>0?Xt.createCustomMetadataVector(r,[...e.metadata].map(([o,s])=>{let a=r.createString(`${o}`),c=r.createString(`${s}`);return Ce.startKeyValue(r),Ce.addKey(r,a),Ce.addValue(r,c),Ce.endKeyValue(r)})):-1;return Xt.startMessage(r),Xt.addVersion(r,ye.V5),Xt.addHeader(r,i),Xt.addHeaderType(r,e.headerType),Xt.addBodyLength(r,BigInt(e.bodyLength)),n!==-1&&Xt.addCustomMetadata(r,n),Xt.finishMessageBuffer(r,Xt.endMessage(r)),r.asUint8Array()}static from(e,r=0){if(e instanceof ue)return new t(0,ye.V5,le.Schema,e);if(e instanceof Ke)return new t(r,ye.V5,le.RecordBatch,e,e.metadata);if(e instanceof mt)return new t(r,ye.V5,le.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}get metadata(){return this._metadata}header(){return this._createHeader()}isSchema(){return this.headerType===le.Schema}isRecordBatch(){return this.headerType===le.RecordBatch}isDictionaryBatch(){return this.headerType===le.DictionaryBatch}constructor(e,r,i,n,o){this._version=r,this._headerType=i,this.body=new Uint8Array(0),this._compression=n?.compression,n&&(this._createHeader=()=>n),this._bodyLength=oe(e),this._metadata=o||new Map}},Ke=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}get variadicBufferCounts(){return this._variadicBufferCounts}get metadata(){return this._metadata}constructor(e,r,i,n,o=[],s){this._nodes=r,this._buffers=i,this._length=oe(e),this._compression=n,this._variadicBufferCounts=o,this._metadata=s||new Map}},mt=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=oe(r)}},je=class{constructor(e,r){this.offset=oe(e),this.length=oe(r)}},ur=class{constructor(e,r){this.length=oe(e),this.nullCount=oe(r)}},Hi=class{constructor(e,r=Ai.BUFFER){this.type=e,this.method=r}};Y.encode=YU;Y.decode=HU;Y.fromJSON=k0;ue.encode=KU;ue.decode=CU;ue.fromJSON=w0;Ke.encode=XU;Ke.decode=FU;Ke.fromJSON=pg;mt.encode=qU;mt.decode=jU;mt.fromJSON=$0;ur.encode=QU;ur.decode=RU;je.encode=eP;je.decode=MU;Hi.encode=T0;Hi.decode=z0;tP=(()=>{let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})()});var ze,Ha,Gi,pd,Ga=m(()=>{Rt();wa();ze=Object.freeze({done:!0,value:void 0}),Ha=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}},Gi=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())}},pd=class extends Gi{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return T(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(ze);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return it.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return it.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return T(this,void 0,void 0,function*(){return yield this.abort(e),ze})}return(e){return T(this,void 0,void 0,function*(){return yield this.close(),ze})}read(e){return T(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return T(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(ze)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}});var en,tn,lr,mg,In,Ki=m(()=>{Rt();wa();hn();Ga();Xe();Si();en=class extends pd{write(e){if((e=F(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?To(this.toUint8Array(!0)):this.toUint8Array(!1).then(To)}toUint8Array(e=!1){return e?Zt(this._values)[0]:T(this,void 0,void 0,function*(){var r,i,n,o;let s=[],a=0;try{for(var c=!0,u=yr(this),l;l=yield u.next(),r=l.done,!r;c=!0){o=l.value,c=!1;let d=o;s.push(d),a+=d.byteLength}}catch(d){i={error:d}}finally{try{!c&&!r&&(n=u.return)&&(yield n.call(u))}finally{if(i)throw i.error}}return Zt(s,a)[0]})}},tn=class{constructor(e){e&&(this.source=new mg(it.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)}},lr=class t{constructor(e){e instanceof t?this.source=e.source:e instanceof en?this.source=new In(it.fromAsyncIterable(e)):xl(e)?this.source=new In(it.fromNodeStream(e)):va(e)?this.source=new In(it.fromDOMStream(e)):wl(e)?this.source=new In(it.fromDOMStream(e.body)):br(e)?this.source=new In(it.fromIterable(e)):vr(e)?this.source=new In(it.fromAsyncIterable(e)):nr(e)&&(this.source=new In(it.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)}},mg=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)||ze)}return(e){return Object.create(this.source.return&&this.source.return(e)||ze)}},In=class{constructor(e){this.source=e,this._closedPromise=new Promise(r=>this._closedPromiseResolve=r)}cancel(e){return T(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return T(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return T(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e){return T(this,arguments,void 0,function*(r,i="read"){return yield this.source.next({cmd:i,size:r})})}throw(e){return T(this,void 0,void 0,function*(){let r=this.source.throw&&(yield this.source.throw(e))||ze;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}return(e){return T(this,void 0,void 0,function*(){let r=this.source.return&&(yield this.source.return(e))||ze;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}}});var Ka,qn,hg=m(()=>{Rt();Ki();Xe();Ka=class extends tn{constructor(e,r){super(),this.position=0,this.buffer=F(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}}},qn=class extends lr{constructor(e,r){super(),this.position=0,this._handle=e,typeof r=="number"?this.size=r:this._pending=T(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return T(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 T(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 T(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,s=0,a=0,c=Math.min(i,o+Math.min(i-o,e)),u=new Uint8Array(Math.max(0,(this.position=c)-o));for(;(o+=a)<c&&(s+=a)<u.byteLength;)({bytesRead:a}=yield r.read(u,s,u.byteLength-s,o));return u}return null})}readAt(e,r){return T(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),s=new Uint8Array(o-e);return(yield i.read(s,0,r,e)).buffer}return new Uint8Array(r)})}close(){return T(this,void 0,void 0,function*(){let e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return T(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return T(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}});var yg={};$e(yg,{BaseInt64:()=>Ya,Int128:()=>Xa,Int64:()=>Sn,Uint64:()=>Fe});function Xo(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}var qo,gg,Ya,Fe,Sn,Xa,vg=m(()=>{qo=8,gg=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Ya=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])}`}},Fe=class t extends Ya{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,r=new Uint32Array(2)){return t.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(2)){return t.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(2)){let i=e.length,n=new t(r);for(let o=0;o<i;){let s=qo<i-o?qo:i-o,a=new t(new Uint32Array([Number.parseInt(e.slice(o,o+s),10),0])),c=new t(new Uint32Array([gg[s],0]));n.times(c),n.plus(a),o+=s}return n}static convertArray(e){let r=new Uint32Array(e.length*2);for(let i=-1,n=e.length;++i<n;)t.from(e[i],new Uint32Array(r.buffer,r.byteOffset+2*i*4,2));return r}static multiply(e,r){return new t(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new t(new Uint32Array(e.buffer)).plus(r)}},Sn=class t extends Ya{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 t.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(2)){return t.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(2)){let i=e.startsWith("-"),n=e.length,o=new t(r);for(let s=i?1:0;s<n;){let a=qo<n-s?qo:n-s,c=new t(new Uint32Array([Number.parseInt(e.slice(s,s+a),10),0])),u=new t(new Uint32Array([gg[a],0]));o.times(u),o.plus(c),s+=a}return i?o.negate():o}static convertArray(e){let r=new Uint32Array(e.length*2);for(let i=-1,n=e.length;++i<n;)t.from(e[i],new Uint32Array(r.buffer,r.byteOffset+2*i*4,2));return r}static multiply(e,r){return new t(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new t(new Uint32Array(e.buffer)).plus(r)}},Xa=class t{constructor(e){this.buffer=e}high(){return new Sn(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Sn(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 Fe(new Uint32Array([this.buffer[3],0])),i=new Fe(new Uint32Array([this.buffer[2],0])),n=new Fe(new Uint32Array([this.buffer[1],0])),o=new Fe(new Uint32Array([this.buffer[0],0])),s=new Fe(new Uint32Array([e.buffer[3],0])),a=new Fe(new Uint32Array([e.buffer[2],0])),c=new Fe(new Uint32Array([e.buffer[1],0])),u=new Fe(new Uint32Array([e.buffer[0],0])),l=Fe.multiply(o,u);this.buffer[0]=l.low();let d=new Fe(new Uint32Array([l.high(),0]));return l=Fe.multiply(n,u),d.plus(l),l=Fe.multiply(o,c),d.plus(l),this.buffer[1]=d.low(),this.buffer[3]=d.lessThan(l)?1:0,this.buffer[2]=d.high(),new Fe(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Fe.multiply(i,u)).plus(Fe.multiply(n,c)).plus(Fe.multiply(o,a)),this.buffer[3]+=Fe.multiply(r,u).plus(Fe.multiply(i,c)).plus(Fe.multiply(n,a)).plus(Fe.multiply(o,s)).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 t(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new t(new Uint32Array(e.buffer)).plus(r)}static from(e,r=new Uint32Array(4)){return t.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(4)){return t.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(4)){let i=e.startsWith("-"),n=e.length,o=new t(r);for(let s=i?1:0;s<n;){let a=qo<n-s?qo:n-s,c=new t(new Uint32Array([Number.parseInt(e.slice(s,s+a),10),0,0,0])),u=new t(new Uint32Array([gg[a],0,0,0]));o.times(u),o.plus(c),s+=a}return i?o.negate():o}static convertArray(e){let r=new Uint32Array(e.length*4);for(let i=-1,n=e.length;++i<n;)t.from(e[i],new Uint32Array(r.buffer,r.byteOffset+16*i,4));return r}}});var wg={};$e(wg,{toIntervalDayTimeInt32Array:()=>bg,toIntervalDayTimeObjects:()=>rP,toIntervalMonthDayNanoInt32Array:()=>_g,toIntervalMonthDayNanoObjects:()=>nP});function bg(t){var e,r;let i=t.length,n=new Int32Array(i*2);for(let o=0,s=0;o<i;o++){let a=t[o];n[s++]=(e=a.days)!==null&&e!==void 0?e:0,n[s++]=(r=a.milliseconds)!==null&&r!==void 0?r:0}return n}function _g(t){var e,r;let i=t.length,n=new Int32Array(i*4);for(let o=0,s=0;o<i;o++){let a=t[o];n[s++]=(e=a.months)!==null&&e!==void 0?e:0,n[s++]=(r=a.days)!==null&&r!==void 0?r:0;let c=a.nanoseconds;if(c){let u=BigInt(c);n[s++]=Number(u&BigInt(4294967295))>>>0,n[s++]=Number(u>>BigInt(32))>>>0}else s+=2}return n}function rP(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 nP(t,e){let r=t.length,i=new Array(r/4);for(let n=0,o=0;n<r;n+=4){let s=BigInt(t[n+3])<<BigInt(32)|BigInt(t[n+2]>>>0);i[o++]={months:t[n],days:t[n+1],nanoseconds:e?`${s}`:s}}return i}var $g=m(()=>{});function U0(t){let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)e[r>>1]=Number.parseInt(t.slice(r,r+2),16);return e}function iP(t){return U0(t.join(""))}function P0(t,e){let r=new Uint8Array(t.length*16),i=new DataView(r.buffer);for(let[n,o]of t.entries()){let s=n*16,a=o.SIZE;if(i.setInt32(s,a,!0),o.INLINED!==void 0){let c=e(o.INLINED);for(let u=0;u<c.length&&u<12;u++)r[s+4+u]=c[u]}else{let c=o.PREFIX_HEX;for(let u=0;u<8&&u<c.length;u+=2)r[s+4+(u>>1)]=Number.parseInt(c.slice(u,u+2),16);i.setInt32(s+8,o.BUFFER_INDEX,!0),i.setInt32(s+12,o.OFFSET,!0)}}return r}function oP(t){return P0(t,e=>{let 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})}function sP(t){return P0(t,e=>new TextEncoder().encode(e))}var Qo,md,hd,L0=m(()=>{Ar();_t();Ie();kr();Ho();hn();vg();qe();Xe();$g();Qo=class extends J{constructor(e,r,i,n,o=ye.V5,s=[]){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.variadicBufferIndex=-1,this.bytes=e,this.nodes=r,this.buffers=i,this.dictionaries=n,this.metadataVersion=o,this.variadicBufferCounts=s}visit(e){return super.visit(e instanceof Y?e.type:e)}visitNull(e,{length:r}=this.nextFieldNode()){return P({type:e,length:r})}visitBool(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitInt(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFloat(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitUtf8(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({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 P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitUtf8View(e,{length:r,nullCount:i}=this.nextFieldNode()){let n=this.readNullBitmap(e,i),o=this.readData(e),s=this.readVariadicBuffers(this.nextVariadicBufferCount());return P({type:e,length:r,nullCount:i,nullBitmap:n,views:o,variadicBuffers:s})}visitBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({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 P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinaryView(e,{length:r,nullCount:i}=this.nextFieldNode()){let n=this.readNullBitmap(e,i),o=this.readData(e),s=this.readVariadicBuffers(this.nextVariadicBufferCount());return P({type:e,length:r,nullCount:i,nullBitmap:n,views:o,variadicBuffers:s})}visitFixedSizeBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDate(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTimestamp(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTime(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDecimal(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitList(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitLargeList(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({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 P({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<ye.V5&&this.readNullBitmap(e,i),e.mode===ke.Sparse?this.visitSparseUnion(e,{length:r,nullCount:i}):this.visitDenseUnion(e,{length:r,nullCount:i})}visitDenseUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({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 P({type:e,length:r,nullCount:i,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({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 P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDuration(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFixedSizeList(e,{length:r,nullCount:i}=this.nextFieldNode()){return P({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 P({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)}readVariadicBuffers(e){return Array.from({length:e},()=>this.readData(null))}nextVariadicBufferCount(){var e;return(e=this.variadicBufferCounts[++this.variadicBufferIndex])!==null&&e!==void 0?e:0}readDictionary(e){return this.dictionaries.get(e.id)}},md=class extends Qo{constructor(e,r,i,n,o,s=[]){super(new Uint8Array(0),r,i,n,o,s),this.sources=e}readNullBitmap(e,r,{offset:i}=this.nextBufferRange()){return r<=0?new Uint8Array(0):Ri(this.sources[i])}readOffsets(e,{offset:r}=this.nextBufferRange()){return ie(Uint8Array,ie(e.OffsetArrayType,this.sources[r]))}readTypeIds(e,{offset:r}=this.nextBufferRange()){return ie(Uint8Array,ie(e.ArrayType,this.sources[r]))}readData(e,{offset:r}=this.nextBufferRange()){let{sources:i}=this;if(O.isTimestamp(e))return ie(Uint8Array,Sn.convertArray(i[r]));if((O.isInt(e)||O.isTime(e))&&e.bitWidth===64||O.isDuration(e))return ie(Uint8Array,Sn.convertArray(i[r]));if(O.isDate(e)&&e.unit===Ze.MILLISECOND)return ie(Uint8Array,Sn.convertArray(i[r]));if(O.isDecimal(e))return ie(Uint8Array,Xa.convertArray(i[r]));if(O.isBinary(e)||O.isLargeBinary(e)||O.isFixedSizeBinary(e))return iP(i[r]);if(O.isBinaryView(e))return oP(i[r]);if(O.isUtf8View(e))return sP(i[r]);if(O.isBool(e))return Ri(i[r]);if(O.isUtf8(e)||O.isLargeUtf8(e))return Vt(i[r].join(""));if(O.isInterval(e))switch(e.unit){case Be.DAY_TIME:return bg(i[r]);case Be.MONTH_DAY_NANO:return _g(i[r]);default:break}return ie(Uint8Array,ie(e.ArrayType,i[r].map(n=>+n)))}readVariadicBuffers(e){let r=[];for(let i=0;i<e;i++){let{offset:n}=this.nextBufferRange(),o=this.sources[n];r.push(U0(o))}return r}};hd=class extends Qo{constructor(e,r,i,n,o,s=[]){super(new Uint8Array(0),r,i,n,o,s),this.bodyChunks=e}readData(e,r=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}}});var es,xg=m(()=>{Or();Ne();Xe();es=class extends pt{constructor(e){super(e),this._values=new Ut(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,F(r))}_flushPending(e,r){let i=this._offsets,n=this._values.reserve(r).buffer,o=0;for(let[s,a]of e)if(a===void 0)i.set(s,0);else{let c=a.length;n.set(a,o),i.set(s,c),o+=c}}}});var ts,Ig=m(()=>{Xe();Or();Ne();ts=class extends pt{constructor(e){super(e),this._values=new Ut(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,F(r))}_flushPending(e,r){let i=this._offsets,n=this._values.reserve(r).buffer,o=0;for(let[s,a]of e)if(a===void 0)i.set(s,BigInt(0));else{let c=a.length;n.set(a,o),i.set(s,BigInt(c)),o+=c}}}});var gd,E0=m(()=>{Or();Ne();gd=class extends Ae{constructor(e){super(e),this._values=new Yo}setValue(e,r){this._values.set(e,+r)}}});var Yi,qa,Qa,C0=m(()=>{Ne();Kt();Yi=class extends Ge{};Yi.prototype._setValue=Zh;qa=class extends Yi{};qa.prototype._setValue=Nl;Qa=class extends Yi{};Qa.prototype._setValue=Ul});var ec,F0=m(()=>{Ne();Kt();ec=class extends Ge{};ec.prototype._setValue=Hh});var yd,j0=m(()=>{Ie();Ne();Sg();yd=class extends Ae{constructor({type:e,nullValues:r,dictionaryHashFunction:i}){super({type:new Tt(e.dictionary,e.indices,e.id,e.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Xi({type:this.type.indices,nullValues:r}),this.dictionary=Xi({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 tc,M0=m(()=>{Ne();Kt();tc=class extends Ge{};tc.prototype._setValue=Vh});var vd,R0=m(()=>{_t();Ne();Ie();vd=class extends Ae{setValue(e,r){let[i]=this.children,n=e*this.stride;for(let o=-1,s=this.stride;++o<s;)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 Y(r,e.type,!0)),i}}});var qi,bd,_d,wd,V0=m(()=>{Ra();Ne();qi=class extends Ge{setValue(e,r){this._values.set(e,r)}},bd=class extends qi{setValue(e,r){super.setValue(e,Ma(r))}},_d=class extends qi{},wd=class extends qi{}});var Qn,rc,nc,ic,Z0=m(()=>{Ne();Kt();Qn=class extends Ge{};Qn.prototype._setValue=Gh;rc=class extends Qn{};rc.prototype._setValue=Vl;nc=class extends Qn{};nc.prototype._setValue=Zl;ic=class extends Qn{};ic.prototype._setValue=Wl});var kn,oc,sc,ac,cc,W0=m(()=>{Ne();Kt();kn=class extends Ge{};kn.prototype._setValue=Kh;oc=class extends kn{};oc.prototype._setValue=Jl;sc=class extends kn{};sc.prototype._setValue=Hl;ac=class extends kn{};ac.prototype._setValue=Gl;cc=class extends kn{};cc.prototype._setValue=Kl});var dr,$d,xd,Id,Sd,kd,Dd,Ad,Od,J0=m(()=>{Ne();dr=class extends Ge{setValue(e,r){this._values.set(e,r)}},$d=class extends dr{},xd=class extends dr{},Id=class extends dr{},Sd=class extends dr{},kd=class extends dr{},Dd=class extends dr{},Ad=class extends dr{},Od=class extends dr{}});var Bd,H0=m(()=>{_t();Ie();Or();Ne();Bd=class extends pt{constructor(e){super(e),this._offsets=new Xn(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 or(new Y(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 s=o,a=s.length,c=r.set(n,a).buffer[n];for(let u=-1;++u<a;)i.set(c+u,s[u])}}}});var zd,G0=m(()=>{_t();Ie();Or();jr();Ne();zd=class extends pt{constructor(e){super(e),this._offsets=new Xn(e.type)}addChild(e,r="0"){if(this.numChildren>0)throw new Error("LargeListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new sr(new Y(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,BigInt(0));else{let s=o,a=s.length,c=oe(r.set(n,BigInt(a)).buffer[n]);for(let u=-1;++u<a;)i.set(c+u,s[u])}}}});var Td,K0=m(()=>{_t();Ie();Ne();Td=class extends pt{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 cr(new Y(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]:s,[n+1]:a}=r.set(n,o.size).buffer;for(let c of o.entries())if(i.set(s,c),++s>=a)break}}}});var Nd,Y0=m(()=>{Ne();Nd=class extends Ae{setValue(e,r){}setValid(e,r){return this.length=Math.max(e+1,this.length),r}}});var Ud,X0=m(()=>{_t();Ne();Ie();Ud=class extends Ae{setValue(e,r){let{children:i,type:n}=this;switch(Array.isArray(r)||r.constructor){case!0:return n.children.forEach((o,s)=>i[s].set(e,r[s]));case Map:return n.children.forEach((o,s)=>i[s].set(e,r.get(o.name)));default:return n.children.forEach((o,s)=>i[s].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 De([...this.type.children,new Y(r,e.type,!0)]),i}}});var Dn,uc,lc,dc,fc,q0=m(()=>{Ne();Kt();Dn=class extends Ge{};Dn.prototype._setValue=Wh;uc=class extends Dn{};uc.prototype._setValue=Pl;lc=class extends Dn{};lc.prototype._setValue=Ll;dc=class extends Dn{};dc.prototype._setValue=El;fc=class extends Dn{};fc.prototype._setValue=Cl});var An,pc,mc,hc,gc,Q0=m(()=>{Ne();Kt();An=class extends Ge{};An.prototype._setValue=Jh;pc=class extends An{};pc.prototype._setValue=Fl;mc=class extends An{};mc.prototype._setValue=jl;hc=class extends An{};hc.prototype._setValue=Ml;gc=class extends An{};gc.prototype._setValue=Rl});var rs,Pd,Ld,ek=m(()=>{_t();Or();Ne();Ie();rs=class extends Ae{constructor(e){super(e),this._typeIds=new wn(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:s}}=this,a=[...n,new Y(r,e.type)];return this.type=new ar(o,[...s,i],a),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.")}},Pd=class extends rs{},Ld=class extends rs{constructor(e){super(e),this._offsets=new wn(Int32Array)}setValue(e,r,i){let n=this._typeIds.set(e,i).buffer[e],o=this.getChildAt(this.type.typeIdToChildIndex[n]),s=this._offsets.set(e,o.length).buffer[e];o?.set(s,r),this.length=Math.max(e+1,this.length)}}});var yc,tk=m(()=>{hn();xg();Or();Ne();yc=class extends pt{constructor(e){super(e),this._values=new Ut(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,Vt(r))}_flushPending(e,r){}};yc.prototype._flushPending=es.prototype._flushPending});var vc,rk=m(()=>{hn();Or();Ne();Ig();vc=class extends pt{constructor(e){super(e),this._values=new Ut(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,Vt(r))}_flushPending(e,r){}};vc.prototype._flushPending=ts.prototype._flushPending});var ns,kg=m(()=>{Ie();Ne();Or();Xe();Ar();ns=class extends Ae{constructor(e){super(e),this._variadicBuffers=[],this._currentBuffer=null,this._currentBufferIndex=0,this._currentBufferOffset=0,this._bufferSize=32*1024*1024,this._views=new Ut(Uint8Array)}get byteLength(){let e=0;this._views&&(e+=this._views.byteLength),this._nulls&&(e+=this._nulls.byteLength);for(let r of this._variadicBuffers)e+=r.byteLength;return this._currentBuffer&&(e+=this._currentBuffer.byteLength),e}setValue(e,r){return this.writeBinaryValue(e,this.encodeValue(r))}writeBinaryValue(e,r){let i=r.length,n=(e+1)*re.ELEMENT_WIDTH,o=this._views.length;n>o&&this._views.reserve(n-o);let s=this._views.buffer,a=e*re.ELEMENT_WIDTH,c=new DataView(s.buffer,s.byteOffset+a,re.ELEMENT_WIDTH);if(c.setInt32(re.LENGTH_OFFSET,i,!0),i<=re.INLINE_CAPACITY){s.set(r,a+re.INLINE_OFFSET);for(let u=i;u<re.INLINE_CAPACITY;u++)s[a+re.INLINE_OFFSET+u]=0}else{let u=new DataView(r.buffer,r.byteOffset,Math.min(4,i));c.setUint32(re.INLINE_OFFSET,u.getUint32(0,!0),!0),(!this._currentBuffer||this._currentBufferOffset+i>this._bufferSize)&&(this._currentBuffer&&this._variadicBuffers.push(this._currentBuffer.buffer.slice(0,this._currentBufferOffset)),this._currentBuffer=new Ut(Uint8Array),this._currentBufferIndex=this._variadicBuffers.length,this._currentBufferOffset=0),this._currentBuffer.reserve(i).buffer.set(r,this._currentBufferOffset),c.setInt32(re.BUFFER_INDEX_OFFSET,this._currentBufferIndex,!0),c.setInt32(re.BUFFER_OFFSET_OFFSET,this._currentBufferOffset,!0),this._currentBufferOffset+=i}return this}encodeValue(e){return F(e)}setValid(e,r){let i=(e+1)*re.ELEMENT_WIDTH,n=this._views.length;i>n&&this._views.reserve(i-n);let o=super.setValid(e,r);if(!o){let s=this._views.buffer,a=e*re.ELEMENT_WIDTH;for(let c=0;c<re.ELEMENT_WIDTH;c++)s[a+c]=0}return o}clear(){return this._variadicBuffers=[],this._currentBuffer=null,this._currentBufferIndex=0,this._currentBufferOffset=0,this._views.clear(),super.clear()}flush(){let{type:e,length:r,nullCount:i,_views:n,_nulls:o}=this;this._currentBuffer&&this._currentBufferOffset>0&&(this._variadicBuffers.push(this._currentBuffer.buffer.slice(0,this._currentBufferOffset)),this._currentBuffer=null,this._currentBufferOffset=0);let s=n.flush(r*re.ELEMENT_WIDTH),a=i>0?o.flush(r):void 0,c=this._variadicBuffers.slice();return this._variadicBuffers=[],this._currentBufferIndex=0,this.clear(),P({type:e,length:r,nullCount:i,nullBitmap:a,views:s,variadicBuffers:c})}finish(){return this.finished=!0,this}}});var Ed,nk=m(()=>{kg();hn();Ed=class extends ns{constructor(e){super(e)}setValue(e,r){return this.writeBinaryValue(e,Vt(r))}}});var Dg,ik,ok=m(()=>{kr();xg();Ig();E0();C0();F0();j0();M0();R0();V0();Z0();W0();J0();H0();G0();K0();Y0();X0();q0();Q0();ek();tk();rk();kg();nk();Dg=class extends J{visitNull(){return Nd}visitBool(){return gd}visitInt(){return dr}visitInt8(){return $d}visitInt16(){return xd}visitInt32(){return Id}visitInt64(){return Sd}visitUint8(){return kd}visitUint16(){return Dd}visitUint32(){return Ad}visitUint64(){return Od}visitFloat(){return qi}visitFloat16(){return bd}visitFloat32(){return _d}visitFloat64(){return wd}visitUtf8(){return yc}visitLargeUtf8(){return vc}visitBinary(){return es}visitLargeBinary(){return ts}visitFixedSizeBinary(){return tc}visitDate(){return Yi}visitDateDay(){return qa}visitDateMillisecond(){return Qa}visitTimestamp(){return Dn}visitTimestampSecond(){return uc}visitTimestampMillisecond(){return lc}visitTimestampMicrosecond(){return dc}visitTimestampNanosecond(){return fc}visitTime(){return An}visitTimeSecond(){return pc}visitTimeMillisecond(){return mc}visitTimeMicrosecond(){return hc}visitTimeNanosecond(){return gc}visitDecimal(){return ec}visitList(){return Bd}visitLargeList(){return zd}visitStruct(){return Ud}visitUnion(){return rs}visitDenseUnion(){return Ld}visitSparseUnion(){return Pd}visitDictionary(){return yd}visitInterval(){return Qn}visitIntervalDayTime(){return rc}visitIntervalYearMonth(){return nc}visitIntervalMonthDayNano(){return ic}visitDuration(){return kn}visitDurationSecond(){return oc}visitDurationMillisecond(){return sc}visitDurationMicrosecond(){return ac}visitDurationNanosecond(){return cc}visitFixedSizeList(){return vd}visitMap(){return Td}visitBinaryView(){return ns}visitUtf8View(){return Ed}},ik=new Dg});function wt(t,e){return e instanceof t.constructor}function On(t,e){return t===e||wt(t,e)}function Bn(t,e){return t===e||wt(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function Cd(t,e){return t===e||wt(t,e)&&t.precision===e.precision}function aP(t,e){return t===e||wt(t,e)&&t.byteWidth===e.byteWidth}function Ag(t,e){return t===e||wt(t,e)&&t.unit===e.unit}function bc(t,e){return t===e||wt(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function _c(t,e){return t===e||wt(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function sk(t,e){return t===e||wt(t,e)&&t.children.length===e.children.length&&rn.compareManyFields(t.children,e.children)}function cP(t,e){return t===e||wt(t,e)&&t.children.length===e.children.length&&rn.compareManyFields(t.children,e.children)}function Og(t,e){return t===e||wt(t,e)&&t.mode===e.mode&&t.typeIds.every((r,i)=>r===e.typeIds[i])&&rn.compareManyFields(t.children,e.children)}function uP(t,e){return t===e||wt(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&rn.visit(t.indices,e.indices)&&rn.visit(t.dictionary,e.dictionary)}function Fd(t,e){return t===e||wt(t,e)&&t.unit===e.unit}function wc(t,e){return t===e||wt(t,e)&&t.unit===e.unit}function lP(t,e){return t===e||wt(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&rn.compareManyFields(t.children,e.children)}function dP(t,e){return t===e||wt(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&rn.compareManyFields(t.children,e.children)}function Qi(t,e){return rn.compareSchemas(t,e)}function ak(t,e){return rn.compareFields(t,e)}function ck(t,e){return rn.visit(t,e)}var V,rn,jd=m(()=>{kr();V=class extends J{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)}};V.prototype.visitNull=On;V.prototype.visitBool=On;V.prototype.visitInt=Bn;V.prototype.visitInt8=Bn;V.prototype.visitInt16=Bn;V.prototype.visitInt32=Bn;V.prototype.visitInt64=Bn;V.prototype.visitUint8=Bn;V.prototype.visitUint16=Bn;V.prototype.visitUint32=Bn;V.prototype.visitUint64=Bn;V.prototype.visitFloat=Cd;V.prototype.visitFloat16=Cd;V.prototype.visitFloat32=Cd;V.prototype.visitFloat64=Cd;V.prototype.visitUtf8=On;V.prototype.visitLargeUtf8=On;V.prototype.visitUtf8View=On;V.prototype.visitBinary=On;V.prototype.visitLargeBinary=On;V.prototype.visitBinaryView=On;V.prototype.visitFixedSizeBinary=aP;V.prototype.visitDate=Ag;V.prototype.visitDateDay=Ag;V.prototype.visitDateMillisecond=Ag;V.prototype.visitTimestamp=bc;V.prototype.visitTimestampSecond=bc;V.prototype.visitTimestampMillisecond=bc;V.prototype.visitTimestampMicrosecond=bc;V.prototype.visitTimestampNanosecond=bc;V.prototype.visitTime=_c;V.prototype.visitTimeSecond=_c;V.prototype.visitTimeMillisecond=_c;V.prototype.visitTimeMicrosecond=_c;V.prototype.visitTimeNanosecond=_c;V.prototype.visitDecimal=On;V.prototype.visitList=sk;V.prototype.visitLargeList=sk;V.prototype.visitStruct=cP;V.prototype.visitUnion=Og;V.prototype.visitDenseUnion=Og;V.prototype.visitSparseUnion=Og;V.prototype.visitDictionary=uP;V.prototype.visitInterval=Fd;V.prototype.visitIntervalDayTime=Fd;V.prototype.visitIntervalYearMonth=Fd;V.prototype.visitIntervalMonthDayNano=Fd;V.prototype.visitDuration=wc;V.prototype.visitDurationSecond=wc;V.prototype.visitDurationMillisecond=wc;V.prototype.visitDurationMicrosecond=wc;V.prototype.visitDurationNanosecond=wc;V.prototype.visitFixedSizeList=lP;V.prototype.visitMap=dP;rn=new V});function Xi(t){let e=t.type,r=new(ik.getVisitFn(e)())(t);if(e.children&&e.children.length>0){let i=t.children||[],n={nullValues:t.nullValues},o=Array.isArray(i)?((s,a)=>i[a]||n):(({name:s})=>i[s]||n);for(let[s,a]of e.children.entries()){let{type:c}=a,u=o(a,s);r.children.push(Xi(Object.assign(Object.assign({},u),{type:c})))}}return r}var Sg=m(()=>{ok()});function Md(t,e){return fP(t,e.map(r=>r.data.concat()))}function fP(t,e){let r=[...t.fields],i=[],n={numBatches:e.reduce((d,f)=>Math.max(d,f.length),0)},o=0,s=0,a=-1,c=e.length,u,l=[];for(;n.numBatches-- >0;){for(s=Number.POSITIVE_INFINITY,a=-1;++a<c;)l[a]=u=e[a].shift(),s=Math.min(s,u?u.length:s);Number.isFinite(s)&&(l=pP(r,s,l,e,n),s>0&&(i[o++]=P({type:new De(r),length:s,nullCount:0,children:l.slice()})))}return[t=t.assign(r),i.map(d=>new Oe(t,d))]}function pP(t,e,r,i,n){var o;let s=(e+63&-64)>>3;for(let a=-1,c=i.length;++a<c;){let u=r[a],l=u?.length;if(l>=e)l===e?r[a]=u:(r[a]=u.slice(0,e),n.numBatches=Math.max(n.numBatches,i[a].unshift(u.slice(e,l-e))));else{let d=t[a];t[a]=d.clone({nullable:!0}),r[a]=(o=u?._changeLengthAndBackfillNullBitmap(e))!==null&&o!==void 0?o:P({type:d.type,length:e,nullCount:e,nullBitmap:new Uint8Array(s)})}}return r}var uk=m(()=>{Ar();Ie();eo()});var lk,dk,Qe,$c=m(()=>{qe();Ar();Nt();_t();Ie();jd();uk();od();Ci();Kt();sd();ad();Jo();eo();dk=Symbol.for("apache-arrow/Table"),Qe=class t{static isTable(e){return e?.[dk]===!0}constructor(...e){var r,i;if(e.length===0)return this.batches=[],this.schema=new ue([]),this._offsets=[0],this;let n,o;e[0]instanceof ue&&(n=e.shift()),e.at(-1)instanceof Uint32Array&&(o=e.pop());let s=c=>{if(c){if(c instanceof Oe)return[c];if(c instanceof t)return c.batches;if(c instanceof ee){if(c.type instanceof De)return[new Oe(new ue(c.type.children),c)]}else{if(Array.isArray(c))return c.flatMap(u=>s(u));if(typeof c[Symbol.iterator]=="function")return[...c].flatMap(u=>s(u));if(typeof c=="object"){let u=Object.keys(c),l=u.map(p=>new E([c[p]])),d=n??new ue(u.map((p,h)=>new Y(String(p),l[h].type,l[h].nullable))),[,f]=Md(d,l);return f.length===0?[new Oe(c)]:f}}}return[]},a=e.flatMap(c=>s(c));if(n=(i=n??((r=a[0])===null||r===void 0?void 0:r.schema))!==null&&i!==void 0?i:new ue([]),!(n instanceof ue))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let c of a){if(!(c instanceof Oe))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Qi(n,c.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=n,this.batches=a,this._offsets=o??td(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=ed(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(Fi(e,this.numRows))}set(e,r){}indexOf(e,r){return-1}[Symbol.iterator](){return this.batches.length>0?Ko.visit(new E(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
|
14
14
|
${this.toArray().join(`,
|
|
15
15
|
`)}
|
|
16
|
-
]`}concat(...t){let e=this.schema,n=this.data.concat(t.flatMap(({data:i})=>i));return new St(e,n.map(i=>new lt(e,i)))}slice(t,e){let n=this.schema;[t,e]=Vs({length:this.numRows},t,e);let i=Ha(this.data,this._offsets,t,e);return new St(n,i.map(s=>new lt(n,s)))}getChild(t){return this.getChildAt(this.schema.fields.findIndex(e=>e.name===t))}getChildAt(t){if(t>-1&&t<this.schema.fields.length){let e=this.data.map(n=>n.children[t]);if(e.length===0){let{type:n}=this.schema.fields[t],i=A({type:n,length:0,nullCount:0});e.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new v(e)}return null}setChild(t,e){var n;return this.setChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(i=>i.name===t),e)}setChildAt(t,e){let n=this.schema,i=[...this.batches];if(t>-1&&t<this.numCols){e||(e=new v([A({type:new Yt,length:this.numRows})]));let s=n.fields.slice(),o=s[t].clone({type:e.type}),a=this.schema.fields.map((l,c)=>this.getChildAt(c));[s[t],a[t]]=[o,e],[n,i]=Ac(n,a)}return new St(n,i)}select(t){let e=this.schema.fields.reduce((n,i,s)=>n.set(i.name,s),new Map);return this.selectAt(t.map(n=>e.get(n)).filter(n=>n>-1))}selectAt(t){let e=this.schema.selectAt(t),n=this.batches.map(i=>i.selectAt(t));return new St(e,n)}assign(t){let e=this.schema.fields,[n,i]=t.schema.fields.reduce((a,l,c)=>{let[u,h]=a,m=e.findIndex(p=>p.name===l.name);return~m?h[m]=c:u.push(c),a},[[],[]]),s=this.schema.assign(t.schema),o=[...e.map((a,l)=>[l,i[l]]).map(([a,l])=>l===void 0?this.getChildAt(a):t.getChildAt(l)),...n.map(a=>t.getChildAt(a))].filter(Boolean);return new St(...Ac(s,o))}};tm=Symbol.toStringTag;St[tm]=(r=>(r.schema=null,r.batches=[],r._offsets=new Uint32Array([0]),r._nullCount=-1,r[Symbol.isConcatSpreadable]=!0,r.isValid=ki(Hs),r.get=ki(Bt.getVisitFn(f.Struct)),r.set=$a(Ht.getVisitFn(f.Struct)),r.indexOf=Za(Hn.getVisitFn(f.Struct)),"Table"))(St.prototype)});function em(r,t,e=t.reduce((n,i)=>Math.max(n,i.length),0)){var n;let i=[...r.fields],s=[...t],o=(e+63&-64)>>3;for(let[a,l]of r.fields.entries()){let c=t[a];(!c||c.length!==e)&&(i[a]=l.clone({nullable:!0}),s[a]=(n=c?._changeLengthAndBackfillNullBitmap(e))!==null&&n!==void 0?n:A({type:l.type,length:e,nullCount:e,nullBitmap:new Uint8Array(o)}))}return[r.assign(i),A({type:new ct(i),length:e,children:s})]}function nm(r,t,e=new Map){var n,i;if(((n=r?.length)!==null&&n!==void 0?n:0)>0&&r?.length===t?.length)for(let s=-1,o=r.length;++s<o;){let{type:a}=r[s],l=t[s];for(let c of[l,...((i=l?.dictionary)===null||i===void 0?void 0:i.data)||[]])nm(a.children,c?.children,e);if(_.isDictionary(a)){let{id:c}=a;if(!e.has(c))l?.dictionary&&e.set(c,l.dictionary);else if(e.get(c)!==l.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return e}var rm,lt,ei,Gi=d(()=>{Vr();Bc();Ae();Be();_t();Mi();Cn();Ie();Ga();Ya();lt=class{constructor(...t){switch(t.length){case 2:{if([this.schema]=t,!(this.schema instanceof $))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=A({nullCount:0,type:new ct(this.schema.fields),children:this.schema.fields.map(e=>A({type:e.type,nullCount:0}))})]=t,!(this.data instanceof Z))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=em(this.schema,this.data.children);break}case 1:{let[e]=t,{fields:n,children:i,length:s}=Object.keys(e).reduce((l,c,u)=>(l.children[u]=e[c],l.length=Math.max(l.length,e[c].length),l.fields[u]=U.new({name:c,type:e[c].type,nullable:!0}),l),{length:0,fields:new Array,children:new Array}),o=new $(n),a=A({type:new ct(n),length:s,children:i,nullCount:0});[this.schema,this.data]=em(o,a.children,s);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=nm(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(t){return this.data.getValid(t)}get(t){return Bt.visit(this.data,t)}at(t){return this.get(Un(t,this.numRows))}set(t,e){return Ht.visit(this.data,t,e)}indexOf(t,e){return Hn.visit(this.data,t,e)}[Symbol.iterator](){return Ci.visit(new v([this.data]))}toArray(){return[...this]}concat(...t){return new St(this.schema,[this,...t])}slice(t,e){let[n]=new v([this.data]).slice(t,e).data;return new lt(this.schema,n)}getChild(t){var e;return this.getChildAt((e=this.schema.fields)===null||e===void 0?void 0:e.findIndex(n=>n.name===t))}getChildAt(t){return t>-1&&t<this.schema.fields.length?new v([this.data.children[t]]):null}setChild(t,e){var n;return this.setChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(i=>i.name===t),e)}setChildAt(t,e){let n=this.schema,i=this.data;if(t>-1&&t<this.numCols){e||(e=new v([A({type:new Yt,length:this.numRows})]));let s=n.fields.slice(),o=i.children.slice(),a=s[t].clone({type:e.type});[s[t],o[t]]=[a,e.data[0]],n=new $(s,new Map(this.schema.metadata)),i=A({type:new ct(s),children:o})}return new lt(n,i)}select(t){let e=this.schema.select(t),n=new ct(e.fields),i=[];for(let s of t){let o=this.schema.fields.findIndex(a=>a.name===s);~o&&(i[o]=this.data.children[o])}return new lt(e,A({type:n,length:this.numRows,children:i}))}selectAt(t){let e=this.schema.selectAt(t),n=t.map(s=>this.data.children[s]).filter(Boolean),i=A({type:new ct(e.fields),length:this.numRows,children:n});return new lt(e,i)}};rm=Symbol.toStringTag;lt[rm]=(r=>(r._nullCount=-1,r[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(lt.prototype);ei=class extends lt{constructor(t){let e=t.fields.map(i=>A({type:i.type})),n=A({type:new ct(t.fields),nullCount:0,children:e});super(t,n)}}});function Tc(r,t=0){for(let e=-1,n=Ki.length;++e<n;)if(Ki[e]!==r[t+e])return!1;return!0}var tf,ef,im,sm,Yi,bo,wo,Dc,Qu,Ki,Ji,rf,om,nf=d(()=>{ge();Nt();K();Wn();In();Pu();kt();Kn();Zs();tf=r=>`Expected ${W[r]} Message in stream, but was null or length 0.`,ef=r=>`Header pointer of flatbuffer-encoded ${W[r]} Message is null or length 0.`,im=(r,t)=>`Expected to read ${r} metadata bytes, but only read ${t}.`,sm=(r,t)=>`Expected to read ${r} bytes for message body, but only read ${t}.`,Yi=class{constructor(t){this.source=t instanceof Dr?t:new Dr(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done?dt:t.value===-1&&(t=this.readMetadataLength()).done?dt:(t=this.readMetadata(t.value)).done?dt:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e;if((e=this.next()).done)return null;if(t!=null&&e.value.headerType!==t)throw new Error(tf(t));return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);let e=F(this.source.read(t));if(e.byteLength<t)throw new Error(sm(t,e.byteLength));return e.byteOffset%8===0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}readSchema(t=!1){let e=W.Schema,n=this.readMessage(e),i=n?.header();if(t&&!i)throw new Error(ef(e));return i}readMetadataLength(){let t=this.source.read(Dc),e=t&&new Ft(t),n=e?.readInt32(0)||0;return{done:n===0,value:n}}readMetadata(t){let e=this.source.read(t);if(!e)return dt;if(e.byteLength<t)throw new Error(im(t,e.byteLength));return{done:!1,value:Ot.decode(e)}}},bo=class{constructor(t,e){this.source=t instanceof he?t:oa(t)?new hn(t,e):new he(t)}[Symbol.asyncIterator](){return this}next(){return b(this,void 0,void 0,function*(){let t;return(t=yield this.readMetadataLength()).done?dt:t.value===-1&&(t=yield this.readMetadataLength()).done?dt:(t=yield this.readMetadata(t.value)).done?dt:t})}throw(t){return b(this,void 0,void 0,function*(){return yield this.source.throw(t)})}return(t){return b(this,void 0,void 0,function*(){return yield this.source.return(t)})}readMessage(t){return b(this,void 0,void 0,function*(){let e;if((e=yield this.next()).done)return null;if(t!=null&&e.value.headerType!==t)throw new Error(tf(t));return e.value})}readMessageBody(t){return b(this,void 0,void 0,function*(){if(t<=0)return new Uint8Array(0);let e=F(yield this.source.read(t));if(e.byteLength<t)throw new Error(sm(t,e.byteLength));return e.byteOffset%8===0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()})}readSchema(){return b(this,arguments,void 0,function*(t=!1){let e=W.Schema,n=yield this.readMessage(e),i=n?.header();if(t&&!i)throw new Error(ef(e));return i})}readMetadataLength(){return b(this,void 0,void 0,function*(){let t=yield this.source.read(Dc),e=t&&new Ft(t),n=e?.readInt32(0)||0;return{done:n===0,value:n}})}readMetadata(t){return b(this,void 0,void 0,function*(){let e=yield this.source.read(t);if(!e)return dt;if(e.byteLength<t)throw new Error(im(t,e.byteLength));return{done:!1,value:Ot.decode(e)}})}},wo=class extends Yi{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof $s?t:new $s(t)}next(){let{_json:t}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Ot.fromJSON(t.schema,W.Schema)};if(this._dictionaryIndex<t.dictionaries.length){let e=t.dictionaries[this._dictionaryIndex++];return this._body=e.data.columns,{done:!1,value:Ot.fromJSON(e,W.DictionaryBatch)}}if(this._batchIndex<t.batches.length){let e=t.batches[this._batchIndex++];return this._body=e.columns,{done:!1,value:Ot.fromJSON(e,W.RecordBatch)}}return this._body=[],dt}readMessageBody(t){return e(this._body);function e(n){return(n||[]).reduce((i,s)=>[...i,...s.VALIDITY&&[s.VALIDITY]||[],...s.TYPE_ID&&[s.TYPE_ID]||[],...s.OFFSET&&[s.OFFSET]||[],...s.DATA&&[s.DATA]||[],...e(s.children)],[])}}readMessage(t){let e;if((e=this.next()).done)return null;if(t!=null&&e.value.headerType!==t)throw new Error(tf(t));return e.value}readSchema(){let t=W.Schema,e=this.readMessage(t),n=e?.header();if(!e||!n)throw new Error(ef(t));return n}},Dc=4,Qu="ARROW1",Ki=new Uint8Array(Qu.length);for(let r=0;r<Qu.length;r+=1)Ki[r]=Qu.codePointAt(r);Ji=Ki.length,rf=Ji+Dc,om=Ji*2+Dc});var sf,of,am,cm=d(()=>{Ns();sf=class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(t){let e=new Uint8Array([1,2,3,4,5,6,7,8]),n=t.encode(e);return this._isValidCompressed(n)}_isValidCompressed(t){return this._hasMinimumLength(t)&&this._hasValidMagicNumber(t)&&this._hasValidVersion(t)}_hasMinimumLength(t){return t.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(t){return this.LZ4_FRAME_MAGIC.every((e,n)=>t[n]===e)}_hasValidVersion(t){return(t[4]&192)>>6===1}},of=class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(t){let e=new Uint8Array([1,2,3,4,5,6,7,8]),n=t.encode(e);return this._isValidCompressed(n)}_isValidCompressed(t){return this._hasMinimumLength(t)&&this._hasValidMagicNumber(t)}_hasMinimumLength(t){return t.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(t){return this.ZSTD_MAGIC.every((e,n)=>t[n]===e)}},am={[qt.LZ4_FRAME]:new sf,[qt.ZSTD]:new of}});var af,Xi,cf=d(()=>{Ns();cm();af=class{constructor(){this.registry={}}set(t,e){if(e?.encode&&typeof e.encode=="function"&&!am[t].isValidCodecEncode(e))throw new Error(`Encoder for ${qt[t]} is not valid.`);this.registry[t]=e}get(t){var e;return((e=this.registry)===null||e===void 0?void 0:e[t])||null}},Xi=new af});function dm(r,t){return t&&typeof t.autoDestroy=="boolean"?t.autoDestroy:r.autoDestroy}function*lm(r){let t=te.from(r);try{if(!t.open({autoDestroy:!1}).closed)do yield t;while(!t.reset().open().closed)}finally{t.cancel()}}function um(r){return _e(this,arguments,function*(){let e=yield P(te.from(r));try{if(!(yield P(e.open({autoDestroy:!1}))).closed)do yield yield P(e);while(!(yield P(e.reset().open())).closed)}finally{yield P(e.cancel())}})}function zb(r){return new Kr(new uf(r))}function jb(r){let t=r.peek(Ji+7&-8);return t&&t.byteLength>=4?Tc(t)?new ni(new Lc(r.read())):new Kr(new qi(r)):new Kr(new qi(function*(){}()))}function Hb(r){return b(this,void 0,void 0,function*(){let t=yield r.peek(Ji+7&-8);return t&&t.byteLength>=4?Tc(t)?new ni(new Lc(yield r.read())):new ri(new Qi(r)):new ri(new Qi(function(){return _e(this,arguments,function*(){})}()))})}function $b(r){return b(this,void 0,void 0,function*(){let{size:t}=yield r.stat(),e=new hn(r,t);return t>=om&&Tc(yield e.readAt(0,Ji+7&-8))?new Ec(new lf(e)):new ri(new Qi(e))})}var te,Kr,ri,ni,Ec,Oc,qi,Qi,Lc,lf,uf,ff=d(()=>{ge();Vr();Ae();_t();Nt();Ru();Os();Wn();Kn();Pu();Ep();Gi();Zs();nf();In();cf();Ur();K();te=class extends Yn{constructor(t){super(),this._impl=t}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(t){return this._impl.throw(t)}return(t){return this._impl.return(t)}cancel(){return this._impl.cancel()}reset(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}open(t){let e=this._impl.open(t);return ze(e)?e.then(()=>this):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return zt.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return zt.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof te?t:ia(t)?zb(t):oa(t)?$b(t):ze(t)?(()=>b(this,void 0,void 0,function*(){return yield te.from(yield t)}))():aa(t)||Ts(t)||la(t)||Te(t)?Hb(new he(t)):jb(new Dr(t))}static readAll(t){return t instanceof te?t.isSync()?lm(t):um(t):ia(t)||ArrayBuffer.isView(t)||je(t)||sa(t)?lm(t):um(t)}},Kr=class extends te{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return _e(this,arguments,function*(){yield P(yield*vi(Ve(this[Symbol.iterator]())))})}},ri=class extends te{constructor(t){super(t),this._impl=t}readAll(){return b(this,void 0,void 0,function*(){var t,e,n,i;let s=new Array;try{for(var o=!0,a=Ve(this),l;l=yield a.next(),t=l.done,!t;o=!0){i=l.value,o=!1;let c=i;s.push(c)}}catch(c){e={error:c}}finally{try{!o&&!t&&(n=a.return)&&(yield n.call(a))}finally{if(e)throw e.error}}return s})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},ni=class extends Kr{constructor(t){super(t),this._impl=t}},Ec=class extends ri{constructor(t){super(t),this._impl=t}},Oc=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){let n;if(t.compression!=null){let s=Xi.get(t.compression.type);if(s?.decode&&typeof s.decode=="function"){let{decommpressedBody:o,buffers:a}=this._decompressBuffers(t,e,s);n=this._loadCompressedVectors(t,o,this.schema.fields),t=new Et(t.length,t.nodes,a,null)}else throw new Error("Record batch is compressed but codec not found")}else n=this._loadVectors(t,e,this.schema.fields);let i=A({type:new ct(this.schema.fields),length:t.length,children:n});return new lt(this.schema,i)}_loadDictionaryBatch(t,e){let{id:n,isDelta:i}=t,{dictionaries:s,schema:o}=this,a=s.get(n),l=o.dictionaries.get(n),c;if(t.data.compression!=null){let u=Xi.get(t.data.compression.type);if(u?.decode&&typeof u.decode=="function"){let{decommpressedBody:h,buffers:m}=this._decompressBuffers(t.data,e,u);c=this._loadCompressedVectors(t.data,h,[l]),t=new Jt(new Et(t.data.length,t.data.nodes,m,null),n,i)}else throw new Error("Dictionary batch is compressed but codec not found")}else c=this._loadVectors(t.data,e,[l]);return(a&&i?a.concat(new v(c)):new v(c)).memoize()}_loadVectors(t,e,n){return new Hi(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}_loadCompressedVectors(t,e,n){return new ec(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}_decompressBuffers(t,e,n){let i=[],s=[],o=0;for(let{offset:a,length:l}of t.buffers){if(l===0){i.push(new Uint8Array(0)),s.push(new Tt(o,0));continue}let c=new Ft(e.subarray(a,a+l)),u=q(c.readInt64(0)),h=c.bytes().subarray(8),m=u===-1?h:n.decode(h);i.push(m);let p=(o+7&-8)-o;o+=p,s.push(new Tt(o,m.length)),o+=m.length}return{decommpressedBody:i,buffers:s}}},qi=class extends Oc{constructor(t,e){super(e),this._reader=ia(t)?new wo(this._handle=t):new Yi(this._handle=t)}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(t){return this.closed||(this.autoDestroy=dm(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):dt}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):dt}next(){if(this.closed)return dt;let t,{_reader:e}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;let n=t.header(),i=e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(n,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;let n=t.header(),i=e.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(n,i);this.dictionaries.set(n.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new ei(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}},Qi=class extends Oc{constructor(t,e){super(e),this._reader=new bo(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return b(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(t){return b(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=dm(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(t){return b(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):dt})}return(t){return b(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):dt})}next(){return b(this,void 0,void 0,function*(){if(this.closed)return dt;let t,{_reader:e}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;let n=t.header(),i=yield e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(n,i)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;let n=t.header(),i=yield e.readMessageBody(t.bodyLength),s=this._loadDictionaryBatch(n,i);this.dictionaries.set(n.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new ei(this.schema)}):yield this.return()})}_readNextMessageAndValidate(t){return b(this,void 0,void 0,function*(){return yield this._reader.readMessage(t)})}},Lc=class extends qi{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,e){super(t instanceof Ws?t:new Ws(t),e)}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){var e;if(this.closed)return null;this._footer||this.open();let n=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(t);if(n&&this._handle.seek(n.offset)){let i=this._reader.readMessage(W.RecordBatch);if(i?.isRecordBatch()){let s=i.header(),o=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null}_readDictionaryBatch(t){var e;let n=(e=this._footer)===null||e===void 0?void 0:e.getDictionaryBatch(t);if(n&&this._handle.seek(n.offset)){let i=this._reader.readMessage(W.DictionaryBatch);if(i?.isDictionaryBatch()){let s=i.header(),o=this._reader.readMessageBody(i.bodyLength),a=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,a)}}}_readFooter(){let{_handle:t}=this,e=t.size-rf,n=t.readInt32(e),i=t.readAt(e-n,n);return Hr.decode(i)}_readNextMessageAndValidate(t){var e;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let n=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(this._recordBatchIndex);if(n&&this._handle.seek(n.offset))return this._reader.readMessage(t)}return null}},lf=class extends Qi{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,...e){let n=typeof e[0]!="number"?e.shift():void 0,i=e[0]instanceof Map?e.shift():void 0;super(t instanceof hn?t:new hn(t,n),i)}isFile(){return!0}isAsync(){return!0}open(t){let e=Object.create(null,{open:{get:()=>super.open}});return b(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let n of this._footer.dictionaryBatches())n&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield e.open.call(this,t)})}readRecordBatch(t){return b(this,void 0,void 0,function*(){var e;if(this.closed)return null;this._footer||(yield this.open());let n=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(t);if(n&&(yield this._handle.seek(n.offset))){let i=yield this._reader.readMessage(W.RecordBatch);if(i?.isRecordBatch()){let s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null})}_readDictionaryBatch(t){return b(this,void 0,void 0,function*(){var e;let n=(e=this._footer)===null||e===void 0?void 0:e.getDictionaryBatch(t);if(n&&(yield this._handle.seek(n.offset))){let i=yield this._reader.readMessage(W.DictionaryBatch);if(i?.isDictionaryBatch()){let s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength),a=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,a)}}})}_readFooter(){return b(this,void 0,void 0,function*(){let{_handle:t}=this;t._pending&&(yield t._pending);let e=t.size-rf,n=yield t.readInt32(e),i=yield t.readAt(e-n,n);return Hr.decode(i)})}_readNextMessageAndValidate(t){return b(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let e=this._footer.getRecordBatch(this._recordBatchIndex);if(e&&(yield this._handle.seek(e.offset)))return yield this._reader.readMessage(t)}return null})}},uf=class extends qi{constructor(t,e){super(t,e)}_loadVectors(t,e,n){return new tc(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}}});function qe(r){let t=r.byteLength+7&-8;return this.buffers.push(r),this.bufferRegions.push(new Tt(this._byteLength,t)),this._byteLength+=t,this}function Zb(r){var t;let{type:e,length:n,typeIds:i,valueOffsets:s}=r;if(qe.call(this,i),e.mode===at.Sparse)return df.call(this,r);if(e.mode===at.Dense){if(r.offset<=0)return qe.call(this,s),df.call(this,r);{let o=new Int32Array(n),a=Object.create(null),l=Object.create(null);for(let c,u,h=-1;++h<n;)(c=i[h])!==void 0&&((u=a[c])===void 0&&(u=a[c]=s[h]),o[h]=s[h]-u,l[c]=((t=l[c])!==null&&t!==void 0?t:0)+1);qe.call(this,o),this.visitMany(r.children.map((c,u)=>{let h=e.typeIds[u],m=a[h],p=l[h];return c.slice(m,Math.min(n,p))}))}}return this}function Wb(r){let t;return r.nullCount>=r.length?qe.call(this,new Uint8Array(0)):(t=r.values)instanceof Uint8Array?qe.call(this,Vn(r.offset,r.length,t)):qe.call(this,zn(r.values))}function Jr(r){return qe.call(this,r.values.subarray(0,r.length*r.stride))}function Fc(r){let{length:t,values:e,valueOffsets:n}=r,i=q(n[0]),s=q(n[t]),o=Math.min(s-i,e.byteLength-i);return qe.call(this,fa(-i,t+1,n)),qe.call(this,e.subarray(i,i+o)),this}function hf(r){let{length:t,valueOffsets:e}=r;if(e){let{[0]:n,[t]:i}=e;return qe.call(this,fa(-n,t+1,e)),this.visit(r.children[0].slice(n,i-n))}return this.visit(r.children[0])}function df(r){return this.visitMany(r.type.children.map((t,e)=>r.children[e]).filter(Boolean))[0]}var pt,hm=d(()=>{Ae();Ye();Nt();Gi();kt();Ri();Wn();_t();Ur();pt=class extends B{static assemble(...t){let e=i=>i.flatMap(s=>Array.isArray(s)?e(s):s instanceof lt?s.data.children:s.data),n=new pt;return n.visitMany(e(t)),n}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(t){if(t instanceof v)return this.visitMany(t.data),this;let{type:e}=t;if(!_.isDictionary(e)){let{length:n}=t;if(n>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(_.isUnion(e))this.nodes.push(new Me(n,0));else{let{nullCount:i}=t;_.isNull(e)||qe.call(this,i<=0?new Uint8Array(0):Vn(t.offset,n,t.nullBitmap)),this.nodes.push(new Me(n,i))}}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};pt.prototype.visitBool=Wb;pt.prototype.visitInt=Jr;pt.prototype.visitFloat=Jr;pt.prototype.visitUtf8=Fc;pt.prototype.visitLargeUtf8=Fc;pt.prototype.visitBinary=Fc;pt.prototype.visitLargeBinary=Fc;pt.prototype.visitFixedSizeBinary=Jr;pt.prototype.visitDate=Jr;pt.prototype.visitTimestamp=Jr;pt.prototype.visitTime=Jr;pt.prototype.visitDecimal=Jr;pt.prototype.visitList=hf;pt.prototype.visitStruct=df;pt.prototype.visitUnion=Zb;pt.prototype.visitInterval=Jr;pt.prototype.visitDuration=Jr;pt.prototype.visitFixedSizeList=hf;pt.prototype.visitMap=hf});function pf(r,t){let e=t;t instanceof St&&(e=t.batches,r.reset(void 0,t.schema));for(let n of e)r.write(n);return r.finish()}function mf(r,t){return b(this,void 0,void 0,function*(){var e,n,i,s,o,a,l;try{for(e=!0,n=Ve(t);i=yield n.next(),s=i.done,!s;e=!0){l=i.value,e=!1;let c=l;r.write(c)}}catch(c){o={error:c}}finally{try{!e&&!s&&(a=n.return)&&(yield a.call(n))}finally{if(o)throw o.error}}return r.finish()})}var ii,si,oi,pm=d(()=>{ge();Bc();nf();Ae();Wn();Wn();Ru();Nt();Ic();Kn();hm();kt();Gi();Zs();In();Ns();cf();K();ii=class extends Yn{static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}constructor(t){if(super(),this._position=0,this._started=!1,this._compression=null,this._sink=new Br,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,Xt(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1,compressionType:null}),this._autoDestroy=typeof t.autoDestroy=="boolean"?t.autoDestroy:!0,this._writeLegacyIpcFormat=typeof t.writeLegacyIpcFormat=="boolean"?t.writeLegacyIpcFormat:!1,t.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(qt).includes(t.compressionType))this._compression=new Gn(t.compressionType);else{let e=Object.values(qt).filter(n=>typeof n=="string");throw new Error(`Unsupported compressionType: ${t.compressionType} Available types: ${e.join(", ")}`)}}else this._compression=null}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return ze(t)?t.then(e=>this.writeAll(e)):Te(t)?mf(this,t):pf(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,e=null){return t===this._sink||t instanceof Br?this._sink=t:(this._sink=new Br,t&&Cd(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&Ud(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!e||!ti(e,this._schema))&&(e==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}write(t){let e=null;if(this._sink){if(t==null)return this.finish()&&void 0;if(t instanceof St&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof lt&&!(e=t.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(e&&!ti(e,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof lt?t instanceof ei||this._writeRecordBatch(t):t instanceof St?this.writeAll(t.batches):je(t)&&this.writeAll(t)}_writeMessage(t,e=8){let n=e-1,i=Ot.encode(t),s=i.byteLength,o=this._writeLegacyIpcFormat?4:8,a=s+o+n&~n,l=a-s-o;return t.headerType===W.RecordBatch?this._recordBatchBlocks.push(new Xe(a,t.bodyLength,this._position)):t.headerType===W.DictionaryBatch&&this._dictionaryBlocks.push(new Xe(a,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-o)),s>0&&this._write(i),this._writePadding(l)}_write(t){if(this._started){let e=F(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}_writeSchema(t){return this._writeMessage(Ot.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Ki)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){let{byteLength:e,nodes:n,bufferRegions:i,buffers:s}=this._assembleRecordBatch(t),o=new Et(t.numRows,n,i,this._compression),a=Ot.from(o,e);return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(s)}_assembleRecordBatch(t){let{byteLength:e,nodes:n,bufferRegions:i,buffers:s}=pt.assemble(t);return this._compression!=null&&({byteLength:e,bufferRegions:i,buffers:s}=this._compressBodyBuffers(s)),{byteLength:e,nodes:n,bufferRegions:i,buffers:s}}_compressBodyBuffers(t){let e=Xi.get(this._compression.type);if(!e?.encode||typeof e.encode!="function")throw new Error(`Codec for compression type "${qt[this._compression.type]}" has invalid encode method`);let n=0,i=[],s=[];for(let a of t){let l=F(a);if(l.length===0){i.push(new Uint8Array(0),new Uint8Array(0)),s.push(new Tt(n,0));continue}let c=e.encode(l),u=c.length<l.length,h=u?c:l,m=u?h.length:-1,p=new Ft(new Uint8Array(8));p.writeInt64(0,BigInt(m)),i.push(p.bytes(),new Uint8Array(h));let y=(n+7&-8)-n;n+=y;let g=8+h.length;s.push(new Tt(n,g)),n+=g}let o=(n+7&-8)-n;return n+=o,{byteLength:n,bufferRegions:s,buffers:i}}_writeDictionaryBatch(t,e,n=!1){let{byteLength:i,nodes:s,bufferRegions:o,buffers:a}=this._assembleRecordBatch(new v([t])),l=new Et(t.length,s,o,this._compression),c=new Jt(l,e,n),u=Ot.from(c,i);return this._writeMessage(u)._writeBodyBuffers(a)}_writeBodyBuffers(t){let e=this._compression!=null?2:1,n=new Array(e);for(let i=0;i<t.length;i+=e){let s=0;for(let a=-1;++a<e;)n[a]=t[i+a],s+=n[a].byteLength;if(s===0)continue;for(let a of n)this._write(a);let o=(s+7&-8)-s;o>0&&this._writePadding(o)}return this}_writeDictionaries(t){var e,n;for(let[i,s]of t.dictionaries){let o=(e=s?.data)!==null&&e!==void 0?e:[],a=this._seenDictionaries.get(i),l=(n=this._dictionaryDeltaOffsets.get(i))!==null&&n!==void 0?n:0;if(!a||a.data[0]!==o[0])for(let[c,u]of o.entries())this._writeDictionaryBatch(u,i,c>0);else if(l<o.length)for(let c of o.slice(l))this._writeDictionaryBatch(c,i,!0);this._seenDictionaries.set(i,s),this._dictionaryDeltaOffsets.set(i,o.length)}return this}},si=class extends ii{static writeAll(t,e){let n=new si(e);return ze(t)?t.then(i=>n.writeAll(i)):Te(t)?mf(n,t):pf(n,t)}},oi=class extends ii{static writeAll(t,e){let n=new oi(e);return ze(t)?t.then(i=>n.writeAll(i)):Te(t)?mf(n,t):pf(n,t)}constructor(t){super(t),this._autoDestroy=!0,this._writeLegacyIpcFormat=!1}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(t,e,n=!1){if(!n&&this._seenDictionaries.has(e))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(t,e,n)}_writeFooter(t){let e=Hr.encode(new Hr(t,it.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic()}}});function mm(r,t){if(Te(r))return Yb(r,t);if(je(r))return Gb(r,t);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function Gb(r,t){let e=null,n=t?.type==="bytes"||!1,i=t?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(o){s(o,e||(e=r[Symbol.iterator]()))},pull(o){e?s(o,e):o.close()},cancel(){e?.return&&e.return(),e=null}}),Object.assign({highWaterMark:n?i:void 0},t));function s(o,a){let l,c=null,u=o.desiredSize||null;for(;!(c=a.next(n?u:null)).done;)if(ArrayBuffer.isView(c.value)&&(l=F(c.value))&&(u!=null&&n&&(u=u-l.byteLength+1),c.value=l),o.enqueue(c.value),u!=null&&--u<=0)return;o.close()}}function Yb(r,t){let e=null,n=t?.type==="bytes"||!1,i=t?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(o){return b(this,void 0,void 0,function*(){yield s(o,e||(e=r[Symbol.asyncIterator]()))})},pull(o){return b(this,void 0,void 0,function*(){e?yield s(o,e):o.close()})},cancel(){return b(this,void 0,void 0,function*(){e?.return&&(yield e.return()),e=null})}}),Object.assign({highWaterMark:n?i:void 0},t));function s(o,a){return b(this,void 0,void 0,function*(){let l,c=null,u=o.desiredSize||null;for(;!(c=yield a.next(n?u:null)).done;)if(ArrayBuffer.isView(c.value)&&(l=F(c.value))&&(u!=null&&n&&(u=u-l.byteLength+1),c.value=l),o.enqueue(c.value),u!=null&&--u<=0)return;o.close()})}}var ym=d(()=>{ge();kt();In()});function bm(r){return new yf(r)}var yf,_m,gm,wm=d(()=>{ge();Ku();yf=class{constructor(t){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:e,["writableStrategy"]:n,["queueingStrategy"]:i="count"}=t,s=Md(t,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Xn(s),this._getSize=i!=="bytes"?_m:gm;let{["highWaterMark"]:o=i==="bytes"?Math.pow(2,14):1e3}=Object.assign({},e),{["highWaterMark"]:a=i==="bytes"?Math.pow(2,14):1e3}=Object.assign({},n);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:l=>{this._maybeFlush(this._builder,this._controller=l)},start:l=>{this._maybeFlush(this._builder,this._controller=l)}},{highWaterMark:o,size:i!=="bytes"?_m:gm}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:l=>this._writeValueAndReturnChunkSize(l)})}_writeValueAndReturnChunkSize(t){let e=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-e}_maybeFlush(t,e){e!=null&&(this._bufferedSize>=e.desiredSize&&++this._numChunks&&this._enqueue(e,t.toVector()),t.finished&&((t.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(e,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(e,null)))}_enqueue(t,e){this._bufferedSize=0,this._controller=null,e==null?t.close():t.enqueue(e)}},_m=r=>{var t;return(t=r?.length)!==null&&t!==void 0?t:0},gm=r=>{var t;return(t=r?.byteLength)!==null&&t!==void 0?t:0}});function Nc(r,t){let e=new Br,n=null,i=new ReadableStream({cancel(){return b(this,void 0,void 0,function*(){yield e.close()})},start(a){return b(this,void 0,void 0,function*(){yield o(a,n||(n=yield s()))})},pull(a){return b(this,void 0,void 0,function*(){n?yield o(a,n):a.close()})}});return{writable:new WritableStream(e,Object.assign({highWaterMark:Math.pow(2,14)},r)),readable:i};function s(){return b(this,void 0,void 0,function*(){return yield(yield te.from(e)).open(t)})}function o(a,l){return b(this,void 0,void 0,function*(){let c=a.desiredSize,u=null;for(;!(u=yield l.next()).done;)if(a.enqueue(u.value),c!=null&&--c<=0)return;a.close()})}}var vm=d(()=>{ge();Kn();ff()});function Mc(r,t){let e=new this(r),n=new he(e),i=new ReadableStream({cancel(){return b(this,void 0,void 0,function*(){yield n.cancel()})},pull(o){return b(this,void 0,void 0,function*(){yield s(o)})},start(o){return b(this,void 0,void 0,function*(){yield s(o)})}},Object.assign({highWaterMark:Math.pow(2,14)},t));return{writable:new WritableStream(e,r),readable:i};function s(o){return b(this,void 0,void 0,function*(){let a=null,l=o.desiredSize;for(;a=yield n.read(l||null);)if(o.enqueue(a),l!=null&&(l-=a.byteLength)<=0)return;o.close()})}}var Sm=d(()=>{ge();Kn()});var yw,xm=d(()=>{Vr();_t();Bc();Ae();Be();fu();ju();Ri();Ps();kt();Mi();Rs();Wu();Ic();yw=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uu),zu),Tu),du),Tl),Du),ou),Zu),{compareSchemas:ti,compareFields:Xp,compareTypes:qp})});var Im=d(()=>{Os();gt();ff();pm();ym();wm();vm();Sm();xm();zt.toDOMStream=mm;ht.throughDOM=bm;te.throughDOM=Nc;ni.throughDOM=Nc;Kr.throughDOM=Nc;ii.throughDOM=Mc;oi.throughDOM=Mc;si.throughDOM=Mc});function Rc(r){return(r/255-.5)/_f}function kc(r){return Math.min(Math.max(r/255,0),1)}function Xr(r,t,e,n){let i=Math.hypot(r,t,e,n);return!Number.isFinite(i)||i<=Number.EPSILON?[1,0,0,0]:[r/i,t/i,e/i,n/i]}function vo(r){return(r-128)/128}function So(r){let t=r&32768?-1:1,e=r>>10&31,n=r&1023;return e===0?t*Math.pow(2,-14)*(n/1024):e===31?n?Number.NaN:t*Number.POSITIVE_INFINITY:t*Math.pow(2,e-15)*(1+n/1024)}var _f,ts=d(()=>{"use strict";_f=.28209479177387814});function Er(r){let t={},e=[],n=[];Bm(t,e,n,"POSITION",bw(r.positions,3),{type:"fixed-size-list",listSize:3,children:[{name:"value",type:"float32"}]});let i=ww(r);es(t,e,n,"f_dc_0",i[0],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"0","loaders_gl.gaussian_splats.encoding":"coefficient"}),es(t,e,n,"f_dc_1",i[1],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"1","loaders_gl.gaussian_splats.encoding":"coefficient"}),es(t,e,n,"f_dc_2",i[2],{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_dc","loaders_gl.gaussian_splats.component":"2","loaders_gl.gaussian_splats.encoding":"coefficient"}),es(t,e,n,"opacity",r.opacities,{"loaders_gl.gaussian_splats.semantic":"opacity","loaders_gl.gaussian_splats.encoding":"linear"}),Am(t,e,n,"scale",r.scales,3,{"loaders_gl.gaussian_splats.semantic":"scale","loaders_gl.gaussian_splats.encoding":"linear"}),Am(t,e,n,"rot",r.rotations,4,{"loaders_gl.gaussian_splats.semantic":"rotation","loaders_gl.gaussian_splats.encoding":"quaternion"}),r.sphericalHarmonics&&r.sphericalHarmonicsComponentCount&&gw(t,e,n,r.sphericalHarmonics,r.sphericalHarmonicsComponentCount);let s=new Map([["loaders_gl.semantic_type","gaussian-splats"],["loaders_gl.gaussian_splats.version","1"],["loaders_gl.gaussian_splats.source_format",r.format],["topology","point-list"],["mode","0"]]),o=new $(e,s);return{shape:"arrow-table",schema:{fields:n,metadata:Object.fromEntries(s)},data:new St(o,t),topology:"point-list",loaderData:r.loaderData}}function Am(r,t,e,n,i,s,o){for(let a=0;a<s;a++){let l=new Float32Array(i.length/s);for(let c=0;c<l.length;c++)l[c]=i[c*s+a];es(r,t,e,`${n}_${a}`,l,{...o,"loaders_gl.gaussian_splats.component":String(a)})}}function gw(r,t,e,n,i){for(let s=0;s<i;s++){let o=new Float32Array(n.length/i);for(let a=0;a<o.length;a++)o[a]=n[a*i+s];es(r,t,e,`f_rest_${s}`,o,{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_rest","loaders_gl.gaussian_splats.component":String(s),"loaders_gl.gaussian_splats.encoding":"coefficient"})}}function es(r,t,e,n,i,s){Bm(r,t,e,n,$n(i),"float32",s)}function Bm(r,t,e,n,i,s,o={}){r[n]=i,t.push(new U(n,i.type,!1,new Map(Object.entries(o)))),e.push({name:n,type:s,nullable:!1,metadata:o})}function bw(r,t){let n=$n(r).data[0],i=new ue(t,new U("value",n.type,!1)),s=new Z(i,0,r.length/t,0,{},[n]);return new v([s])}function ww(r){let t=r.splatCount,e=new Float32Array(t),n=new Float32Array(t),i=new Float32Array(t);for(let s=0;s<t;s++)r.sphericalHarmonicDcs?(e[s]=r.sphericalHarmonicDcs[s*3+0],n[s]=r.sphericalHarmonicDcs[s*3+1],i[s]=r.sphericalHarmonicDcs[s*3+2]):(e[s]=Rc(r.colors[s*3+0]),n[s]=Rc(r.colors[s*3+1]),i[s]=Rc(r.colors[s*3+2]));return[e,n,i]}var rs=d(()=>{"use strict";Im();ts()});function gf(r){return Er(vw(r))}function vw(r){if(r.byteLength%xo!==0)throw new Error(`SPLATLoader: byte length must be a multiple of ${xo}.`);let t=r.byteLength/xo,e=new DataView(r),n=new Float32Array(t*3),i=new Float32Array(t*3),s=new Float32Array(t*4),o=new Uint8Array(t*3),a=new Float32Array(t);for(let l=0;l<t;l++){let c=l*xo,u=l*3,h=l*4;n[u+0]=e.getFloat32(c+0,!0),n[u+1]=e.getFloat32(c+4,!0),n[u+2]=e.getFloat32(c+8,!0),i[u+0]=e.getFloat32(c+12,!0),i[u+1]=e.getFloat32(c+16,!0),i[u+2]=e.getFloat32(c+20,!0),o[u+0]=e.getUint8(c+24),o[u+1]=e.getUint8(c+25),o[u+2]=e.getUint8(c+26),a[l]=kc(e.getUint8(c+27));let[m,p,y,g]=Xr(vo(e.getUint8(c+28)),vo(e.getUint8(c+29)),vo(e.getUint8(c+30)),vo(e.getUint8(c+31)));s[h+0]=m,s[h+1]=p,s[h+2]=y,s[h+3]=g}return{format:"splat",splatCount:t,positions:n,scales:i,rotations:s,colors:o,opacities:a,loaderData:{format:"splat",splatCount:t,rowByteLength:xo}}}var xo,Dm=d(()=>{"use strict";rs();ts();xo=32});var Tm={};ye(Tm,{SPLATLoaderWithParser:()=>xw});var qL,Sw,xw,Em=d(()=>{"use strict";Dm();bf();({preload:qL,...Sw}=Cc),xw={...Sw,parse:async r=>gf(r),parseSync:r=>gf(r)}});async function Aw(){let{SPLATLoaderWithParser:r}=await Promise.resolve().then(()=>(Em(),Tm));return r}var Iw,Cc,bf=d(()=>{"use strict";xn();Iw="5.0.0-alpha.1";Cc={dataType:null,batchType:null,...ea,version:Iw,options:{splats:{shape:"arrow-table"}},preload:Aw}});function Sf(r){return Er(Tw(r))}function Tw(r){if(r.byteLength<ns)throw new Error(`KSPLATLoader: file must contain a ${ns}-byte header.`);let t=Ow(r);Lw(t);let e=Fw(r,t),n=Uw(t,e),i=Math.max(0,...e.slice(0,Pc(t)).map(m=>xf(m.sphericalHarmonicsDegree))),s=new Float32Array(n*3),o=new Float32Array(n*3),a=new Float32Array(n*4),l=new Uint8Array(n*3),c=new Float32Array(n),u=i?new Float32Array(n*i):void 0,h=0;for(let m of e.slice(0,Pc(t))){Pw(r,m);for(let p=0;p<m.splatCount&&h<n;p++)Ew(r,t,m,p,h,s,o,a,l,c,u,i),h++}return{format:"ksplat",splatCount:n,positions:s,scales:o,rotations:a,colors:l,opacities:c,sphericalHarmonics:u,sphericalHarmonicsComponentCount:i,loaderData:{format:"ksplat",...t,sections:e.slice(0,Pc(t)).map(m=>({splatCount:m.splatCount,maxSplatCount:m.maxSplatCount,sphericalHarmonicsDegree:m.sphericalHarmonicsDegree}))}}}function Ew(r,t,e,n,i,s,o,a,l,c,u,h){let m=vf[t.compressionLevel],p=e.dataBase+e.bytesPerSplat*n,y=i*3,g=i*4,N=Mw(r,e,n);s[y+0]=wf(r,p,0,t,e,N[0]),s[y+1]=wf(r,p,1,t,e,N[1]),s[y+2]=wf(r,p,2,t,e,N[2]),o[y+0]=mn(r,p+m.scaleOffsetBytes,0,t.compressionLevel),o[y+1]=mn(r,p+m.scaleOffsetBytes,1,t.compressionLevel),o[y+2]=mn(r,p+m.scaleOffsetBytes,2,t.compressionLevel);let[S,G,tt,V]=Xr(mn(r,p+m.scaleOffsetBytes,3,t.compressionLevel),mn(r,p+m.scaleOffsetBytes,4,t.compressionLevel),mn(r,p+m.scaleOffsetBytes,5,t.compressionLevel),mn(r,p+m.scaleOffsetBytes,6,t.compressionLevel));a[g+0]=S,a[g+1]=G,a[g+2]=tt,a[g+3]=V;let w=p+m.colorOffsetBytes,Y=new Uint8Array(r,w,4);l[y+0]=Y[0],l[y+1]=Y[1],l[y+2]=Y[2],c[i]=kc(Y[3]),u&&h&&kw(r,p+m.sphericalHarmonicsOffsetBytes,t,e,i,u,h)}function Ow(r){let t=new DataView(r,0,ns),e=t.getUint16(20,!0);if(e!==0&&e!==1&&e!==2)throw new Error(`KSPLATLoader: unsupported compression level ${e}.`);return{versionMajor:t.getUint8(0),versionMinor:t.getUint8(1),maxSectionCount:t.getUint32(4,!0),sectionCount:t.getUint32(8,!0),maxSplatCount:t.getUint32(12,!0),splatCount:t.getUint32(16,!0),compressionLevel:e,minSphericalHarmonicsCoeff:t.getFloat32(36,!0)||-Lm,maxSphericalHarmonicsCoeff:t.getFloat32(40,!0)||Lm}}function Lw(r){if(!(r.versionMajor===Om?r.versionMinor>=Bw:r.versionMajor>Om))throw new Error(`KSPLATLoader: version ${r.versionMajor}.${r.versionMinor} is not supported.`)}function Fw(r,t){if(r.byteLength<ns+t.maxSectionCount*Uc)throw new Error("KSPLATLoader: file does not contain all section headers.");let e=[],n=ns+t.maxSectionCount*Uc,i=0;for(let s=0;s<t.maxSectionCount;s++){let o=ns+s*Uc,a=new DataView(r,o,Uc),l=a.getUint32(0,!0),c=a.getUint32(4,!0),u=a.getUint32(8,!0),h=a.getUint32(12,!0),m=a.getFloat32(16,!0),p=a.getUint16(20,!0),y=a.getUint32(24,!0)||vf[t.compressionLevel].scaleRange,g=a.getUint32(32,!0),N=a.getUint32(36,!0),S=a.getUint16(40,!0),G=Cw(t.compressionLevel,S),tt=N*4,V=p*h+tt,w=G*c+V;e.push({bytesPerSplat:G,splatCountOffset:i,splatCount:l||c,maxSplatCount:c,bucketSize:u,bucketCount:h,bucketStorageSizeBytes:p,bucketsStorageSizeBytes:V,compressionScaleRange:y,compressionScaleFactor:m/2/y,base:n,bucketsBase:n+tt,dataBase:n+V,fullBucketCount:g,partiallyFilledBucketCount:N,sphericalHarmonicsDegree:S}),n+=w,i+=c}return e}function wf(r,t,e,n,i,s){let o=Nw(r,t,e,n.compressionLevel);return n.compressionLevel>=1?(o-i.compressionScaleRange)*i.compressionScaleFactor+s:o}function Nw(r,t,e,n){let i=new DataView(r);return n===0?i.getFloat32(t+e*4,!0):i.getUint16(t+e*2,!0)}function Mw(r,t,e){if(!t.bucketCount)return[0,0,0];let n=Rw(r,t,e),i=t.bucketsBase+n*t.bucketStorageSizeBytes,s=new DataView(r,i,12);return[s.getFloat32(0,!0),s.getFloat32(4,!0),s.getFloat32(8,!0)]}function Rw(r,t,e){let n=t.fullBucketCount*t.bucketSize;if(e<n)return Math.floor(e/t.bucketSize);let i=n,s=t.fullBucketCount;for(let o=0;o<t.partiallyFilledBucketCount;o++){let a=new DataView(r,t.base+o*4,4).getUint32(0,!0);if(e<i+a)return s;i+=a,s++}return Math.max(s-1,0)}function kw(r,t,e,n,i,s,o){let a=xf(n.sphericalHarmonicsDegree),l=i*o;for(let c=0;c<a;c++)s[l+c]=mn(r,t,c,e.compressionLevel,!0,e.minSphericalHarmonicsCoeff,e.maxSphericalHarmonicsCoeff)}function mn(r,t,e,n,i=!1,s=0,o=0){let a=new DataView(r);return n===0?a.getFloat32(t+e*4,!0):n===1||!i?So(a.getUint16(t+e*2,!0)):a.getUint8(t+e)/255*(o-s)+s}function Cw(r,t){let e=vf[r];return e.bytesPerCenter+e.bytesPerScale+e.bytesPerRotation+e.bytesPerColor+e.bytesPerSphericalHarmonicsComponent*xf(t)}function xf(r){switch(r){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 ${r}.`)}}function Pc(r){return r.sectionCount||r.maxSectionCount}function Uw(r,t){let e=t.slice(0,Pc(r)).reduce((n,i)=>n+i.splatCount,0);return r.splatCount?Math.min(r.splatCount,e||r.splatCount):e}function Pw(r,t){if(t.dataBase+t.bytesPerSplat*t.splatCount>r.byteLength)throw new Error("KSPLATLoader: section data extends beyond the file length.")}var Om,Bw,ns,Uc,Dw,Lm,vf,Fm=d(()=>{"use strict";rs();ts();Om=0,Bw=1,ns=4096,Uc=1024,Dw=3,Lm=Dw/2,vf={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}}});var Nm={};ye(Nm,{KSPLATLoaderWithParser:()=>zw});var oF,Vw,zw,Mm=d(()=>{"use strict";Fm();If();({preload:oF,...Vw}=Vc),zw={...Vw,parse:async r=>Sf(r),parseSync:r=>Sf(r)}});async function Hw(){let{KSPLATLoaderWithParser:r}=await Promise.resolve().then(()=>(Mm(),Nm));return r}var jw,Vc,If=d(()=>{"use strict";xn();jw="5.0.0-alpha.1";Vc={dataType:null,batchType:null,...ra,version:jw,options:{splats:{shape:"arrow-table"}},preload:Hw}});var Or,$w,Zw,Ww,Gw,is,Rm,Yw,km=d(()=>{"use strict";Or={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document},$w=Or.self||Or.window||Or.global||{},Zw=Or.window||Or.self||Or.global||{},Ww=Or.global||Or.self||Or.window||{},Gw=Or.document||{},is=Boolean(typeof process!="object"||String(process)!=="[object process]"||process.browser),Rm=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version),Yw=Rm&&parseFloat(Rm[1])||0});var zc,Kw,jc,Jw,uF,Cm=d(()=>{zc=globalThis,Kw=globalThis.document||{},jc=globalThis.process||{},Jw=globalThis.console,uF=globalThis.navigator||{}});function Um(r){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&Boolean(process.versions?.electron))return!0;let t=typeof navigator<"u"&&navigator.userAgent,e=r||t;return Boolean(e&&e.indexOf("Electron")>=0)}var Pm=d(()=>{});function ai(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||Um()}var Vm=d(()=>{Pm()});var Af,Hc=d(()=>{Cm();Vm();Af="4.1.1"});function ss(r,t){if(!r)throw new Error(t||"Assertion failed")}var Bf=d(()=>{});function Df(r){if(!r)return 0;let t;switch(typeof r){case"number":t=r;break;case"object":t=r.logLevel||r.priority||0;break;default:return 0}return ss(Number.isFinite(t)&&t>=0),t}function zm(r){let{logLevel:t,message:e}=r;r.logLevel=Df(t);let n=r.args?Array.from(r.args):[];for(;n.length&&n.shift()!==e;);switch(typeof t){case"string":case"function":e!==void 0&&n.unshift(e),r.message=t;break;case"object":Object.assign(r,t);break;default:}typeof r.message=="function"&&(r.message=r.message());let i=typeof r.message;return ss(i==="string"||i==="object"),Object.assign(r,{args:n},r.opts)}var jm=d(()=>{Bf()});var ci,$c,Hm=d(()=>{jm();ci=()=>{},$c=class{constructor({level:t=0}={}){this.userData={},this._onceCache=new Set,this._level=t}set level(t){this.setLevel(t)}get level(){return this.getLevel()}setLevel(t){return this._level=t,this}getLevel(){return this._level}warn(t,...e){return this._log("warn",0,t,e,{once:!0})}error(t,...e){return this._log("error",0,t,e)}log(t,e,...n){return this._log("log",t,e,n)}info(t,e,...n){return this._log("info",t,e,n)}once(t,e,...n){return this._log("once",t,e,n,{once:!0})}_log(t,e,n,i,s={}){let o=zm({logLevel:e,message:n,args:this._buildArgs(e,n,i),opts:s});return this._createLogFunction(t,o,s)}_buildArgs(t,e,n){return[t,e,...n]}_createLogFunction(t,e,n){if(!this._shouldLog(e.logLevel))return ci;let i=this._getOnceTag(n.tag??e.tag??e.message);if((n.once||e.once)&&i!==void 0){if(this._onceCache.has(i))return ci;this._onceCache.add(i)}return this._emit(t,e)}_shouldLog(t){return this.getLevel()>=Df(t)}_getOnceTag(t){if(t!==void 0)try{return typeof t=="string"?t:String(t)}catch{return}}}});function qw(r){try{let t=window[r],e="__storage_test__";return t.setItem(e,e),t.removeItem(e),t}catch{return null}}var Zc,$m=d(()=>{Zc=class{constructor(t,e,n="sessionStorage"){this.storage=qw(n),this.id=t,this.config=e,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){if(Object.assign(this.config,t),this.storage){let e=JSON.stringify(this.config);this.storage.setItem(this.id,e)}}_loadConfiguration(){let t={};if(this.storage){let e=this.storage.getItem(this.id);t=e?JSON.parse(e):{}}return Object.assign(this.config,t),this}}});function Zm(r){let t;return r<10?t=`${r.toFixed(2)}ms`:r<100?t=`${r.toFixed(1)}ms`:r<1e3?t=`${r.toFixed(0)}ms`:t=`${(r/1e3).toFixed(2)}s`,t}function Wm(r,t=8){let e=Math.max(t-r.length,0);return`${" ".repeat(e)}${r}`}var Gm=d(()=>{});function Ym(r){return typeof r!="string"?r:(r=r.toUpperCase(),Wc[r]||Wc.WHITE)}function Km(r,t,e){return!ai&&typeof r=="string"&&(t&&(r=`\x1B[${Ym(t)}m${r}\x1B[39m`),e&&(r=`\x1B[${Ym(e)+Qw}m${r}\x1B[49m`)),r}var Wc,Qw,Jm=d(()=>{Hc();(function(r){r[r.BLACK=30]="BLACK",r[r.RED=31]="RED",r[r.GREEN=32]="GREEN",r[r.YELLOW=33]="YELLOW",r[r.BLUE=34]="BLUE",r[r.MAGENTA=35]="MAGENTA",r[r.CYAN=36]="CYAN",r[r.WHITE=37]="WHITE",r[r.BRIGHT_BLACK=90]="BRIGHT_BLACK",r[r.BRIGHT_RED=91]="BRIGHT_RED",r[r.BRIGHT_GREEN=92]="BRIGHT_GREEN",r[r.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",r[r.BRIGHT_BLUE=94]="BRIGHT_BLUE",r[r.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",r[r.BRIGHT_CYAN=96]="BRIGHT_CYAN",r[r.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Wc||(Wc={}));Qw=10});function Xm(r,t=["constructor"]){let e=Object.getPrototypeOf(r),n=Object.getOwnPropertyNames(e),i=r;for(let s of n){let o=i[s];typeof o=="function"&&(t.find(a=>s===a)||(i[s]=o.bind(r)))}}var qm=d(()=>{});function os(){let r;if(ai()&&zc.performance)r=zc?.performance?.now?.();else if("hrtime"in jc){let t=jc?.hrtime?.();r=t[0]*1e3+t[1]/1e6}else r=Date.now();return r}var Qm=d(()=>{Hc()});function tv(r,t,e){if(typeof t=="string"){let n=e.time?Wm(Zm(e.total)):"";t=e.time?`${r}: ${n} ${t}`:`${r}: ${t}`,t=Km(t,e.color,e.background)}return t}function ev(r){for(let t in r)for(let e in r[t])return e||"untitled";return"empty"}var as,Tf,qr,Ef=d(()=>{Hc();Hm();$m();Gm();Jm();qm();Bf();Qm();as={debug:ai()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},Tf={enabled:!0,level:0},qr=class extends $c{constructor({id:t}={id:""}){super({level:0}),this.VERSION=Af,this._startTs=os(),this._deltaTs=os(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=t,this.userData={},this._storage=new Zc(`__probe-${this.id}__`,{[this.id]:Tf}),this.timeStamp(`${this.id} started`),Xm(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((os()-this._startTs).toPrecision(10))}getDelta(){return Number((os()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(t=!0){return this._updateConfiguration({enabled:t}),this}setLevel(t){return this._updateConfiguration({level:t}),this}get(t){return this._getConfiguration()[t]}set(t,e){this._updateConfiguration({[t]:e})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,e){if(!t)throw new Error(e||"Assertion failed")}warn(t,...e){return this._log("warn",0,t,e,{method:as.warn,once:!0})}error(t,...e){return this._log("error",0,t,e,{method:as.error})}deprecated(t,e){return this.warn(`\`${t}\` is deprecated and will be removed in a later version. Use \`${e}\` instead`)}removed(t,e){return this.error(`\`${t}\` has been removed. Use \`${e}\` instead`)}probe(t,e,...n){return this._log("log",t,e,n,{method:as.log,time:!0,once:!0})}log(t,e,...n){return this._log("log",t,e,n,{method:as.debug})}info(t,e,...n){return this._log("info",t,e,n,{method:console.info})}once(t,e,...n){return this._log("once",t,e,n,{method:as.debug||as.info,once:!0})}table(t,e,n){return e?this._log("table",t,e,n&&[n]||[],{method:console.table||ci,tag:ev(e)}):ci}time(t,e){return this._log("time",t,e,[],{method:console.time?console.time:console.info})}timeEnd(t,e){return this._log("time",t,e,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(t,e){return this._log("time",t,e,[],{method:console.timeStamp||ci})}group(t,e,n={collapsed:!1}){let i=(n.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",t,e,[],{method:i})}groupCollapsed(t,e,n={}){return this.group(t,e,Object.assign({},n,{collapsed:!0}))}groupEnd(t){return this._log("groupEnd",t,"",[],{method:console.groupEnd||ci})}withGroup(t,e,n){this.group(t,e)();try{n()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&super._shouldLog(t)}_emit(t,e){let n=e.method;ss(n),e.total=this.getTotal(),e.delta=this.getDelta(),this._deltaTs=os();let i=tv(this.id,e.message,e);return n.bind(console,i,...e.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(Tf),this._storage.config[this.id]}_updateConfiguration(t){let e=this._storage.config[this.id]||{...Tf};this._storage.setConfiguration({[this.id]:{...e,...t}})}};qr.VERSION=Af});var ty=d(()=>{globalThis.probe={}});var VF,ey=d(()=>{Ef();Ef();ty();VF=new qr({id:"@probe.gl/log"})});function nv(){let r=new qr({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=r,globalThis.loaders.version=rv,globalThis.probe||={},globalThis.probe.loaders=r,r}var Of,rv,Gc,Lf=d(()=>{"use strict";ey();Of="5.0.0-alpha.1",rv=Of[0]>="0"&&Of[0]<="9"?`v${Of}`:"";Gc=nv()});var Ff,ry=d(()=>{"use strict";Ff=r=>typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer});function ny(r,t){return iy(r||{},t)}function iy(r,t,e=0){if(e>3)return t;let n={...r};for(let[i,s]of Object.entries(t))s&&typeof s=="object"&&!Array.isArray(s)?n[i]=iy(n[i]||{},t[i],e+1):n[i]=t[i];return n}var sy=d(()=>{"use strict"});function cs(r){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,r)}function Nf(r,t){globalThis.loaders?.modules?.[r]||Gc.warn(`${t}: ${r} library not installed`)()}function Yc(r,t){let e=globalThis.loaders?.modules?.[r];if(!e)throw new Error(`${t}: ${r} library not installed`);return e}function Mf(r){return globalThis.loaders?.modules?.[r]||null}var Rf=d(()=>{"use strict";Lf()});function oy(...r){return iv(r)}function iv(r){let t=r.map(s=>s instanceof ArrayBuffer?new Uint8Array(s):s),e=t.reduce((s,o)=>s+o.byteLength,0),n=new Uint8Array(e),i=0;for(let s of t)n.set(s,i),i+=s.byteLength;return n.buffer}var ay=d(()=>{"use strict"});async function kf(r){let t=[];for await(let e of r)t.push(sv(e));return oy(...t)}function sv(r){if(r instanceof ArrayBuffer)return r;if(ArrayBuffer.isView(r)){let{buffer:t,byteOffset:e,byteLength:n}=r;return cy(t,e,n)}return cy(r)}function cy(r,t=0,e=r.byteLength-t){let n=new Uint8Array(r,t,e),i=new Uint8Array(n.length);return i.set(n),i.buffer}var ly=d(()=>{"use strict";ay()});function fy(r){for(let t in uy)if(r.startsWith(t)){let e=uy[t];r=r.replace(t,e)}return!r.startsWith("http://")&&!r.startsWith("https://")&&(r=`${ov}${r}`),r}var ov,uy,dy=d(()=>{"use strict";ov="",uy={}});function hy(r){return r&&typeof r=="object"&&r.isBuffer}function yn(r){if(hy(r))return r;if(r instanceof ArrayBuffer)return r;if(Ff(r))return Kc(r);if(ArrayBuffer.isView(r)){let t=r.buffer;return r.byteOffset===0&&r.byteLength===r.buffer.byteLength?t:t.slice(r.byteOffset,r.byteOffset+r.byteLength)}if(typeof r=="string"){let t=r;return new TextEncoder().encode(t).buffer}if(r&&typeof r=="object"&&r._toArrayBuffer)return r._toArrayBuffer();throw new Error("toArrayBuffer")}function Cf(r){if(r instanceof ArrayBuffer)return r;if(Ff(r))return Kc(r);let{buffer:t,byteOffset:e,byteLength:n}=r;return t instanceof ArrayBuffer&&e===0&&n===t.byteLength?t:Kc(t,e,n)}function Kc(r,t=0,e=r.byteLength-t){let n=new Uint8Array(r,t,e),i=new Uint8Array(n.length);return i.set(n),i.buffer}var py=d(()=>{"use strict";ry()});function ls(r){return t=>new Promise((e,n)=>r(t,(i,s)=>i?n(i):e(s)))}var my=d(()=>{"use strict"});function cv(r){let t=r?.core?.fetch;if(t&&typeof t=="function")return(n,i)=>t(n,i);let e=r?.fetch;return e&&typeof e!="function"?(n,i)=>fetch(n,lv(e,i)):(n,i)=>fetch(n,i)}function lv(r,t){let e={...r,...t};return(r.headers||t?.headers)&&(e.headers=uv(r.headers,t?.headers)),e}function uv(r,t){let e=new Headers(r);return t&&new Headers(t).forEach((n,i)=>e.set(i,n)),e}function fv(r){let t={...r};r?.core&&(t.core={...r.core});let e=typeof t.baseUri=="string"?t.baseUri:void 0,n=typeof t.baseUrl=="string"?t.baseUrl:void 0;return(e!==void 0||n!==void 0)&&(t.core||={},t.core.baseUrl===void 0&&(t.core.baseUrl=n??e),delete t.baseUri,delete t.baseUrl),t}function dv(r,t){return r instanceof Error?r:typeof r=="string"?new Error(r):new Error(t)}function li(r){return()=>{throw new Error(`CoreAPI.${r} is unavailable. Use @loaders.gl/core.createDataSource().`)}}var av,Uf,us,yy=d(()=>{"use strict";sy();dy();Lf();av={fetchFile:li("fetchFile"),parse:li("parse"),parseFile:li("parseFile"),parseSync:li("parseSync"),parseInBatches:li("parseInBatches"),load:li("load"),loadInBatches:li("loadInBatches")},Uf=class{optionsType;options;data;url;loadOptions;fetch;coreApi;hasCoreApi;_needsRefresh=!0;constructor(t,e,n,i){n?this.options=ny({...n,core:Uf.defaultOptions},e):this.options={...e},this.data=t,this.url=typeof t=="string"?fy(t):"";let s=fv(this.options.core?.loadOptions);this.loadOptions=s;let o=cv(s);this.coreApi=i||av,this.hasCoreApi=Boolean(i),this.fetch=o}setProps(t){this.options=Object.assign(this.options,t),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(t=!0){let e=this._needsRefresh;return t&&(this._needsRefresh=!1),e}reportError(t,e){let n=dv(t,e),i=this.options.core?.onError;return i?i(n,this):Gc.warn(`${this.constructor.name}: ${n.message}`)(),n}},us=Uf;Od(us,"defaultOptions",{core:{type:"auto",attributions:[],loadOptions:{},loaders:[],onError:void 0}})});var Io=d(()=>{"use strict";km();Rf();Rf();ly();py();my();yy()});var fs,Pf=d(()=>{"use strict";Io();fs=class{constructor(t){this.compressBatches=this.compressBatches.bind(this),this.decompressBatches=this.decompressBatches.bind(this)}async preload(t={}){cs(t)}async compress(t){return await this.preload(),this.compressSync(t)}async decompress(t,e){return await this.preload(),this.decompressSync(t,e)}compressSync(t){throw new Error(`${this.name}: sync compression not supported`)}decompressSync(t,e){throw new Error(`${this.name}: sync decompression not supported`)}async*compressBatches(t){let e=await this.concatenate(t);yield this.compress(e)}async*decompressBatches(t){let e=await this.concatenate(t);yield this.decompress(e)}concatenate(t){return kf(t)}improveError(t){return t.message.includes(this.name)||(t.message=`${this.name} ${t.message}`),t}}});var Qr=Rt(ee=>{"use strict";var hv=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function pv(r,t){return Object.prototype.hasOwnProperty.call(r,t)}ee.assign=function(r){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var n in e)pv(e,n)&&(r[n]=e[n])}}return r};ee.shrinkBuf=function(r,t){return r.length===t?r:r.subarray?r.subarray(0,t):(r.length=t,r)};var mv={arraySet:function(r,t,e,n,i){if(t.subarray&&r.subarray){r.set(t.subarray(e,e+n),i);return}for(var s=0;s<n;s++)r[i+s]=t[e+s]},flattenChunks:function(r){var t,e,n,i,s,o;for(n=0,t=0,e=r.length;t<e;t++)n+=r[t].length;for(o=new Uint8Array(n),i=0,t=0,e=r.length;t<e;t++)s=r[t],o.set(s,i),i+=s.length;return o}},yv={arraySet:function(r,t,e,n,i){for(var s=0;s<n;s++)r[i+s]=t[e+s]},flattenChunks:function(r){return[].concat.apply([],r)}};ee.setTyped=function(r){r?(ee.Buf8=Uint8Array,ee.Buf16=Uint16Array,ee.Buf32=Int32Array,ee.assign(ee,mv)):(ee.Buf8=Array,ee.Buf16=Array,ee.Buf32=Array,ee.assign(ee,yv))};ee.setTyped(hv)});var Py=Rt(ps=>{"use strict";var _v=Qr(),gv=4,_y=0,gy=1,bv=2;function hs(r){for(var t=r.length;--t>=0;)r[t]=0}var wv=0,Iy=1,vv=2,Sv=3,xv=258,Wf=29,Oo=256,Bo=Oo+1+Wf,ds=30,Gf=19,Ay=2*Bo+1,ui=15,Vf=16,Iv=7,Yf=256,By=16,Dy=17,Ty=18,$f=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Jc=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Av=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ey=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bv=512,tn=new Array((Bo+2)*2);hs(tn);var Ao=new Array(ds*2);hs(Ao);var Do=new Array(Bv);hs(Do);var To=new Array(xv-Sv+1);hs(To);var Kf=new Array(Wf);hs(Kf);var Xc=new Array(ds);hs(Xc);function zf(r,t,e,n,i){this.static_tree=r,this.extra_bits=t,this.extra_base=e,this.elems=n,this.max_length=i,this.has_stree=r&&r.length}var Oy,Ly,Fy;function jf(r,t){this.dyn_tree=r,this.max_code=0,this.stat_desc=t}function Ny(r){return r<256?Do[r]:Do[256+(r>>>7)]}function Eo(r,t){r.pending_buf[r.pending++]=t&255,r.pending_buf[r.pending++]=t>>>8&255}function me(r,t,e){r.bi_valid>Vf-e?(r.bi_buf|=t<<r.bi_valid&65535,Eo(r,r.bi_buf),r.bi_buf=t>>Vf-r.bi_valid,r.bi_valid+=e-Vf):(r.bi_buf|=t<<r.bi_valid&65535,r.bi_valid+=e)}function Lr(r,t,e){me(r,e[t*2],e[t*2+1])}function My(r,t){var e=0;do e|=r&1,r>>>=1,e<<=1;while(--t>0);return e>>>1}function Dv(r){r.bi_valid===16?(Eo(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)}function Tv(r,t){var e=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length,c,u,h,m,p,y,g=0;for(m=0;m<=ui;m++)r.bl_count[m]=0;for(e[r.heap[r.heap_max]*2+1]=0,c=r.heap_max+1;c<Ay;c++)u=r.heap[c],m=e[e[u*2+1]*2+1]+1,m>l&&(m=l,g++),e[u*2+1]=m,!(u>n)&&(r.bl_count[m]++,p=0,u>=a&&(p=o[u-a]),y=e[u*2],r.opt_len+=y*(m+p),s&&(r.static_len+=y*(i[u*2+1]+p)));if(g!==0){do{for(m=l-1;r.bl_count[m]===0;)m--;r.bl_count[m]--,r.bl_count[m+1]+=2,r.bl_count[l]--,g-=2}while(g>0);for(m=l;m!==0;m--)for(u=r.bl_count[m];u!==0;)h=r.heap[--c],!(h>n)&&(e[h*2+1]!==m&&(r.opt_len+=(m-e[h*2+1])*e[h*2],e[h*2+1]=m),u--)}}function Ry(r,t,e){var n=new Array(ui+1),i=0,s,o;for(s=1;s<=ui;s++)n[s]=i=i+e[s-1]<<1;for(o=0;o<=t;o++){var a=r[o*2+1];a!==0&&(r[o*2]=My(n[a]++,a))}}function Ev(){var r,t,e,n,i,s=new Array(ui+1);for(e=0,n=0;n<Wf-1;n++)for(Kf[n]=e,r=0;r<1<<$f[n];r++)To[e++]=n;for(To[e-1]=n,i=0,n=0;n<16;n++)for(Xc[n]=i,r=0;r<1<<Jc[n];r++)Do[i++]=n;for(i>>=7;n<ds;n++)for(Xc[n]=i<<7,r=0;r<1<<Jc[n]-7;r++)Do[256+i++]=n;for(t=0;t<=ui;t++)s[t]=0;for(r=0;r<=143;)tn[r*2+1]=8,r++,s[8]++;for(;r<=255;)tn[r*2+1]=9,r++,s[9]++;for(;r<=279;)tn[r*2+1]=7,r++,s[7]++;for(;r<=287;)tn[r*2+1]=8,r++,s[8]++;for(Ry(tn,Bo+1,s),r=0;r<ds;r++)Ao[r*2+1]=5,Ao[r*2]=My(r,5);Oy=new zf(tn,$f,Oo+1,Bo,ui),Ly=new zf(Ao,Jc,0,ds,ui),Fy=new zf(new Array(0),Av,0,Gf,Iv)}function ky(r){var t;for(t=0;t<Bo;t++)r.dyn_ltree[t*2]=0;for(t=0;t<ds;t++)r.dyn_dtree[t*2]=0;for(t=0;t<Gf;t++)r.bl_tree[t*2]=0;r.dyn_ltree[Yf*2]=1,r.opt_len=r.static_len=0,r.last_lit=r.matches=0}function Cy(r){r.bi_valid>8?Eo(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0}function Ov(r,t,e,n){Cy(r),n&&(Eo(r,e),Eo(r,~e)),_v.arraySet(r.pending_buf,r.window,t,e,r.pending),r.pending+=e}function by(r,t,e,n){var i=t*2,s=e*2;return r[i]<r[s]||r[i]===r[s]&&n[t]<=n[e]}function Hf(r,t,e){for(var n=r.heap[e],i=e<<1;i<=r.heap_len&&(i<r.heap_len&&by(t,r.heap[i+1],r.heap[i],r.depth)&&i++,!by(t,n,r.heap[i],r.depth));)r.heap[e]=r.heap[i],e=i,i<<=1;r.heap[e]=n}function wy(r,t,e){var n,i,s=0,o,a;if(r.last_lit!==0)do n=r.pending_buf[r.d_buf+s*2]<<8|r.pending_buf[r.d_buf+s*2+1],i=r.pending_buf[r.l_buf+s],s++,n===0?Lr(r,i,t):(o=To[i],Lr(r,o+Oo+1,t),a=$f[o],a!==0&&(i-=Kf[o],me(r,i,a)),n--,o=Ny(n),Lr(r,o,e),a=Jc[o],a!==0&&(n-=Xc[o],me(r,n,a)));while(s<r.last_lit);Lr(r,Yf,t)}function Zf(r,t){var e=t.dyn_tree,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems,o,a,l=-1,c;for(r.heap_len=0,r.heap_max=Ay,o=0;o<s;o++)e[o*2]!==0?(r.heap[++r.heap_len]=l=o,r.depth[o]=0):e[o*2+1]=0;for(;r.heap_len<2;)c=r.heap[++r.heap_len]=l<2?++l:0,e[c*2]=1,r.depth[c]=0,r.opt_len--,i&&(r.static_len-=n[c*2+1]);for(t.max_code=l,o=r.heap_len>>1;o>=1;o--)Hf(r,e,o);c=s;do o=r.heap[1],r.heap[1]=r.heap[r.heap_len--],Hf(r,e,1),a=r.heap[1],r.heap[--r.heap_max]=o,r.heap[--r.heap_max]=a,e[c*2]=e[o*2]+e[a*2],r.depth[c]=(r.depth[o]>=r.depth[a]?r.depth[o]:r.depth[a])+1,e[o*2+1]=e[a*2+1]=c,r.heap[1]=c++,Hf(r,e,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],Tv(r,t),Ry(e,l,r.bl_count)}function vy(r,t,e){var n,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),t[(e+1)*2+1]=65535,n=0;n<=e;n++)s=o,o=t[(n+1)*2+1],!(++a<l&&s===o)&&(a<c?r.bl_tree[s*2]+=a:s!==0?(s!==i&&r.bl_tree[s*2]++,r.bl_tree[By*2]++):a<=10?r.bl_tree[Dy*2]++:r.bl_tree[Ty*2]++,a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4))}function Sy(r,t,e){var n,i=-1,s,o=t[0*2+1],a=0,l=7,c=4;for(o===0&&(l=138,c=3),n=0;n<=e;n++)if(s=o,o=t[(n+1)*2+1],!(++a<l&&s===o)){if(a<c)do Lr(r,s,r.bl_tree);while(--a!==0);else s!==0?(s!==i&&(Lr(r,s,r.bl_tree),a--),Lr(r,By,r.bl_tree),me(r,a-3,2)):a<=10?(Lr(r,Dy,r.bl_tree),me(r,a-3,3)):(Lr(r,Ty,r.bl_tree),me(r,a-11,7));a=0,i=s,o===0?(l=138,c=3):s===o?(l=6,c=3):(l=7,c=4)}}function Lv(r){var t;for(vy(r,r.dyn_ltree,r.l_desc.max_code),vy(r,r.dyn_dtree,r.d_desc.max_code),Zf(r,r.bl_desc),t=Gf-1;t>=3&&r.bl_tree[Ey[t]*2+1]===0;t--);return r.opt_len+=3*(t+1)+5+5+4,t}function Fv(r,t,e,n){var i;for(me(r,t-257,5),me(r,e-1,5),me(r,n-4,4),i=0;i<n;i++)me(r,r.bl_tree[Ey[i]*2+1],3);Sy(r,r.dyn_ltree,t-1),Sy(r,r.dyn_dtree,e-1)}function Nv(r){var t=4093624447,e;for(e=0;e<=31;e++,t>>>=1)if(t&1&&r.dyn_ltree[e*2]!==0)return _y;if(r.dyn_ltree[9*2]!==0||r.dyn_ltree[10*2]!==0||r.dyn_ltree[13*2]!==0)return gy;for(e=32;e<Oo;e++)if(r.dyn_ltree[e*2]!==0)return gy;return _y}var xy=!1;function Mv(r){xy||(Ev(),xy=!0),r.l_desc=new jf(r.dyn_ltree,Oy),r.d_desc=new jf(r.dyn_dtree,Ly),r.bl_desc=new jf(r.bl_tree,Fy),r.bi_buf=0,r.bi_valid=0,ky(r)}function Uy(r,t,e,n){me(r,(wv<<1)+(n?1:0),3),Ov(r,t,e,!0)}function Rv(r){me(r,Iy<<1,3),Lr(r,Yf,tn),Dv(r)}function kv(r,t,e,n){var i,s,o=0;r.level>0?(r.strm.data_type===bv&&(r.strm.data_type=Nv(r)),Zf(r,r.l_desc),Zf(r,r.d_desc),o=Lv(r),i=r.opt_len+3+7>>>3,s=r.static_len+3+7>>>3,s<=i&&(i=s)):i=s=e+5,e+4<=i&&t!==-1?Uy(r,t,e,n):r.strategy===gv||s===i?(me(r,(Iy<<1)+(n?1:0),3),wy(r,tn,Ao)):(me(r,(vv<<1)+(n?1:0),3),Fv(r,r.l_desc.max_code+1,r.d_desc.max_code+1,o+1),wy(r,r.dyn_ltree,r.dyn_dtree)),ky(r),n&&Cy(r)}function Cv(r,t,e){return r.pending_buf[r.d_buf+r.last_lit*2]=t>>>8&255,r.pending_buf[r.d_buf+r.last_lit*2+1]=t&255,r.pending_buf[r.l_buf+r.last_lit]=e&255,r.last_lit++,t===0?r.dyn_ltree[e*2]++:(r.matches++,t--,r.dyn_ltree[(To[e]+Oo+1)*2]++,r.dyn_dtree[Ny(t)*2]++),r.last_lit===r.lit_bufsize-1}ps._tr_init=Mv;ps._tr_stored_block=Uy;ps._tr_flush_block=kv;ps._tr_tally=Cv;ps._tr_align=Rv});var Jf=Rt((BN,Vy)=>{"use strict";function Uv(r,t,e,n){for(var i=r&65535|0,s=r>>>16&65535|0,o=0;e!==0;){o=e>2e3?2e3:e,e-=o;do i=i+t[n++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0}Vy.exports=Uv});var Xf=Rt((DN,zy)=>{"use strict";function Pv(){for(var r,t=[],e=0;e<256;e++){r=e;for(var n=0;n<8;n++)r=r&1?3988292384^r>>>1:r>>>1;t[e]=r}return t}var Vv=Pv();function zv(r,t,e,n){var i=Vv,s=n+e;r^=-1;for(var o=n;o<s;o++)r=r>>>8^i[(r^t[o])&255];return r^-1}zy.exports=zv});var qc=Rt((TN,jy)=>{"use strict";jy.exports={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"}});var Xy=Rt(Mr=>{"use strict";var re=Qr(),ke=Py(),Wy=Jf(),_n=Xf(),jv=qc(),pi=0,Hv=1,$v=3,Sn=4,Hy=5,Nr=0,$y=1,Ce=-2,Zv=-3,qf=-5,Wv=-1,Gv=1,Qc=2,Yv=3,Kv=4,Jv=0,Xv=2,nl=8,qv=9,Qv=15,tS=8,eS=29,rS=256,td=rS+1+eS,nS=30,iS=19,sS=2*td+1,oS=15,J=3,wn=258,Qe=wn+J+1,aS=32,il=42,ed=69,tl=73,el=91,rl=103,fi=113,Fo=666,Mt=1,No=2,di=3,_s=4,cS=3;function vn(r,t){return r.msg=jv[t],t}function Zy(r){return(r<<1)-(r>4?9:0)}function bn(r){for(var t=r.length;--t>=0;)r[t]=0}function gn(r){var t=r.state,e=t.pending;e>r.avail_out&&(e=r.avail_out),e!==0&&(re.arraySet(r.output,t.pending_buf,t.pending_out,e,r.next_out),r.next_out+=e,t.pending_out+=e,r.total_out+=e,r.avail_out-=e,t.pending-=e,t.pending===0&&(t.pending_out=0))}function $t(r,t){ke._tr_flush_block(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,t),r.block_start=r.strstart,gn(r.strm)}function nt(r,t){r.pending_buf[r.pending++]=t}function Lo(r,t){r.pending_buf[r.pending++]=t>>>8&255,r.pending_buf[r.pending++]=t&255}function lS(r,t,e,n){var i=r.avail_in;return i>n&&(i=n),i===0?0:(r.avail_in-=i,re.arraySet(t,r.input,r.next_in,i,e),r.state.wrap===1?r.adler=Wy(r.adler,t,i,e):r.state.wrap===2&&(r.adler=_n(r.adler,t,i,e)),r.next_in+=i,r.total_in+=i,i)}function Gy(r,t){var e=r.max_chain_length,n=r.strstart,i,s,o=r.prev_length,a=r.nice_match,l=r.strstart>r.w_size-Qe?r.strstart-(r.w_size-Qe):0,c=r.window,u=r.w_mask,h=r.prev,m=r.strstart+wn,p=c[n+o-1],y=c[n+o];r.prev_length>=r.good_match&&(e>>=2),a>r.lookahead&&(a=r.lookahead);do if(i=t,!(c[i+o]!==y||c[i+o-1]!==p||c[i]!==c[n]||c[++i]!==c[n+1])){n+=2,i++;do;while(c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&c[++n]===c[++i]&&n<m);if(s=wn-(m-n),n=m-wn,s>o){if(r.match_start=t,o=s,s>=a)break;p=c[n+o-1],y=c[n+o]}}while((t=h[t&u])>l&&--e!==0);return o<=r.lookahead?o:r.lookahead}function hi(r){var t=r.w_size,e,n,i,s,o;do{if(s=r.window_size-r.lookahead-r.strstart,r.strstart>=t+(t-Qe)){re.arraySet(r.window,r.window,t,t,0),r.match_start-=t,r.strstart-=t,r.block_start-=t,n=r.hash_size,e=n;do i=r.head[--e],r.head[e]=i>=t?i-t:0;while(--n);n=t,e=n;do i=r.prev[--e],r.prev[e]=i>=t?i-t:0;while(--n);s+=t}if(r.strm.avail_in===0)break;if(n=lS(r.strm,r.window,r.strstart+r.lookahead,s),r.lookahead+=n,r.lookahead+r.insert>=J)for(o=r.strstart-r.insert,r.ins_h=r.window[o],r.ins_h=(r.ins_h<<r.hash_shift^r.window[o+1])&r.hash_mask;r.insert&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[o+J-1])&r.hash_mask,r.prev[o&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=o,o++,r.insert--,!(r.lookahead+r.insert<J)););}while(r.lookahead<Qe&&r.strm.avail_in!==0)}function uS(r,t){var e=65535;for(e>r.pending_buf_size-5&&(e=r.pending_buf_size-5);;){if(r.lookahead<=1){if(hi(r),r.lookahead===0&&t===pi)return Mt;if(r.lookahead===0)break}r.strstart+=r.lookahead,r.lookahead=0;var n=r.block_start+e;if((r.strstart===0||r.strstart>=n)&&(r.lookahead=r.strstart-n,r.strstart=n,$t(r,!1),r.strm.avail_out===0)||r.strstart-r.block_start>=r.w_size-Qe&&($t(r,!1),r.strm.avail_out===0))return Mt}return r.insert=0,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):(r.strstart>r.block_start&&($t(r,!1),r.strm.avail_out===0),Mt)}function Qf(r,t){for(var e,n;;){if(r.lookahead<Qe){if(hi(r),r.lookahead<Qe&&t===pi)return Mt;if(r.lookahead===0)break}if(e=0,r.lookahead>=J&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+J-1])&r.hash_mask,e=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),e!==0&&r.strstart-e<=r.w_size-Qe&&(r.match_length=Gy(r,e)),r.match_length>=J)if(n=ke._tr_tally(r,r.strstart-r.match_start,r.match_length-J),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=J){r.match_length--;do r.strstart++,r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+J-1])&r.hash_mask,e=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!==0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+1])&r.hash_mask;else n=ke._tr_tally(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(n&&($t(r,!1),r.strm.avail_out===0))return Mt}return r.insert=r.strstart<J-1?r.strstart:J-1,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):r.last_lit&&($t(r,!1),r.strm.avail_out===0)?Mt:No}function ms(r,t){for(var e,n,i;;){if(r.lookahead<Qe){if(hi(r),r.lookahead<Qe&&t===pi)return Mt;if(r.lookahead===0)break}if(e=0,r.lookahead>=J&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+J-1])&r.hash_mask,e=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=J-1,e!==0&&r.prev_length<r.max_lazy_match&&r.strstart-e<=r.w_size-Qe&&(r.match_length=Gy(r,e),r.match_length<=5&&(r.strategy===Gv||r.match_length===J&&r.strstart-r.match_start>4096)&&(r.match_length=J-1)),r.prev_length>=J&&r.match_length<=r.prev_length){i=r.strstart+r.lookahead-J,n=ke._tr_tally(r,r.strstart-1-r.prev_match,r.prev_length-J),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=i&&(r.ins_h=(r.ins_h<<r.hash_shift^r.window[r.strstart+J-1])&r.hash_mask,e=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!==0);if(r.match_available=0,r.match_length=J-1,r.strstart++,n&&($t(r,!1),r.strm.avail_out===0))return Mt}else if(r.match_available){if(n=ke._tr_tally(r,0,r.window[r.strstart-1]),n&&$t(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return Mt}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(n=ke._tr_tally(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart<J-1?r.strstart:J-1,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):r.last_lit&&($t(r,!1),r.strm.avail_out===0)?Mt:No}function fS(r,t){for(var e,n,i,s,o=r.window;;){if(r.lookahead<=wn){if(hi(r),r.lookahead<=wn&&t===pi)return Mt;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=J&&r.strstart>0&&(i=r.strstart-1,n=o[i],n===o[++i]&&n===o[++i]&&n===o[++i])){s=r.strstart+wn;do;while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&i<s);r.match_length=wn-(s-i),r.match_length>r.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=J?(e=ke._tr_tally(r,1,r.match_length-J),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(e=ke._tr_tally(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),e&&($t(r,!1),r.strm.avail_out===0))return Mt}return r.insert=0,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):r.last_lit&&($t(r,!1),r.strm.avail_out===0)?Mt:No}function dS(r,t){for(var e;;){if(r.lookahead===0&&(hi(r),r.lookahead===0)){if(t===pi)return Mt;break}if(r.match_length=0,e=ke._tr_tally(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,e&&($t(r,!1),r.strm.avail_out===0))return Mt}return r.insert=0,t===Sn?($t(r,!0),r.strm.avail_out===0?di:_s):r.last_lit&&($t(r,!1),r.strm.avail_out===0)?Mt:No}function Fr(r,t,e,n,i){this.good_length=r,this.max_lazy=t,this.nice_length=e,this.max_chain=n,this.func=i}var ys;ys=[new Fr(0,0,0,0,uS),new Fr(4,4,8,4,Qf),new Fr(4,5,16,8,Qf),new Fr(4,6,32,32,Qf),new Fr(4,4,16,16,ms),new Fr(8,16,32,32,ms),new Fr(8,16,128,128,ms),new Fr(8,32,128,256,ms),new Fr(32,128,258,1024,ms),new Fr(32,258,258,4096,ms)];function hS(r){r.window_size=2*r.w_size,bn(r.head),r.max_lazy_match=ys[r.level].max_lazy,r.good_match=ys[r.level].good_length,r.nice_match=ys[r.level].nice_length,r.max_chain_length=ys[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=J-1,r.match_available=0,r.ins_h=0}function pS(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=nl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new re.Buf16(sS*2),this.dyn_dtree=new re.Buf16((2*nS+1)*2),this.bl_tree=new re.Buf16((2*iS+1)*2),bn(this.dyn_ltree),bn(this.dyn_dtree),bn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new re.Buf16(oS+1),this.heap=new re.Buf16(2*td+1),bn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new re.Buf16(2*td+1),bn(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Yy(r){var t;return!r||!r.state?vn(r,Ce):(r.total_in=r.total_out=0,r.data_type=Xv,t=r.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?il:fi,r.adler=t.wrap===2?0:1,t.last_flush=pi,ke._tr_init(t),Nr)}function Ky(r){var t=Yy(r);return t===Nr&&hS(r.state),t}function mS(r,t){return!r||!r.state||r.state.wrap!==2?Ce:(r.state.gzhead=t,Nr)}function Jy(r,t,e,n,i,s){if(!r)return Ce;var o=1;if(t===Wv&&(t=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>qv||e!==nl||n<8||n>15||t<0||t>9||s<0||s>Kv)return vn(r,Ce);n===8&&(n=9);var a=new pS;return r.state=a,a.strm=r,a.wrap=o,a.gzhead=null,a.w_bits=n,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+J-1)/J),a.window=new re.Buf8(a.w_size*2),a.head=new re.Buf16(a.hash_size),a.prev=new re.Buf16(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new re.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=(1+2)*a.lit_bufsize,a.level=t,a.strategy=s,a.method=e,Ky(r)}function yS(r,t){return Jy(r,t,nl,Qv,tS,Jv)}function _S(r,t){var e,n,i,s;if(!r||!r.state||t>Hy||t<0)return r?vn(r,Ce):Ce;if(n=r.state,!r.output||!r.input&&r.avail_in!==0||n.status===Fo&&t!==Sn)return vn(r,r.avail_out===0?qf:Ce);if(n.strm=r,e=n.last_flush,n.last_flush=t,n.status===il)if(n.wrap===2)r.adler=0,nt(n,31),nt(n,139),nt(n,8),n.gzhead?(nt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),nt(n,n.gzhead.time&255),nt(n,n.gzhead.time>>8&255),nt(n,n.gzhead.time>>16&255),nt(n,n.gzhead.time>>24&255),nt(n,n.level===9?2:n.strategy>=Qc||n.level<2?4:0),nt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(nt(n,n.gzhead.extra.length&255),nt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(r.adler=_n(r.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=ed):(nt(n,0),nt(n,0),nt(n,0),nt(n,0),nt(n,0),nt(n,n.level===9?2:n.strategy>=Qc||n.level<2?4:0),nt(n,cS),n.status=fi);else{var o=nl+(n.w_bits-8<<4)<<8,a=-1;n.strategy>=Qc||n.level<2?a=0:n.level<6?a=1:n.level===6?a=2:a=3,o|=a<<6,n.strstart!==0&&(o|=aS),o+=31-o%31,n.status=fi,Lo(n,o),n.strstart!==0&&(Lo(n,r.adler>>>16),Lo(n,r.adler&65535)),r.adler=1}if(n.status===ed)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(n.gzhead.extra.length&65535)&&!(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),gn(r),i=n.pending,n.pending===n.pending_buf_size));)nt(n,n.gzhead.extra[n.gzindex]&255),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=tl)}else n.status=tl;if(n.status===tl)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),gn(r),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}n.gzindex<n.gzhead.name.length?s=n.gzhead.name.charCodeAt(n.gzindex++)&255:s=0,nt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),s===0&&(n.gzindex=0,n.status=el)}else n.status=el;if(n.status===el)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),gn(r),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}n.gzindex<n.gzhead.comment.length?s=n.gzhead.comment.charCodeAt(n.gzindex++)&255:s=0,nt(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(r.adler=_n(r.adler,n.pending_buf,n.pending-i,i)),s===0&&(n.status=rl)}else n.status=rl;if(n.status===rl&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&gn(r),n.pending+2<=n.pending_buf_size&&(nt(n,r.adler&255),nt(n,r.adler>>8&255),r.adler=0,n.status=fi)):n.status=fi),n.pending!==0){if(gn(r),r.avail_out===0)return n.last_flush=-1,Nr}else if(r.avail_in===0&&Zy(t)<=Zy(e)&&t!==Sn)return vn(r,qf);if(n.status===Fo&&r.avail_in!==0)return vn(r,qf);if(r.avail_in!==0||n.lookahead!==0||t!==pi&&n.status!==Fo){var l=n.strategy===Qc?dS(n,t):n.strategy===Yv?fS(n,t):ys[n.level].func(n,t);if((l===di||l===_s)&&(n.status=Fo),l===Mt||l===di)return r.avail_out===0&&(n.last_flush=-1),Nr;if(l===No&&(t===Hv?ke._tr_align(n):t!==Hy&&(ke._tr_stored_block(n,0,0,!1),t===$v&&(bn(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),gn(r),r.avail_out===0))return n.last_flush=-1,Nr}return t!==Sn?Nr:n.wrap<=0?$y:(n.wrap===2?(nt(n,r.adler&255),nt(n,r.adler>>8&255),nt(n,r.adler>>16&255),nt(n,r.adler>>24&255),nt(n,r.total_in&255),nt(n,r.total_in>>8&255),nt(n,r.total_in>>16&255),nt(n,r.total_in>>24&255)):(Lo(n,r.adler>>>16),Lo(n,r.adler&65535)),gn(r),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Nr:$y)}function gS(r){var t;return!r||!r.state?Ce:(t=r.state.status,t!==il&&t!==ed&&t!==tl&&t!==el&&t!==rl&&t!==fi&&t!==Fo?vn(r,Ce):(r.state=null,t===fi?vn(r,Zv):Nr))}function bS(r,t){var e=t.length,n,i,s,o,a,l,c,u;if(!r||!r.state||(n=r.state,o=n.wrap,o===2||o===1&&n.status!==il||n.lookahead))return Ce;for(o===1&&(r.adler=Wy(r.adler,t,e,0)),n.wrap=0,e>=n.w_size&&(o===0&&(bn(n.head),n.strstart=0,n.block_start=0,n.insert=0),u=new re.Buf8(n.w_size),re.arraySet(u,t,e-n.w_size,n.w_size,0),t=u,e=n.w_size),a=r.avail_in,l=r.next_in,c=r.input,r.avail_in=e,r.next_in=0,r.input=t,hi(n);n.lookahead>=J;){i=n.strstart,s=n.lookahead-(J-1);do n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+J-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++;while(--s);n.strstart=i,n.lookahead=J-1,hi(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=J-1,n.match_available=0,r.next_in=l,r.input=c,r.avail_in=a,n.wrap=o,Nr}Mr.deflateInit=yS;Mr.deflateInit2=Jy;Mr.deflateReset=Ky;Mr.deflateResetKeep=Yy;Mr.deflateSetHeader=mS;Mr.deflate=_S;Mr.deflateEnd=gS;Mr.deflateSetDictionary=bS;Mr.deflateInfo="pako deflate (from Nodeca project)"});var rd=Rt(gs=>{"use strict";var sl=Qr(),qy=!0,Qy=!0;try{String.fromCharCode.apply(null,[0])}catch{qy=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Qy=!1}var Mo=new sl.Buf8(256);for(en=0;en<256;en++)Mo[en]=en>=252?6:en>=248?5:en>=240?4:en>=224?3:en>=192?2:1;var en;Mo[254]=Mo[254]=1;gs.string2buf=function(r){var t,e,n,i,s,o=r.length,a=0;for(i=0;i<o;i++)e=r.charCodeAt(i),(e&64512)===55296&&i+1<o&&(n=r.charCodeAt(i+1),(n&64512)===56320&&(e=65536+(e-55296<<10)+(n-56320),i++)),a+=e<128?1:e<2048?2:e<65536?3:4;for(t=new sl.Buf8(a),s=0,i=0;s<a;i++)e=r.charCodeAt(i),(e&64512)===55296&&i+1<o&&(n=r.charCodeAt(i+1),(n&64512)===56320&&(e=65536+(e-55296<<10)+(n-56320),i++)),e<128?t[s++]=e:e<2048?(t[s++]=192|e>>>6,t[s++]=128|e&63):e<65536?(t[s++]=224|e>>>12,t[s++]=128|e>>>6&63,t[s++]=128|e&63):(t[s++]=240|e>>>18,t[s++]=128|e>>>12&63,t[s++]=128|e>>>6&63,t[s++]=128|e&63);return t};function t_(r,t){if(t<65534&&(r.subarray&&Qy||!r.subarray&&qy))return String.fromCharCode.apply(null,sl.shrinkBuf(r,t));for(var e="",n=0;n<t;n++)e+=String.fromCharCode(r[n]);return e}gs.buf2binstring=function(r){return t_(r,r.length)};gs.binstring2buf=function(r){for(var t=new sl.Buf8(r.length),e=0,n=t.length;e<n;e++)t[e]=r.charCodeAt(e);return t};gs.buf2string=function(r,t){var e,n,i,s,o=t||r.length,a=new Array(o*2);for(n=0,e=0;e<o;){if(i=r[e++],i<128){a[n++]=i;continue}if(s=Mo[i],s>4){a[n++]=65533,e+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&e<o;)i=i<<6|r[e++]&63,s--;if(s>1){a[n++]=65533;continue}i<65536?a[n++]=i:(i-=65536,a[n++]=55296|i>>10&1023,a[n++]=56320|i&1023)}return t_(a,n)};gs.utf8border=function(r,t){var e;for(t=t||r.length,t>r.length&&(t=r.length),e=t-1;e>=0&&(r[e]&192)===128;)e--;return e<0||e===0?t:e+Mo[r[e]]>t?e:t}});var nd=Rt((LN,e_)=>{"use strict";function wS(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e_.exports=wS});var s_=Rt(Co=>{"use strict";var Ro=Xy(),ko=Qr(),sd=rd(),od=qc(),vS=nd(),i_=Object.prototype.toString,SS=0,id=4,bs=0,r_=1,n_=2,xS=-1,IS=0,AS=8;function mi(r){if(!(this instanceof mi))return new mi(r);this.options=ko.assign({level:xS,method:AS,chunkSize:16384,windowBits:15,memLevel:8,strategy:IS,to:""},r||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new vS,this.strm.avail_out=0;var e=Ro.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==bs)throw new Error(od[e]);if(t.header&&Ro.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(typeof t.dictionary=="string"?n=sd.string2buf(t.dictionary):i_.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,e=Ro.deflateSetDictionary(this.strm,n),e!==bs)throw new Error(od[e]);this._dict_set=!0}}mi.prototype.push=function(r,t){var e=this.strm,n=this.options.chunkSize,i,s;if(this.ended)return!1;s=t===~~t?t:t===!0?id:SS,typeof r=="string"?e.input=sd.string2buf(r):i_.call(r)==="[object ArrayBuffer]"?e.input=new Uint8Array(r):e.input=r,e.next_in=0,e.avail_in=e.input.length;do{if(e.avail_out===0&&(e.output=new ko.Buf8(n),e.next_out=0,e.avail_out=n),i=Ro.deflate(e,s),i!==r_&&i!==bs)return this.onEnd(i),this.ended=!0,!1;(e.avail_out===0||e.avail_in===0&&(s===id||s===n_))&&(this.options.to==="string"?this.onData(sd.buf2binstring(ko.shrinkBuf(e.output,e.next_out))):this.onData(ko.shrinkBuf(e.output,e.next_out)))}while((e.avail_in>0||e.avail_out===0)&&i!==r_);return s===id?(i=Ro.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===bs):(s===n_&&(this.onEnd(bs),e.avail_out=0),!0)};mi.prototype.onData=function(r){this.chunks.push(r)};mi.prototype.onEnd=function(r){r===bs&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ko.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function ad(r,t){var e=new mi(t);if(e.push(r,!0),e.err)throw e.msg||od[e.err];return e.result}function BS(r,t){return t=t||{},t.raw=!0,ad(r,t)}function DS(r,t){return t=t||{},t.gzip=!0,ad(r,t)}Co.Deflate=mi;Co.deflate=ad;Co.deflateRaw=BS;Co.gzip=DS});var a_=Rt((NN,o_)=>{"use strict";var ol=30,TS=12;o_.exports=function(t,e){var n,i,s,o,a,l,c,u,h,m,p,y,g,N,S,G,tt,V,w,Y,X,z,et,bt,j;n=t.state,i=t.next_in,bt=t.input,s=i+(t.avail_in-5),o=t.next_out,j=t.output,a=o-(e-t.avail_out),l=o+(t.avail_out-257),c=n.dmax,u=n.wsize,h=n.whave,m=n.wnext,p=n.window,y=n.hold,g=n.bits,N=n.lencode,S=n.distcode,G=(1<<n.lenbits)-1,tt=(1<<n.distbits)-1;t:do{g<15&&(y+=bt[i++]<<g,g+=8,y+=bt[i++]<<g,g+=8),V=N[y&G];e:for(;;){if(w=V>>>24,y>>>=w,g-=w,w=V>>>16&255,w===0)j[o++]=V&65535;else if(w&16){Y=V&65535,w&=15,w&&(g<w&&(y+=bt[i++]<<g,g+=8),Y+=y&(1<<w)-1,y>>>=w,g-=w),g<15&&(y+=bt[i++]<<g,g+=8,y+=bt[i++]<<g,g+=8),V=S[y&tt];r:for(;;){if(w=V>>>24,y>>>=w,g-=w,w=V>>>16&255,w&16){if(X=V&65535,w&=15,g<w&&(y+=bt[i++]<<g,g+=8,g<w&&(y+=bt[i++]<<g,g+=8)),X+=y&(1<<w)-1,X>c){t.msg="invalid distance too far back",n.mode=ol;break t}if(y>>>=w,g-=w,w=o-a,X>w){if(w=X-w,w>h&&n.sane){t.msg="invalid distance too far back",n.mode=ol;break t}if(z=0,et=p,m===0){if(z+=u-w,w<Y){Y-=w;do j[o++]=p[z++];while(--w);z=o-X,et=j}}else if(m<w){if(z+=u+m-w,w-=m,w<Y){Y-=w;do j[o++]=p[z++];while(--w);if(z=0,m<Y){w=m,Y-=w;do j[o++]=p[z++];while(--w);z=o-X,et=j}}}else if(z+=m-w,w<Y){Y-=w;do j[o++]=p[z++];while(--w);z=o-X,et=j}for(;Y>2;)j[o++]=et[z++],j[o++]=et[z++],j[o++]=et[z++],Y-=3;Y&&(j[o++]=et[z++],Y>1&&(j[o++]=et[z++]))}else{z=o-X;do j[o++]=j[z++],j[o++]=j[z++],j[o++]=j[z++],Y-=3;while(Y>2);Y&&(j[o++]=j[z++],Y>1&&(j[o++]=j[z++]))}}else if(w&64){t.msg="invalid distance code",n.mode=ol;break t}else{V=S[(V&65535)+(y&(1<<w)-1)];continue r}break}}else if(w&64)if(w&32){n.mode=TS;break t}else{t.msg="invalid literal/length code",n.mode=ol;break t}else{V=N[(V&65535)+(y&(1<<w)-1)];continue e}break}}while(i<s&&o<l);Y=g>>3,i-=Y,g-=Y<<3,y&=(1<<g)-1,t.next_in=i,t.next_out=o,t.avail_in=i<s?5+(s-i):5-(i-s),t.avail_out=o<l?257+(l-o):257-(o-l),n.hold=y,n.bits=g}});var p_=Rt((MN,h_)=>{"use strict";var c_=Qr(),ws=15,l_=852,u_=592,f_=0,cd=1,d_=2,ES=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],OS=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],LS=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],FS=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];h_.exports=function(t,e,n,i,s,o,a,l){var c=l.bits,u=0,h=0,m=0,p=0,y=0,g=0,N=0,S=0,G=0,tt=0,V,w,Y,X,z,et=null,bt=0,j,Pe=new c_.Buf16(ws+1),Ko=new c_.Buf16(ws+1),Jo=null,Td=0,Ed,Xo,qo;for(u=0;u<=ws;u++)Pe[u]=0;for(h=0;h<i;h++)Pe[e[n+h]]++;for(y=c,p=ws;p>=1&&Pe[p]===0;p--);if(y>p&&(y=p),p===0)return s[o++]=1<<24|64<<16|0,s[o++]=1<<24|64<<16|0,l.bits=1,0;for(m=1;m<p&&Pe[m]===0;m++);for(y<m&&(y=m),S=1,u=1;u<=ws;u++)if(S<<=1,S-=Pe[u],S<0)return-1;if(S>0&&(t===f_||p!==1))return-1;for(Ko[1]=0,u=1;u<ws;u++)Ko[u+1]=Ko[u]+Pe[u];for(h=0;h<i;h++)e[n+h]!==0&&(a[Ko[e[n+h]]++]=h);if(t===f_?(et=Jo=a,j=19):t===cd?(et=ES,bt-=257,Jo=OS,Td-=257,j=256):(et=LS,Jo=FS,j=-1),tt=0,h=0,u=m,z=o,g=y,N=0,Y=-1,G=1<<y,X=G-1,t===cd&&G>l_||t===d_&&G>u_)return 1;for(;;){Ed=u-N,a[h]<j?(Xo=0,qo=a[h]):a[h]>j?(Xo=Jo[Td+a[h]],qo=et[bt+a[h]]):(Xo=32+64,qo=0),V=1<<u-N,w=1<<g,m=w;do w-=V,s[z+(tt>>N)+w]=Ed<<24|Xo<<16|qo|0;while(w!==0);for(V=1<<u-1;tt&V;)V>>=1;if(V!==0?(tt&=V-1,tt+=V):tt=0,h++,--Pe[u]===0){if(u===p)break;u=e[n+a[h]]}if(u>y&&(tt&X)!==Y){for(N===0&&(N=y),z+=m,g=u-N,S=1<<g;g+N<p&&(S-=Pe[g+N],!(S<=0));)g++,S<<=1;if(G+=1<<g,t===cd&&G>l_||t===d_&&G>u_)return 1;Y=tt&X,s[Y]=y<<24|g<<16|z-o|0}}return tt!==0&&(s[z+tt]=u-N<<24|64<<16|0),l.bits=y,0}});var K_=Rt(tr=>{"use strict";var De=Qr(),pd=Jf(),Rr=Xf(),NS=a_(),Uo=p_(),MS=0,V_=1,z_=2,m_=4,RS=5,al=6,yi=0,kS=1,CS=2,Ue=-2,j_=-3,md=-4,US=-5,y_=8,H_=1,__=2,g_=3,b_=4,w_=5,v_=6,S_=7,x_=8,I_=9,A_=10,ul=11,rn=12,ld=13,B_=14,ud=15,D_=16,T_=17,E_=18,O_=19,cl=20,ll=21,L_=22,F_=23,N_=24,M_=25,R_=26,fd=27,k_=28,C_=29,mt=30,yd=31,PS=32,VS=852,zS=592,jS=15,HS=jS;function U_(r){return(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24)}function $S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new De.Buf16(320),this.work=new De.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function $_(r){var t;return!r||!r.state?Ue:(t=r.state,r.total_in=r.total_out=t.total=0,r.msg="",t.wrap&&(r.adler=t.wrap&1),t.mode=H_,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new De.Buf32(VS),t.distcode=t.distdyn=new De.Buf32(zS),t.sane=1,t.back=-1,yi)}function Z_(r){var t;return!r||!r.state?Ue:(t=r.state,t.wsize=0,t.whave=0,t.wnext=0,$_(r))}function W_(r,t){var e,n;return!r||!r.state||(n=r.state,t<0?(e=0,t=-t):(e=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Ue:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=e,n.wbits=t,Z_(r))}function G_(r,t){var e,n;return r?(n=new $S,r.state=n,n.window=null,e=W_(r,t),e!==yi&&(r.state=null),e):Ue}function ZS(r){return G_(r,HS)}var P_=!0,dd,hd;function WS(r){if(P_){var t;for(dd=new De.Buf32(512),hd=new De.Buf32(32),t=0;t<144;)r.lens[t++]=8;for(;t<256;)r.lens[t++]=9;for(;t<280;)r.lens[t++]=7;for(;t<288;)r.lens[t++]=8;for(Uo(V_,r.lens,0,288,dd,0,r.work,{bits:9}),t=0;t<32;)r.lens[t++]=5;Uo(z_,r.lens,0,32,hd,0,r.work,{bits:5}),P_=!1}r.lencode=dd,r.lenbits=9,r.distcode=hd,r.distbits=5}function Y_(r,t,e,n){var i,s=r.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new De.Buf8(s.wsize)),n>=s.wsize?(De.arraySet(s.window,t,e-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>n&&(i=n),De.arraySet(s.window,t,e-n,i,s.wnext),n-=i,n?(De.arraySet(s.window,t,e-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function GS(r,t){var e,n,i,s,o,a,l,c,u,h,m,p,y,g,N=0,S,G,tt,V,w,Y,X,z,et=new De.Buf8(4),bt,j,Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!r||!r.state||!r.output||!r.input&&r.avail_in!==0)return Ue;e=r.state,e.mode===rn&&(e.mode=ld),o=r.next_out,i=r.output,l=r.avail_out,s=r.next_in,n=r.input,a=r.avail_in,c=e.hold,u=e.bits,h=a,m=l,z=yi;t:for(;;)switch(e.mode){case H_:if(e.wrap===0){e.mode=ld;break}for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(e.wrap&2&&c===35615){e.check=0,et[0]=c&255,et[1]=c>>>8&255,e.check=Rr(e.check,et,2,0),c=0,u=0,e.mode=__;break}if(e.flags=0,e.head&&(e.head.done=!1),!(e.wrap&1)||(((c&255)<<8)+(c>>8))%31){r.msg="incorrect header check",e.mode=mt;break}if((c&15)!==y_){r.msg="unknown compression method",e.mode=mt;break}if(c>>>=4,u-=4,X=(c&15)+8,e.wbits===0)e.wbits=X;else if(X>e.wbits){r.msg="invalid window size",e.mode=mt;break}e.dmax=1<<X,r.adler=e.check=1,e.mode=c&512?A_:rn,c=0,u=0;break;case __:for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(e.flags=c,(e.flags&255)!==y_){r.msg="unknown compression method",e.mode=mt;break}if(e.flags&57344){r.msg="unknown header flags set",e.mode=mt;break}e.head&&(e.head.text=c>>8&1),e.flags&512&&(et[0]=c&255,et[1]=c>>>8&255,e.check=Rr(e.check,et,2,0)),c=0,u=0,e.mode=g_;case g_:for(;u<32;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.head&&(e.head.time=c),e.flags&512&&(et[0]=c&255,et[1]=c>>>8&255,et[2]=c>>>16&255,et[3]=c>>>24&255,e.check=Rr(e.check,et,4,0)),c=0,u=0,e.mode=b_;case b_:for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.head&&(e.head.xflags=c&255,e.head.os=c>>8),e.flags&512&&(et[0]=c&255,et[1]=c>>>8&255,e.check=Rr(e.check,et,2,0)),c=0,u=0,e.mode=w_;case w_:if(e.flags&1024){for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.length=c,e.head&&(e.head.extra_len=c),e.flags&512&&(et[0]=c&255,et[1]=c>>>8&255,e.check=Rr(e.check,et,2,0)),c=0,u=0}else e.head&&(e.head.extra=null);e.mode=v_;case v_:if(e.flags&1024&&(p=e.length,p>a&&(p=a),p&&(e.head&&(X=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),De.arraySet(e.head.extra,n,s,p,X)),e.flags&512&&(e.check=Rr(e.check,n,p,s)),a-=p,s+=p,e.length-=p),e.length))break t;e.length=0,e.mode=S_;case S_:if(e.flags&2048){if(a===0)break t;p=0;do X=n[s+p++],e.head&&X&&e.length<65536&&(e.head.name+=String.fromCharCode(X));while(X&&p<a);if(e.flags&512&&(e.check=Rr(e.check,n,p,s)),a-=p,s+=p,X)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=x_;case x_:if(e.flags&4096){if(a===0)break t;p=0;do X=n[s+p++],e.head&&X&&e.length<65536&&(e.head.comment+=String.fromCharCode(X));while(X&&p<a);if(e.flags&512&&(e.check=Rr(e.check,n,p,s)),a-=p,s+=p,X)break t}else e.head&&(e.head.comment=null);e.mode=I_;case I_:if(e.flags&512){for(;u<16;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(c!==(e.check&65535)){r.msg="header crc mismatch",e.mode=mt;break}c=0,u=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),r.adler=e.check=0,e.mode=rn;break;case A_:for(;u<32;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}r.adler=e.check=U_(c),c=0,u=0,e.mode=ul;case ul:if(e.havedict===0)return r.next_out=o,r.avail_out=l,r.next_in=s,r.avail_in=a,e.hold=c,e.bits=u,CS;r.adler=e.check=1,e.mode=rn;case rn:if(t===RS||t===al)break t;case ld:if(e.last){c>>>=u&7,u-=u&7,e.mode=fd;break}for(;u<3;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}switch(e.last=c&1,c>>>=1,u-=1,c&3){case 0:e.mode=B_;break;case 1:if(WS(e),e.mode=cl,t===al){c>>>=2,u-=2;break t}break;case 2:e.mode=T_;break;case 3:r.msg="invalid block type",e.mode=mt}c>>>=2,u-=2;break;case B_:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){r.msg="invalid stored block lengths",e.mode=mt;break}if(e.length=c&65535,c=0,u=0,e.mode=ud,t===al)break t;case ud:e.mode=D_;case D_:if(p=e.length,p){if(p>a&&(p=a),p>l&&(p=l),p===0)break t;De.arraySet(i,n,s,p,o),a-=p,s+=p,l-=p,o+=p,e.length-=p;break}e.mode=rn;break;case T_:for(;u<14;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(e.nlen=(c&31)+257,c>>>=5,u-=5,e.ndist=(c&31)+1,c>>>=5,u-=5,e.ncode=(c&15)+4,c>>>=4,u-=4,e.nlen>286||e.ndist>30){r.msg="too many length or distance symbols",e.mode=mt;break}e.have=0,e.mode=E_;case E_:for(;e.have<e.ncode;){for(;u<3;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.lens[Pe[e.have++]]=c&7,c>>>=3,u-=3}for(;e.have<19;)e.lens[Pe[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,bt={bits:e.lenbits},z=Uo(MS,e.lens,0,19,e.lencode,0,e.work,bt),e.lenbits=bt.bits,z){r.msg="invalid code lengths set",e.mode=mt;break}e.have=0,e.mode=O_;case O_:for(;e.have<e.nlen+e.ndist;){for(;N=e.lencode[c&(1<<e.lenbits)-1],S=N>>>24,G=N>>>16&255,tt=N&65535,!(S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(tt<16)c>>>=S,u-=S,e.lens[e.have++]=tt;else{if(tt===16){for(j=S+2;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(c>>>=S,u-=S,e.have===0){r.msg="invalid bit length repeat",e.mode=mt;break}X=e.lens[e.have-1],p=3+(c&3),c>>>=2,u-=2}else if(tt===17){for(j=S+3;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}c>>>=S,u-=S,X=0,p=3+(c&7),c>>>=3,u-=3}else{for(j=S+7;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}c>>>=S,u-=S,X=0,p=11+(c&127),c>>>=7,u-=7}if(e.have+p>e.nlen+e.ndist){r.msg="invalid bit length repeat",e.mode=mt;break}for(;p--;)e.lens[e.have++]=X}}if(e.mode===mt)break;if(e.lens[256]===0){r.msg="invalid code -- missing end-of-block",e.mode=mt;break}if(e.lenbits=9,bt={bits:e.lenbits},z=Uo(V_,e.lens,0,e.nlen,e.lencode,0,e.work,bt),e.lenbits=bt.bits,z){r.msg="invalid literal/lengths set",e.mode=mt;break}if(e.distbits=6,e.distcode=e.distdyn,bt={bits:e.distbits},z=Uo(z_,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,bt),e.distbits=bt.bits,z){r.msg="invalid distances set",e.mode=mt;break}if(e.mode=cl,t===al)break t;case cl:e.mode=ll;case ll:if(a>=6&&l>=258){r.next_out=o,r.avail_out=l,r.next_in=s,r.avail_in=a,e.hold=c,e.bits=u,NS(r,m),o=r.next_out,i=r.output,l=r.avail_out,s=r.next_in,n=r.input,a=r.avail_in,c=e.hold,u=e.bits,e.mode===rn&&(e.back=-1);break}for(e.back=0;N=e.lencode[c&(1<<e.lenbits)-1],S=N>>>24,G=N>>>16&255,tt=N&65535,!(S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(G&&!(G&240)){for(V=S,w=G,Y=tt;N=e.lencode[Y+((c&(1<<V+w)-1)>>V)],S=N>>>24,G=N>>>16&255,tt=N&65535,!(V+S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}c>>>=V,u-=V,e.back+=V}if(c>>>=S,u-=S,e.back+=S,e.length=tt,G===0){e.mode=R_;break}if(G&32){e.back=-1,e.mode=rn;break}if(G&64){r.msg="invalid literal/length code",e.mode=mt;break}e.extra=G&15,e.mode=L_;case L_:if(e.extra){for(j=e.extra;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.length+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=F_;case F_:for(;N=e.distcode[c&(1<<e.distbits)-1],S=N>>>24,G=N>>>16&255,tt=N&65535,!(S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(!(G&240)){for(V=S,w=G,Y=tt;N=e.distcode[Y+((c&(1<<V+w)-1)>>V)],S=N>>>24,G=N>>>16&255,tt=N&65535,!(V+S<=u);){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}c>>>=V,u-=V,e.back+=V}if(c>>>=S,u-=S,e.back+=S,G&64){r.msg="invalid distance code",e.mode=mt;break}e.offset=tt,e.extra=G&15,e.mode=N_;case N_:if(e.extra){for(j=e.extra;u<j;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}e.offset+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){r.msg="invalid distance too far back",e.mode=mt;break}e.mode=M_;case M_:if(l===0)break t;if(p=m-l,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){r.msg="invalid distance too far back",e.mode=mt;break}p>e.wnext?(p-=e.wnext,y=e.wsize-p):y=e.wnext-p,p>e.length&&(p=e.length),g=e.window}else g=i,y=o-e.offset,p=e.length;p>l&&(p=l),l-=p,e.length-=p;do i[o++]=g[y++];while(--p);e.length===0&&(e.mode=ll);break;case R_:if(l===0)break t;i[o++]=e.length,l--,e.mode=ll;break;case fd:if(e.wrap){for(;u<32;){if(a===0)break t;a--,c|=n[s++]<<u,u+=8}if(m-=l,r.total_out+=m,e.total+=m,m&&(r.adler=e.check=e.flags?Rr(e.check,i,m,o-m):pd(e.check,i,m,o-m)),m=l,(e.flags?c:U_(c))!==e.check){r.msg="incorrect data check",e.mode=mt;break}c=0,u=0}e.mode=k_;case k_:if(e.wrap&&e.flags){for(;u<32;){if(a===0)break t;a--,c+=n[s++]<<u,u+=8}if(c!==(e.total&4294967295)){r.msg="incorrect length check",e.mode=mt;break}c=0,u=0}e.mode=C_;case C_:z=kS;break t;case mt:z=j_;break t;case yd:return md;case PS:default:return Ue}return r.next_out=o,r.avail_out=l,r.next_in=s,r.avail_in=a,e.hold=c,e.bits=u,(e.wsize||m!==r.avail_out&&e.mode<mt&&(e.mode<fd||t!==m_))&&Y_(r,r.output,r.next_out,m-r.avail_out)?(e.mode=yd,md):(h-=r.avail_in,m-=r.avail_out,r.total_in+=h,r.total_out+=m,e.total+=m,e.wrap&&m&&(r.adler=e.check=e.flags?Rr(e.check,i,m,r.next_out-m):pd(e.check,i,m,r.next_out-m)),r.data_type=e.bits+(e.last?64:0)+(e.mode===rn?128:0)+(e.mode===cl||e.mode===ud?256:0),(h===0&&m===0||t===m_)&&z===yi&&(z=US),z)}function YS(r){if(!r||!r.state)return Ue;var t=r.state;return t.window&&(t.window=null),r.state=null,yi}function KS(r,t){var e;return!r||!r.state||(e=r.state,!(e.wrap&2))?Ue:(e.head=t,t.done=!1,yi)}function JS(r,t){var e=t.length,n,i,s;return!r||!r.state||(n=r.state,n.wrap!==0&&n.mode!==ul)?Ue:n.mode===ul&&(i=1,i=pd(i,t,e,0),i!==n.check)?j_:(s=Y_(r,t,e,e),s?(n.mode=yd,md):(n.havedict=1,yi))}tr.inflateReset=Z_;tr.inflateReset2=W_;tr.inflateResetKeep=$_;tr.inflateInit=ZS;tr.inflateInit2=G_;tr.inflate=GS;tr.inflateEnd=YS;tr.inflateGetHeader=KS;tr.inflateSetDictionary=JS;tr.inflateInfo="pako inflate (from Nodeca project)"});var _d=Rt((kN,J_)=>{"use strict";J_.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var q_=Rt((CN,X_)=>{"use strict";function XS(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}X_.exports=XS});var tg=Rt(Vo=>{"use strict";var vs=K_(),Po=Qr(),fl=rd(),xt=_d(),gd=qc(),qS=nd(),QS=q_(),Q_=Object.prototype.toString;function _i(r){if(!(this instanceof _i))return new _i(r);this.options=Po.assign({chunkSize:16384,windowBits:0,to:""},r||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(r&&r.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new qS,this.strm.avail_out=0;var e=vs.inflateInit2(this.strm,t.windowBits);if(e!==xt.Z_OK)throw new Error(gd[e]);if(this.header=new QS,vs.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=fl.string2buf(t.dictionary):Q_.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=vs.inflateSetDictionary(this.strm,t.dictionary),e!==xt.Z_OK)))throw new Error(gd[e])}_i.prototype.push=function(r,t){var e=this.strm,n=this.options.chunkSize,i=this.options.dictionary,s,o,a,l,c,u=!1;if(this.ended)return!1;o=t===~~t?t:t===!0?xt.Z_FINISH:xt.Z_NO_FLUSH,typeof r=="string"?e.input=fl.binstring2buf(r):Q_.call(r)==="[object ArrayBuffer]"?e.input=new Uint8Array(r):e.input=r,e.next_in=0,e.avail_in=e.input.length;do{if(e.avail_out===0&&(e.output=new Po.Buf8(n),e.next_out=0,e.avail_out=n),s=vs.inflate(e,xt.Z_NO_FLUSH),s===xt.Z_NEED_DICT&&i&&(s=vs.inflateSetDictionary(this.strm,i)),s===xt.Z_BUF_ERROR&&u===!0&&(s=xt.Z_OK,u=!1),s!==xt.Z_STREAM_END&&s!==xt.Z_OK)return this.onEnd(s),this.ended=!0,!1;e.next_out&&(e.avail_out===0||s===xt.Z_STREAM_END||e.avail_in===0&&(o===xt.Z_FINISH||o===xt.Z_SYNC_FLUSH))&&(this.options.to==="string"?(a=fl.utf8border(e.output,e.next_out),l=e.next_out-a,c=fl.buf2string(e.output,a),e.next_out=l,e.avail_out=n-l,l&&Po.arraySet(e.output,e.output,a,l,0),this.onData(c)):this.onData(Po.shrinkBuf(e.output,e.next_out))),e.avail_in===0&&e.avail_out===0&&(u=!0)}while((e.avail_in>0||e.avail_out===0)&&s!==xt.Z_STREAM_END);return s===xt.Z_STREAM_END&&(o=xt.Z_FINISH),o===xt.Z_FINISH?(s=vs.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===xt.Z_OK):(o===xt.Z_SYNC_FLUSH&&(this.onEnd(xt.Z_OK),e.avail_out=0),!0)};_i.prototype.onData=function(r){this.chunks.push(r)};_i.prototype.onEnd=function(r){r===xt.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Po.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function bd(r,t){var e=new _i(t);if(e.push(r,!0),e.err)throw e.msg||gd[e.err];return e.result}function tx(r,t){return t=t||{},t.raw=!0,bd(r,t)}Vo.Inflate=_i;Vo.inflate=bd;Vo.inflateRaw=tx;Vo.ungzip=bd});var ng=Rt((PN,rg)=>{"use strict";var ex=Qr().assign,rx=s_(),nx=tg(),ix=_d(),eg={};ex(eg,rx,nx,ix);rg.exports=eg});var ig=Rt(()=>{});var gi,nn,Ss,sg=d(()=>{"use strict";Pf();Io();gi=Sl(ng(),1),nn=Sl(ig(),1),Ss=class extends fs{name="deflate";extensions=[];contentEncodings=["deflate"];isSupported=!0;options;_chunks=[];constructor(t={}){super(t),this.options=t}async compress(t){if(!is&&this.options.deflate?.useZlib){let e=this.options.deflate?.gzip?await ls(nn.default.gzip)(t):await ls(nn.default.deflate)(t);return yn(e)}return this.compressSync(t)}async decompress(t){if(!is&&this.options.deflate?.useZlib){let e=this.options.deflate?.gzip?await ls(nn.default.gunzip)(t):await ls(nn.default.inflate)(t);return yn(e)}return this.decompressSync(t)}compressSync(t){if(!is&&this.options.deflate?.useZlib){let s=this.options.deflate?.gzip?nn.default.gzipSync(t):nn.default.deflateSync(t);return yn(s)}let e=this.options?.deflate||{},n=new Uint8Array(t),i=this.options?.raw?gi.default.deflateRaw:gi.default.deflate;return yn(i(n,e).buffer)}decompressSync(t){if(!is&&this.options.deflate?.useZlib){let s=this.options.deflate?.gzip?nn.default.gunzipSync(t):nn.default.inflateSync(t);return yn(s)}let e=this.options?.deflate||{},n=new Uint8Array(t),i=this.options?.raw?gi.default.inflateRaw:gi.default.inflate;return yn(i(n,e).buffer)}async*compressBatches(t){let e=this.options?.deflate||{},n=new gi.default.Deflate(e);yield*this.transformBatches(n,t)}async*decompressBatches(t){let e=this.options?.deflate||{},n=new gi.default.Inflate(e);yield*this.transformBatches(n,t)}async*transformBatches(t,e){t.onData=this._onData.bind(this),t.onEnd=this._onEnd.bind(this);for await(let o of e){let a=new Uint8Array(o);if(!t.push(a,!1))throw new Error(`${this._getError()}write`);yield*this._getChunks()}let n=new Uint8Array(0),i=t.push(n,!0);yield*this._getChunks()}_onData(t){this._chunks.push(t)}_onEnd(t){if(t!==0)throw new Error(this._getError(t)+this._chunks.length)}_getChunks(){let t=this._chunks;return this._chunks=[],t}_getError(t=0){let e={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}: ${e[t]}`}}});var og,dl,hl,zo,ag=d(()=>{"use strict";Pf();Io();og=1e6,zo=class extends fs{name="zstd";extensions=[];contentEncodings=[];isSupported=!0;options;constructor(t){super(t),this.options=t,cs(t?.modules)}async preload(t={}){cs(t),Nf("zstd-codec",this.name);let e=Mf("zstd-codec");!dl&&e&&(dl=new Promise(n=>e.run(i=>n(i)))),dl&&(hl=await dl)}compressSync(t){Yc("zstd-codec",this.name);let e=new hl.Simple,n=new Uint8Array(t);return e.compress(n).buffer}decompressSync(t){Yc("zstd-codec",this.name);let e=new hl.Simple,n=new Uint8Array(t);return e.decompress(n).buffer}async decompress(t,e){await this.preload();let n=new hl.Streaming,i=new Uint8Array(t),s=[];for(let a=0;a<=i.length;a+=og){let l=i.subarray(a,a+og),c=Cf(l);s.push(new Uint8Array(c))}return(await n.decompressChunks(s)).buffer}}});var wd=d(()=>{"use strict";sg();ag()});async function fg(r,t){return Er(await lx(r,t))}async function lx(r,t){let e=ux(r),n=fx(r,e,dx(e)),i=n.map(a=>r.slice(a.compressedOffset,a.compressedOffset+a.compressedSize)),s=new zo({modules:t?.modules}),o=await Promise.all(i.map((a,l)=>s.decompress(a,n[l].uncompressedSize)));return hx(o,n),px(e,o,r)}function ux(r){if(r.byteLength<jo)throw new Error(`SPZLoader: file must contain a ${jo}-byte header.`);let t=new DataView(r),e={magic:t.getUint32(0,!0),version:t.getUint32(4,!0),numPoints:t.getUint32(8,!0),shDegree:t.getUint8(12),fractionalBits:t.getUint8(13),flags:t.getUint8(14),numStreams:t.getUint8(15),tocByteOffset:t.getUint32(16,!0)};if(e.magic!==sx)throw new Error("SPZLoader: NGSP magic header not found.");if(e.version!==ox)throw new Error(`SPZLoader: version ${e.version} is not supported.`);if(e.shDegree>4)throw new Error(`SPZLoader: spherical harmonics degree ${e.shDegree} is not supported.`);if(e.tocByteOffset<jo||e.tocByteOffset>r.byteLength)throw new Error("SPZLoader: invalid table of contents byte offset.");return e}function fx(r,t,e){if(t.numStreams!==e.length)throw new Error(`SPZLoader: expected ${e.length} streams, found ${t.numStreams}.`);let n=t.numStreams*16,i=t.tocByteOffset+n;if(i>r.byteLength)throw new Error("SPZLoader: table of contents exceeds file byte length.");let s=new DataView(r),o=i,a=[];for(let l=0;l<t.numStreams;l++){let c=t.tocByteOffset+l*16,u=lg(s,c),h=lg(s,c+8),m=e[l];if(h!==m)throw new Error(`SPZLoader: stream ${l} has ${h} uncompressed bytes, expected ${m}.`);if(o+u>r.byteLength)throw new Error(`SPZLoader: stream ${l} exceeds file byte length.`);a.push({compressedSize:u,uncompressedSize:h,compressedOffset:o}),o+=u}if(o!==r.byteLength)throw new Error("SPZLoader: compressed stream byte lengths do not match file byte length.");return a}function lg(r,t){let e=r.getBigUint64(t,!0);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("SPZLoader: stream byte length exceeds Number.MAX_SAFE_INTEGER.");return Number(e)}function dx(r){return[r.numPoints*9,r.numPoints,r.numPoints*3,r.numPoints*3,r.numPoints*4,r.numPoints*dg(r.shDegree)].filter(t=>t>0)}function hx(r,t){for(let e=0;e<r.length;e++)if(r[e].byteLength!==t[e].uncompressedSize)throw new Error(`SPZLoader: decompressed stream ${e} has unexpected byte length.`)}function px(r,t,e){let n=r.numPoints,i=new Float32Array(n*3),s=new Float32Array(n*3),o=new Float32Array(n*4),a=new Uint8Array(n*3),l=new Float32Array(n*3),c=new Float32Array(n),u=dg(r.shDegree),h=u?new Float32Array(n*u):void 0,[m,p,y,g,N,S]=t.map(G=>new Uint8Array(G));return mx(m,i,r.fractionalBits),yx(g,s),_x(N,o),bx(y,a,l),wx(p,c),h&&S&&vx(S,h),{format:"spz",splatCount:n,positions:i,scales:s,rotations:o,colors:a,sphericalHarmonicDcs:l,opacities:c,sphericalHarmonics:h,sphericalHarmonicsComponentCount:u,loaderData:{format:"spz",...r,antialiased:Boolean(r.flags&1),extensionByteLength:hg(r),extensionBytes:xx(e,r)}}}function mx(r,t,e){let n=1/2**e;for(let i=0;i<t.length;i++){let s=i*3,o=r[s]|r[s+1]<<8|r[s+2]<<16;o|=o&8388608?4278190080:0,t[i]=o*n}}function yx(r,t){for(let e=0;e<t.length;e++)t[e]=Math.exp(r[e]/16-10)}function _x(r,t){for(let e=0;e<t.length/4;e++){let n=e*4,i=r[n]|r[n+1]<<8|r[n+2]<<16|r[n+3]<<24,s=gx(i>>>0),[o,a,l,c]=Xr(s[3],s[0],s[1],s[2]),u=e*4;t[u+0]=o,t[u+1]=a,t[u+2]=l,t[u+3]=c}}function gx(r){let t=[0,0,0,0],e=r>>>30,n=r,i=0;for(let s=3;s>=0;s--)if(s!==e){let o=n&cg,a=n>>>9&1;n>>>=10;let l=cx*o/cg;a&&(l=-l),t[s]=l,i+=l*l}return t[e]=Math.sqrt(Math.max(0,1-i)),t}function bx(r,t,e){for(let n=0;n<t.length;n++)e[n]=(r[n]/255-.5)/ug,t[n]=Sx(e[n])}function wx(r,t){for(let e=0;e<t.length;e++)t[e]=r[e]/255}function vx(r,t){for(let e=0;e<t.length;e++)t[e]=(r[e]-128)/128}function Sx(r){return Math.min(Math.max(Math.round((r*ug+.5)*255),0),255)}function dg(r){switch(r){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 ${r} is not supported.`)}}function hg(r){return r.flags&ax?r.tocByteOffset-jo:0}function xx(r,t){return hg(t)?new Uint8Array(r.slice(jo,t.tocByteOffset)):void 0}var jo,sx,ox,ax,ug,cx,cg,pg=d(()=>{"use strict";wd();rs();ts();jo=32,sx=1347635022,ox=4,ax=2,ug=.15,cx=Math.SQRT1_2,cg=(1<<9)-1});var mg={};ye(mg,{SPZLoaderWithParser:()=>Ax});var nM,Ix,Ax,yg=d(()=>{"use strict";pg();vd();({preload:nM,...Ix}=pl),Ax={...Ix,parse:async(r,t)=>fg(r,t)}});async function Dx(){let{SPZLoaderWithParser:r}=await Promise.resolve().then(()=>(yg(),mg));return r}var Bx,pl,vd=d(()=>{"use strict";xn();Bx="5.0.0-alpha.1";pl={dataType:null,batchType:null,...na,version:Bx,options:{splats:{shape:"arrow-table"}},preload:Dx}});function Ho(r){let t=xs(r);if(!t)throw new Error("RADLoader: file must contain a complete RAD metadata header.");return t}function xs(r){let t=wg(r);if(t.byteLength<8)return null;let e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=e.getUint32(0,!0);if(n!==809779538)throw new Error(`RADLoader: RAD0 magic header not found, received 0x${n.toString(16)}.`);let i=e.getUint32(4,!0),s=8+i;if(t.byteLength<s)return null;let o=gg(t.subarray(8,s),"RADLoader: failed to parse RAD metadata JSON.");return Ex(o,i)}function Is(r){let t=wg(r);if(t.byteLength<8)throw new Error("RADLoader: RADC chunk must contain an 8-byte metadata header.");let e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=e.getUint32(0,!0);if(n!==1128546642)throw new Error(`RADLoader: RADC magic header not found, received 0x${n.toString(16)}.`);let i=e.getUint32(4,!0),s=8+i,o=8+yl(i),a=o+8;if(t.byteLength<a)throw new Error("RADLoader: RADC chunk must contain a complete metadata header.");let l=gg(t.subarray(8,s),"RADLoader: failed to parse RADC metadata JSON."),c=Nx(e,o,"RADC payload byte length");return Lx(l,i,a,c)}function yl(r){return r+7&-8}function Ex(r,t){let e=er(r.version,"RAD version");if(e!==1)throw new Error(`RADLoader: version ${e} is not supported.`);let n=ml(r.type,"RAD type");if(n!=="gsplat")throw new Error(`RADLoader: RAD type ${n} is not supported.`);let i=bg(r.chunks,"RAD chunks").map((o,a)=>Ox(o,a));return{version:e,type:n,count:er(r.count,"RAD count"),maxSh:bi(r.maxSh,"RAD maxSh"),lodTree:xd(r.lodTree,"RAD lodTree"),chunkSize:bi(r.chunkSize,"RAD chunkSize"),allChunkBytes:bi(r.allChunkBytes,"RAD allChunkBytes"),chunks:i,splatEncoding:_g(r.splatEncoding,"RAD splatEncoding"),shCodeCount:bi(r.shCodeCount,"RAD shCodeCount"),comment:Sd(r.comment,"RAD comment"),headerJsonByteLength:t,chunksByteOffset:8+yl(t)}}function Ox(r,t){let e=_l(r,`RAD chunk ${t}`);return{offset:er(e.offset,`RAD chunk ${t} offset`),bytes:er(e.bytes,`RAD chunk ${t} bytes`),base:bi(e.base,`RAD chunk ${t} base`),count:bi(e.count,`RAD chunk ${t} count`),filename:Sd(e.filename,`RAD chunk ${t} filename`)}}function Lx(r,t,e,n){let i=er(r.version,"RADC version");if(i!==1)throw new Error(`RADLoader: RADC version ${i} is not supported.`);if(er(r.payloadBytes,"RADC payloadBytes")!==n)throw new Error("RADLoader: RADC metadata payload byte length does not match binary header.");return{version:i,base:er(r.base,"RADC base"),count:er(r.count,"RADC count"),payloadBytes:n,maxSh:bi(r.maxSh,"RADC maxSh"),lodTree:xd(r.lodTree,"RADC lodTree"),splatEncoding:_g(r.splatEncoding,"RADC splatEncoding"),properties:bg(r.properties,"RADC properties").map((o,a)=>Fx(o,a)),headerJsonByteLength:t,payloadByteOffset:e,chunkByteLength:e+n}}function Fx(r,t){let e=_l(r,`RADC property ${t}`);return{offset:er(e.offset,`RADC property ${t} offset`),bytes:er(e.bytes,`RADC property ${t} bytes`),property:ml(e.property,`RADC property ${t} name`),encoding:ml(e.encoding,`RADC property ${t} encoding`),compression:Sd(e.compression,`RADC property ${t} compression`),min:sn(e.min,`RADC property ${t} min`),max:sn(e.max,`RADC property ${t} max`)}}function _g(r,t){if(r===void 0)return;let e=_l(r,t);return{rgbMin:sn(e.rgbMin,`${t}.rgbMin`),rgbMax:sn(e.rgbMax,`${t}.rgbMax`),lnScaleMin:sn(e.lnScaleMin,`${t}.lnScaleMin`),lnScaleMax:sn(e.lnScaleMax,`${t}.lnScaleMax`),sh1Max:sn(e.sh1Max,`${t}.sh1Max`),sh2Max:sn(e.sh2Max,`${t}.sh2Max`),sh3Max:sn(e.sh3Max,`${t}.sh3Max`),lodOpacity:xd(e.lodOpacity,`${t}.lodOpacity`)}}function gg(r,t){try{return _l(JSON.parse(Tx.decode(r)),t)}catch(e){throw e instanceof Error&&e.message.startsWith("RADLoader:")?e:new Error(t)}}function _l(r,t){if(!r||typeof r!="object"||Array.isArray(r))throw new Error(`RADLoader: ${t} must be an object.`);return r}function bg(r,t){if(!Array.isArray(r))throw new Error(`RADLoader: ${t} must be an array.`);return r}function ml(r,t){if(typeof r!="string")throw new Error(`RADLoader: ${t} must be a string.`);return r}function Sd(r,t){if(r!==void 0)return ml(r,t)}function xd(r,t){if(r!==void 0){if(typeof r!="boolean")throw new Error(`RADLoader: ${t} must be a boolean.`);return r}}function er(r,t){if(!Number.isSafeInteger(r)||Number(r)<0)throw new Error(`RADLoader: ${t} must be a non-negative safe integer.`);return Number(r)}function bi(r,t){if(r!==void 0)return er(r,t)}function sn(r,t){if(r!==void 0){if(typeof r!="number"||!Number.isFinite(r))throw new Error(`RADLoader: ${t} must be a finite number.`);return r}}function Nx(r,t,e){let n=r.getBigUint64(t,!0);if(n>BigInt(Number.MAX_SAFE_INTEGER))throw new Error(`RADLoader: ${e} exceeds Number.MAX_SAFE_INTEGER.`);return Number(n)}function wg(r){return r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}var Tx,$o=d(()=>{"use strict";Tx=new TextDecoder});function gl(r,t){return Er(Wo(r,t))}function Wo(r,t){let e=f1(r),n=o1(Is(e),t);if(e.byteLength<n.chunkByteLength)throw new Error("RADLoader: RADC chunk payload is incomplete.");let i=n.count,s=As(e,n,s1(n,"center"),3),o=kx(e,n,i),a=Ux(e,n,i),l=Px(e,n,i),c=Vx(e,n,i),{colors:u,sphericalHarmonicDcs:h}=e1(a),m=t?.radChunk?.includeLoDTree??!0,p=m?jx(e,n,"child_count"):null,y=m?Hx(e,n,"child_start"):null,N=t?.radChunk?.includeSphericalHarmonics??!1?zx(e,n):null;return{format:"rad",splatCount:i,positions:s,scales:l,rotations:c,colors:u,sphericalHarmonicDcs:h,opacities:o,sphericalHarmonics:N?.values,sphericalHarmonicsComponentCount:N?.componentCount,loaderData:{format:"rad",base:n.base,count:n.count,maxSh:n.maxSh??0,lodTree:n.lodTree??!1,splatEncoding:n.splatEncoding,childCounts:p??void 0,childStarts:y??void 0}}}function kx(r,t,e){let n=kr(t,"alpha");if(!n)return new Float32Array(e).fill(1);let i=As(r,t,n,1);for(let s=0;s<i.length;s++)i[s]=Cx(i[s],t,n);return i}function Cx(r,t,e){let n=Math.max(r,0);return!t.splatEncoding?.lodOpacity||e.encoding!=="r8"&&e.encoding!=="r8_delta"?n:n*2}function Ux(r,t,e){let n=kr(t,"rgb");return n?As(r,t,n,3):new Float32Array(e*3).fill(1)}function Px(r,t,e){let n=kr(t,"scales");return n?As(r,t,n,3):new Float32Array(e*3).fill(1)}function Vx(r,t,e){let n=kr(t,"orientation");if(!n)return r1(e);let i=bl(r,t,n);switch(n.encoding){case"oct88r8":return t1(i,e);case"f32":case"f16":{let s=As(r,t,n,3),o=new Float32Array(e*4);for(let a=0;a<e;a++){let l=a*3,c=a*4,u=s[l+0],h=s[l+1],m=s[l+2],p=Math.sqrt(Math.max(0,1-u*u-h*h-m*m)),y=Xr(p,u,h,m);o.set(y,c)}return o}default:throw new Error(`RADLoader: unsupported orientation encoding ${n.encoding}.`)}}function zx(r,t){let e=[{property:kr(t,"sh1"),dimensions:9},{property:kr(t,"sh2"),dimensions:15},{property:kr(t,"sh3"),dimensions:21}].filter(o=>o.property!==void 0);if(e.length===0)return null;let n=e.map(o=>({values:As(r,t,o.property,o.dimensions),dimensions:o.dimensions})),i=n.reduce((o,a)=>o+a.dimensions,0),s=new Float32Array(t.count*i);for(let o=0;o<t.count;o++){let a=o*i;for(let l of n){let c=o*l.dimensions;s.set(l.values.subarray(c,c+l.dimensions),a),a+=l.dimensions}}return{values:s,componentCount:i}}function As(r,t,e,n){let i=bl(r,t,e);switch(e.encoding){case"f32":return Zx(i,n,t.count);case"f16":return vg(i,n,t.count);case"f32_lebytes":return Wx(i,n,t.count);case"f16_lebytes":return Gx(i,n,t.count);case"r8":return Yx(i,n,t.count,Id(t,e),Zo(t,e));case"r8_delta":return Kx(i,n,t.count,Id(t,e),Zo(t,e));case"s8":return Jx(i,n,t.count,Zo(t,e));case"s8_delta":return Xx(i,n,t.count,Zo(t,e));case"ln_0r8":return qx(i,n,t.count,Id(t,e),Zo(t,e));case"ln_f16":return Qx(i,n,t.count);default:throw new Error(`RADLoader: unsupported ${e.property} encoding ${e.encoding}.`)}}function jx(r,t,e){let n=kr(t,e);if(!n)return null;if(n.encoding!=="u16")throw new Error(`RADLoader: unsupported ${e} encoding ${n.encoding}.`);let i=bl(r,t,n),s=new Uint16Array(t.count);for(let o=0;o<t.count;o++)s[o]=i[o*2]|i[o*2+1]<<8;return s}function Hx(r,t,e){let n=kr(t,e);if(!n)return null;if(n.encoding!=="u32")throw new Error(`RADLoader: unsupported ${e} encoding ${n.encoding}.`);let i=bl(r,t,n),s=new DataView(i.buffer,i.byteOffset,i.byteLength),o=new Uint32Array(t.count);for(let a=0;a<t.count;a++)o[a]=s.getUint32(a*4,!0);return o}function bl(r,t,e){let n=yl(e.bytes),i=t.payloadByteOffset+e.offset;if(i+n>r.byteLength||e.offset+n>t.payloadBytes)throw new Error(`RADLoader: property ${e.property} exceeds RADC payload byte length.`);let o=r.subarray(i,i+e.bytes);if(!e.compression)return o;if(e.compression!=="gz")throw new Error(`RADLoader: unsupported property compression ${e.compression}.`);return $x(o,e.property)}function $x(r,t){let e=u1(r);try{return new Uint8Array(Mx.decompressSync(e))}catch{try{return new Uint8Array(Rx.decompressSync(e))}catch{throw new Error(`RADLoader: failed to decompress RADC property ${t}.`)}}}function Zx(r,t,e){let n=new DataView(r.buffer,r.byteOffset,r.byteLength),i=new Float32Array(e*t);for(let s=0;s<e;s++)for(let o=0;o<t;o++)i[s*t+o]=n.getFloat32((o*e+s)*4,!0);return i}function vg(r,t,e){let n=new Float32Array(e*t);for(let i=0;i<e;i++)for(let s=0;s<t;s++){let o=(s*e+i)*2;n[i*t+s]=So(r[o]|r[o+1]<<8)}return n}function Wx(r,t,e){let n=new Float32Array(e*t),i=e*t,s=new Uint8Array(4),o=new DataView(s.buffer);for(let a=0;a<e;a++)for(let l=0;l<t;l++){let c=l*e+a;for(let u=0;u<4;u++)s[u]=r[c+i*u];n[a*t+l]=o.getFloat32(0,!0)}return n}function Gx(r,t,e){let n=new Float32Array(e*t),i=e*t;for(let s=0;s<e;s++)for(let o=0;o<t;o++){let a=o*e+s;n[s*t+o]=So(r[a]|r[a+i]<<8)}return n}function Yx(r,t,e,n,i){let s=new Float32Array(e*t),o=i-n;for(let a=0;a<e;a++)for(let l=0;l<t;l++)s[a*t+l]=r[l*e+a]/255*o+n;return s}function Kx(r,t,e,n,i){let s=new Float32Array(e*t),o=i-n,a=new Uint8Array(t);for(let l=0;l<e;l++)for(let c=0;c<t;c++){let u=c*e+l,h=a[c]+r[u]&255;a[c]=h,s[l*t+c]=h/255*o+n}return s}function Jx(r,t,e,n){let i=new Float32Array(e*t);for(let s=0;s<e;s++)for(let o=0;o<t;o++){let a=r[o*e+s];i[s*t+o]=(a<<24>>24)/127*n}return i}function Xx(r,t,e,n){let i=new Float32Array(e*t),s=new Uint8Array(t);for(let o=0;o<e;o++)for(let a=0;a<t;a++){let l=a*e+o,c=s[a]+r[l]&255;s[a]=c,i[o*t+a]=(c<<24>>24)/127*n}return i}function qx(r,t,e,n,i){let s=new Float32Array(e*t);for(let o=0;o<e;o++)for(let a=0;a<t;a++)s[o*t+a]=n1(r[a*e+o],n,i);return s}function Qx(r,t,e){let n=vg(r,t,e);for(let i=0;i<n.length;i++)n[i]=Math.exp(n[i]);return n}function t1(r,t){let e=new Float32Array(t*4);for(let n=0;n<t;n++){let i=n*3,[s,o,a,l]=i1(r[i],r[i+1],r[i+2]);e.set(Xr(l,s,o,a),n*4)}return e}function e1(r){let t=new Uint8Array(r.length),e=new Float32Array(r.length);for(let n=0;n<r.length;n++){let i=r[n];t[n]=l1(i),e[n]=(i-.5)/_f}return{colors:t,sphericalHarmonicDcs:e}}function r1(r){let t=new Float32Array(r*4);for(let e=0;e<r;e++)t[e*4]=1;return t}function n1(r,t,e){if(r===0)return 0;let n=(e-t)/254;return Math.exp(t+(r-1)*n)}function i1(r,t,e){let n=r/255*2-1,i=t/255*2-1,s=1-Math.abs(n)-Math.abs(i),o=Math.max(-s,0);n=n>=0?n-o:n+o,i=i>=0?i-o:i+o;let a=Math.hypot(n,i,s),l=a>Number.EPSILON?n/a:1,c=a>Number.EPSILON?i/a:0,u=a>Number.EPSILON?s/a:0,h=e/255*.5*Math.PI,m=Math.sin(h);return[l*m,c*m,u*m,Math.cos(h)]}function s1(r,t){let e=kr(r,t);if(!e)throw new Error(`RADLoader: RADC chunk is missing ${t} property.`);return e}function kr(r,t){return r.properties.find(e=>e.property===t)}function o1(r,t){let e=t?.radChunk?.splatEncoding;return e?{...r,splatEncoding:{...e,...r.splatEncoding}}:r}function Id(r,t){if(t.min===void 0){let e=a1(r.splatEncoding,t.property);if(e!==void 0)return e;throw new Error(`RADLoader: RADC property ${t.property} is missing min.`)}return t.min}function Zo(r,t){if(t.max===void 0){let e=c1(r.splatEncoding,t.property);if(e!==void 0)return e;throw new Error(`RADLoader: RADC property ${t.property} is missing max.`)}return t.max}function a1(r,t){switch(t){case"rgb":return r?.rgbMin;case"scales":return r?.lnScaleMin;default:return}}function c1(r,t){switch(t){case"rgb":return r?.rgbMax;case"scales":return r?.lnScaleMax;case"sh1":return r?.sh1Max;case"sh2":return r?.sh2Max;case"sh3":return r?.sh3Max;default:return}}function l1(r){return Math.round(Math.min(Math.max(r,0),1)*255)}function u1(r){let t=new Uint8Array(r.byteLength);return t.set(r),t.buffer}function f1(r){return r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}var Mx,Rx,Ad=d(()=>{"use strict";wd();$o();rs();ts();Mx=new Ss,Rx=new Ss({raw:!0})});var Sg={};ye(Sg,{RADLoaderWithParser:()=>h1,parseRADChunk:()=>gl,parseRADChunkHeader:()=>Is,parseRADChunkToGaussianSplats:()=>Wo,parseRADHeader:()=>Ho,tryParseRADHeader:()=>xs});var pM,d1,h1,xg=d(()=>{"use strict";$o();Bd();$o();Ad();({preload:pM,...d1}=wl),h1={...d1,parse:async r=>Ho(r),parseSync:r=>Ho(r)}});async function m1(){let{RADLoaderWithParser:r}=await Promise.resolve().then(()=>(xg(),Sg));return r}var p1,wl,Bd=d(()=>{"use strict";xn();p1="5.0.0-alpha.1";wl={dataType:null,batchType:null,...wi,version:p1,options:{},preload:m1}});var Yo={};ye(Yo,{KSPLATFormat:()=>ra,KSPLATLoader:()=>Vc,RADFormat:()=>wi,RADLoader:()=>wl,RADSource:()=>Go,RADSourceLoader:()=>Dd,SPLATFormat:()=>ea,SPLATLoader:()=>Cc,SPZFormat:()=>na,SPZLoader:()=>pl,resolveRADChunkUrl:()=>vl});ta(Yo,Sl(Fd(),1));xn();bf();If();vd();Bd();Io();xn();$o();Ad();rs();var y1=[64*1024,256*1024,1024*1024],_1=4,g1="5.0.0-alpha.1",Dd={dataType:null,batchType:null,...wi,name:"RADSourceLoader",version:g1,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:r=>/\.rad(?:$|[?#])/i.test(r),createDataSource:(r,t,e)=>new Go(r,t,e)},Go=class extends us{metadata;_metadataPromise=null;_chunkMetadataPromises=new Map;constructor(t,e,n){super(t,e,Dd.defaultOptions,n),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(t){let e=await this.getMetadata(),n=this._getChunkRange(e,t);return n.filename?vl(this.url,n.filename):typeof this.data=="string"?this.url:null}async getChunk(t,e={}){let n=await this.getMetadata(),i=this._getChunkRange(n,t);if(i.filename){if(typeof this.data!="string")throw new Error("RADSource: sidecar RADC chunks require a URL-backed RAD source.");return await this._fetchArrayBuffer(vl(this.url,i.filename),void 0,{signal:e.signal})}if(i.bytes===0)return new ArrayBuffer(0);let s=n.chunksByteOffset+i.offset;return typeof this.data!="string"?await this.data.slice(s,s+i.bytes).arrayBuffer():await this._fetchArrayBuffer(this.url,{offset:s,bytes:i.bytes},{signal:e.signal})}async getChunkMetadata(t,e={}){let n=this._chunkMetadataPromises.get(t);return n||(n=this.getChunk(t,e).then(i=>Is(i)),this._chunkMetadataPromises.set(t,n)),await n}async getChunkSplats(t,e={}){let n=await this.getMetadata();return Wo(await this.getChunk(t,e),this._getChunkDecodeOptions(n,e))}async getChunkTable(t,e={}){let n=await this.getMetadata();return gl(await this.getChunk(t,e),this._getChunkDecodeOptions(n,e))}async*getChunkTables(t={}){let e=await this.getMetadata(),n=t.startChunkIndex??0,i=t.maxChunks??Number.POSITIVE_INFINITY,s=t.maxSplats??Number.POSITIVE_INFINITY,o=0,a=0;if(t.pruneLoadedLoDParents){let l=b1(e,n,i,s),c=await this._getChunkSplatsConcurrently(l,t),u=0;for(let h of c){o++,a+=h.splatCount;let m=v1(h);u=Math.max(u,m+h.splatCount)}for(let h of c)yield Er(S1(h,u));return}for(let l=n;l<e.chunks.length&&o<i&&a<s;l++){let c=await this.getChunkTable(l,t);o++,a+=c.data.numRows,yield c}}async _getChunkSplatsConcurrently(t,e){let n=new Array(t.length),i=w1(e.maxConcurrentChunkRequests),s=0;async function o(l){for(;s<t.length;){let c=s++,u=t[c];n[c]=await l.getChunkSplats(u,e)}}let a=Math.min(i,t.length);return await Promise.all(Array.from({length:a},()=>o(this))),n}_getChunkDecodeOptions(t,e){return{...e,radChunk:{splatEncoding:t.splatEncoding,...e.radChunk}}}async _loadMetadata(){let t=this.options.rad?.headerByteLengths?.length?this.options.rad.headerByteLengths:y1;if(typeof this.data!="string"){let e=Math.min(this.data.size,Math.max(...t)),n=xs(await this.data.slice(0,e).arrayBuffer());if(n)return n;throw new Error("RADSource: Blob does not contain a complete RAD metadata header.")}for(let e of t){let n=xs(await this._fetchArrayBuffer(this.url,{offset:0,bytes:e}));if(n)return n}throw new Error("RADSource: failed to load a complete RAD metadata header.")}_getChunkRange(t,e){if(!Number.isInteger(e)||e<0||e>=t.chunks.length)throw new Error(`RADSource: chunk index ${e} is outside 0-${t.chunks.length-1}.`);return t.chunks[e]}async _fetchArrayBuffer(t,e,n={}){let i=await this._fetchResponse(t,this._getRequestInit(e,n));if(!i.ok)throw new Error(`RADSource: failed to fetch ${t}: ${i.status} ${i.statusText}`);let s=await i.arrayBuffer();return e&&i.status!==206&&s.byteLength>=e.offset+e.bytes?s.slice(e.offset,e.offset+e.bytes):e&&s.byteLength>e.bytes?s.slice(0,e.bytes):s}async _fetchResponse(t,e){return this._hasCustomFetch()?await this.fetch(t,e):this.hasCoreApi?await this.coreApi.fetchFile(t,e):await this.fetch(t,e)}_hasCustomFetch(){return Boolean(this.loadOptions?.core?.fetch||this.loadOptions?.fetch)}_getRequestInit(t,e={}){let n=new Headers(this.options.rad?.headers);return t&&t.bytes>0&&n.set("Range",`bytes=${t.offset}-${t.offset+t.bytes-1}`),{headers:n,credentials:this.options.rad?.withCredentials?"include":"same-origin",signal:e.signal}}};function b1(r,t,e,n){let i=[],s=0;for(let o=t;o<r.chunks.length&&i.length<e&&s<n;o++){let a=r.chunks[o];i.push(o),s+=a?.count??r.chunkSize??0}return i}function w1(r){return Number.isFinite(r)&&r>0?Math.floor(r):_1}function v1(r){return typeof r.loaderData?.base=="number"?r.loaderData.base:0}function S1(r,t){let e=r.loaderData?.childCounts,n=r.loaderData?.childStarts;if(!(e instanceof Uint16Array)||!(n instanceof Uint32Array))return r;let i=new Uint32Array(r.splatCount),s=0;for(let l=0;l<r.splatCount;l++){let c=e[l],u=n[l];c>0&&u<t||(i[s++]=l)}if(s===r.splatCount)return r;let o=i.subarray(0,s),a=r.sphericalHarmonicsComponentCount??0;return{...r,splatCount:s,positions:on(r.positions,3,o),scales:on(r.scales,3,o),rotations:on(r.rotations,4,o),colors:on(r.colors,3,o),sphericalHarmonicDcs:r.sphericalHarmonicDcs?on(r.sphericalHarmonicDcs,3,o):void 0,opacities:on(r.opacities,1,o),sphericalHarmonics:r.sphericalHarmonics&&a?on(r.sphericalHarmonics,a,o):void 0,loaderData:{...r.loaderData,count:s,childCounts:on(e,1,o),childStarts:on(n,1,o)}}}function on(r,t,e){let n=new r.constructor(e.length*t);for(let i=0;i<e.length;i++){let s=e[i]*t,o=i*t;n.set(r.subarray(s,s+t),o)}return n}function vl(r,t){if(/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith("/"))return t;if(!r)throw new Error("RADSource: cannot resolve a sidecar RADC chunk without a RAD URL.");try{return new URL(t,r).toString()}catch{let[e,n=""]=r.split(/([?#].*)/,2),i=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return`${i>=0?e.slice(0,i+1):""}${t}${n}`}}return Og(Yo);})();
|
|
16
|
+
]`}concat(...e){let r=this.schema,i=this.data.concat(e.flatMap(({data:n})=>n));return new t(r,i.map(n=>new Oe(r,n)))}slice(e,r){let i=this.schema;[e,r]=Va({length:this.numRows},e,r);let n=rd(this.data,this._offsets,e,r);return new t(i,n.map(o=>new Oe(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=P({type:i,length:0,nullCount:0});r.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new E(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 E([P({type:new ft,length:this.numRows})]));let o=i.fields.slice(),s=o[e].clone({type:r.type}),a=this.schema.fields.map((c,u)=>this.getChildAt(u));[o[e],a[e]]=[s,r],[i,n]=Md(i,a)}return new t(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 t(r,i)}assign(e){let r=this.schema.fields,[i,n]=e.schema.fields.reduce((a,c,u)=>{let[l,d]=a,f=r.findIndex(p=>p.name===c.name);return~f?d[f]=u:l.push(u),a},[[],[]]),o=this.schema.assign(e.schema),s=[...r.map((a,c)=>[c,n[c]]).map(([a,c])=>c===void 0?this.getChildAt(a):e.getChildAt(c)),...i.map(a=>e.getChildAt(a))].filter(Boolean);return new t(...Md(o,s))}};lk=Symbol.toStringTag;Qe[lk]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[dk]=!0,t.isValid=Go(Ja),t.get=Go(He.getVisitFn(g.Struct)),t.set=nd(st.getVisitFn(g.Struct)),t.indexOf=id(Vi.getVisitFn(g.Struct)),"Table"))(Qe.prototype);Object.defineProperty(Qe,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===Qe&&Qe.isTable(e)}})});function fk(t,e,r=e.reduce((i,n)=>Math.max(i,n.length),0)){var i;let n=[...t.fields],o=[...e],s=(r+63&-64)>>3;for(let[a,c]of t.fields.entries()){let u=e[a];(!u||u.length!==r)&&(n[a]=c.clone({nullable:!0}),o[a]=(i=u?._changeLengthAndBackfillNullBitmap(r))!==null&&i!==void 0?i:P({type:c.type,length:r,nullCount:r,nullBitmap:new Uint8Array(s)}))}return[t.assign(n),P({type:new De(n),length:r,children:o})]}function hk(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,s=t.length;++o<s;){let{type:a}=t[o],c=e[o];for(let u of[c,...((n=c?.dictionary)===null||n===void 0?void 0:n.data)||[]])hk(a.children,u?.children,r);if(O.isDictionary(a)){let{id:u}=a;if(!r.has(u))c?.dictionary&&r.set(u,c.dictionary);else if(r.get(u)!==c.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return r}var pk,mk,Oe,to,eo=m(()=>{Ar();$c();Nt();_t();Ie();Jo();Ci();Kt();sd();ad();mk=Symbol.for("apache-arrow/RecordBatch"),Oe=class t{static isRecordBatch(e){return e?.[mk]===!0}constructor(...e){switch(e.length){case 3:case 2:{if([this.schema]=e,!(this.schema instanceof ue))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=P({nullCount:0,type:new De(this.schema.fields),children:this.schema.fields.map(r=>P({type:r.type,nullCount:0}))}),this._metadata=new Map]=e,!(this.data instanceof ee))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=fk(this.schema,this.data.children,this.data.length);break}case 1:{let[r]=e,{fields:i,children:n,length:o}=Object.keys(r).reduce((c,u,l)=>(c.children[l]=r[u],c.length=Math.max(c.length,r[u].length),c.fields[l]=Y.new({name:u,type:r[u].type,nullable:!0}),c),{length:0,fields:new Array,children:new Array}),s=new ue(i),a=P({type:new De(i),length:o,children:n,nullCount:0});[this.schema,this.data]=fk(s,a.children,o),this._metadata=new Map;break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get metadata(){return this._metadata}get dictionaries(){return this._dictionaries||(this._dictionaries=hk(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 He.visit(this.data,e)}at(e){return this.get(Fi(e,this.numRows))}set(e,r){return st.visit(this.data,e,r)}indexOf(e,r){return Vi.visit(this.data,e,r)}[Symbol.iterator](){return Ko.visit(new E([this.data]))}toArray(){return[...this]}concat(...e){return new Qe(this.schema,[this,...e])}slice(e,r){let[i]=new E([this.data]).slice(e,r).data;return new t(this.schema,i,this._metadata)}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 E([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 E([P({type:new ft,length:this.numRows})]));let o=i.fields.slice(),s=n.children.slice(),a=o[e].clone({type:r.type});[o[e],s[e]]=[a,r.data[0]],i=new ue(o,new Map(this.schema.metadata)),n=P({type:new De(o),length:n.length,children:s})}return new t(i,n,this._metadata)}select(e){let r=this.schema.select(e),i=new De(r.fields),n=[];for(let o of e){let s=this.schema.fields.findIndex(a=>a.name===o);~s&&(n[s]=this.data.children[s])}return new t(r,P({type:i,length:this.numRows,children:n}),this._metadata)}selectAt(e){let r=this.schema.selectAt(e),i=e.map(o=>this.data.children[o]).filter(Boolean),n=P({type:new De(r.fields),length:this.numRows,children:i});return new t(r,n,this._metadata)}};pk=Symbol.toStringTag;Oe[pk]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[mk]=!0,"RecordBatch"))(Oe.prototype);Object.defineProperty(Oe,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===Oe&&Oe.isRecordBatch(e)}});to=class extends Oe{constructor(e,r){let i=e.fields.map(o=>P({type:o.type})),n=P({type:new De(e.fields),length:0,nullCount:0,children:i});super(e,n,r||new Map)}}});function Vd(t,e=0){for(let r=-1,i=os.length;++r<i;)if(os[r]!==t[e+r])return!1;return!0}var zg,Tg,gk,yk,is,xc,Ic,Rd,Bg,os,ss,Ng,vk,Ug=m(()=>{Rt();qe();de();Ji();Si();hg();Xe();Ki();Ga();zg=t=>`Expected ${le[t]} Message in stream, but was null or length 0.`,Tg=t=>`Header pointer of flatbuffer-encoded ${le[t]} Message is null or length 0.`,gk=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,yk=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,is=class{constructor(e){this.source=e instanceof tn?e:new tn(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done?ze:e.value===-1&&(e=this.readMetadataLength()).done?ze:(e=this.readMetadata(e.value)).done?ze: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(zg(e));return r.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let r=F(this.source.read(e));if(r.byteLength<e)throw new Error(yk(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()}readSchema(e=!1){let r=le.Schema,i=this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(Tg(r));return n}readMetadataLength(){let e=this.source.read(Rd),r=e&&new ot(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}}readMetadata(e){let r=this.source.read(e);if(!r)return ze;if(r.byteLength<e)throw new Error(gk(e,r.byteLength));return{done:!1,value:Pt.decode(r)}}},xc=class{constructor(e,r){this.source=e instanceof lr?e:_l(e)?new qn(e,r):new lr(e)}[Symbol.asyncIterator](){return this}next(){return T(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done?ze:e.value===-1&&(e=yield this.readMetadataLength()).done?ze:(e=yield this.readMetadata(e.value)).done?ze:e})}throw(e){return T(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return T(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return T(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(zg(e));return r.value})}readMessageBody(e){return T(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);let r=F(yield this.source.read(e));if(r.byteLength<e)throw new Error(yk(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()})}readSchema(){return T(this,arguments,void 0,function*(e=!1){let r=le.Schema,i=yield this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(Tg(r));return n})}readMetadataLength(){return T(this,void 0,void 0,function*(){let e=yield this.source.read(Rd),r=e&&new ot(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}})}readMetadata(e){return T(this,void 0,void 0,function*(){let r=yield this.source.read(e);if(!r)return ze;if(r.byteLength<e)throw new Error(gk(e,r.byteLength));return{done:!1,value:Pt.decode(r)}})}},Ic=class extends is{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof Ha?e:new Ha(e)}next(){let{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Pt.fromJSON(e.schema,le.Schema)};if(this._dictionaryIndex<e.dictionaries.length){let r=e.dictionaries[this._dictionaryIndex++];return this._body=r.data.columns,{done:!1,value:Pt.fromJSON(r,le.DictionaryBatch)}}if(this._batchIndex<e.batches.length){let r=e.batches[this._batchIndex++];return this._body=r.columns,{done:!1,value:Pt.fromJSON(r,le.RecordBatch)}}return this._body=[],ze}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]||[],...o.VIEWS&&[o.VIEWS]||[],...o.VARIADIC_DATA_BUFFERS||[],...r(o.children)],[])}}readMessage(e){let r;if((r=this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(zg(e));return r.value}readSchema(){let e=le.Schema,r=this.readMessage(e),i=r?.header();if(!r||!i)throw new Error(Tg(e));return i}},Rd=4,Bg="ARROW1",os=new Uint8Array(Bg.length);for(let t=0;t<Bg.length;t+=1)os[t]=Bg.codePointAt(t);ss=os.length,Ng=ss+Rd,vk=ss*2+Rd});var Pg,Lg,bk,_k=m(()=>{Ia();Pg=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}},Lg=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)}},bk={[bt.LZ4_FRAME]:new Pg,[bt.ZSTD]:new Lg}});var Eg,as,Cg=m(()=>{Ia();_k();Eg=class{constructor(){this.registry={}}set(e,r){if(r?.encode&&typeof r.encode=="function"&&!bk[e].isValidCodecEncode(r))throw new Error(`Encoder for ${bt[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}},as=new Eg});function Ik(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*wk(t){let e=Br.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function $k(t){return Mt(this,arguments,function*(){let r=yield ne(Br.from(t));try{if(!(yield ne(r.open({autoDestroy:!1}))).closed)do yield yield ne(r);while(!(yield ne(r.reset().open())).closed)}finally{yield ne(r.cancel())}})}function hP(t){return new zn(new jg(t))}function gP(t){let e=t.peek(ss+7&-8);return e&&e.byteLength>=4?Vd(e)?new no(new Jd(t.read())):new zn(new cs(t)):new zn(new cs((function*(){})()))}function yP(t){return T(this,void 0,void 0,function*(){let e=yield t.peek(ss+7&-8);return e&&e.byteLength>=4?Vd(e)?new no(new Jd(yield t.read())):new ro(new us(t)):new ro(new us((function(){return Mt(this,arguments,function*(){})})()))})}function vP(t){return T(this,void 0,void 0,function*(){let{size:e}=yield t.stat(),r=new qn(t,e);return e>=vk&&Vd(yield r.readAt(0,ss+7&-8))?new Zd(new Fg(r)):new ro(new us(r))})}var Br,zn,ro,no,Zd,Wd,cs,us,Jd,Fg,jg,Mg=m(()=>{Rt();Ar();Nt();Ie();qe();dg();wa();Ji();Ki();hg();L0();eo();Ga();Ug();Si();Cg();jr();de();Br=class t extends Gi{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 vr(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 it.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return it.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 t?e:vl(e)?hP(e):_l(e)?vP(e):vr(e)?T(this,void 0,void 0,function*(){return yield t.from(yield e)}):wl(e)||va(e)||xl(e)||nr(e)?yP(new lr(e)):gP(new tn(e))}static readAll(e){return e instanceof t?e.isSync()?wk(e):$k(e):vl(e)||ArrayBuffer.isView(e)||br(e)||bl(e)?wk(e):$k(e)}},zn=class extends Br{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Mt(this,arguments,function*(){yield ne(yield*zo(yr(this[Symbol.iterator]())))})}},ro=class extends Br{constructor(e){super(e),this._impl=e}readAll(){return T(this,void 0,void 0,function*(){var e,r,i,n;let o=new Array;try{for(var s=!0,a=yr(this),c;c=yield a.next(),e=c.done,!e;s=!0){n=c.value,s=!1;let u=n;o.push(u)}}catch(u){r={error:u}}finally{try{!s&&!e&&(i=a.return)&&(yield i.call(a))}finally{if(r)throw r.error}}return o})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},no=class extends zn{constructor(e){super(e),this._impl=e}},Zd=class extends ro{constructor(e){super(e),this._impl=e}},Wd=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,i){let n;if(e.compression!=null){let s=as.get(e.compression.type);if(s?.decode&&typeof s.decode=="function"){let{decommpressedBody:a,buffers:c}=this._decompressBuffers(e,r,s);n=this._loadCompressedVectors(e,a,this.schema.fields),e=new Ke(e.length,e.nodes,c,null)}else throw new Error("Record batch is compressed but codec not found")}else n=this._loadVectors(e,r,this.schema.fields);let o=P({type:new De(this.schema.fields),length:e.length,children:n});return new Oe(this.schema,o,i)}_loadDictionaryBatch(e,r){let{id:i,isDelta:n}=e,{dictionaries:o,schema:s}=this,a=o.get(i),c=s.dictionaries.get(i),u;if(e.data.compression!=null){let l=as.get(e.data.compression.type);if(l?.decode&&typeof l.decode=="function"){let{decommpressedBody:d,buffers:f}=this._decompressBuffers(e.data,r,l);u=this._loadCompressedVectors(e.data,d,[c]),e=new mt(new Ke(e.data.length,e.data.nodes,f,null,e.data.variadicBufferCounts),i,n)}else throw new Error("Dictionary batch is compressed but codec not found")}else u=this._loadVectors(e.data,r,[c]);return(a&&n?a.concat(new E(u)):new E(u)).memoize()}_loadVectors(e,r,i){return new Qo(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}_loadCompressedVectors(e,r,i){return new hd(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}_decompressBuffers(e,r,i){let n=[],o=[],s=0;for(let{offset:a,length:c}of e.buffers){if(c===0){n.push(new Uint8Array(0)),o.push(new je(s,0));continue}let u=new ot(r.subarray(a,a+c)),l=oe(u.readInt64(0)),d=u.bytes().subarray(8),f=l===-1?d:i.decode(d);n.push(f);let p=(s+7&-8)-s;s+=p,o.push(new je(s,f.length)),s+=f.length}return{decommpressedBody:n,buffers:o}}},cs=class extends Wd{constructor(e,r){super(r),this._reader=vl(e)?new Ic(this._handle=e):new is(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=Ik(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):ze}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):ze}next(){if(this.closed)return ze;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,e.metadata)}}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 to(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},us=class extends Wd{constructor(e,r){super(r),this._reader=new xc(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return T(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 T(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=Ik(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return T(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):ze})}return(e){return T(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):ze})}next(){return T(this,void 0,void 0,function*(){if(this.closed)return ze;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,e.metadata)}}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 to(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return T(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},Jd=class extends cs{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 Ka?e:new Ka(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(le.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),s=this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,s,n.metadata)}}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(le.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),s=this._reader.readMessageBody(n.bodyLength),a=this._loadDictionaryBatch(o,s);this.dictionaries.set(o.id,a)}}}_readFooter(){let{_handle:e}=this,r=e.size-Ng,i=e.readInt32(r),n=e.readAt(r-i,i);return $n.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}},Fg=class extends us{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 qn?e:new qn(e,i),n)}isFile(){return!0}isAsync(){return!0}open(e){let r=Object.create(null,{open:{get:()=>super.open}});return T(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 T(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(le.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),s=yield this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,s,n.metadata)}}return null})}_readDictionaryBatch(e){return T(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(le.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),s=yield this._reader.readMessageBody(n.bodyLength),a=this._loadDictionaryBatch(o,s);this.dictionaries.set(o.id,a)}}})}_readFooter(){return T(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let r=e.size-Ng,i=yield e.readInt32(r),n=yield e.readAt(r-i,i);return $n.decode(n)})}_readNextMessageAndValidate(e){return T(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})}},jg=class extends cs{constructor(e,r){super(e,r)}_loadVectors(e,r,i){return new md(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}}});function qt(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new je(this._byteLength,e)),this._byteLength+=e,this}function bP(t){var e;let{type:r,length:i,typeIds:n,valueOffsets:o}=t;if(qt.call(this,n),r.mode===ke.Sparse)return Rg.call(this,t);if(r.mode===ke.Dense){if(t.offset<=0)return qt.call(this,o),Rg.call(this,t);{let s=new Int32Array(i),a=Object.create(null),c=Object.create(null);for(let u,l,d=-1;++d<i;)(u=n[d])!==void 0&&((l=a[u])===void 0&&(l=a[u]=o[d]),s[d]=o[d]-l,c[u]=((e=c[u])!==null&&e!==void 0?e:0)+1);qt.call(this,s),this.visitMany(t.children.map((u,l)=>{let d=r.typeIds[l],f=a[d],p=c[d];return u.slice(f,Math.min(i,p))}))}}return this}function _P(t){let e;return t.nullCount>=t.length?qt.call(this,new Uint8Array(t.length+7>>3)):(e=t.values)instanceof Uint8Array?qt.call(this,Mi(t.offset,t.length,e)):qt.call(this,Ri(t.values))}function Tn(t){return qt.call(this,t.values.subarray(0,t.length*t.stride))}function Hd(t){let{length:e,values:r,valueOffsets:i}=t,n=oe(i[0]),o=oe(i[e]),s=Math.min(o-n,r.byteLength-n);return qt.call(this,Il(-n,e+1,i)),qt.call(this,r.subarray(n,n+s)),this}function Sk(t){let{offset:e,length:r,stride:i,values:n,variadicBuffers:o=[]}=t;if(!n)throw new Error("BinaryView data is missing view buffer");let s=e*i,a=s+r*i;qt.call(this,n.subarray(s,a));for(let c of o)qt.call(this,c);return this._variadicBufferCounts.push(o.length),this}function Gd(t){let{length:e,valueOffsets:r}=t;if(r){let i=oe(r[0]),n=oe(r[e]);return qt.call(this,Il(-i,e+1,r)),this.visit(t.children[0].slice(i,n-i))}return this.visit(t.children[0])}function Rg(t){return this.visitMany(t.type.children.map((e,r)=>t.children[r]).filter(Boolean))[0]}var Te,kk=m(()=>{Nt();kr();qe();eo();Xe();Ho();Ji();Ie();jr();Te=class t extends J{static assemble(...e){let r=n=>n.flatMap(o=>Array.isArray(o)?r(o):o instanceof Oe?o.data.children:o.data),i=new t;return i.visitMany(r(e)),i}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[],this._variadicBufferCounts=[]}visit(e){if(e instanceof E)return this.visitMany(e.data),this;let{type:r}=e;if(!O.isDictionary(r)){let{length:i}=e;if(i>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(O.isUnion(r))this.nodes.push(new ur(i,0));else{let{nullCount:n}=e;O.isNull(r)||qt.call(this,n<=0?new Uint8Array(0):Mi(e.offset,i,e.nullBitmap)),this.nodes.push(new ur(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}get variadicBufferCounts(){return this._variadicBufferCounts}};Te.prototype.visitBool=_P;Te.prototype.visitInt=Tn;Te.prototype.visitFloat=Tn;Te.prototype.visitUtf8=Hd;Te.prototype.visitLargeUtf8=Hd;Te.prototype.visitUtf8View=Sk;Te.prototype.visitBinary=Hd;Te.prototype.visitLargeBinary=Hd;Te.prototype.visitBinaryView=Sk;Te.prototype.visitFixedSizeBinary=Tn;Te.prototype.visitDate=Tn;Te.prototype.visitTimestamp=Tn;Te.prototype.visitTime=Tn;Te.prototype.visitDecimal=Tn;Te.prototype.visitList=Gd;Te.prototype.visitLargeList=Gd;Te.prototype.visitStruct=Rg;Te.prototype.visitUnion=bP;Te.prototype.visitInterval=Tn;Te.prototype.visitDuration=Tn;Te.prototype.visitFixedSizeList=Gd;Te.prototype.visitMap=Gd});function Vg(t,e){let r=e;e instanceof Qe&&(r=e.batches,t.reset(void 0,e.schema));for(let i of r)t.write(i);return t.finish()}function Zg(t,e){return T(this,void 0,void 0,function*(){var r,i,n,o,s,a,c;try{for(r=!0,i=yr(e);n=yield i.next(),o=n.done,!o;r=!0){c=n.value,r=!1;let u=c;t.write(u)}}catch(u){s={error:u}}finally{try{!r&&!o&&(a=i.return)&&(yield a.call(i))}finally{if(s)throw s.error}}return t.finish()})}var io,Sc,kc,Dk=m(()=>{Rt();$c();Ug();Nt();Ji();Ji();dg();qe();jd();Ki();kk();Xe();eo();Ga();Si();Ia();Cg();de();io=class extends Gi{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 en,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,vt(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(bt).includes(e.compressionType))this._compression=new Hi(e.compressionType);else{let r=Object.values(bt).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 vr(e)?e.then(r=>this.writeAll(r)):nr(e)?Zg(this,e):Vg(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 en?this._sink=e:(this._sink=new en,e&&kI(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&DI(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||!Qi(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 Qe&&!(r=e.schema))return this.finish()&&void 0;if(e instanceof Oe&&!(r=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(r&&!Qi(r,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,r)}e instanceof Oe?e instanceof to||this._writeRecordBatch(e):e instanceof Qe?this.writeAll(e.batches):br(e)&&this.writeAll(e)}_writeMessage(e,r=8){let i=r-1,n=Pt.encode(e),o=n.byteLength,s=this._writeLegacyIpcFormat?4:8,a=o+s+i&~i,c=a-o-s;return e.headerType===le.RecordBatch?this._recordBatchBlocks.push(new xn(a,e.bodyLength,this._position)):e.headerType===le.DictionaryBatch&&this._dictionaryBlocks.push(new xn(a,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-s)),o>0&&this._write(n),this._writePadding(c)}_write(e){if(this._started){let r=F(e);r&&r.byteLength>0&&(this._sink.write(r),this._position+=r.byteLength)}return this}_writeSchema(e){return this._writeMessage(Pt.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(os)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:s}=this._assembleRecordBatch(e),a=new Ke(e.numRows,i,n,this._compression,s,e.metadata),c=Pt.from(a,r);return this._writeDictionaries(e)._writeMessage(c)._writeBodyBuffers(o)}_assembleRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:s}=Te.assemble(e);return this._compression!=null&&({byteLength:r,bufferRegions:n,buffers:o}=this._compressBodyBuffers(o)),{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:s}}_compressBodyBuffers(e){let r=as.get(this._compression.type);if(!r?.encode||typeof r.encode!="function")throw new Error(`Codec for compression type "${bt[this._compression.type]}" has invalid encode method`);let i=0,n=[],o=[];for(let a of e){let c=F(a);if(c.length===0){n.push(new Uint8Array(0),new Uint8Array(0)),o.push(new je(i,0));continue}let u=r.encode(c),l=u.length<c.length,d=l?u:c,f=l?d.length:-1,p=new ot(new Uint8Array(8));p.writeInt64(0,BigInt(f)),n.push(p.bytes(),new Uint8Array(d));let h=(i+7&-8)-i;i+=h;let y=8+d.length;o.push(new je(i,y)),i+=y}let s=(i+7&-8)-i;return i+=s,{byteLength:i,bufferRegions:o,buffers:n}}_writeDictionaryBatch(e,r,i=!1){let{byteLength:n,nodes:o,bufferRegions:s,buffers:a,variadicBufferCounts:c}=this._assembleRecordBatch(new E([e])),u=new Ke(e.length,o,s,this._compression,c),l=new mt(u,r,i),d=Pt.from(l,n);return this._writeMessage(d)._writeBodyBuffers(a)}_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 a=-1;++a<r;)i[a]=e[n+a],o+=i[a].byteLength;if(o===0)continue;for(let a of i)this._write(a);let s=(o+7&-8)-o;s>0&&this._writePadding(s)}return this}_writeDictionaries(e){var r,i;for(let[n,o]of e.dictionaries){let s=(r=o?.data)!==null&&r!==void 0?r:[],a=this._seenDictionaries.get(n),c=(i=this._dictionaryDeltaOffsets.get(n))!==null&&i!==void 0?i:0;if(!a||a.data[0]!==s[0])for(let[u,l]of s.entries())this._writeDictionaryBatch(l,n,u>0);else if(c<s.length)for(let u of s.slice(c))this._writeDictionaryBatch(u,n,!0);this._seenDictionaries.set(n,o),this._dictionaryDeltaOffsets.set(n,s.length)}return this}},Sc=class t extends io{static writeAll(e,r){let i=new t(r);return vr(e)?e.then(n=>i.writeAll(n)):nr(e)?Zg(i,e):Vg(i,e)}},kc=class t extends io{static writeAll(e,r){let i=new t(r);return vr(e)?e.then(n=>i.writeAll(n)):nr(e)?Zg(i,e):Vg(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=$n.encode(new $n(e,ye.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(r)._write(Int32Array.of(r.byteLength))._writeMagic()}}});function Ak(t,e){if(nr(t))return $P(t,e);if(br(t))return wP(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function wP(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(s){o(s,r||(r=t[Symbol.iterator]()))},pull(s){r?o(s,r):s.close()},cancel(){r?.return&&r.return(),r=null}}),Object.assign({highWaterMark:i?n:void 0},e));function o(s,a){let c,u=null,l=s.desiredSize||null;for(;!(u=a.next(i?l:null)).done;)if(ArrayBuffer.isView(u.value)&&(c=F(u.value))&&(l!=null&&i&&(l=l-c.byteLength+1),u.value=c),s.enqueue(u.value),l!=null&&--l<=0)return;s.close()}}function $P(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(s){return T(this,void 0,void 0,function*(){yield o(s,r||(r=t[Symbol.asyncIterator]()))})},pull(s){return T(this,void 0,void 0,function*(){r?yield o(s,r):s.close()})},cancel(){return T(this,void 0,void 0,function*(){r?.return&&(yield r.return()),r=null})}}),Object.assign({highWaterMark:i?n:void 0},e));function o(s,a){return T(this,void 0,void 0,function*(){let c,u=null,l=s.desiredSize||null;for(;!(u=yield a.next(i?l:null)).done;)if(ArrayBuffer.isView(u.value)&&(c=F(u.value))&&(l!=null&&i&&(l=l-c.byteLength+1),u.value=c),s.enqueue(u.value),l!=null&&--l<=0)return;s.close()})}}var Ok=m(()=>{Rt();Xe();Si()});function Tk(t){return new Wg(t)}var Wg,Bk,zk,Nk=m(()=>{Rt();Sg();Wg=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:r,["writableStrategy"]:i,["queueingStrategy"]:n="count"}=e,o=xI(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Xi(o),this._getSize=n!=="bytes"?Bk:zk;let{["highWaterMark"]:s=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},r),{["highWaterMark"]:a=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},i);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:c=>{this._maybeFlush(this._builder,this._controller=c)},start:c=>{this._maybeFlush(this._builder,this._controller=c)}},{highWaterMark:s,size:n!=="bytes"?Bk:zk}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:c=>this._writeValueAndReturnChunkSize(c)})}_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)}},Bk=t=>{var e;return(e=t?.length)!==null&&e!==void 0?e:0},zk=t=>{var e;return(e=t?.byteLength)!==null&&e!==void 0?e:0}});function Kd(t,e){let r=new en,i=null,n=new ReadableStream({cancel(){return T(this,void 0,void 0,function*(){yield r.close()})},start(a){return T(this,void 0,void 0,function*(){yield s(a,i||(i=yield o()))})},pull(a){return T(this,void 0,void 0,function*(){i?yield s(a,i):a.close()})}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},t)),readable:n};function o(){return T(this,void 0,void 0,function*(){return yield(yield Br.from(r)).open(e)})}function s(a,c){return T(this,void 0,void 0,function*(){let u=a.desiredSize,l=null;for(;!(l=yield c.next()).done;)if(a.enqueue(l.value),u!=null&&--u<=0)return;a.close()})}}var Uk=m(()=>{Rt();Ki();Mg()});function Yd(t,e){let r=new this(t),i=new lr(r),n=new ReadableStream({cancel(){return T(this,void 0,void 0,function*(){yield i.cancel()})},pull(s){return T(this,void 0,void 0,function*(){yield o(s)})},start(s){return T(this,void 0,void 0,function*(){yield o(s)})}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(r,t),readable:n};function o(s){return T(this,void 0,void 0,function*(){let a=null,c=s.desiredSize;for(;a=yield i.read(c||null);)if(s.enqueue(a),c!=null&&(c-=a.byteLength)<=0)return;s.close()})}}var Pk=m(()=>{Rt();Ki()});var Jg={};$e(Jg,{isArrowData:()=>Fk,isArrowDataType:()=>Ck,isArrowField:()=>Ek,isArrowRecordBatch:()=>Mk,isArrowSchema:()=>Lk,isArrowTable:()=>Rk,isArrowVector:()=>jk});function Lk(t){return ue.isSchema(t)}function Ek(t){return Y.isField(t)}function Ck(t){return O.isDataType(t)}function Fk(t){return ee.isData(t)}function jk(t){return E.isVector(t)}function Mk(t){return Oe.isRecordBatch(t)}function Rk(t){return Qe.isTable(t)}var Vk=m(()=>{_t();Ie();Ar();Nt();eo();$c()});var ZP,Zk=m(()=>{Ar();Ie();$c();Nt();_t();jh();vg();Ho();Ra();Xe();Jo();Ea();$g();Vk();jd();ZP=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fh),yg),ng),Mh),nh),rg),Ph),wg),Jg),{compareSchemas:Qi,compareFields:ak,compareTypes:ck})});var Wk=m(()=>{wa();Ne();Mg();Dk();Ok();Nk();Uk();Pk();Zk();it.toDOMStream=Ak;Ae.throughDOM=Tk;Br.throughDOM=Kd;no.throughDOM=Kd;zn.throughDOM=Kd;io.throughDOM=Yd;kc.throughDOM=Yd;Sc.throughDOM=Yd});function Xd(t){return(t/255-.5)/Hg}function qd(t){return Math.min(Math.max(t/255,0),1)}function nn(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 Dc(t){return(t-128)/128}function Ac(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)}var Hg,ls=m(()=>{"use strict";Hg=.28209479177387814});function on(t){let e={},r=[],i=[];Hk(e,r,i,"POSITION",HP(t.positions,3),{type:"fixed-size-list",listSize:3,children:[{name:"value",type:"float32"}]});let n=GP(t);ds(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"}),ds(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"}),ds(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"}),ds(e,r,i,"opacity",t.opacities,{"loaders_gl.gaussian_splats.semantic":"opacity","loaders_gl.gaussian_splats.encoding":"linear"}),Jk(e,r,i,"scale",t.scales,3,{"loaders_gl.gaussian_splats.semantic":"scale","loaders_gl.gaussian_splats.encoding":"linear"}),Jk(e,r,i,"rot",t.rotations,4,{"loaders_gl.gaussian_splats.semantic":"rotation","loaders_gl.gaussian_splats.encoding":"quaternion"}),t.sphericalHarmonics&&t.sphericalHarmonicsComponentCount&&JP(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"]]),s=new ue(r,o);return{shape:"arrow-table",schema:{fields:i,metadata:Object.fromEntries(o)},data:new Qe(s,e),topology:"point-list",loaderData:t.loaderData}}function Jk(t,e,r,i,n,o,s){for(let a=0;a<o;a++){let c=new Float32Array(n.length/o);for(let u=0;u<c.length;u++)c[u]=n[u*o+a];ds(t,e,r,`${i}_${a}`,c,{...s,"loaders_gl.gaussian_splats.component":String(a)})}}function JP(t,e,r,i,n){for(let o=0;o<n;o++){let s=new Float32Array(i.length/n);for(let a=0;a<s.length;a++)s[a]=i[a*n+o];ds(t,e,r,`f_rest_${o}`,s,{"loaders_gl.gaussian_splats.semantic":"spherical_harmonic_rest","loaders_gl.gaussian_splats.component":String(o),"loaders_gl.gaussian_splats.encoding":"coefficient"})}}function ds(t,e,r,i,n,o){Hk(t,e,r,i,Zi(n),"float32",o)}function Hk(t,e,r,i,n,o,s={}){t[i]=n,e.push(new Y(i,n.type,!1,new Map(Object.entries(s)))),r.push({name:i,type:o,nullable:!1,metadata:s})}function HP(t,e){let i=Zi(t).data[0],n=new zt(e,new Y("value",i.type,!1)),o=new ee(n,0,t.length/e,0,{},[i]);return new E([o])}function GP(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]=Xd(t.colors[o*3+0]),i[o]=Xd(t.colors[o*3+1]),n[o]=Xd(t.colors[o*3+2]));return[r,i,n]}var fs=m(()=>{"use strict";Wk();ls()});async function Qd(t,e){return on(await Kg(t,e))}async function Kg(t,e){let r=XP(t);if(r===0)return await qP(t,e);if(r!==Xk)throw new Error(`SPZLoader: version ${r} is not supported.`);let i=e4(t),n=t4(t,i,r4(i)),o=n.map(c=>t.slice(c.compressedOffset,c.compressedOffset+c.compressedSize)),s=new ya({modules:e?.modules}),a=await Promise.all(o.map((c,u)=>s.decompress(c,n[u].uncompressedSize)));return n4(a,n),Yg(i4(i,a,t),e?.splats?.sourceCoordinateSystem??"RUB",e?.splats?.targetCoordinateSystem??e?.splats?.sourceCoordinateSystem??"RUB")}function XP(t){if(t.byteLength<8)throw new Error("SPZLoader: file must contain at least an 8-byte header.");let e=new Uint8Array(t);if(e[0]===31&&e[1]===139)return 0;if(t.byteLength<ps)throw new Error("SPZLoader: file must contain a 32-byte header.");return new DataView(t).getUint32(4,!0)}async function qP(t,e){let r=await new ga({modules:e?.modules,useNative:!0}).decompress(t);if(r.byteLength<16)throw new Error("SPZLoader: legacy payload must contain a 16-byte header.");let i=new DataView(r),n={magic:i.getUint32(0,!0),version:i.getUint32(4,!0),numPoints:i.getUint32(8,!0),shDegree:i.getUint8(12),fractionalBits:i.getUint8(13),flags:i.getUint8(14)};if(n.magic!==Yk)throw new Error("SPZLoader: NGSP magic header not found.");if(n.version!==2&&n.version!==3)throw new Error(`SPZLoader: version ${n.version} is not supported.`);if(i.getUint8(15)!==0)throw new Error("SPZLoader: legacy header reserved byte must be zero.");if(n.shDegree>3)throw new Error(`SPZLoader: spherical harmonics degree ${n.shDegree} is not supported.`);let o=n.numPoints,s=Xg(n.shDegree),a=o*9,c=o,u=o*3,l=o*3,d=o*(n.version===2?3:4),f=o*s,p=a+c+u+l+d+f;if(r.byteLength-16!==p)throw new Error(`SPZLoader: legacy payload has ${r.byteLength-16} bytes, expected ${p}.`);let h=16,y=new Float32Array(o*3),_=new Float32Array(o),k=new Uint8Array(o*3),I=new Float32Array(o*3),A=new Float32Array(o*4),L=new Float32Array(o*3),N=s?new Float32Array(o*s):void 0;return Qk(new Uint8Array(r,h,a),y,n.fractionalBits),h+=a,nD(new Uint8Array(r,h,c),_),h+=c,rD(new Uint8Array(r,h,u),k,L),h+=u,eD(new Uint8Array(r,h,l),I),h+=l,n.version===2?QP(new Uint8Array(r,h,d),A):tD(new Uint8Array(r,h,d),A),h+=d,N&&iD(new Uint8Array(r,h,f),N),Yg({format:"spz",splatCount:o,positions:y,scales:I,rotations:A,colors:k,sphericalHarmonicDcs:L,opacities:_,sphericalHarmonics:N,sphericalHarmonicsComponentCount:s||void 0,loaderData:{...n,legacy:!0}},e?.splats?.sourceCoordinateSystem??"RUB",e?.splats?.targetCoordinateSystem??e?.splats?.sourceCoordinateSystem??"RUB")}function QP(t,e){for(let r=0;r<e.length/4;r++){let i=r*3,n=Gg(t[i])/127,o=Gg(t[i+1])/127,s=Gg(t[i+2])/127,a=Math.sqrt(Math.max(0,1-n*n-o*o-s*s)),c=nn(a,n,o,s);e.set(c,r*4)}}function Gg(t){return t>127?t-256:t}function Yg(t,e,r){if(e===r||e==="UNSPECIFIED"||r==="UNSPECIFIED")return t;if(e==="RUB"&&r==="LUF"){for(let i=0;i<t.positions.length;i+=3)t.positions[i]=-t.positions[i],t.positions[i+2]=-t.positions[i+2];for(let i=0;i<t.rotations.length;i+=4)t.rotations[i+1]=-t.rotations[i+1],t.rotations[i+3]=-t.rotations[i+3];return t}if(e==="LUF"&&r==="RUB")return Yg(t,"RUB","LUF");throw new Error(`SPZLoader: coordinate conversion ${e} -> ${r} is not supported.`)}function e4(t){if(t.byteLength<ps)throw new Error(`SPZLoader: file must contain a ${ps}-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!==Yk)throw new Error("SPZLoader: NGSP magic header not found.");if(r.version!==Xk)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<ps||r.tocByteOffset>t.byteLength)throw new Error("SPZLoader: invalid table of contents byte offset.");return r}function t4(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),s=n,a=[];for(let c=0;c<e.numStreams;c++){let u=e.tocByteOffset+c*16,l=Kk(o,u),d=Kk(o,u+8),f=r[c];if(d!==f)throw new Error(`SPZLoader: stream ${c} has ${d} uncompressed bytes, expected ${f}.`);if(s+l>t.byteLength)throw new Error(`SPZLoader: stream ${c} exceeds file byte length.`);a.push({compressedSize:l,uncompressedSize:d,compressedOffset:s}),s+=l}if(s!==t.byteLength)throw new Error("SPZLoader: compressed stream byte lengths do not match file byte length.");return a}function Kk(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 r4(t){return[t.numPoints*9,t.numPoints,t.numPoints*3,t.numPoints*3,t.numPoints*4,t.numPoints*Xg(t.shDegree)].filter(e=>e>0)}function n4(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 i4(t,e,r){let i=t.numPoints,n=new Float32Array(i*3),o=new Float32Array(i*3),s=new Float32Array(i*4),a=new Uint8Array(i*3),c=new Float32Array(i*3),u=new Float32Array(i),l=Xg(t.shDegree),d=l?new Float32Array(i*l):void 0,[f,p,h,y,_,k]=e.map(I=>new Uint8Array(I));return Qk(f,n,t.fractionalBits),eD(y,o),tD(_,s),rD(h,a,c),nD(p,u),d&&k&&iD(k,d),{format:"spz",splatCount:i,positions:n,scales:o,rotations:s,colors:a,sphericalHarmonicDcs:c,opacities:u,sphericalHarmonics:d,sphericalHarmonicsComponentCount:l,loaderData:{format:"spz",...t,antialiased:!!(t.flags&1),extensionByteLength:oD(t),extensionBytes:a4(r,t)}}}function Qk(t,e,r){let i=1/2**r;for(let n=0;n<e.length;n++){let o=n*3,s=t[o]|t[o+1]<<8|t[o+2]<<16;s|=s&8388608?4278190080:0,e[n]=s*i}}function eD(t,e){for(let r=0;r<e.length;r++)e[r]=Math.exp(t[r]/16-10)}function tD(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=o4(n>>>0),[s,a,c,u]=nn(o[3],o[0],o[1],o[2]),l=r*4;e[l+0]=s,e[l+1]=a,e[l+2]=c,e[l+3]=u}}function o4(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 s=i&Gk,a=i>>>9&1;i>>>=10;let c=YP*s/Gk;a&&(c=-c),e[o]=c,n+=c*c}return e[r]=Math.sqrt(Math.max(0,1-n)),e}function rD(t,e,r){for(let i=0;i<e.length;i++)r[i]=(t[i]/255-.5)/qk,e[i]=s4(r[i])}function nD(t,e){for(let r=0;r<e.length;r++)e[r]=t[r]/255}function iD(t,e){for(let r=0;r<e.length;r++)e[r]=(t[r]-128)/128}function s4(t){return Math.min(Math.max(Math.round((t*qk+.5)*255),0),255)}function Xg(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 oD(t){return t.flags&KP?t.tocByteOffset-ps:0}function a4(t,e){return oD(e)?new Uint8Array(t.slice(ps,e.tocByteOffset)):void 0}var ps,Yk,Xk,KP,qk,YP,Gk,qg=m(()=>{"use strict";wI();fs();ls();ps=32,Yk=1347635022,Xk=4,KP=2,qk=.15,YP=Math.SQRT1_2,Gk=511});function Qg(t){return on(c4(t))}function c4(t){if(t.byteLength%Oc!==0)throw new Error(`SPLATLoader: byte length must be a multiple of ${Oc}.`);let e=t.byteLength/Oc,r=new DataView(t),i=new Float32Array(e*3),n=new Float32Array(e*3),o=new Float32Array(e*4),s=new Uint8Array(e*3),a=new Float32Array(e);for(let c=0;c<e;c++){let u=c*Oc,l=c*3,d=c*4;i[l+0]=r.getFloat32(u+0,!0),i[l+1]=r.getFloat32(u+4,!0),i[l+2]=r.getFloat32(u+8,!0),n[l+0]=r.getFloat32(u+12,!0),n[l+1]=r.getFloat32(u+16,!0),n[l+2]=r.getFloat32(u+20,!0),s[l+0]=r.getUint8(u+24),s[l+1]=r.getUint8(u+25),s[l+2]=r.getUint8(u+26),a[c]=qd(r.getUint8(u+27));let[f,p,h,y]=nn(Dc(r.getUint8(u+28)),Dc(r.getUint8(u+29)),Dc(r.getUint8(u+30)),Dc(r.getUint8(u+31)));o[d+0]=f,o[d+1]=p,o[d+2]=h,o[d+3]=y}return{format:"splat",splatCount:e,positions:i,scales:n,rotations:o,colors:s,opacities:a,loaderData:{format:"splat",splatCount:e,rowByteLength:Oc}}}var Oc,sD=m(()=>{"use strict";fs();ls();Oc=32});var aD={};$e(aD,{SPLATLoaderWithParser:()=>l4});var VG,u4,l4,cD=m(()=>{"use strict";sD();ey();({preload:VG,...u4}=ef),l4={...u4,parse:async t=>Qg(t),parseSync:t=>Qg(t)}});async function f4(){let{SPLATLoaderWithParser:t}=await Promise.resolve().then(()=>(cD(),aD));return t}var d4,ef,ey=m(()=>{"use strict";yi();d4="5.0.0-alpha.11";ef={dataType:null,batchType:null,...Wu,version:d4,options:{splats:{shape:"arrow-table"}},preload:f4}});function ny(t){return on(h4(t))}function h4(t){if(t.byteLength<ms)throw new Error(`KSPLATLoader: file must contain a ${ms}-byte header.`);let e=y4(t);v4(e);let r=b4(t,e),i=S4(e,r),n=Math.max(0,...r.slice(0,rf(e)).map(f=>iy(f.sphericalHarmonicsDegree))),o=new Float32Array(i*3),s=new Float32Array(i*3),a=new Float32Array(i*4),c=new Uint8Array(i*3),u=new Float32Array(i),l=n?new Float32Array(i*n):void 0,d=0;for(let f of r.slice(0,rf(e))){k4(t,f);for(let p=0;p<f.splatCount&&d<i;p++)g4(t,e,f,p,d,o,s,a,c,u,l,n),d++}return{format:"ksplat",splatCount:i,positions:o,scales:s,rotations:a,colors:c,opacities:u,sphericalHarmonics:l,sphericalHarmonicsComponentCount:n,loaderData:{format:"ksplat",...e,sections:r.slice(0,rf(e)).map(f=>({splatCount:f.splatCount,maxSplatCount:f.maxSplatCount,sphericalHarmonicsDegree:f.sphericalHarmonicsDegree}))}}}function g4(t,e,r,i,n,o,s,a,c,u,l,d){let f=ry[e.compressionLevel],p=r.dataBase+r.bytesPerSplat*i,h=n*3,y=n*4,_=w4(t,r,i);o[h+0]=ty(t,p,0,e,r,_[0]),o[h+1]=ty(t,p,1,e,r,_[1]),o[h+2]=ty(t,p,2,e,r,_[2]),s[h+0]=ei(t,p+f.scaleOffsetBytes,0,e.compressionLevel),s[h+1]=ei(t,p+f.scaleOffsetBytes,1,e.compressionLevel),s[h+2]=ei(t,p+f.scaleOffsetBytes,2,e.compressionLevel);let[k,I,A,L]=nn(ei(t,p+f.scaleOffsetBytes,3,e.compressionLevel),ei(t,p+f.scaleOffsetBytes,4,e.compressionLevel),ei(t,p+f.scaleOffsetBytes,5,e.compressionLevel),ei(t,p+f.scaleOffsetBytes,6,e.compressionLevel));a[y+0]=k,a[y+1]=I,a[y+2]=A,a[y+3]=L;let N=p+f.colorOffsetBytes,S=new Uint8Array(t,N,4);c[h+0]=S[0],c[h+1]=S[1],c[h+2]=S[2],u[n]=qd(S[3]),l&&d&&x4(t,p+f.sphericalHarmonicsOffsetBytes,e,r,n,l,d)}function y4(t){let e=new DataView(t,0,ms),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)||-lD,maxSphericalHarmonicsCoeff:e.getFloat32(40,!0)||lD}}function v4(t){if(!(t.versionMajor===uD?t.versionMinor>=p4:t.versionMajor>uD))throw new Error(`KSPLATLoader: version ${t.versionMajor}.${t.versionMinor} is not supported.`)}function b4(t,e){if(t.byteLength<ms+e.maxSectionCount*tf)throw new Error("KSPLATLoader: file does not contain all section headers.");let r=[],i=ms+e.maxSectionCount*tf,n=0;for(let o=0;o<e.maxSectionCount;o++){let s=ms+o*tf,a=new DataView(t,s,tf),c=a.getUint32(0,!0),u=a.getUint32(4,!0),l=a.getUint32(8,!0),d=a.getUint32(12,!0),f=a.getFloat32(16,!0),p=a.getUint16(20,!0),h=a.getUint32(24,!0)||ry[e.compressionLevel].scaleRange,y=a.getUint32(32,!0),_=a.getUint32(36,!0),k=a.getUint16(40,!0),I=I4(e.compressionLevel,k),A=_*4,L=p*d+A,N=I*u+L;r.push({bytesPerSplat:I,splatCountOffset:n,splatCount:c||u,maxSplatCount:u,bucketSize:l,bucketCount:d,bucketStorageSizeBytes:p,bucketsStorageSizeBytes:L,compressionScaleRange:h,compressionScaleFactor:f/2/h,base:i,bucketsBase:i+A,dataBase:i+L,fullBucketCount:y,partiallyFilledBucketCount:_,sphericalHarmonicsDegree:k}),i+=N,n+=u}return r}function ty(t,e,r,i,n,o){let s=_4(t,e,r,i.compressionLevel);return i.compressionLevel>=1?(s-n.compressionScaleRange)*n.compressionScaleFactor+o:s}function _4(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 w4(t,e,r){if(!e.bucketCount)return[0,0,0];let i=$4(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 $4(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 s=0;s<e.partiallyFilledBucketCount;s++){let a=new DataView(t,e.base+s*4,4).getUint32(0,!0);if(r<n+a)return o;n+=a,o++}return Math.max(o-1,0)}function x4(t,e,r,i,n,o,s){let a=iy(i.sphericalHarmonicsDegree),c=n*s;for(let u=0;u<a;u++)o[c+u]=ei(t,e,u,r.compressionLevel,!0,r.minSphericalHarmonicsCoeff,r.maxSphericalHarmonicsCoeff)}function ei(t,e,r,i,n=!1,o=0,s=0){let a=new DataView(t);return i===0?a.getFloat32(e+r*4,!0):i===1||!n?Ac(a.getUint16(e+r*2,!0)):a.getUint8(e+r)/255*(s-o)+o}function I4(t,e){let r=ry[t];return r.bytesPerCenter+r.bytesPerScale+r.bytesPerRotation+r.bytesPerColor+r.bytesPerSphericalHarmonicsComponent*iy(e)}function iy(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 rf(t){return t.sectionCount||t.maxSectionCount}function S4(t,e){let r=e.slice(0,rf(t)).reduce((i,n)=>i+n.splatCount,0);return t.splatCount?Math.min(t.splatCount,r||t.splatCount):r}function k4(t,e){if(e.dataBase+e.bytesPerSplat*e.splatCount>t.byteLength)throw new Error("KSPLATLoader: section data extends beyond the file length.")}var uD,p4,ms,tf,m4,lD,ry,dD=m(()=>{"use strict";fs();ls();uD=0,p4=1,ms=4096,tf=1024,m4=3,lD=m4/2,ry={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}}});var fD={};$e(fD,{KSPLATLoaderWithParser:()=>A4});var XG,D4,A4,pD=m(()=>{"use strict";dD();oy();({preload:XG,...D4}=nf),A4={...D4,parse:async t=>ny(t),parseSync:t=>ny(t)}});async function B4(){let{KSPLATLoaderWithParser:t}=await Promise.resolve().then(()=>(pD(),fD));return t}var O4,nf,oy=m(()=>{"use strict";yi();O4="5.0.0-alpha.11";nf={dataType:null,batchType:null,...Ju,version:O4,options:{splats:{shape:"arrow-table"}},preload:B4}});var mD={};$e(mD,{SPZLoaderWithParser:()=>T4});var rK,z4,T4,hD=m(()=>{"use strict";qg();sy();({preload:rK,...z4}=of),T4={...z4,parse:async(t,e)=>Qd(t,e)}});async function U4(){let{SPZLoaderWithParser:t}=await Promise.resolve().then(()=>(hD(),mD));return t}var N4,of,sy=m(()=>{"use strict";yi();N4="5.0.0-alpha.11";of={dataType:null,batchType:null,...Hu,version:N4,options:{splats:{shape:"arrow-table"}},preload:U4}});var w={};$e(w,{BIGINT_FORMAT_RANGES:()=>Pc,CONSTANT_CATCH:()=>lf,Class:()=>uy,NUMBER_FORMAT_RANGES:()=>Uc,aborted:()=>xt,allowsEval:()=>fy,assert:()=>F4,assertEqual:()=>P4,assertIs:()=>E4,assertNever:()=>C4,assertNotEqual:()=>L4,assignProp:()=>at,attachSchema:()=>uf,base64ToUint8Array:()=>_D,base64urlToUint8Array:()=>iL,cached:()=>vs,captureStackTrace:()=>af,cleanEnum:()=>nL,cleanRegex:()=>Un,clone:()=>ve,cloneDef:()=>R4,codePointLength:()=>ao,constantCatch:()=>yy,createTransparentProxy:()=>G4,defineLazy:()=>ly,defineLazyInternal:()=>ce,derived:()=>cL,esc:()=>$t,escapeRegex:()=>pr,explicitlyAborted:()=>hy,extend:()=>X4,finalizeIssue:()=>Et,floatSafeRemainder:()=>zc,getElementAtPath:()=>V4,getEnumValues:()=>gs,getLengthableOrigin:()=>Ec,getParsedType:()=>H4,getSizableOrigin:()=>Lc,hexToUint8Array:()=>sL,hide:()=>Cc,installLazyProp:()=>fL,isObject:()=>so,isPlainObject:()=>fr,issue:()=>_s,joinValues:()=>b,jsonStringifyReplacer:()=>ys,members:()=>gy,merge:()=>Q4,mergeDefs:()=>zr,normalizeParams:()=>D,nullish:()=>sf,numKeys:()=>J4,objectClone:()=>j4,omit:()=>Y4,optionalKeys:()=>my,own:()=>ri,parsedType:()=>x,partial:()=>eL,pick:()=>K4,prefixIssues:()=>Lt,primitiveTypes:()=>py,promiseAllObject:()=>Z4,propertyKeyTypes:()=>Nc,randomString:()=>W4,rawShape:()=>bs,required:()=>tL,safeExtend:()=>q4,shallowClone:()=>Tc,slugify:()=>dy,stringifyPrimitive:()=>$,toZod:()=>Bc,uint8ArrayToBase64:()=>wD,uint8ArrayToBase64url:()=>oL,uint8ArrayToHex:()=>aL,unwrapMessage:()=>hs});function P4(t){return t}function L4(t){return t}function Bc(){return t=>t}function E4(t){}function C4(t){throw new Error("Unexpected value in exhaustive check")}function F4(t){}function gs(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 b(t,e="|"){return t.map(r=>$(r)).join(e)}function ys(t,e){return typeof e=="bigint"?e.toString():e}function vs(t){return new cy(t)}function sf(t){return t==null}function Un(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function zc(t,e){let r=t/e,i=Math.round(r),n=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}function ly(t,e,r){let i;Object.defineProperty(t,e,{get(){if(i!==gD)return i===void 0&&(i=gD,i=r()),i},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}function j4(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function at(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function bs(t){let e=Object.getOwnPropertyDescriptor(t,"shape");return e?.get?e.get.raw:e?.value}function Nn(t){return bs(t._zod.def)??t._zod.def.shape}function yD(t,e,r){Object.defineProperty(t,e,{get(){let i=r();return at(this,e,i),i},enumerable:!0,configurable:!0})}function vD(t,e,r){e in t?at(t,e,r):t[e]=r}function oo(t,e,r,i){let n=Nn(e);for(let o of r){let s=Object.getOwnPropertyDescriptor(n,o);s.enumerable&&(s.get?yD(t,o,()=>{let a=e._zod.def.shape[o];return i?i(a,o):a}):vD(t,o,i?i(s.value,o):s.value))}}function M4(t,e){for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);i.enumerable&&(i.get?yD(t,r,()=>e[r]):vD(t,r,i.value))}}function zr(...t){let e={};for(let r of t){let i=Object.getOwnPropertyDescriptors(r);Object.assign(e,i)}return Object.defineProperties({},e)}function R4(t){return zr(t._zod.def)}function V4(t,e){return e?e.reduce((r,i)=>r?.[i],t):t}function Z4(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 W4(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}function $t(t){return JSON.stringify(t)}function dy(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function so(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fr(t){if(so(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(so(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Tc(t){return fr(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function J4(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}function pr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ve(t,e,r){let i=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(i._zod.parent=t),i}function D(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 G4(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 $(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function my(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout==="optional")}function K4(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={};return oo(o,t,cf(t,e)),ve(t,zr(r,{shape:o,checks:[]}))}function cf(t,e){let r=Nn(t),i=[];for(let n of Reflect.ownKeys(e)){if(!Object.getOwnPropertyDescriptor(r,n)?.enumerable)throw new Error(`Unrecognized key: "${String(n)}"`);e[n]&&i.push(n)}return i}function Y4(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=new Set(cf(t,e)),s={};return oo(s,t,Reflect.ownKeys(Nn(t)).filter(a=>!o.has(a))),ve(t,zr(r,{shape:s,checks:[]}))}function X4(t,e){if(!fr(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let n=Nn(t);for(let o of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(n,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ve(t,zr(t._zod.def,{shape:bD(t,e)}))}function bD(t,e){let r={};return oo(r,t,Reflect.ownKeys(Nn(t))),M4(r,e),r}function q4(t,e){if(!fr(e))throw new Error("Invalid input to safeExtend: expected a plain object");return ve(t,zr(t._zod.def,{shape:bD(t,e)}))}function Q4(t,e){if(!e?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r={};oo(r,t,Reflect.ownKeys(Nn(t))),oo(r,e,Reflect.ownKeys(Nn(e)));let i=zr(t._zod.def,{shape:r,get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return ve(t,i)}function eL(t,e,r,i="partial"){let o=e._zod.def.checks;if(o&&o.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let a=r?new Set(cf(e,r)):void 0,c={};return oo(c,e,Reflect.ownKeys(Nn(e)),t&&((u,l)=>a&&!a.has(l)?u:new t({type:"optional",innerType:u}))),ve(e,zr(e._zod.def,{shape:c,checks:[]}))}function tL(t,e,r){let i=r?new Set(cf(e,r)):void 0,n={};return oo(n,e,Reflect.ownKeys(Nn(e)),(o,s)=>i&&!i.has(s)?o:new t({type:"nonoptional",innerType:o})),ve(e,zr(e._zod.def,{shape:n}))}function xt(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 hy(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 Lt(t,e){return e.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(t),r})}function hs(t){return typeof t=="string"?t:t?.message}function uf(t,e,r){var i;for(let n=e;n<t.length;n++)(i=t[n]).schema??(i.schema=r)}function Et(t,e,r){var i;let n=t.inst?._zod?.traits;n?.has("$ZodType")&&(n.has("$ZodCheck")?(i=t).schema??(i.schema=t.inst):t.schema=t.inst);let o=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,s=t.message?t.message:hs(t.inst?._zod.def?.error?.(t))??hs(o?.(t))??hs(e?.error?.(t))??hs(r.customError?.(t))??hs(r.localeError?.(t))??"Invalid input",a={};for(let c of Object.keys(t))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(a[c]=t[c]);return a.path??(a.path=[]),a.message=s,e?.reportInput&&(a.input=t.input),a}function Lc(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function ao(t){let e=t.length;if(!rL.test(t))return e;let r=e;for(let i=0;i<e-1;i++)(t.charCodeAt(i)&64512)===55296&&(t.charCodeAt(i+1)&64512)===56320&&(r--,i++);return r}function Ec(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function x(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 _s(...t){let[e,r,i]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:i}:{...e}}function nL(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function _D(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 wD(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function iL(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return _D(e+r)}function oL(t){return wD(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function sL(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 aL(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function gy(t,e){for(let r in e){let i=Object.getOwnPropertyDescriptor(e,r);i.get?Object.defineProperty(t,r,{...i,enumerable:!1}):uL(t,r,i.value)}}function ri(t,e,r,i=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:i,value:r}),r}function Cc(t,e,r){return ri(t,e,r,!1)}function cL(t,e){for(let r in t){let i=t[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){return ri(this,r,i(this))},set(n){ri(this,r,n)}})}return e}function uL(t,e,r){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?r:ri(this,e,r.bind(this))},set(i){ri(this,e,i)}})}function lL(t,e){let r=Object.getPrototypeOf(t);return e in r?void 0:r}function ce(t,e,r){let i=Object.getPrototypeOf(t._zod);if(e in i&&ay!==t._zod){ay=void 0;return}ay=t._zod,Object.defineProperty(i,e,{configurable:!0,get(){Object.defineProperty(this,e,dL);let n=ti;ti=!1;try{let o=r(this);return ti?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o}),ti=ti||n,o}catch(o){throw delete this[e],ti=ti||n,o}},set(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}function fL(t,e,r,i){let n=lL(t,e);n&&Object.defineProperty(n,e,{configurable:!0,get(){let o={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,e,o),o.value=r(this),Object.defineProperty(this,e,o),o.value},set(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:i,value:o})}})}function yy(t){let e=()=>t;return e[lf]=!0,e}var cy,gD,af,fy,H4,Nc,py,Uc,Pc,rL,uy,ay,ti,dL,lf,B=m(()=>{ni();cy=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};gD=Symbol("evaluating");af="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};fy=vs(()=>{if(rt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});H4=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}`)}},Nc=new Set(["string","number","symbol"]),py=new Set(["string","number","bigint","boolean","symbol","undefined"]);Uc={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]},Pc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};rL=/[\uD800-\uDBFF]/;uy=class{constructor(...e){}};ti=!1,dL={configurable:!0,get(){ti=!0}};lf="~constantCatch"});function pL(t){let e=xD;if(e){let r=e.stackTraceLimit;if(typeof r=="number"){try{e.stackTraceLimit=0}catch{return xD=null,new t}try{return new t}finally{e.stackTraceLimit=r}}}return new t}function v(t,e,r,i){let n={};function o(f){this.def=f,this.constr=d,this.traits=new Set}o.prototype=n;let s=r,a=s&&new WeakSet;function c(f,p){if(f._zod){if(f._zod.traits.has(t))return}else{vy.value=new o(p);try{Object.defineProperty(f,"_zod",vy)}finally{vy.value=void 0}}if(f._zod.traits.add(t),e(f,p),a){let y=Object.getPrototypeOf(f),_=f._zod.constr.prototype,k=y;for(;k&&k!==_;)k=Object.getPrototypeOf(k);let I=k??y;a.has(I)||(a.add(I),gy(I,s))}let h=d.prototype;for(let y in h)Object.prototype.hasOwnProperty.call(h,y)&&(y in f||(f[y]=h[y].bind(f)))}let u=i?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:t});function d(f){let p=i?.Parent?pL(l):this;c(p,f);let h=p._zod.deferred;if(h){for(let _ of h)_();p._zod.deferred=void 0}let y=globalThis.__zod_globalConfig?.postProcessor;return y&&y(p),p}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:f=>i?.Parent&&f instanceof i.Parent?!0:f?._zod?.traits?.has(t)}),Object.defineProperty(d,"name",{value:t}),d}function Me(t){return t&&Object.assign(rt,t),rt}var $D,by,vy,xD,_y,Ct,ii,rt,ni=m(()=>{B();by=Object.freeze({status:"aborted"}),vy={value:void 0,enumerable:!1},xD="captureStackTrace"in Error?Error:null;_y=Symbol("zod_brand"),Ct=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ii=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};($D=globalThis).__zod_globalConfig??($D.__zod_globalConfig={});rt=globalThis.__zod_globalConfig});function mL(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,ys,2)),t.message}function hL(t){this._zod.message=t}function yL(t,e,r){return Object.prototype.hasOwnProperty.call(t,e)||(e==="__proto__"?Object.defineProperty(t,e,{value:r(),writable:!0,enumerable:!0,configurable:!0}):t[e]=r()),t[e]}function Fc(t,e=r=>r.message){let r={},i=[];for(let n of t.issues)n.path.length>0?yL(r,n.path[0],()=>[]).push(e(n)):i.push(e(n));return{formErrors:i,fieldErrors:r}}function jc(t,e=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>i({issues:a},[...o,...s.path]));else if(s.code==="invalid_key")i({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")i({issues:s.issues},[...o,...s.path]);else{let a=[...o,...s.path];if(a.length===0)r._errors.push(e(s));else{let c=r,u=0;for(;u<a.length;){let l=a[u],d=u===a.length-1;if(l==="_errors"){d&&c._errors.push(e(s)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||Object.defineProperty(c,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let f=c[l];d&&f._errors.push(e(s)),c=f,u++}}}};return i(t),r}function Iy(t,e=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var s;for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>i({issues:c},[...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 c=[...o,...a.path];if(c.length===0){r.errors.push(e(a));continue}let u=r,l=0;for(;l<c.length;){let d=c[l],f=l===c.length-1;typeof d=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,d)||Object.defineProperty(u.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[d]):(u.items??(u.items=[]),(s=u.items)[d]??(s[d]={errors:[]}),u=u.items[d]),f&&u.errors.push(e(a)),l++}}};return i(t),r}function kD(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 Sy(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 ${kD(i.path)}`);return e.join(`
|
|
17
|
+
`)}var gL,$y,ID,SD,xy,Ft,ky=m(()=>{ni();B();gL={get:mL,set:hL,enumerable:!0,configurable:!0},$y={value:void 0,enumerable:!1},ID=new WeakSet([Object.prototype,Error.prototype]),SD=(t,e)=>{t.name="$ZodError",$y.value=e,Object.defineProperty(t,"issues",$y),$y.value=void 0,Object.defineProperty(t,"message",gL);let r=Object.getPrototypeOf(t);ID.has(r)||(ID.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},xy=v("$ZodError",SD),Ft=v("$ZodError",SD,void 0,{Parent:Error})});function df(t,e){return{callee:e?.callee??t,Err:e?.Err}}function DD(t,e,r){let i;return{success:!1,get error(){return i||(i=new t(e.map(n=>Et(n,r,Me()))),e=void 0,r=void 0),i},set error(n){i=n,e=void 0,r=void 0}}}function xL(t,e,r){let i=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=t._zod.bag.fallbackRun,o;if(n?(i[$L]=!0,o=n({value:e,issues:[]},i)):o=t._zod.run({value:e,issues:[]},i),o instanceof Promise)throw new Ct;return o.issues.length===0}var ws,ff,$s,pf,xs,bL,Is,_L,wL,$L,Mc,Rc,mf,IL,hf,SL,gf,kL,yf,DL,vf,AL,bf,OL,_f,BL,wf,zL,Dy=m(()=>{ni();ky();B();ws=t=>{let e=(r,i,n,o)=>{let s=n?{...n,async:!1}:{async:!1},a=r._zod.run({value:i,issues:[]},s);if(a instanceof Promise)throw new Ct;if(a.issues.length){let c=new(o?.Err??t)(a.issues.map(u=>Et(u,s,Me())));throw af(c,o?.callee??e),c}return a.value};return e},ff=ws(Ft),$s=t=>{let e=async(r,i,n,o)=>{let s=n?{...n,async:!0}:{async:!0},a=r._zod.run({value:i,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(o?.Err??t)(a.issues.map(u=>Et(u,s,Me())));throw af(c,o?.callee??e),c}return a.value};return e},pf=$s(Ft),xs=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 Ct;return o.issues.length?DD(t,o.issues,n):{success:!0,data:o.value}},bL=xs(Ft);Is=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?DD(t,o.issues,n):{success:!0,data:o.value}},_L=Is(Ft),wL=Symbol.for("zod.compile.invalid"),$L=Symbol.for("zod.compile.fallback"),Mc=((t,e,r)=>{let i=t._zod.bag.validator;if(i!==void 0){if(i(e)!==wL)return!0;if(i.definite===!0&&r===void 0)return!1}return xL(t,e,r)});Rc=async(t,e,r)=>{let i=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},n=t._zod.run({value:e,issues:[]},i);return n instanceof Promise&&(n=await n),n.issues.length===0},mf=t=>{let e=ws(t),r=(i,n,o,s)=>{let a=o?{...o,direction:"backward"}:{direction:"backward"};return e(i,n,a,df(r,s))};return r},IL=mf(Ft),hf=t=>{let e=ws(t),r=(i,n,o,s)=>e(i,n,o,df(r,s));return r},SL=hf(Ft),gf=t=>{let e=$s(t),r=async(i,n,o,s)=>{let a=o?{...o,direction:"backward"}:{direction:"backward"};return await e(i,n,a,df(r,s))};return r},kL=gf(Ft),yf=t=>{let e=$s(t),r=async(i,n,o,s)=>await e(i,n,o,df(r,s));return r},DL=yf(Ft),vf=t=>(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return xs(t)(e,r,n)},AL=vf(Ft),bf=t=>(e,r,i)=>xs(t)(e,r,i),OL=bf(Ft),_f=t=>async(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return Is(t)(e,r,n)},BL=_f(Ft),wf=t=>async(e,r,i)=>Is(t)(e,r,i),zL=wf(Ft)});var mr={};$e(mr,{anyString:()=>ev,base64:()=>Wy,base64url:()=>Jy,bigint:()=>rv,boolean:()=>nv,browserEmail:()=>FL,cidrv4:()=>Vy,cidrv6:()=>Zy,creditCard:()=>$f,cuid:()=>Oy,cuid2:()=>By,currencyCode:()=>Yy,date:()=>Xy,datetime:()=>Qy,domain:()=>Gy,duration:()=>Ly,e164:()=>Ky,email:()=>Cy,emoji:()=>Fy,extendedDuration:()=>TL,guid:()=>Ey,hex:()=>cv,hostname:()=>Hy,html5Email:()=>LL,httpProtocol:()=>Vc,iban:()=>xf,idnEmail:()=>CL,integer:()=>Zc,ipv4:()=>jy,ipv6:()=>My,ksuid:()=>Ny,lowercase:()=>sv,mac:()=>Ry,md5_base64:()=>VL,md5_base64url:()=>ZL,md5_hex:()=>RL,nanoid:()=>Uy,nanoidOfLength:()=>Py,null:()=>iv,number:()=>Pn,rfc5322Email:()=>EL,sha1_base64:()=>JL,sha1_base64url:()=>HL,sha1_hex:()=>WL,sha256_base64:()=>KL,sha256_base64url:()=>YL,sha256_hex:()=>GL,sha384_base64:()=>qL,sha384_base64url:()=>QL,sha384_hex:()=>XL,sha512_base64:()=>t6,sha512_base64url:()=>r6,sha512_hex:()=>e6,string:()=>tv,time:()=>qy,ulid:()=>zy,undefined:()=>ov,unicodeEmail:()=>AD,uppercase:()=>av,uuid:()=>co,uuid4:()=>NL,uuid6:()=>UL,uuid7:()=>PL,xid:()=>Ty});function Py(t){return new RegExp(`^[a-zA-Z0-9_-]{${t}}$`)}function Fy(){return new RegExp(jL,"u")}function ML(t){return new RegExp(`^${t}$`)}function Ay(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}}`:t.seconds?`${e}:[0-5]\\d(?:\\.\\d+)?`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function qy(t){return new RegExp(`^${Ay(t)}$`)}function Qy(t){let e=["Z"];t.offset&&e.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${Ay({precision:t.precision,seconds:!0})}(?:${e.join("|")})`,i=t.local?`${r}|${Ay({precision:t.precision})}`:r;return new RegExp(`^${OD}T(?:${i})$`)}function Wc(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function Jc(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var Oy,By,zy,Ty,Ny,Uy,Ly,TL,Ey,co,NL,UL,PL,Cy,LL,EL,AD,CL,FL,jL,jy,My,Ry,Vy,Zy,Wy,Jy,Hy,Gy,Vc,Ky,$f,Yy,xf,OD,Xy,ev,tv,rv,Zc,Pn,nv,iv,ov,sv,av,cv,RL,VL,ZL,WL,JL,HL,GL,KL,YL,XL,qL,QL,e6,t6,r6,uo=m(()=>{B();Oy=/^[cC][0-9a-z]{6,}$/,By=/^[0-9a-z]+$/,zy=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Ty=/^[0-9a-vA-V]{20}$/,Ny=/^[A-Za-z0-9]{27}$/,Uy=/^[a-zA-Z0-9_-]{21}$/;Ly=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,TL=/^[-+]?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)?)??$/,Ey=/^([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})$/,co=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)$/,NL=co(4),UL=co(6),PL=co(7),Cy=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,LL=/^[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])?)*$/,EL=/^(([^<>()\[\]\\.,;:\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,}))$/,AD=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,CL=AD,FL=/^[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])?)*$/,jL="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";jy=/^(?:(?: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])$/,My=/^(([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}|:))$/,Ry=t=>{let e=pr(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Vy=/^((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])$/,Zy=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Wy=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Jy=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Hy=/^(?=.{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])?)*\.?$/,Gy=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,Vc=/^https?$/,Ky=/^\+[1-9]\d{6,14}$/,$f=/^\d(?:[ -]?\d){11,18}$/,Yy=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,xf=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,OD="(?:(?:\\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])))";Xy=ML(OD);ev=/^[\s\S]{0,}$/,tv=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},rv=/^-?\d+n?$/,Zc=/^-?\d+$/,Pn=/^-?\d+(?:\.\d+)?$/,nv=/^(?:true|false)$/i,iv=/^null$/i,ov=/^undefined$/i,sv=/^[^A-Z]*$/,av=/^[^a-z]*$/,cv=/^[0-9a-fA-F]*$/;RL=/^[0-9a-fA-F]{32}$/,VL=Wc(22,"=="),ZL=Jc(22),WL=/^[0-9a-fA-F]{40}$/,JL=Wc(27,"="),HL=Jc(27),GL=/^[0-9a-fA-F]{64}$/,KL=Wc(43,"="),YL=Jc(43),XL=/^[0-9a-fA-F]{96}$/,qL=Wc(64,""),QL=Jc(64),e6=/^[0-9a-fA-F]{128}$/,t6=Wc(86,"=="),r6=Jc(86)});function Sf(t,e,r){t.issues.length&&e.issues.push(...Lt(r,t.issues))}var Se,uv,lv,If,kf,Df,dv,fv,pv,mv,hv,gv,yv,vv,bv,Ss,_v,wv,$v,xv,Iv,Sv,kv,Dv,Av,Ov,Af=m(()=>{ni();uo();B();Se=v("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),uv=t=>{let e=t.value;return!sf(e)&&e.size!==void 0},lv=t=>{let e=t.value;return!sf(e)&&e.length!==void 0},If={number:"number",bigint:"bigint",object:"date"},kf=v("$ZodCheckLessThan",(t,e)=>{Se.init(t,e);let r=If[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value<e.value)||i.issues.push({origin:If[typeof i.value]??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})}}),Df=v("$ZodCheckGreaterThan",(t,e)=>{Se.init(t,e);let r=If[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:If[typeof i.value]??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})}}),dv=v("$ZodCheckMultipleOf",(t,e)=>{Se.init(t,e),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"?e.value!==BigInt(0)&&r.value%e.value===BigInt(0):zc(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})}}),fv=v("$ZodCheckNumberFormat",(t,e)=>{Se.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),i=r?"int":"number",[n,o]=Uc[e.format];t._zod.check=s=>{let a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:i,format:e.format,code:"invalid_type",continue:!1,input:a,inst:t});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,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}):s.issues.push({input:a,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}}a<n&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),pv=v("$ZodCheckBigIntFormat",(t,e)=>{Se.init(t,e);let[r,i]=Pc[e.format];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})}}),mv=v("$ZodCheckMaxSize",(t,e)=>{var r;Se.init(t,e),(r=t._zod.def).when??(r.when=uv),t._zod.check=i=>{let n=i.value;n.size<=e.maximum||i.issues.push({origin:Lc(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),hv=v("$ZodCheckMinSize",(t,e)=>{var r;Se.init(t,e),(r=t._zod.def).when??(r.when=uv),t._zod.check=i=>{let n=i.value;n.size>=e.minimum||i.issues.push({origin:Lc(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),gv=v("$ZodCheckSizeEquals",(t,e)=>{var r;Se.init(t,e),(r=t._zod.def).when??(r.when=uv),t._zod.check=i=>{let n=i.value,o=n.size;if(o===e.size)return;let s=o>e.size;i.issues.push({origin:Lc(n),...s?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),yv=v("$ZodCheckMaxLength",(t,e)=>{var r;Se.init(t,e),(r=t._zod.def).when??(r.when=lv),t._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>e.maximum?ao(n):o)<=e.maximum)return;let a=Ec(n);i.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),vv=v("$ZodCheckMinLength",(t,e)=>{var r;Se.init(t,e),(r=t._zod.def).when??(r.when=lv),t._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>=e.minimum&&o<e.minimum*2?ao(n):o)>=e.minimum)return;let a=Ec(n);i.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),bv=v("$ZodCheckLengthEquals",(t,e)=>{var r;Se.init(t,e),(r=t._zod.def).when??(r.when=lv),t._zod.check=i=>{let n=i.value,o=n.length,s=typeof n=="string"&&o>=e.length&&o<=e.length*2?ao(n):o;if(s===e.length)return;let a=Ec(n),c=s>e.length;i.issues.push({origin:a,...c?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),Ss=v("$ZodCheckStringFormat",(t,e)=>{var r,i;Se.init(t,e),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=()=>{})}),_v=v("$ZodCheckRegex",(t,e)=>{Ss.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})}}),wv=v("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=sv),Ss.init(t,e)}),$v=v("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=av),Ss.init(t,e)}),xv=v("$ZodCheckIncludes",(t,e)=>{Se.init(t,e);let r=pr(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position},}${r}`:r);e.pattern=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})}}),Iv=v("$ZodCheckStartsWith",(t,e)=>{Se.init(t,e);let r=new RegExp(`^${pr(e.prefix)}.*`);e.pattern??(e.pattern=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})}}),Sv=v("$ZodCheckEndsWith",(t,e)=>{Se.init(t,e);let r=new RegExp(`.*${pr(e.suffix)}$`);e.pattern??(e.pattern=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})}});kv=v("$ZodCheckProperty",(t,e)=>{Se.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=>Sf(n,r,e.property));Sf(i,r,e.property)}}),Dv=v("$ZodCheckProperties",(t,e)=>{Se.init(t,e),Cc(t,Symbol.iterator,function*(){yield t});let r;t._zod.check=i=>{if(i.value==null){i.issues.push({expected:"object",code:"invalid_type",input:i.value,inst:t});return}r??(r=Reflect.ownKeys(e.shape).map(s=>[s,e.shape[s]]));let n=i.value,o;for(let[s,a]of r){let c=a._zod.run({value:n[s],issues:[]},{});c instanceof Promise?(o??(o=[]),o.push(c.then(u=>Sf(u,i,s)))):Sf(c,i,s)}if(o)return Promise.all(o).then(()=>{})}}),Av=v("$ZodCheckMimeType",(t,e)=>{Se.init(t,e);let r=new Set(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})}}),Ov=v("$ZodCheckOverwrite",(t,e)=>{Se.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}})});var lo,Of=m(()=>{lo=class{constructor(e=[],r={}){this.content=[],this.indent=0,this.args=e,this.closed=r}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let i=e.split(`
|
|
18
|
+
`).filter(s=>s),n=Math.min(...i.map(s=>s.length-s.trimStart().length)),o=i.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of o)this.content.push(s)}compile(){let e=Function,r=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
19
|
+
${r.join(`
|
|
20
|
+
`)}
|
|
21
|
+
};`)(...Object.values(this.closed))}}});var Bv,zv=m(()=>{Bv={major:4,minor:6,patch:5}});async function n6(t,e){let r={async:!0};return JD(await t._zod.run({value:e,issues:[]},r),r)}function Uf(t){return{validate:e=>{let r={async:!1};try{let i=t._zod.run({value:e,issues:[]},r);if(!(i instanceof Promise))return JD(i,r)}catch{}return n6(t,e)},vendor:"zod",version:1}}function Ev(t){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(t):(new URL(t),!0)}catch{return!1}}function Pf(t,e){return!("normalize"in e)&&!("hostname"in e)&&!("protocol"in e)?Ev(t)||Hc:HD(t,e)}function HD(t,e){if(!e.normalize&&e.protocol?.source===Vc.source&&!/^https?:\/\//i.test(t))return Lv;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse=="function")return r.parse(t)??Hc}return new URL(t)}catch{return Hc}}function Gc(t){return t.replace(i6,"")}function Lf(t,e){return e.lastIndex=0,e.test(t.hostname)}function Ef(t,e){return e.lastIndex=0,e.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)}function Kc(t){return o6.test(t)?Ev(`http://[${t}]`):!1}function Cf(t){let e=t.split("/");if(e.length!==2)return!1;let[r,i]=e;if(!i)return!1;let n=Number(i);return`${n}`!==i||n<0||n>128?!1:Kc(r)}function Yc(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}function jf(t){if(!Xc.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return Yc(r)}function a6(t){let e=t.length,r=1,i=0;for(;e;){let n=t.charCodeAt(--e)-48;r^=1,i+=r?[0,2,4,6,8,1,3,5,7,9][n]:n}return i%10===0}function Mf(t){return $f.test(t)?a6(t.replace(s6,"")):!1}function c6(t){let e=0,r=t.length;for(let i=4;i<r;i++){let n=t.charCodeAt(i);e=(n>=65?e*100+(n-55):e*10+(n-48))%97}for(let i=0;i<4;i++){let n=t.charCodeAt(i);e=(n>=65?e*100+(n-55):e*10+(n-48))%97}return e===1}function Rf(t){return xf.test(t)?c6(t):!1}function Vf(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}}function zD(t,e,r){t.issues.length&&e.issues.push(...Lt(r,t.issues)),e.value[r]=t.value}function Nf(t,e,r,i,n,o){let s=r in i,a=o==="optional";if(!(!s&&a&&n==="optional")){if(t.issues.length){if(n!==void 0&&a&&!s)return;e.issues.push(...Lt(r,t.issues))}if(!s&&n===void 0){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}t.value===void 0?(s||n==="defaulted"&&!a)&&(e.value[r]=void 0):e.value[r]=t.value}}function GD(t){let e=Object.keys(t.shape),r=Object.getOwnPropertySymbols(t.shape),i=r.length?r:u6,n=i.length?[...e,...i]:e;for(let s of n)if(!t.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let o=my(t.shape);return{...t,allKeys:n,symbolKeys:i,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(o)}}function KD(t,e,r,i,n,o,s){let a=[],c=n.keySet,u=n.catchall._zod,l=u.def.type,d=u.optin,f=u.optout,p=0;for(let h in e){if(s&&r.issues.length!==p){if(xt(r,p))break;p=r.issues.length}if(c.has(h))continue;if(h==="__proto__"){l==="never"&&a.push(h);continue}if(l==="never"){a.push(h);continue}let y=u.run({value:e[h],issues:[]},i);y instanceof Promise?t.push(y.then(_=>Nf(_,r,h,e,d,f))):Nf(y,r,h,e,d,f)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:e,inst:o,continue:!0}),t.length?Promise.all(t).then(()=>r):r}function TD(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=>!xt(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(s=>Et(s,i,Me())))}),e)}function ND(t,e,r,i){let n=[];for(let o=0;o<t.length;o++)t[o].issues.length===0&&n.push(o);return n.length===1?(e.value=t[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(s=>Et(s,i,Me())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1,matches:n}),e)}function wb(t,e){let r=t._zod,i=r.bag.optionsMap;i||(i=XD(r.def),r.bag.optionsMap=i);let n=i.get(e);if(n===null)throw new Error(`Ambiguous discriminator value "${String(e)}"`);return n}function XD(t){let e=new Map;for(let r of t.options){let i=r._zod.propValues?.[t.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let n of i)if(e.has(n)){if(n!==void 0)throw new Error(`Duplicate discriminator value "${String(n)}"`);e.set(n,null)}else e.set(n,r)}return e}function ks(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(fr(t)&&fr(e)){let r=Object.keys(e),i=Object.keys(t).filter(o=>r.indexOf(o)!==-1),n={...t,...e};Object.prototype.hasOwnProperty.call(n,"__proto__")&&delete n.__proto__;for(let o of i){if(o==="__proto__")continue;let s=ks(t[o],e[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n[o]=s.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],s=ks(n,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function UD(t,e,r){let i=new Map,n,o=new Map,s=(u,l)=>{let d;if(u.code==="unrecognized_keys"&&!u.path?.length)n??(n=u),d=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let f=String(u.path[0]);o.has(f)||o.set(f,u),d=[f]}else return!1;for(let f of d)i.has(f)||i.set(f,{}),i.get(f)[l]=!0;return!0};for(let u of e.issues)s(u,"l")||t.issues.push(u);for(let u of r.issues)s(u,"r")||t.issues.push(u);let a=[...i].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=n?a.filter(l=>n.keys.includes(l)):[];u.length&&t.issues.push({...n,keys:u});for(let l of a)!u.includes(l)&&o.has(l)&&t.issues.push(o.get(l))}let c=ks(e.value,r.value);if(!c.valid){if(xt(t))return t;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return t.value=c.data,t}function PD(t,e){for(let r=t.length-1;r>=0;r--)if(!(e==="optin"?t[r]._zod.optin!==void 0:t[r]._zod.optout==="optional"))return r+1;return 0}function LD(t,e,r){t.issues.length&&e.issues.push(...Lt(r,t.issues)),e.value[r]=t.value}function ED(t,e,r,i,n){for(let o=0;o<r.length;o++){let s=t[o],a=o<i.length;if(!a&&o>=n&&r[o]._zod.optin==="optional"){e.value.length=o;break}if(s.issues.length){if(!a&&o>=n){e.value.length=o;break}e.issues.push(...Lt(o,s.issues))}e.value[o]=s.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}function CD(t,e,r,i,n,o,s){t.issues.length&&(Nc.has(typeof i)?r.issues.push(...Lt(i,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:t.issues.map(a=>Et(a,s,Me()))})),e.issues.length&&(Nc.has(typeof i)?r.issues.push(...Lt(i,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:e.issues.map(a=>Et(a,s,Me()))})),r.value.set(t.value,e.value)}function FD(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}function jD(t,e){return t.value=e.issues.length?void 0:e.value,t}function MD(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}function RD(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}function VD(t,e,r,i){return e.issues.length?(t.value=r.catchValue({...e,value:t.value,error:{issues:e.issues.map(n=>Et(n,i,Me()))},input:t.value}),t):(t.value=e.value,e.memo&&(t.memo=!0),t)}function Bf(t,e,r){return t.issues.some(i=>i.code!=="unrecognized_keys")?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}function zf(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=>Tf(t,o,e.out,r)):Tf(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(o=>Tf(t,o,e.in,r)):Tf(t,n,e.in,r)}}function Tf(t,e,r,i){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},i)}function ZD(t){return t.memo||(t.value=Object.freeze(t.value)),t}function l6(t){let e=t._zod.def,r=e.pattern,i=!!e.format?.includes("int"),n,o;for(let a of e.checks??[]){let c=a._zod.def;c.pattern&&(r=c.pattern),i||(i=!!c.format?.includes("int"));let u=c.minimum??c.length,l=c.maximum??c.length;u!==void 0&&(n===void 0||u>n)&&(n=u),l!==void 0&&(o===void 0||l<o)&&(o=l)}if(r)return r.source;if(n!==void 0&&o!==void 0&&n>o)return"(?!)";if(n!==void 0||o!==void 0)return tv({minimum:n,maximum:o}).source;let s=t._zod.pattern;return(i&&s===Pn?Zc:s)?.source}function Tv(t){let e=t._zod.def,r=t._zod.pattern?.source,i=e.innerType??t._zod.innerType;if(i){let n=i._zod.pattern?.source,o=Tv(i);return r&&n&&o&&o!==n?r.replace(Un(n),()=>Un(o)):r}if(e.options){let n=e.options.map(Tv);if(n.every(Boolean))return`^(${n.map(o=>Un(o)).join("|")})$`}return l6(t)}function WD(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(_s(n))}}var te,JD,fo,be,Nv,Uv,Pv,Lv,Hc,i6,Cv,Fv,jv,Mv,Rv,Vv,Zv,Wv,Jv,Hv,Gv,Kv,Yv,o6,Xv,qv,Qv,eb,Ff,tb,Xc,rb,nb,s6,ib,ob,sb,ab,Zf,cb,qc,Wf,ub,lb,db,fb,pb,mb,hb,gb,yb,vb,u6,YD,bb,Qc,_b,$b,xb,Jf,Ib,Sb,kb,Db,Ab,Ob,Bb,Hf,zb,Tb,Nb,Ub,Pb,Lb,Eb,Cb,Gf,eu,Fb,jb,Mb,Rb,Vb,tu,Zb,Ds=m(()=>{Af();ni();Of();Dy();uo();B();zv();B();te=v("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=Bv;let i=t._zod.def.checks,n=t._zod.traits.has("$ZodCheck")?[t,...i??[]]:i?.length?[...i]:[];for(let o of n)for(let s of o._zod.onattach)s(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let o=(a,c,u)=>{if(a.memo)return a;let l=xt(a),d;for(let f of c){if(f._zod.def.when){if(hy(a)||!f._zod.def.when(a))continue}else if(l)continue;let p=a.issues.length,h=f._zod.check(a);if(h instanceof Promise&&u?.async===!1)throw new Ct;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==p&&(uf(a.issues,p,t),l||(l=xt(a,p)))});else{if(a.issues.length===p)continue;uf(a.issues,p,t),l||(l=xt(a,p))}}return d?d.then(()=>a):a},s=(a,c,u)=>{if(xt(a))return a.aborted=!0,a;let l=o(c,n,u);if(l instanceof Promise){if(u.async===!1)throw new Ct;return l.then(d=>t._zod.parse(d,u))}return t._zod.parse(l,u)};t._zod.run=(a,c)=>{if(c.skipChecks)return t._zod.parse(a,c);if(c.direction==="backward"){let l=t._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>s(d,a,c)):s(l,a,c)}let u=t._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new Ct;return u.then(l=>o(l,n,c))}return o(u,n,c)}}},{get"~standard"(){return Cc(this,"~standard",Uf(this))},set"~standard"(t){ri(this,"~standard",t)}}),JD=(t,e)=>t.issues.length?{issues:t.issues.map(r=>Et(r,e,Me()))}:{value:t.value};fo=v("$ZodString",(t,e)=>{te.init(t,e),t._zod.pattern=e.pattern??ev,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}}),be=v("$ZodStringFormat",(t,e)=>{Ss.init(t,e),fo.init(t,e)}),Nv=v("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Ey),be.init(t,e)}),Uv=v("$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=co(i))}else e.pattern??(e.pattern=co());be.init(t,e)}),Pv=v("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Cy),be.init(t,e)}),Lv=1,Hc=2;i6=/[\t\n\r]/g;Cv=v("$ZodURL",(t,e)=>{be.init(t,e),t._zod.check=r=>{try{let i=r.value.trim(),n=Pf(i,e);if(n===Lv){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:t,continue:!e.abort});return}if(n===Hc){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort});return}if(n===!0){r.value=Gc(i);return}e.hostname&&!Lf(n,e.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&&!Ef(n,e.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort}),r.value=e.normalize?n.href:Gc(i);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),Fv=v("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Fy()),be.init(t,e)}),jv=v("$ZodNanoID",(t,e)=>{if(e.length!==void 0&&(!Number.isInteger(e.length)||e.length<1))throw new Error(`Invalid nanoid length: ${e.length}`);e.pattern??(e.pattern=e.length===void 0?Uy:Py(e.length)),be.init(t,e)}),Mv=v("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Oy),be.init(t,e)}),Rv=v("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=By),be.init(t,e)}),Vv=v("$ZodULID",(t,e)=>{e.pattern??(e.pattern=zy),be.init(t,e)}),Zv=v("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Ty),be.init(t,e)}),Wv=v("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Ny),be.init(t,e)}),Jv=v("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=Qy(e)),be.init(t,e)}),Hv=v("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=Xy),be.init(t,e)}),Gv=v("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=qy(e)),be.init(t,e)}),Kv=v("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Ly),be.init(t,e)}),Yv=v("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=jy),be.init(t,e)}),o6=/^[0-9a-fA-F:.]+$/;Xv=v("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=My),be.init(t,e),t._zod.check=r=>{Kc(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}),qv=v("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=Ry(e.delimiter)),be.init(t,e)}),Qv=v("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Vy),be.init(t,e)});eb=v("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=Zy),be.init(t,e),t._zod.check=r=>{Cf(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}});Ff=/^[0-9a-zA-Z+/]*={0,2}$/,tb=v("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=Ff),be.init(t,e),t._zod.check=r=>{Yc(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}}),Xc=/^[A-Za-z0-9_-]*$/;rb=v("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Xc),be.init(t,e),t._zod.check=r=>{jf(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),nb=v("$ZodE164",(t,e)=>{e.pattern??(e.pattern=Ky),be.init(t,e)}),s6=/[- ]/g;ib=v("$ZodCreditCard",(t,e)=>{e.pattern??(e.pattern=$f),be.init(t,e),t._zod.check=r=>{Mf(r.value)||r.issues.push({code:"invalid_format",format:"credit_card",input:r.value,inst:t,continue:!e.abort})}});ob=v("$ZodIBAN",(t,e)=>{e.pattern??(e.pattern=xf),be.init(t,e),t._zod.check=r=>{Rf(r.value)||r.issues.push({code:"invalid_format",format:"iban",input:r.value,inst:t,continue:!e.abort})}});sb=v("$ZodJWT",(t,e)=>{be.init(t,e),t._zod.check=r=>{Vf(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),ab=v("$ZodCustomStringFormat",(t,e)=>{be.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})}}),Zf=v("$ZodNumber",(t,e)=>{te.init(t,e),t._zod.pattern=Pn,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:String(n):void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...o?{received:o}:{}}),r}}),cb=v("$ZodNumberFormat",(t,e)=>{fv.init(t,e),Zf.init(t,e)}),qc=v("$ZodBoolean",(t,e)=>{te.init(t,e),t._zod.pattern=nv,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),Wf=v("$ZodBigInt",(t,e)=>{te.init(t,e),t._zod.pattern=rv,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}}),ub=v("$ZodBigIntFormat",(t,e)=>{pv.init(t,e),Wf.init(t,e)}),lb=v("$ZodSymbol",(t,e)=>{te.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}}),db=v("$ZodUndefined",(t,e)=>{te.init(t,e),t._zod.pattern=ov,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}}),fb=v("$ZodNull",(t,e)=>{te.init(t,e),t._zod.pattern=iv,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}}),pb=v("$ZodAny",(t,e)=>{te.init(t,e),t._zod.parse=r=>r}),mb=v("$ZodUnknown",(t,e)=>{te.init(t,e),t._zod.parse=r=>r}),hb=v("$ZodNever",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),gb=v("$ZodVoid",(t,e)=>{te.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}}),yb=v("$ZodDate",(t,e)=>{te.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}});vb=v("$ZodArray",(t,e)=>{te.init(t,e);let r=rt.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({expected:"array",code:"invalid_type",input:o,inst:t}),i;i.value=r?r.alloc(t,i,Array(o.length),n):Array(o.length);let s=[],a=n?.abortEarly;for(let c=0;c<o.length;c++){let u=o[c],l=e.element._zod.run({value:u,issues:[]},n);if(l instanceof Promise)s.push(l.then(d=>zD(d,i,c)));else if(zD(l,i,c),a&&l.issues.length!==0&&xt(l))break}return s.length?Promise.all(s).then(()=>i):i}});u6=[];YD=v("$ZodObject",(t,e)=>{te.init(t,e);let r=Object.getOwnPropertyDescriptor(e,"shape"),i=r?.get?r.get.raw:e.shape??{};if(i){let u=()=>{let l={...i};return Object.defineProperty(e,"shape",{value:l}),u.raw=l,l};u.raw=i,Object.defineProperty(e,"shape",{get:u})}let n=vs(()=>GD(e));ce(t,"propValues",u=>{let l=u.def.shape,d={};for(let f in l){let p=l[f]._zod;if(p.values){Object.prototype.hasOwnProperty.call(d,f)||at(d,f,new Set);for(let h of p.values)d[f].add(h);p.optin!==void 0&&d[f].add(void 0)}}return d});let o=so,s=e.catchall,a,c=rt.memoizer;c?.attach(t),t._zod.parse=(u,l)=>{a??(a=n.value);let d=u.value;if(!o(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:t}),u;u.value=c?c.alloc(t,u,{},l):{};let f=[],p=a.shape,h=l?.abortEarly,y=u.issues.length;for(let _ of a.allKeys){if(h&&u.issues.length!==y){if(xt(u,y))break;y=u.issues.length}if(_==="__proto__")continue;let k=p[_],I=k._zod.optin,A=k._zod.optout,L=k._zod.run({value:d[_],issues:[]},l);L instanceof Promise?f.push(L.then(N=>Nf(N,u,_,d,I,A))):Nf(L,u,_,d,I,A)}return s?KD(f,d,u,l,n.value,t,h===!0):f.length?Promise.all(f).then(()=>u):u}}),bb=v("$ZodObjectJIT",(t,e)=>{YD.init(t,e);let r=t._zod.parse,i=vs(()=>GD(e)),n=rt.memoizer,o=p=>{let h=i.value,y=h.symbolKeys,_=new lo(["payload","ctx"],{shape:p,inst:t,memo:n,syms:y}),k=N=>`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`,I=(N,S)=>`
|
|
22
|
+
let ${N}_ab = false;
|
|
23
|
+
for (let i = 0; i < ${N}.issues.length; i++) {
|
|
24
|
+
const iss = ${N}.issues[i];
|
|
25
|
+
iss.path = iss.path ? [${S}, ...iss.path] : [${S}];
|
|
26
|
+
payload.issues.push(iss);
|
|
27
|
+
if (iss.continue !== true) ${N}_ab = true;
|
|
28
|
+
}
|
|
29
|
+
if (${N}_ab && ctx && ctx.abortEarly) {
|
|
30
|
+
payload.value = newResult;
|
|
31
|
+
return payload;
|
|
32
|
+
}`;_.write("const input = payload.value;");let A=Object.create(null),L=0;for(let N of h.allKeys)A[N]=`key_${L++}`;_.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let N of h.allKeys){if(N==="__proto__")continue;let S=A[N],q=typeof N=="symbol"?`syms[${y.indexOf(N)}]`:$t(N),Ue=`${q} in input`,Re=p[N],Le=Re?._zod?.optin,ut=Le!==void 0,gt=Re?._zod?.optout==="optional";if(_.write(`const ${S} = ${k(q)};`),ut&>){let Ee=Le==="optional"?`${S}_present`:`${S}.value !== undefined || ${S}_present`;_.write(`
|
|
33
|
+
const ${S}_present = ${Ue};
|
|
34
|
+
if (!${S}.issues.length || ${S}_present) {
|
|
35
|
+
if (${S}.issues.length) {${I(S,q)}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (${Ee}) {
|
|
39
|
+
newResult[${q}] = ${S}.value;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
`)}else ut?(_.write(`
|
|
44
|
+
if (${S}.issues.length) {${I(S,q)}
|
|
45
|
+
}
|
|
46
|
+
`),Le==="defaulted"?_.write(`newResult[${q}] = ${S}.value;`):_.write(`
|
|
47
|
+
if (${S}.value !== undefined || ${Ue}) {
|
|
48
|
+
newResult[${q}] = ${S}.value;
|
|
49
|
+
}
|
|
50
|
+
`)):_.write(`
|
|
51
|
+
const ${S}_present = ${Ue};
|
|
52
|
+
if (${S}.issues.length) {${I(S,q)}
|
|
53
|
+
}
|
|
54
|
+
if (!${S}_present && !${S}.issues.length) {
|
|
55
|
+
payload.issues.push({
|
|
56
|
+
code: "invalid_type",
|
|
57
|
+
expected: "nonoptional",
|
|
58
|
+
input: undefined,
|
|
59
|
+
path: [${q}]
|
|
60
|
+
});
|
|
61
|
+
if (ctx && ctx.abortEarly) {
|
|
62
|
+
payload.value = newResult;
|
|
63
|
+
return payload;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (${S}_present) {
|
|
68
|
+
newResult[${q}] = ${S}.value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
`)}return _.write("payload.value = newResult;"),_.write("return payload;"),_.compile()},s,a=so,c=!rt.jitless,l=c&&fy.value,d=e.catchall,f;t._zod.parse=(p,h)=>{f??(f=i.value);let y=p.value;return a(y)?c&&l&&h?.async===!1&&h.jitless!==!0?(s||(s=o(e.shape)),p=s(p,h),d?KD([],y,p,h,f,t,h?.abortEarly===!0):p):r(p,h):(p.issues.push({expected:"object",code:"invalid_type",input:y,inst:t}),p)}});Qc=v("$ZodUnion",(t,e)=>{te.init(t,e),ce(t,"optin",i=>i.def.options.some(n=>n._zod.optin==="defaulted")?"defaulted":i.def.options.some(n=>n._zod.optin!==void 0)?"optional":void 0),ce(t,"optout",i=>i.def.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ce(t,"values",i=>{if(i.def.options.every(n=>n._zod.values))return new Set(i.def.options.flatMap(n=>Array.from(n._zod.values)))}),ce(t,"pattern",i=>{if(i.def.options.every(n=>n._zod.pattern)){let n=i.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Un(o.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,s=[];for(let a of e.options){let c=a._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)s.push(c),o=!0;else{if(c.issues.length===0)return c;s.push(c)}}return o?Promise.all(s).then(a=>TD(a,i,t,n)):TD(s,i,t,n)}});_b=v("$ZodXor",(t,e)=>{Qc.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,s=[];for(let a of e.options){let c=a._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(s.push(c),o=!0):s.push(c)}return o?Promise.all(s).then(a=>ND(a,i,t,n)):ND(s,i,t,n)}});$b=v("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Qc.init(t,e);let r=t._zod.parse;ce(t,"propValues",n=>{let o={},s=0;for(let a of n.def.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${n.def.options.indexOf(a)}"`);c[n.def.discriminator]?.has(void 0)&&s++;for(let[u,l]of Object.entries(c)){Object.prototype.hasOwnProperty.call(o,u)||at(o,u,new Set);for(let d of l)o[u].add(d)}}return!n.def.unionFallback&&s>1&&o[n.def.discriminator]?.delete(void 0),o}),e.options.forEach((n,o)=>{let s=bs(n._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,e.discriminator))throw new Error(`Invalid discriminated union option at index "${o}"`)});let i=vs(()=>XD(e));t._zod.parse=(n,o)=>{let s=n.value;if(!so(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),n;let a=s?.[e.discriminator],c=i.value.get(a);return c&&(a!==void 0||o.direction!=="backward")?c._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()).filter(u=>i.value.get(u)!==null),input:s,path:[e.discriminator],inst:t}),n)}}),xb=v("$ZodIntersection",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{let n=r.value,o=e.left._zod.run({value:n,issues:[]},i),s=e.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([c,u])=>UD(r,c,u)):UD(r,o,s)}});Jf=v("$ZodTuple",(t,e)=>{te.init(t,e);let r=e.items,i=rt.memoizer;i?.attach(t),t._zod.parse=(n,o)=>{let s=n.value;if(!Array.isArray(s))return n.issues.push({input:s,inst:t,expected:"tuple",code:"invalid_type"}),n;n.value=i?i.alloc(t,n,[],o):[];let a=[],c=PD(r,"optin"),u=PD(r,"optout");if(!e.rest){if(s.length<c)return n.issues.push({code:"too_small",minimum:c,inclusive:!0,input:s,inst:t,origin:"array"}),n;s.length>r.length&&n.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:s,inst:t,origin:"array"})}let l=new Array(r.length),d=e.rest?o?.abortEarly:void 0,f=!1;for(let p=0;p<r.length;p++){let h=r[p]._zod.run({value:s[p],issues:[]},o);h instanceof Promise?a.push(h.then(y=>{l[p]=y})):(l[p]=h,d&&!f&&h.issues.length&&(f=xt(h)))}if(e.rest&&!f){let p=r.length-1,h=s.slice(r.length),y=n.issues.length;for(let _ of h){if(d&&n.issues.length!==y){if(xt(n,y))break;y=n.issues.length}p++;let k=e.rest._zod.run({value:_,issues:[]},o);k instanceof Promise?a.push(k.then(I=>LD(I,n,p))):LD(k,n,p)}}return a.length?Promise.all(a).then(()=>ED(l,n,r,s,u)):ED(l,n,r,s,u)}});Ib=v("$ZodRecord",(t,e)=>{te.init(t,e);let r=rt.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!fr(o))return i.issues.push({expected:"record",code:"invalid_type",input:o,inst:t}),i;let s=[],a=e.keyType._zod.values;if(a&&!e.partial){i.value=r?r.alloc(t,i,{},n):{};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(c.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let d=e.keyType._zod.run({value:l,issues:[]},n);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>Et(h,n,Me())),input:l,path:[l],inst:t});continue}let f=d.value;if(f==="__proto__")continue;let p=e.valueType._zod.run({value:o[l],issues:[]},n);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&i.issues.push(...Lt(l,h.issues)),i.value[f]=h.value})):(p.issues.length&&i.issues.push(...Lt(l,p.issues)),i.value[f]=p.value)}let u;for(let l in o)if(!c.has(l))if(e.mode==="loose"){if(l==="__proto__")continue;i.value[l]=o[l]}else u=u??[],u.push(l);u&&u.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:t,keys:u,continue:!0})}else{i.value=r?r.alloc(t,i,{},n):{};let c;for(let u of Reflect.ownKeys(o)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,u))continue;let l=e.keyType._zod.run({value:u,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Pn.test(u)&&l.issues.length){let h=e.keyType._zod.run({value:Number(u),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){e.mode==="loose"?i.value[u]=o[u]:a?(c=c??[],c.push(u)):i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>Et(h,n,Me())),input:u,path:[u],inst:t});continue}let f=l.value;if(f==="__proto__")continue;let p=e.valueType._zod.run({value:o[u],issues:[]},n);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&i.issues.push(...Lt(u,h.issues)),i.value[f]=h.value})):(p.issues.length&&i.issues.push(...Lt(u,p.issues)),i.value[f]=p.value)}c&&c.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:t,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>i):i}}),Sb=v("$ZodMap",(t,e)=>{te.init(t,e);let r=rt.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:o,inst:t}),i;let s=[];i.value=r?r.alloc(t,i,new Map,n):new Map;let a=n?.abortEarly,c=i.issues.length;for(let[u,l]of o){if(a&&i.issues.length!==c){if(xt(i,c))break;c=i.issues.length}let d=e.keyType._zod.run({value:u,issues:[]},n),f=e.valueType._zod.run({value:l,issues:[]},n);d instanceof Promise||f instanceof Promise?s.push(Promise.all([d,f]).then(([p,h])=>{CD(p,h,i,u,o,t,n)})):CD(d,f,i,u,o,t,n)}return s.length?Promise.all(s).then(()=>i):i}});kb=v("$ZodSet",(t,e)=>{te.init(t,e);let r=rt.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Set))return i.issues.push({input:o,inst:t,expected:"set",code:"invalid_type"}),i;let s=[];i.value=r?r.alloc(t,i,new Set,n):new Set;let a=n?.abortEarly,c=i.issues.length;for(let u of o){if(a&&i.issues.length!==c){if(xt(i,c))break;c=i.issues.length}let l=e.valueType._zod.run({value:u,issues:[]},n);l instanceof Promise?s.push(l.then(d=>FD(d,i))):FD(l,i)}return s.length?Promise.all(s).then(()=>i):i}});Db=v("$ZodEnum",(t,e)=>{te.init(t,e);let r=gs(e.entries),i=new Set(r);t._zod.values=i,ce(t,"pattern",n=>{let o=gs(n.def.entries).filter(s=>Nc.has(typeof s));return new RegExp(o.length?`^(${o.map(s=>pr(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),t._zod.parse=(n,o)=>{let s=n.value;return i.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:t}),n}}),Ab=v("$ZodLiteral",(t,e)=>{te.init(t,e);let r=new Set(e.values);t._zod.values=r,ce(t,"pattern",i=>{let n=i.def.values;return new RegExp(n.length?`^(${n.map(o=>typeof o=="string"?pr(o):o?pr(o.toString()):String(o)).join("|")})$`:"^[^\\s\\S]$")}),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}}),Ob=v("$ZodFile",(t,e)=>{te.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}}),Bb=v("$ZodTransform",(t,e)=>{te.init(t,e),t._zod.optin="optional",rt.memoizer?.guard(t),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new ii(t.constructor.name);let n=e.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new Ct;return r.value=n,r}});Hf=v("$ZodOptional",(t,e)=>{te.init(t,e),ce(t,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),t._zod.optout="optional",ce(t,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),ce(t,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${Un(i.source)})?$`):void 0}),t._zod.parse=(r,i)=>{if(r.value===void 0){if(e.innerType._zod.optin!=="defaulted")return r;let n=e.innerType._zod.run({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>jD(r,o)):jD(r,n)}return e.innerType._zod.run(r,i)}}),zb=v("$ZodExactOptional",(t,e)=>{Hf.init(t,e),ce(t,"values",r=>r.def.innerType._zod.values),ce(t,"pattern",r=>r.def.innerType._zod.pattern),t._zod.parse=(r,i)=>e.innerType._zod.run(r,i)}),Tb=v("$ZodNullable",(t,e)=>{te.init(t,e),ce(t,"optin",r=>r.def.innerType._zod.optin),ce(t,"optout",r=>r.def.innerType._zod.optout),ce(t,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${Un(i.source)}|null)$`):void 0}),ce(t,"values",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),t._zod.parse=(r,i)=>r.value===null?r:e.innerType._zod.run(r,i)}),Nb=v("$ZodDefault",(t,e)=>{te.init(t,e),t._zod.optin="defaulted",ce(t,"values",r=>r.def.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=>MD(o,e)):MD(n,e)}});Ub=v("$ZodPrefault",(t,e)=>{te.init(t,e),t._zod.optin="defaulted",ce(t,"values",r=>r.def.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))}),Pb=v("$ZodNonOptional",(t,e)=>{te.init(t,e),ce(t,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,i)=>{let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>RD(o,t)):RD(n,t)}});Lb=v("$ZodSuccess",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new ii("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)}});Eb=v("$ZodCatch",(t,e)=>{te.init(t,e),ce(t,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),ce(t,"optout",r=>r.def.innerType._zod.optout),ce(t,"values",r=>r.def.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({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>VD(r,o,e,i)):VD(r,n,e,i)}}),Cb=v("$ZodNaN",(t,e)=>{te.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)}),Gf=v("$ZodPipe",(t,e)=>{te.init(t,e),ce(t,"values",r=>r.def.in._zod.values),ce(t,"optin",r=>r.def.in._zod.optin),ce(t,"optout",r=>r.def.out._zod.optout),ce(t,"propValues",r=>r.def.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(s=>Bf(s,e.in,i)):Bf(o,e.in,i)}let n=e.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Bf(o,e.out,i)):Bf(n,e.out,i)}});eu=v("$ZodCodec",(t,e)=>{te.init(t,e),ce(t,"values",r=>r.def.in._zod.values),ce(t,"optin",r=>r.def.in._zod.optin),ce(t,"optout",r=>r.def.out._zod.optout),ce(t,"propValues",r=>r.def.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(s=>zf(s,e,i)):zf(o,e,i)}else{let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(s=>zf(s,e,i)):zf(o,e,i)}}});Fb=v("$ZodPreprocess",(t,e)=>{Gf.init(t,e)}),jb=v("$ZodReadonly",(t,e)=>{te.init(t,e),ce(t,"propValues",r=>r.def.innerType._zod.propValues),ce(t,"values",r=>r.def.innerType._zod.values),ce(t,"optin",r=>r.def.innerType?._zod?.optin),ce(t,"optout",r=>r.def.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(ZD):ZD(n)}});Mb=v("$ZodTemplateLiteral",(t,e)=>{te.init(t,e);let r=[];for(let i of e.parts)if(typeof i=="object"&&i!==null){let n=Tv(i);if(!n)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);r.push(Un(n))}else if(i===null||py.has(typeof i))r.push(pr(`${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)}),Rb=v("$ZodFunction",(t,e)=>(te.init(t,e),Object.defineProperty(t,"_def",{value:e}),t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...i){let n=t._def.input?ff(t._def.input,i):i,o=Reflect.apply(r,this,n);return t._def.output?ff(t._def.output,o):o},"_zod",{value:t._zod,enumerable:!1})},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...i){let n=t._def.input?await pf(t._def.input,i):i,o=await Reflect.apply(r,this,n);return t._def.output?await pf(t._def.output,o):o},"_zod",{value:t._zod,enumerable:!1})},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 Jf({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)),Vb=v("$ZodPromise",(t,e)=>{te.init(t,e),t._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},i))}),tu=v("$ZodLazy",(t,e)=>{te.init(t,e),ly(t._zod,"innerType",()=>{let r=e;return r._cachedInner||(r._cachedInner=e.getter()),r._cachedInner}),ce(t,"pattern",r=>r.innerType?._zod?.pattern),ce(t,"propValues",r=>r.innerType?._zod?.propValues),ce(t,"optin",r=>r.innerType?._zod?.optin??void 0),ce(t,"optout",r=>r.innerType?._zod?.optout??void 0),t._zod.parse=(r,i)=>t._zod.innerType._zod.run(r,i)}),Zb=v("$ZodCustom",(t,e)=>{Se.init(t,e),te.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=>WD(o,r,i,t));WD(n,r,i,t)}})});function eA(t){return t!==null&&typeof t=="object"}function Wb(t){return t.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function nu(t,e,r){let i=tA.get(t);if(i!==void 0)return i?ru:As;if(e.has(t))return ru;e.add(t);let n=As,o=l=>{if(n!==ru&&l?._zod){let d=nu(l,e,r);d>n&&(n=d)}},s=(l,d)=>{let f=As;for(let p of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,p);if(d&&!h.enumerable)continue;let y=h.get?Xf:h.value?._zod?nu(h.value,e,r):As;y>f&&(f=y)}return f},a=l=>{l>n&&(n=l)},c=t._zod.def,u=c.type;switch(u){case"object":{let l=bs(c);a(l?s(l,!0):Xf),o(c.catchall);break}case"array":o(c.element);break;case"tuple":for(let l of c.items)o(l);o(c.rest);break;case"record":case"map":o(c.keyType),o(c.valueType);break;case"set":o(c.valueType);break;case"union":for(let l of c.options)o(l);break;case"intersection":o(c.left),o(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(c.innerType);break;case"pipe":o(c.in),o(c.out);break;case"function":o(c.input),o(c.output);break;case"lazy":{let l=c._cachedInner??(r?t._zod.innerType:void 0);a(l?nu(l,e,!1):Xf);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in c){let d=Object.getOwnPropertyDescriptor(c,l);if(!d||d.get)continue;let f=d.value;if(!(!f||typeof f!="object")){if(f._zod)o(f);else if(Array.isArray(f))for(let p of f)o(p)}}}return e.delete(t),d6(t,n)}function d6(t,e){return e!==Xf&&tA.set(t,e===ru),e}function Qf(t){return nu(t,new Set,!0)!==As}function f6(t,e){let r=t.buckets.get(e);return r||(r=new WeakMap,t.buckets.set(e,r)),r}function iu(){return p6}function ep(t,e){let r=t[Jb]?.backEdges;return r!==void 0&&eA(e)&&r.has(e)}var qf,Jb,QD,tA,As,Xf,ru,Kf,Yf,p6,Hb=m(()=>{B();qf=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},Jb="~memo",QD=[];tA=new WeakMap,As=0,Xf=1,ru=2;Yf=[],p6={alloc(t,e,r){let i=Kf;if(!i)return r;Kf=void 0;let n={value:r,issues:null};return i.set(e.value,n),Yf.push(n),r},guard(t){var e;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let r=t._zod.parse,i=(n,o)=>{if(o.direction!=="backward"&&ep(o,n.value))throw new qf;return r(n,o)};t._zod.parse=i,t._zod.run===r&&(t._zod.run=i)})},attach(t){var e;let r,i=!1,n,o;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let s=t._zod.parse,a=(c,u)=>{if(r===void 0){let k=nu(t,new Set,!1);if(k===As)return t._zod.parse=s,t._zod.run===a&&(t._zod.run=s),s(c,u);k===ru||i?r=!0:i=!0}let l=c.value;if(!eA(l))return s(c,u);let d=u[Jb];d||(d={buckets:new WeakMap,backEdges:void 0},u[Jb]=d);let f;n===u?f=o:(f=f6(d,t),n=u,o=f);let p=f.get(l);if(p)return c.value=p.value,p.issues?p.issues.length&&c.issues.push(...Wb(p.issues)):(c.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(p.value)),c;Kf=f;let h=Yf.length,y=s(c,u);Kf=void 0;let _=Yf.length>h?Yf.pop():void 0;return y instanceof Promise?y.then(k=>(_&&(_.issues=k.issues.length?Wb(k.issues):QD),k)):(_&&(_.issues=y.issues.length?Wb(y.issues):QD),y)};t._zod.parse=a,t._zod.run===s&&(t._zod.run=a)})}}});function rA(){return{localeError:m6()}}var m6,nA=m(()=>{B();m6=()=>{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"},map:{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",mac:"\u0639\u0646\u0648\u0627\u0646 MAC",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",credit_card:"\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",currency_code:"\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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: ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?` \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()} ${s.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?">=":">",s=e(n.origin);return s?`\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()} ${s.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":""}: ${b(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 iA(){return{localeError:h6()}}var h6,oA=m(()=>{B();h6=()=>{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"},map:{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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kart\u0131 n\xF6mr\u0259si",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${a}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${$(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${s.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":""}: ${b(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 sA(t,e,r,i){let n=Math.abs(t),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?e:o>=2&&o<=4?r:i}function aA(){return{localeError:g6()}}var g6,cA=m(()=>{B();g6=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);if(s){let a=Number(n.maximum),c=sA(a,s.unit.one,s.unit.few,s.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 ${s.verb} ${o}${n.maximum.toString()} ${c}`}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?">=":">",s=e(n.origin);if(s){let a=Number(n.minimum),c=sA(a,s.unit.one,s.unit.few,s.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 ${s.verb} ${o}${n.minimum.toString()} ${c}`}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"}: ${b(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 uA(){return{localeError:y6()}}var y6,lA=m(()=>{B();y6=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\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()} ${s.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?">=":">",s=e(n.origin);return s?`\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()} ${s.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 s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${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":""}: ${b(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 dA(){return{localeError:v6()}}var v6,fA=m(()=>{B();v6=()=>{let t={string:{unit:"\u0985\u0995\u09CD\u09B7\u09B0",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},file:{unit:"\u09AC\u09BE\u0987\u099F",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},array:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},set:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},map:{unit:"\u098F\u09A8\u09CD\u099F\u09CD\u09B0\u09BF",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"}};function e(n){return t[n]??null}let r={regex:"\u0987\u09A8\u09AA\u09C1\u099F",email:"\u0987\u09AE\u09C7\u0987\u09B2 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",url:"URL",emoji:"\u0987\u09AE\u09CB\u099C\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u09A4\u09BE\u09B0\u09BF\u0996 \u0993 \u09B8\u09AE\u09AF\u09BC",date:"ISO \u09A4\u09BE\u09B0\u09BF\u0996",time:"ISO \u09B8\u09AE\u09AF\u09BC",duration:"ISO \u09B8\u09AE\u09AF\u09BC\u0995\u09BE\u09B2",ipv4:"IPv4 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",ipv6:"IPv6 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",mac:"MAC \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",cidrv4:"IPv4 \u09B0\u09C7\u099E\u09CD\u099C",cidrv6:"IPv6 \u09B0\u09C7\u099E\u09CD\u099C",base64:"base64-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",base64url:"base64url-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",json_string:"JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",e164:"E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",credit_card:"\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",currency_code:"\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",iban:"IBAN",jwt:"JWT",template_literal:"\u0987\u09A8\u09AA\u09C1\u099F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${o}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${a}`}case"invalid_value":return n.values.length===1?`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${$(n.values[0])}`:`\u0985\u09AC\u09C8\u09A7 \u0985\u09AA\u09B6\u09A8: ${b(n.values," | ")} \u098F\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7 \u098F\u0995\u099F\u09BF \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${n.origin??"\u09AE\u09BE\u09A8"} ${o}${n.maximum.toString()} ${s.unit??"\u098F\u09B2\u09BF\u09AE\u09C7\u09A8\u09CD\u099F"} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${n.origin??"\u09AE\u09BE\u09A8"} ${o}${n.maximum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${n.origin} ${o}${n.minimum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.prefix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C1\u09B0\u09C1 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="ends_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.suffix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C7\u09B7 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="includes"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.includes}" \u0985\u09A8\u09CD\u09A4\u09B0\u09CD\u09AD\u09C1\u0995\u09CD\u09A4 \u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="regex"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: ${o.pattern} \u09AA\u09CD\u09AF\u09BE\u099F\u09BE\u09B0\u09CD\u09A8 \u09AE\u09BF\u09B2\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09AC\u09C8\u09A7 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0985\u09AC\u09C8\u09A7 \u09A8\u09AE\u09CD\u09AC\u09B0: ${n.divisor} \u098F\u09B0 \u0997\u09C1\u09A3\u09BF\u09A4\u0995 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`;case"unrecognized_keys":return`\u0985\u099A\u09C7\u09A8\u09BE \u0995\u09C0${n.keys.length>1?"\u0997\u09C1\u09B2\u09CB":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u0995\u09C0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0985\u09AC\u09C8\u09A7 \u09A1\u09BF\u09B8\u0995\u09CD\u09B0\u09BF\u09AE\u09BF\u09A8\u09C7\u099F\u09B0 \u09AE\u09BE\u09A8\u0964 \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F";case"invalid_element":return`${n.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u09AE\u09BE\u09A8`;default:return"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F"}}}});function pA(){return{localeError:b6()}}var b6,mA=m(()=>{B();b6=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{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",mac:"adre\xE7a MAC",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",credit_card:"n\xFAmero de targeta de cr\xE8dit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${a}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${$(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${b(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",s=e(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${s.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",s=e(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${s.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":""}: ${b(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 hA(){return{localeError:_6()}}var _6,gA=m(()=>{B();_6=()=>{let t={string:{unit:"\u067E\u06CC\u062A",verb:"\u0628\u06CE\u062A"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u0628\u06CE\u062A"},array:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},set:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},map:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"}};function e(n){return t[n]??null}let r={regex:"regex",email:"\u0626\u06CC\u0645\u06D5\u06CC\u06B5",url:"\u0628\u06D5\u0633\u062A\u06D5\u0631 (URL)",emoji:"\u0626\u06CC\u0645\u06C6\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0695\u06CE\u06A9\u06D5\u0648\u062A \u0648 \u06A9\u0627\u062A",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",time:"\u06A9\u0627\u062A",duration:"\u0645\u0627\u0648\u06D5",ipv4:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv4",ipv6:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv6",mac:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC MAC",cidrv4:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv4",cidrv6:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv6",base64:"\u062F\u06D5\u0642\u06CC base64",base64url:"\u062F\u06D5\u0642\u06CC base64url",json_string:"\u062F\u06D5\u0642\u06CC JSON",e164:"\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",credit_card:"\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",currency_code:"\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",iban:"IBAN",jwt:"JWT",template_literal:"\u062A\u06CE\u06A9\u0631\u062F\u06D5"},i={nan:"NaN",string:"\u0646\u0648\u0648\u0633\u06CC\u0646",number:"\u0698\u0645\u0627\u0631\u06D5",boolean:"boolean",array:"array",object:"object",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",integer:"\u0698\u0645\u0627\u0631\u06D5",float:"\u0698\u0645\u0627\u0631\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s,c=["\u0627","\u0648","\u06C6","\u0648\u0648","\u06D5","\u06CC","\u06CE"].some(l=>a.endsWith(l))?"\u06CC\u06D5":"\u06D5",u=/^[a-zA-Z]+$/.test(a);return s==="null"||s==="undefined"?"\u062F\u0627\u0648\u0627\u06A9\u0631\u0627\u0648\u06D5":`\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${o} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${a}${u?"":c}`}case"invalid_value":return n.values.length===1?`\u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0648\u0633\u062A\u06D5: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${$(n.values[0])} \u0628\u06CE\u062A`:`\u0647\u06D5\u06B5\u0628\u0698\u0627\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 \u06CC\u06D5\u06A9\u06CE\u06A9 \u0628\u06CE\u062A \u0644\u06D5 ${b(n.values,"|")}`;case"too_big":{let o=e(n.origin);return o?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${n.maximum.toString()} ${o.unit} ${o.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${n.maximum.toString()} \u0628\u06CE\u062A`}case"too_small":{let o=e(n.origin);return o?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${n.minimum.toString()} ${o.unit} ${o.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${n.minimum.toString()} \u0628\u06CE\u062A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u062F\u06D5\u0633\u062A\u067E\u06CE\u0628\u06A9\u0627\u062A \u0628\u06D5 "${o.prefix}"`:o.format==="ends_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u06A9\u06C6\u062A\u0627\u06CC\u06CC\u0628\u06CE\u062A \u0628\u06D5 "${o.suffix}"`:o.format==="includes"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 "${o.includes}" \u0644\u06D5\u062E\u06C6\u0628\u06AF\u0631\u06CE\u062A`:o.format==="regex"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0644\u06D5\u06AF\u06D5\u06B5 \u067E\u0627\u062A\u06CE\u0631\u0646\u06CC ${o.pattern} \u0628\u06AF\u0648\u0646\u062C\u06CE\u062A`:`\u0628\u06D5\u0647\u0627\u06CC ${r[o.format]??n.format} \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`}case"not_multiple_of":return`\u0698\u0645\u0627\u0631\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u062F\u06D5\u0628\u06CE\u062A \u0686\u06D5\u0646\u062F \u0647\u06CE\u0646\u062F\u06D5 \u0628\u06CE\u062A \u0628\u06C6 ${n.divisor}`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: ${b(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A \u0644\u06D5 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0628\u06D5\u0647\u0627\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648 \u0647\u06D5\u06CC\u06D5. \u0628\u06D5\u0647\u0627\u06CC \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648: ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u06CC\u06D5\u06A9\u06AF\u0631\u062A\u0646\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A";case"invalid_element":return`${n.origin} \u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`;default:return"\u062A\u06CE\u06A9\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A"}}}});function yA(){return{localeError:w6()}}var w6,vA=m(()=>{B();w6=()=>{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"},map:{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",mac:"MAC 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",credit_card:"\u010D\xEDslo kreditn\xED karty",currency_code:"k\xF3d m\u011Bny",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${a}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${$(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${s.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: ${b(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 bA(){return{localeError:$6()}}var $6,_A=m(()=>{B();$6=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function 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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${a}`:`Ugyldigt input: forventede ${o}, fik ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${$(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin),a=i[n.origin]??n.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${o} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin),a=i[n.origin]??n.origin;return s?`For lille: forventede ${a} ${s.verb} ${o} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} 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"}: ${b(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 wA(){return{localeError:x6()}}var x6,$A=m(()=>{B();x6=()=>{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"},map:{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",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"W\xE4hrungscode",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${a}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${$(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${s.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"}: ${b(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 xA(){return{localeError:I6()}}var I6,IA=m(()=>{B();I6=()=>{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",credit_card:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2",currency_code:"\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\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()} ${s.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?">=":">",s=e(n.origin);return s?`\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()} ${s.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"}: ${b(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 tp(){return{localeError:S6()}}var S6,Gb=m(()=>{B();S6=()=>{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(o){return t[o]??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",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function n(o,s){return o==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):i[o]??o}return o=>{switch(o.code){case"invalid_type":{let s=n(o.expected),a=x(o.input),c=n(a,o.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${$(o.values[0])}`:`Invalid option: expected one of ${b(o.values,"|")}`;case"too_big":{let s=o.exact?"exactly ":o.inclusive?"<=":"<",a=e(o.origin);return a?`Too big: expected ${o.origin??"value"} to have ${s}${o.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${s}${o.maximum.toString()}`}case"too_small":{let s=o.exact?"exactly ":o.inclusive?">=":">",a=e(o.origin);return a?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${a.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case"invalid_format":{let s=o;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${b(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(a=>`'${a}'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}}});function SA(){return{localeError:k6()}}var k6,kA=m(()=>{B();k6=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function 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",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${a}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${$(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${s.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":""}: ${b(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 DA(){return{localeError:D6()}}var D6,AA=m(()=>{B();D6=()=>{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",mac:"direcci\xF3n MAC",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",credit_card:"n\xFAmero de tarjeta de cr\xE9dito",currency_code:"c\xF3digo de moneda",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${a}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${$(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${o}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} 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":""}: ${b(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 OA(){return{localeError:A6()}}var A6,BA=m(()=>{B();A6=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",currency_code:"\u06A9\u062F \u0627\u0631\u0632",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a} \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 ${a} \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 ${$(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 ${b(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.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: ${b(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 zA(){return{localeError:O6()}}var O6,TA=m(()=>{B();O6=()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\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",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${a}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${$(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${s.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"}: ${b(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 NA(){return{localeError:B6()}}var B6,UA=m(()=>{B();B6=()=>{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:"expression r\xE9guli\xE8re",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",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne de caract\xE8res encod\xE9e en base64",base64url:"cha\xEEne de caract\xE8res encod\xE9e en base64url",json_string:"cha\xEEne de caract\xE8res JSON",e164:"num\xE9ro au format E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne de caract\xE8res",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:"record",map:"map",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instance de ${n.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${a} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${$(n.values[0])} attendu`:`Option invalide : une valeur parmi ${b(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Trop grand : ${i[n.origin]??"valeur"} doit ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Trop petit : ${i[n.origin]??"valeur"} doit ${s.verb} ${o}${n.minimum.toString()} ${s.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 de caract\xE8res invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne de caract\xE8res invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne de caract\xE8res invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne de caract\xE8res 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":""} : ${b(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 PA(){return{localeError:z6()}}var z6,LA=m(()=>{B();z6=()=>{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"},map:{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",mac:"adresse MAC",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",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${a}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${$(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",s=e(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",s=e(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${s.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":""} : ${b(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 EA(){return{localeError:T6()}}var T6,CA=m(()=>{B();T6=()=>{let t={string:{unit:"\u0A85\u0A95\u0ACD\u0AB7\u0AB0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},file:{unit:"\u0AAC\u0ABE\u0AAF\u0A9F",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},array:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},set:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},map:{unit:"\u0A8F\u0AA8\u0ACD\u0A9F\u0ACD\u0AB0\u0AC0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"}};function e(n){return t[n]??null}let r={regex:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F",email:"\u0A88\u0AAE\u0AC7\u0A87\u0AB2 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",url:"URL",emoji:"\u0A87\u0AAE\u0ACB\u0A9C\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96 \u0A85\u0AA8\u0AC7 \u0AB8\u0AAE\u0AAF",date:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96",time:"ISO \u0AB8\u0AAE\u0AAF",duration:"ISO \u0A85\u0AB5\u0AA7\u0ABF",ipv4:"IPv4 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",ipv6:"IPv6 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",mac:"MAC \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",cidrv4:"IPv4 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",cidrv6:"IPv6 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",base64:"base64-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",base64url:"base64url-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",json_string:"JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",e164:"E.164 \u0AA8\u0A82\u0AAC\u0AB0",credit_card:"\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",currency_code:"\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",iban:"IBAN",jwt:"JWT",template_literal:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${o}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${a}`}case"invalid_value":return n.values.length===1?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${$(n.values[0])}`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB5\u0ABF\u0A95\u0AB2\u0ACD\u0AAA: ${b(n.values," | ")} \u0AAE\u0ABE\u0AA7\u0ACD\u0AAF\u0AAE\u0AA5\u0AC0 \u0A8F\u0A95 \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${n.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${o}${n.maximum.toString()} ${s.unit??"\u0A8F\u0AB2\u0ABF\u0AAE\u0AC7\u0AA8\u0ACD\u0A9F"} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${n.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${o}${n.maximum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${n.origin} ${o}${n.minimum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.prefix}" \u0AA5\u0AC0 \u0AB6\u0AB0\u0AC2 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="ends_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.suffix}" \u0AAA\u0AB0 \u0AB8\u0AAE\u0ABE\u0AAA\u0ACD\u0AA4 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="includes"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.includes}" \u0AB6\u0ABE\u0AAE\u0AC7\u0AB2 \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="regex"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: \u0AAA\u0AC7\u0A9F\u0AB0\u0ACD\u0AA8 ${o.pattern} \u0AB8\u0ABE\u0AA5\u0AC7 \u0AAE\u0AC7\u0AB3 \u0A96\u0ABE\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA8\u0A82\u0AAC\u0AB0: ${n.divisor} \u0AA8\u0ACB \u0A97\u0AC1\u0AA3\u0ABE\u0A82\u0A95 \u0AB9\u0ACB\u0AB5\u0ACB \u0A9C\u0ACB\u0A88\u0A8F`;case"unrecognized_keys":return`\u0A93\u0AB3\u0A96\u0AC0 \u0AB6\u0A95\u0ABE\u0AA4\u0ABE \u0AA8\u0AB9\u0AC0\u0A82 \u0AA4\u0AC7 \u0A95\u0AC0${n.keys.length>1?"\u0A93":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A95\u0AC0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA1\u0ABF\u0AB8\u0ACD\u0A95\u0ACD\u0AB0\u0ABF\u0AAE\u0ABF\u0AA8\u0AC7\u0A9F\u0AB0 \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF. \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F";case"invalid_element":return`${n.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF`;default:return"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F"}}}});function FA(){return{localeError:N6()}}var N6,jA=m(()=>{B();N6=()=>{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=u=>u?t[u]:void 0,i=u=>{let l=r(u);return l?l.label:u??t.unknown.label},n=u=>`\u05D4${i(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=u=>u?e[u]??null:null,a={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"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\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"},mac:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA MAC",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"},credit_card:{label:"\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9",gender:"m"},currency_code:{label:"\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\u05E7\u05DC\u05D8",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,d=c[l??""]??i(l),f=x(u.input),p=c[f]??t[f]?.label??f;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(u.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 ${$(u.values[0])}`;let l=u.values.map(p=>$(p));if(u.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=s(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let h=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(u.origin==="array"||u.origin==="set"){let h=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",y=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let f=u.inclusive?"<=":"<",p=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()}`}case"too_small":{let l=s(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let h=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(u.origin==="array"||u.origin==="set"){let h=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let _=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`}let y=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let f=u.inclusive?">=":">",p=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.minimum.toString()}`}case"invalid_format":{let l=u;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=a[l.format],f=d?.label??l.format,h=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${h}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${b(u.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(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}}});function MA(){return{localeError:U6()}}var U6,RA=m(()=>{B();U6=()=>{let t={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},file:{unit:"\u092C\u093E\u0907\u091F\u094D\u0938",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0901",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"}};function e(n){return t[n]??null}let r={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0908\u092E\u0947\u0932 \u092A\u0924\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0924\u093F\u0925\u093F \u0914\u0930 \u0938\u092E\u092F",date:"ISO \u0924\u093F\u0925\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u092A\u0924\u093E",ipv6:"IPv6 \u092A\u0924\u093E",mac:"MAC \u092A\u0924\u093E",cidrv4:"IPv4 \u0936\u094D\u0930\u0947\u0923\u0940",cidrv6:"IPv6 \u0936\u094D\u0930\u0947\u0923\u0940",base64:"Base64-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",base64url:"Base64URL-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",e164:"E.164 \u0938\u0902\u0916\u094D\u092F\u093E",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${a}`}case"invalid_value":return n.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${$(n.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin??"\u092E\u093E\u0928"} \u092E\u0947\u0902 ${o}${n.maximum} ${s.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin??"\u092E\u093E\u0928"} ${o}${n.maximum} \u0939\u094B`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin} \u092E\u0947\u0902 ${o}${n.minimum} ${s.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin} ${o}${n.minimum} \u0939\u094B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${o.prefix}" \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${o.suffix}" \u092A\u0930 \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u0907\u0938\u092E\u0947\u0902 "${o.includes}" \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u092A\u0948\u091F\u0930\u094D\u0928 ${o.pattern} \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:`\u0905\u092E\u093E\u0928\u094D\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: \u092F\u0939 ${n.divisor} \u0915\u093E \u0917\u0941\u0923\u091C \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u0902\u091C\u0940${n.keys.length>1?"\u092F\u093E\u0901":""}: ${b(n.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u0902\u091C\u0940: ${n.origin} \u092E\u0947\u0902`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${n.origin} \u092E\u0947\u0902`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}}});function VA(){return{localeError:P6()}}var P6,ZA=m(()=>{B();P6=()=>{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",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${a}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${a}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${$(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Preveliko: o\u010Dekivano da ${a??"vrijednost"} ima ${o}${n.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${a??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Premalo: o\u010Dekivano da ${a} ima ${o}${n.minimum.toString()} ${s.unit}`:`Premalo: o\u010Dekivano da ${a} 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"}: ${b(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 WA(){return{localeError:L6()}}var L6,JA=m(()=>{B();L6=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function 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",mac:"MAC 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",credit_card:"hitelk\xE1rtyasz\xE1m",currency_code:"p\xE9nznemk\xF3d",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${$(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${s.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":""}: ${b(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 HA(t,e,r){return Math.abs(t)===1?e:r}function Os(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")}function GA(){return{localeError:E6()}}var E6,KA=m(()=>{B();E6=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",currency_code:"\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);if(s){let a=Number(n.maximum),c=HA(a,s.unit.one,s.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 ${Os(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${c}`}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 ${Os(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);if(s){let a=Number(n.minimum),c=HA(a,s.unit.one,s.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 ${Os(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${c}`}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 ${Os(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":""}. ${b(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Os(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 ${Os(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}}});function YA(){return{localeError:C6()}}var C6,XA=m(()=>{B();C6=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function 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",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${$(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${s.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":""}: ${b(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 qA(){return{localeError:F6()}}var F6,QA=m(()=>{B();F6=()=>{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"},map:{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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",credit_card:"kreditkortan\xFAmer",currency_code:"gjaldmi\xF0ilsk\xF3\xF0i",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${$(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${s.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"}: ${b(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 e1(){return{localeError:j6()}}var j6,t1=m(()=>{B();j6=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function 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",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${a}`:`Input non valido: atteso ${o}, ricevuto ${a}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${$(n.values[0])}`:`Opzione non valida: atteso uno tra ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${s.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"}: ${b(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 r1(){return{localeError:M6()}}var M6,n1=m(()=>{B();M6=()=>{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"},map:{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",mac:"MAC\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",credit_card:"\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",currency_code:"\u901A\u8CA8\u30B3\u30FC\u30C9",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${$(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${b(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",s=e(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.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",s=e(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.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":""}: ${b(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 i1(){return{localeError:R6()}}var R6,o1=m(()=>{B();R6=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",currency_code:"\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\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"} ${s.verb} ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`\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} ${s.verb} ${o}${n.minimum.toString()} ${s.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"}: ${b(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 rp(){return{localeError:V6()}}var V6,Kb=m(()=>{B();V6=()=>{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"},map:{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",mac:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 MAC",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",credit_card:"\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",currency_code:"\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\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()} ${s.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?">=":">",s=e(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${s.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 ${b(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 s1(){return rp()}var a1=m(()=>{Kb()});function c1(){return{localeError:Z6()}}var Z6,u1=m(()=>{B();Z6=()=>{let t={string:{unit:"\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},file:{unit:"\u0CAC\u0CC8\u0C9F\u0CCD\u200C\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},array:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},set:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},map:{unit:"entries",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"}};function e(n){return t[n]??null}let r={regex:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD",email:"email \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",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 \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95\u0CA6 \u0CB8\u0CAE\u0CAF",date:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95",time:"ISO \u0CB8\u0CAE\u0CAF",duration:"ISO \u0C85\u0CB5\u0CA7\u0CBF",ipv4:"IPv4 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",ipv6:"IPv6 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",mac:"MAC \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",cidrv4:"IPv4 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",cidrv6:"IPv6 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",base64:"base64-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",base64url:"base64url-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",json_string:"JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",e164:"E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",credit_card:"\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",currency_code:"\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",iban:"IBAN",jwt:"JWT",template_literal:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${a}`}case"invalid_value":return n.values.length===1?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${$(n.values[0])}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C86\u0CAF\u0CCD\u0C95\u0CC6: \u0C87\u0CB5\u0CC1\u0C97\u0CB3\u0CB2\u0CCD\u0CB2\u0CBF \u0C92\u0C82\u0CA6\u0CA8\u0CCD\u0CA8\u0CC1 \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin??"value"} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${o}${n.maximum.toString()} ${s.unit??"\u0C85\u0C82\u0CB6\u0C97\u0CB3\u0CC1"}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin??"value"} \u0C8E\u0C82\u0CA6\u0CC1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${o}${n.minimum.toString()} ${s.unit}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin} \u0C8E\u0C82\u0CA6\u0CC1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0CAA\u0CCD\u0CB0\u0CBE\u0CB0\u0C82\u0CAD\u0CBF\u0CB8\u0CAC\u0CC7\u0C95\u0CC1 "${o.prefix}"`:o.format==="ends_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0C95\u0CCA\u0CA8\u0CC6\u0C97\u0CCA\u0CB3\u0CCD\u0CB3\u0CAC\u0CC7\u0C95\u0CC1 "${o.suffix}"`:o.format==="includes"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C92\u0CB3\u0C97\u0CCA\u0C82\u0CA1\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 "${o.includes}"`:o.format==="regex"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0CAE\u0CBE\u0CA6\u0CB0\u0CBF\u0C97\u0CC6 \u0CB9\u0CCA\u0C82\u0CA6\u0CBF\u0C95\u0CC6\u0CAF\u0CBE\u0C97\u0CAC\u0CC7\u0C95\u0CC1 ${o.pattern}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6: \u0CAC\u0CB9\u0CC1\u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6\u0CAF\u0CBE\u0C97\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 ${n.divisor}`;case"unrecognized_keys":return`\u0C97\u0CC1\u0CB0\u0CC1\u0CA4\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CA6 \u0C95\u0CC0 ${n.keys.length>1?"s":""}: ${b(n.keys,", ")}`;case"invalid_key":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0C95\u0CC0 \u0C87\u0CA8\u0CCD ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CA4\u0CBE\u0CB0\u0CA4\u0CAE\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF. \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD";case"invalid_element":return`\u0CB0\u0CB2\u0CCD\u0CB2\u0CBF \u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF ${n.origin}`;default:return"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD"}}}});function l1(){return{localeError:W6()}}var W6,d1=m(()=>{B();W6=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",currency_code:"\uD1B5\uD654 \uCF54\uB4DC",iban:"IBAN",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${$(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${b(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=e(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${s}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=e(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${s}`}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: ${b(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 f1(t){let e=Math.abs(t),r=e%10,i=e%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}function p1(){return{localeError:J6()}}var ou,J6,m1=m(()=>{B();ou=t=>t.charAt(0).toUpperCase()+t.slice(1);J6=()=>{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,s,a){let c=t[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[a][s?"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",mac:"MAC 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",credit_card:"kredito kortel\u0117s numeris",currency_code:"valiutos kodas",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${$(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${b(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,s=e(n.origin,f1(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${ou(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ou(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,s=e(n.origin,f1(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${ou(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ou(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.minimum.toString()} ${s?.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"}: ${b(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`${ou(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}}});function h1(){return{localeError:H6()}}var H6,g1=m(()=>{B();H6=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\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()} ${s.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?">=":">",s=e(n.origin);return s?`\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()} ${s.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"}: ${b(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 y1(){return{localeError:G6()}}var G6,v1=m(()=>{B();G6=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function 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",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${a}`:`Input tidak sah: dijangka ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${$(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.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: ${b(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 b1(){return{localeError:K6()}}var K6,_1=m(()=>{B();K6=()=>{let t={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},file:{unit:"\u092C\u093E\u0907\u091F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"}};function e(n){return t[n]??null}let r={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0907\u092E\u0947\u0932 \u0920\u0947\u0917\u093E\u0928\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u092E\u093F\u0924\u093F \u0930 \u0938\u092E\u092F",date:"ISO \u092E\u093F\u0924\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u0920\u0947\u0917\u093E\u0928\u093E",ipv6:"IPv6 \u0920\u0947\u0917\u093E\u0928\u093E",mac:"MAC \u0920\u0947\u0917\u093E\u0928\u093E",cidrv4:"IPv4 \u0926\u093E\u092F\u0930\u093E",cidrv6:"IPv6 \u0926\u093E\u092F\u0930\u093E",base64:"base64-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",base64url:"base64url-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",e164:"E.164 \u0928\u092E\u094D\u092C\u0930",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${a}`}case"invalid_value":return n.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${$(n.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u0939\u0930\u0942 \u092E\u0927\u094D\u092F\u0947 \u090F\u0915 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${n.origin??"\u092E\u093E\u0928"} \u092E\u093E ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${n.origin??"\u092E\u093E\u0928"} ${o}${n.maximum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${n.origin} \u092E\u093E ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${n.origin} ${o}${n.minimum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.prefix}" \u092C\u093E\u091F \u0938\u0941\u0930\u0941 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.suffix}" \u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.includes}" \u0938\u092E\u093E\u0935\u0947\u0936 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: \u0922\u093E\u0901\u091A\u093E ${o.pattern} \u0938\u0901\u0917 \u092E\u0947\u0932 \u0916\u093E\u0928\u0941\u092A\u0930\u094D\u091B`:`\u0905\u092E\u093E\u0928\u094D\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: ${n.divisor} \u0915\u094B \u0917\u0941\u0923\u091C \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u091E\u094D\u091C\u0940${n.keys.length>1?"\u0939\u0930\u0942":""}: ${b(n.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u091E\u094D\u091C\u0940: ${n.origin} \u092E\u093E`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${n.origin} \u092E\u093E`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}}});function w1(){return{localeError:Y6()}}var Y6,$1=m(()=>{B();Y6=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function 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",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${o}, ontving ${a}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${$(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin),a=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin),a=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: 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":""}: ${b(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 x1(){return{localeError:X6()}}var X6,I1=m(()=>{B();X6=()=>{let t={string:{unit:"teikn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"element",verb:"\xE5 innehalde"},set:{unit:"element",verb:"\xE5 innehalde"},map:{unit:"element",verb:"\xE5 innehalde"}};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-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tal",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventa instanceof ${n.expected}, fekk ${a}`:`Ugyldig input: forventa ${o}, fekk ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventa ${$(n.values[0])}`:`Ugyldig val: forventa eitt av ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`For stor(t): forventa ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${s.unit??"element"}`:`For stor(t): forventa ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`For lite(n): forventa ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventa ${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 slutte med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 innehalde "${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 tal: m\xE5 vere eit multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjende n\xF8klar":"Ukjend n\xF8kkel"}: ${b(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 S1(){return{localeError:q6()}}var q6,k1=m(()=>{B();q6=()=>{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"},map:{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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${a}`:`Ugyldig input: forventet ${o}, fikk ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${$(n.values[0])}`:`Ugyldig valg: forventet en av ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${s.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"}: ${b(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 D1(){return{localeError:Q6()}}var Q6,A1=m(()=>{B();Q6=()=>{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"},map:{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",mac:"MAC 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",credit_card:"i'tib\xE2r kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${$(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${s.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":""}: ${b(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 O1(){return{localeError:eE()}}var eE,B1=m(()=>{B();eE=()=>{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"},map:{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",mac:"\u062F MAC \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",credit_card:"\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",currency_code:"\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a} \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 ${a} \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 ${$(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${b(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.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"}: ${b(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 z1(){return{localeError:tE()}}var tE,T1=m(()=>{B();tE=()=>{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"},map:{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",mac:"adres MAC",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",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${a}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${$(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${s.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":""}: ${b(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 N1(){return{localeError:rE()}}var rE,U1=m(()=>{B();rE=()=>{let t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function e(s){return t[s]??null}let r={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"o intervalo de endere\xE7os IPv4",cidrv6:"o intervalo de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\xFAmero",articles:i.masculine},int:{name:"n\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\xFAmero bigint",articles:i.masculine},symbol:{name:"s\xEDmbolo",articles:i.masculine},undefined:{name:'valor "undefined"',articles:i.masculine},null:{name:'valor "nulo"',articles:i.masculine},never:{name:'valor "never"',articles:i.masculine},void:{name:'valor "void"',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tuplo",articles:i.masculine},record:{name:"registo",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"ficheiro",articles:i.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:i.masculine},nan:{name:'valor "NaN"',articles:i.masculine},function:{name:"fun\xE7\xE3o",articles:i.feminine}};function o(s,a){let c=n[s]??{name:`valor "${s}"`,articles:i.masculine};return`${c.articles[a]} ${c.name}`}return s=>{switch(s.code){case"invalid_type":{let a=o(s.expected,"indefinite"),c=x(s.input),u=o(c,"indefinite");return`Entrada inv\xE1lida: esperava ${a}, recebeu ${u}`}case"invalid_value":return s.values.length===1?`Entrada inv\xE1lida: esperava ${$(s.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${b(s.values,"|")}`;case"too_big":{let a=s.inclusive?"<=":"<",c=e(s.origin);return c?`Demasiado grande: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.maximum.toString()} ${c.unit??"elementos"}`:`Demasiado grande: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.maximum.toString()}`}case"too_small":{let a=s.inclusive?">=":">",c=e(s.origin);return c?`Demasiado pequeno: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.minimum.toString()} ${c.unit??"elementos"}`:`Demasiado pequeno: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.minimum.toString()}`}case"invalid_format":{let a=s;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar por "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar em "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`Formato d${r[a.format]??s.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${s.divisor}`;case"unrecognized_keys":{let a=s.keys.length>1?"s":"";return`Chave${a} inv\xE1lida${a}: ${b(s.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${s.options.map(c=>`'${c}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}}});function P1(){return{localeError:nE()}}var nE,L1=m(()=>{B();nE=()=>{let t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function e(s){return t[s]??null}let r={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"a faixa de endere\xE7os IPv4",cidrv6:"a faixa de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\xFAmero",articles:i.masculine},int:{name:"n\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\xFAmero bigint",articles:i.masculine},symbol:{name:"s\xEDmbolo",articles:i.masculine},undefined:{name:'valor "undefined"',articles:i.masculine},null:{name:'valor "nulo"',articles:i.masculine},never:{name:'valor "never"',articles:i.masculine},void:{name:'valor "void"',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tupla",articles:i.feminine},record:{name:"registro",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"arquivo",articles:i.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:i.masculine},nan:{name:'valor "NaN"',articles:i.masculine},function:{name:"fun\xE7\xE3o",articles:i.feminine}};function o(s,a){let c=n[s]??{name:`valor "${s}"`,articles:i.masculine};return`${c.articles[a]} ${c.name}`}return s=>{switch(s.code){case"invalid_type":{let a=o(s.expected,"indefinite"),c=x(s.input),u=o(c,"indefinite");return`Entrada inv\xE1lida: esperava ${a}, recebeu ${u}`}case"invalid_value":return s.values.length===1?`Entrada inv\xE1lida: esperava ${$(s.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${b(s.values,"|")}`;case"too_big":{let a=s.inclusive?"<=":"<",c=e(s.origin);return c?`Grande demais: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.maximum.toString()} ${c.unit??"elementos"}`:`Grande demais: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.maximum.toString()}`}case"too_small":{let a=s.inclusive?">=":">",c=e(s.origin);return c?`Pequeno demais: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.minimum.toString()} ${c.unit??"elementos"}`:`Pequeno demais: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.minimum.toString()}`}case"invalid_format":{let a=s;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`Formato d${r[a.format]??s.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${s.divisor}`;case"unrecognized_keys":{let a=s.keys.length>1?"s":"";return`Chave${a} inv\xE1lida${a}: ${b(s.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${s.options.map(c=>`'${c}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}}});function E1(){return{localeError:iE()}}var iE,C1=m(()=>{B();iE=()=>{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",credit_card:"num\u0103r de card de credit",currency_code:"cod valutar",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${a}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${$(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Prea mic: a\u0219teptat ca ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.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: ${b(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 F1(t,e,r,i){let n=Math.abs(t),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?e:o>=2&&o<=4?r:i}function j1(){return{localeError:oE()}}var oE,M1=m(()=>{B();oE=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);if(s){let a=Number(n.maximum),c=F1(a,s.unit.one,s.unit.few,s.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()} ${c}`}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?">=":">",s=e(n.origin);if(s){let a=Number(n.minimum),c=F1(a,s.unit.one,s.unit.few,s.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()} ${c}`}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":""}: ${b(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 R1(){return{localeError:sE()}}var sE,V1=m(()=>{B();sE=()=>{let t={string:{unit:"znakov",verb:"ma\u0165"},file:{unit:"bajtov",verb:"ma\u0165"},array:{unit:"prvkov",verb:"ma\u0165"},set:{unit:"prvkov",verb:"ma\u0165"},map:{unit:"polo\u017Eiek",verb:"ma\u0165"}};function e(n){return t[n]??null}let r={regex:"regul\xE1rny 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:"d\xE1tum a \u010Das vo form\xE1te ISO",date:"d\xE1tum vo form\xE1te ISO",time:"\u010Das vo form\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64",base64url:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64url",json_string:"re\u0165azec vo form\xE1te JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditnej karty",currency_code:"k\xF3d meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"re\u0165azec",function:"funkcia",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${n.expected}, obdr\u017Ean\xE9 ${a}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${o}, obdr\u017Ean\xE9 ${a}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${$(n.values[0])}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE1 jedna z hodn\xF4t ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${n.origin??"hodnota"} mus\xED ma\u0165 ${o}${n.maximum.toString()} ${s.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${n.origin??"hodnota"} mus\xED by\u0165 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Hodnota je pr\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED ma\u0165 ${o}${n.minimum.toString()} ${s.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED by\u0165 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD re\u0165azec: mus\xED za\u010D\xEDna\u0165 na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD re\u0165azec: mus\xED kon\u010Di\u0165 na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD re\u0165azec: mus\xED obsahova\u0165 "${o.includes}"`:o.format==="regex"?`Neplatn\xFD re\u0165azec: mus\xED zodpoveda\u0165 vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED by\u0165 n\xE1sobkom ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1me kl\xFA\u010De: ${b(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xFA\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 Z1(){return{localeError:aE()}}var aE,W1=m(()=>{B();aE=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function 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",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",credit_card:"\u0161tevilka kreditne kartice",currency_code:"koda valute",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${a}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${$(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${s.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"}: ${b(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 J1(){return{localeError:cE()}}var cE,H1=m(()=>{B();cE=()=>{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"},map:{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-adress",ipv6:"IPv6-adress",mac:"MAC-adress",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",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${a}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${$(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${s.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"}: ${b(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 G1(){return{localeError:uE()}}var uE,K1=m(()=>{B();uE=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",currency_code:"\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\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()} ${s.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?">=":">",s=e(n.origin);return s?`\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()} ${s.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":""}: ${b(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 Y1(){return{localeError:lE()}}var lE,X1=m(()=>{B();lE=()=>{let t={string:{unit:"\u0430\u043B\u043E\u043C\u0430\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},file:{unit:"\u0431\u0430\u0439\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},array:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},set:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},map:{unit:"\u0441\u0430\u0431\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0443\u0440\u0443\u0434",email:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email",url:"URL",emoji:"\u044D\u043C\u043E\u04B7\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO",date:"\u0441\u0430\u043D\u0430\u0438 ISO",time:"\u0432\u0430\u049B\u0442\u0438 ISO",duration:"\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO",ipv4:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4",ipv6:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6",mac:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC",cidrv4:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4",cidrv6:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6",base64:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64",base64url:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url",json_string:"\u0441\u0430\u0442\u0440\u0438 JSON",e164:"\u0440\u0430\u049B\u0430\u043C\u0438 E.164",credit_card:"\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",currency_code:"\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0443\u0440\u0443\u0434"},i={nan:"NaN",number:"\u0440\u0430\u049B\u0430\u043C",string:"\u0441\u0430\u0442\u0440",array:"\u043C\u0430\u0441\u0441\u0438\u0432",object:"\u043E\u0431\u044A\u0435\u043A\u0442",date:"\u0441\u0430\u043D\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${o} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${a} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`}case"invalid_value":return n.values.length===1?`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${$(n.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:`\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${b(n.values,"|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${n.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${n.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${o}${n.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${n.origin} \u0431\u043E\u044F\u0434 ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${n.origin} \u0431\u043E\u044F\u0434 ${o}${n.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${o.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`:o.format==="ends_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${o.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`:o.format==="includes"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${o.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`:o.format==="regex"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${o.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`:`${r[o.format]??n.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`}case"not_multiple_of":return`\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${n.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`;case"unrecognized_keys":return`\u041A\u0430\u043B\u0438\u0434${n.keys.length>1?"\u04B3\u043E\u0438":"\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${b(n.keys,", ")}`;case"invalid_key":return`\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${n.options.map(s=>`'${s}'`).join(" | ")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442";case"invalid_element":return`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${n.origin}`;default:return"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442"}}}});function q1(){return{localeError:dE()}}var dE,Q1=m(()=>{B();dE=()=>{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"},map:{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",mac:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC",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)",credit_card:"\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",currency_code:"\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${s.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",s=e(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${s.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: ${b(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 eO(){return{localeError:fE()}}var fE,tO=m(()=>{B();fE=()=>{let t={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function e(n){return t[n]??null}let r={regex:"giri\u015F",email:"e-po\xE7ta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \u015Fifrlenen setir",base64url:"base64url bilen \u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\u0148 nomeri",currency_code:"wal\xFDuta kody",iban:"IBAN",jwt:"JWT",template_literal:"\u015Fablon"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return`N\xE4dogry baha: gara\u015Fylan ${o} \xFDerine ${a} alyndy`}case"invalid_value":return n.values.length===1?`N\xE4dogry baha: ${$(n.values[0])} bolmaly`:`N\xE4dogry sa\xFDlaw: a\u015Fakdakylardan biri bolmaly: ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Has uly: gara\u015Fyl\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()} ${s.unit??"element"}`:`Has uly: gara\u015Fyl\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Has ki\xE7i: gara\u015Fyl\xFDan ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`Has ki\xE7i: gara\u015Fyl\xFDan ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`N\xE4dogry setir: "${o.prefix}" bilen ba\u015Flamaly`:o.format==="ends_with"?`N\xE4dogry setir: "${o.suffix}" bilen gutarmaly`:o.format==="includes"?`N\xE4dogry setir: "${o.includes}" saklamaly`:o.format==="regex"?`N\xE4dogry setir: ${o.pattern} nusga la\xFDyk bolmaly`:`N\xE4dogry ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xE4dogry san: ${n.divisor} bilen galyndysyz b\xF6l\xFCnmeli`;case"unrecognized_keys":return`Tanalma\xFDan a\xE7ar${n.keys.length>1?"lar":""}: ${b(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde n\xE4dogry a\xE7ar`;case"invalid_union":return"N\xE4dogry baha";case"invalid_element":return`${n.origin} i\xE7inde n\xE4dogry baha`;default:return"N\xE4dogry baha"}}}});function rO(){return{localeError:pE()}}var pE,nO=m(()=>{B();pE=()=>{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"},map:{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",mac:"MAC 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",credit_card:"kredi kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${$(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${s.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":""}: ${b(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 np(){return{localeError:mE()}}var mE,Yb=m(()=>{B();mE=()=>{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"},map:{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",mac:"\u0430\u0434\u0440\u0435\u0441\u0430 MAC",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",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\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 ${a}`}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 ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\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"} ${s.verb} ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`\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} ${s.verb} ${o}${n.minimum.toString()} ${s.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":""}: ${b(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 iO(){return np()}var oO=m(()=>{Yb()});function sO(){return{localeError:hE()}}var hE,aO=m(()=>{B();hE=()=>{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"},map:{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",mac:"\u0627\u06CC\u0645 \u0627\u06D2 \u0633\u06CC \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",credit_card:"\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",currency_code:"\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a} \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 ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${$(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${b(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?"<=":"<",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${s.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":""}: ${b(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 cO(){return{localeError:gE()}}var gE,uO=m(()=>{B();gE=()=>{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",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${a}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${$(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.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":""}: ${b(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 lO(){return{localeError:yE()}}var yE,dO=m(()=>{B();yE=()=>{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"},map:{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",mac:"\u0111\u1ECBa ch\u1EC9 MAC",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",credit_card:"s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",currency_code:"m\xE3 ti\u1EC1n t\u1EC7",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${$(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 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.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: ${b(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 fO(){return{localeError:vE()}}var vE,pO=m(()=>{B();vE=()=>{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"},map:{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",mac:"MAC\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",credit_card:"\u4FE1\u7528\u5361\u53F7",currency_code:"\u8D27\u5E01\u4EE3\u7801",iban:"IBAN",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,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${$(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${s.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): ${b(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 mO(){return{localeError:bE()}}var bE,hO=m(()=>{B();bE=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u4FE1\u7528\u5361\u865F",currency_code:"\u8CA8\u5E63\u4EE3\u78BC",iban:"IBAN",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=x(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${$(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${s.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?">=":">",s=e(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${s.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${b(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 gO(){return{localeError:_E()}}var _E,yO=m(()=>{B();_E=()=>{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"},map:{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",mac:"\xE0d\xEDr\u1EB9\u0301s\xEC MAC",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",credit_card:"n\u1ECDmba kaadi gbese",currency_code:"koodu ow\xF3",iban:"IBAN",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,s=x(n.input),a=i[s]??s;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 ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${$(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${b(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${o}${n.maximum} ${s.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?">=":">",s=e(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${o}${n.minimum} ${s.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: ${b(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"}}}});var su={};$e(su,{ar:()=>rA,az:()=>iA,be:()=>aA,bg:()=>uA,bn:()=>dA,ca:()=>pA,ckb:()=>hA,cs:()=>yA,da:()=>bA,de:()=>wA,el:()=>xA,en:()=>tp,eo:()=>SA,es:()=>DA,fa:()=>OA,fi:()=>zA,fr:()=>NA,frCA:()=>PA,gu:()=>EA,he:()=>FA,hi:()=>MA,hr:()=>VA,hu:()=>WA,hy:()=>GA,id:()=>YA,is:()=>qA,it:()=>e1,ja:()=>r1,ka:()=>i1,kh:()=>s1,km:()=>rp,kn:()=>c1,ko:()=>l1,lt:()=>p1,mk:()=>h1,ms:()=>y1,ne:()=>b1,nl:()=>w1,nn:()=>x1,no:()=>S1,ota:()=>D1,pl:()=>z1,ps:()=>O1,pt:()=>N1,ptBR:()=>P1,ro:()=>E1,ru:()=>j1,sk:()=>R1,sl:()=>Z1,sv:()=>J1,ta:()=>G1,tg:()=>Y1,th:()=>q1,tk:()=>eO,tr:()=>rO,ua:()=>iO,uk:()=>np,ur:()=>sO,uz:()=>cO,vi:()=>lO,yo:()=>gO,zhCN:()=>fO,zhTW:()=>mO});var Xb=m(()=>{nA();oA();cA();lA();fA();mA();gA();vA();_A();$A();IA();Gb();kA();AA();BA();TA();UA();LA();CA();jA();RA();ZA();JA();KA();XA();QA();t1();n1();o1();a1();Kb();u1();d1();m1();g1();v1();_1();$1();I1();k1();A1();B1();T1();U1();L1();C1();M1();V1();W1();H1();K1();X1();Q1();tO();nO();oO();Yb();aO();uO();dO();pO();hO();yO()});function op(){return new ip}var vO,qb,Qb,ip,ct,au=m(()=>{qb=Symbol("ZodOutput"),Qb=Symbol("ZodInput"),ip=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)}};(vO=globalThis).__zod_globalRegistry??(vO.__zod_globalRegistry=op());ct=globalThis.__zod_globalRegistry});function $E(t,e){try{return ap(t,{assertOnly:!0})}catch{return e}}function n_(t,e){try{let r=ap(t),i=sp(t,r);return i._zod.bag.validator=$E(t,r),i}catch(r){if(e?.strict)throw r;return t}}function sp(t,e){if(Qf(t))throw new fe("a schema whose subtree contains a reference cycle");let r=ve(t),i=t._zod.run,n=i.__originalRun??i,o=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[bO]||a&&ep(a,s.value))return n(s,a);let c=e(s.value);return c!==It?(s.value=c,s):(a&&(a[bO]=!0),n(s,a))};return o.__originalRun=n,r._zod.bag.fallbackRun=n,r._zod.bag.validator=e,r._zod.run=o,i.__originalRun||xE(r,t,e),r}function xE(t,e,r){let i=t,n=e;if(typeof n.safeParse=="function"){let o=n.safeParse;i.safeParse=(s,a)=>{let c=r(s);return c!==It?{success:!0,data:c}:o(s,a)}}if(typeof n.parse=="function"){let o=n.parse;i.parse=(s,a)=>{let c=r(s);return c!==It?c:o(s,a)}}}function ap(t,e){let r=!0;try{r=Qf(t)}catch{}if(r)throw new fe("a schema whose subtree contains a reference cycle");let i={constants:new Map,constantCounter:0,varCounter:0,definite:!0},n=new lo(["input"]),o=Pe(n,i,t,"input",!e?.assertOnly);n.write(o===null?"return true;":`return ${o};`);let s=["INVALID",...i.constants.keys()],a=[It,...i.constants.values()],c=n.content.join(`
|
|
72
|
+
`),u=e?.debug?s.length>0?`// Constants: ${s.join(", ")}
|
|
73
|
+
${c}`:c:"",l=Function,d=`return (input) => {
|
|
74
|
+
${c}
|
|
75
|
+
}`,f;try{f=new l(...s,d)(...a)}catch(p){throw new fe(`this schema (generated code failed to evaluate: ${p.message})`)}return e?.debug&&(f.code=u),f.definite=i.definite,f}function Q(t,e){for(let[i,n]of t.constants)if(n===e)return i;let r=`c${t.constantCounter++}`;return t.constants.set(r,e),r}function ho(t,e){return t.definite=!1,Q(t,e)}function W(t){return`v${t.varCounter++}`}function IE(t,e){let r=t._zod.run({value:e,issues:[]},{});if(r&&typeof r.then=="function")return It;let i=r;return i.issues.length===0?i.value:It}function ht(t,e,r,i,n=!0){let o=t.content.length,s=e.constants.size,a=e.constantCounter,c=e.varCounter;try{return Pe(t,e,r,i,n)}catch(u){if(!(u instanceof fe)||!u.islandable)throw u;if(t.content.length=o,e.constants.size>s){let l=Array.from(e.constants.keys()).slice(s);for(let d of l)e.constants.delete(d)}return e.constantCounter=a,e.varCounter=c,SE(t,e,r,i)}}function SE(t,e,r,i){e.definite=!1;let n=Q(e,r),o=Q(e,IE),s=W(e);return t.write(`const ${s} = ${o}(${n}, ${i});`),t.write(`if (${s} === INVALID) return INVALID;`),s}function DE(t,e,r,i){let n=r._zod.def.checks;if(!n||n.length===0)return i;let o=i;for(let s of n){let a=s._zod.def;if(a.when&&!kE.has(a.check))throw new fe('check with a custom "when" condition');switch(a.check){case"greater_than":AE(t,e,a,o);break;case"less_than":OE(t,e,a,o);break;case"multiple_of":BE(t,e,a,o);break;case"number_format":SO(t,a,o);break;case"min_length":{let c=po(a.minimum,"min_length"),u=e_(t,e,o,`${o}.length >= ${c} && ${o}.length < ${a.minimum*2}`);t.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=po(a.maximum,"max_length"),u=e_(t,e,o,`${o}.length > ${c}`);t.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=po(a.length,"length_equals"),u=e_(t,e,o,`${o}.length >= ${c} && ${o}.length <= ${a.length*2}`);t.write(`if (${u} !== ${c}) return INVALID;`);break}case"min_size":t.write(`if (${o}.size < ${po(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":t.write(`if (${o}.size > ${po(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":t.write(`if (${o}.size !== ${po(a.size,"size_equals")}) return INVALID;`);break;case"string_format":o=kO(t,e,a,o);break;case"custom":o=LE(t,e,s,o);break;case"bigint_format":zE(t,a,o);break;case"mime_type":TE(t,e,a,o);break;case"property":UE(t,e,a,o);break;case"properties":NE(t,e,a,o);break;case"overwrite":{let c=W(e);PE(t,e,s,o,c),o=c;break}default:throw new fe(`check type ${a.check}`)}}return o}function e_(t,e,r,i){let n=Q(e,ao),o=W(e);return t.write(`const ${o} = typeof ${r} === "string" && ${i} ? ${n}(${r}) : ${r}.length;`),o}function po(t,e){if(typeof t!="number"||!Number.isFinite(t))throw new fe(`${e} bound of type ${typeof t}`);return`${t}`}function IO(t,e){if(typeof e=="bigint")return`${e}n`;if(typeof e=="number"){if(Number.isNaN(e))throw new fe("comparison check with NaN bound");return`${e}`}if(e instanceof Date){if(Number.isNaN(e.getTime()))throw new fe("comparison check with Invalid Date bound");return Q(t,e)}throw new fe(`comparison check bound of type ${typeof e}`)}function AE(t,e,r,i){let n=r.inclusive?"<":"<=";t.write(`if (${i} ${n} ${IO(e,r.value)}) return INVALID;`)}function OE(t,e,r,i){let n=r.inclusive?">":">=";t.write(`if (${i} ${n} ${IO(e,r.value)}) return INVALID;`)}function BE(t,e,r,i){if(typeof r.value=="bigint"){if(r.value===BigInt(0))throw new fe("multiple_of check with a zero divisor");t.write(`if (${i} % ${r.value}n !== 0n) return INVALID;`)}else{let n=Q(e,zc);t.write(`if (${n}(${i}, ${po(r.value,"multiple_of")}) !== 0) return INVALID;`)}}function SO(t,e,r){let i=e.format;switch(i){case"safeint":t.write(`if (!Number.isSafeInteger(${r})) return INVALID;`);break;case"int32":t.write(`if (!Number.isInteger(${r}) || ${r} < -2147483648 || ${r} > 2147483647) return INVALID;`);break;case"uint32":t.write(`if (!Number.isInteger(${r}) || ${r} < 0 || ${r} > 4294967295) return INVALID;`);break;case"float32":t.write(`if (!Number.isFinite(${r}) || ${r} < -3.4028234663852886e38 || ${r} > 3.4028234663852886e38) return INVALID;`);break;case"float64":t.write(`if (!Number.isFinite(${r})) return INVALID;`);break;default:throw new fe(`number format ${i}`)}}function zE(t,e,r){let i=e.format;if(i)switch(i){case"int64":t.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":t.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break;default:throw new fe(`bigint format ${i}`)}}function TE(t,e,r,i){let n=r.mime;if(n&&n.length>0){let o=Q(e,new Set(n));t.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function NE(t,e,r,i){if(r.when)throw new fe('check with a custom "when" condition');t.write(`if (${i} == null) return INVALID;`);let n=r.shape;for(let o of Reflect.ownKeys(n)){let s=typeof o=="symbol"?Q(e,o):$t(o),a=W(e);t.write(`const ${a} = ${i}[${s}];`),ht(t,e,n[o],a,!1)}}function UE(t,e,r,i){let n=`${i}[${JSON.stringify(r.property)}]`;Pe(t,e,r.schema,n)}function PE(t,e,r,i,n){let o=r._zod.def.tx;if(!o)throw new fe("overwrite check without a transform function");if(go(o))throw new Tr("z.compile: async overwrite transforms are not supported");let s=Q(e,o);t.write(`const ${n} = ${s}(${i});`)}function t_(){throw new Ct}function i_(t){this.issues.push(t)}function LE(t,e,r,i){let n=r._zod.def;if(n.fn){if(go(n.fn))throw new Tr("z.compile: async .refine() predicates are not supported");let o=ho(e,n.fn),s=Q(e,t_),a=W(e);return t.write(`const ${a} = ${o}(${i});`),t.write(`if (${a} instanceof Promise) ${s}();`),t.write(`if (!${a}) return INVALID;`),i}if(r._zod.check){if(go(r._zod.check))throw new Tr("z.compile: async .superRefine() / check functions are not supported");let o=r._zod.check,a=ho(e,u=>{let l={value:u,issues:[],addIssue:i_};return o(l)instanceof Promise&&t_(),l.issues.length===0?l.value:It}),c=W(e);return t.write(`const ${c} = ${a}(${i});`),t.write(`if (${c} === INVALID) return INVALID;`),c}throw new fe("custom check without a predicate or check function")}function kO(t,e,r,i,n=!0){let o=r.format;if(o==="base64"){let u=Q(e,Yc);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="base64url"){let u=Q(e,jf);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="jwt"){let u=Q(e,Vf),l=Q(e,r.alg??null);return t.write(`if (!${u}(${i}, ${l})) return INVALID;`),i}if(o==="ipv6"){let u=Q(e,Kc);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="cidrv6"){let u=Q(e,Cf);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="credit_card"){let u=Q(e,Mf);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="iban"){let u=Q(e,Rf);return t.write(`if (!${u}(${i})) return INVALID;`),i}let s=r;if(o==="url"||o==="httpurl"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=Q(e,Pf),l=Q(e,r),d=W(e),f=W(e);if(t.write(`const ${d} = ${i}.trim();`),t.write(`const ${f} = ${u}(${d}, ${l});`),t.write(`if (typeof ${f} === "number") return INVALID;`),s.hostname!==void 0){let y=Q(e,Lf);t.write(`if (!${y}(${f}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let y=Q(e,Ef);t.write(`if (!${y}(${f}, ${l}.protocol)) return INVALID;`)}if(!n)return null;let p=W(e),h=s.normalize?`${f}.href`:`${Q(e,Gc)}(${d})`;return t.write(`const ${p} = ${h};`),p}let a=r.fn;if(a){if(go(a))throw new fe(`async string format ${o}`);let u=Q(e,a);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(EE.has(o)&&r.pattern){let u=Q(e,r.pattern);return t.write(`${u}.lastIndex = 0;`),t.write(`if (!${u}.test(${i})) return INVALID;`),i}let c=r.format;switch(c){case"regex":throw new fe("regex format without a pattern");case"lowercase":t.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);break;case"uppercase":t.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);break;case"includes":t.write(`if (!${i}.includes(${$t(r.includes)})) return INVALID;`);break;case"starts_with":{let u=r.prefix;t.write(`if (${i}.slice(0, ${u.length}) !== ${$t(u)}) return INVALID;`);break}case"ends_with":{let u=r.suffix;t.write(`if (${i}.slice(-${u.length}) !== ${$t(u)}) return INVALID;`);break}default:throw new fe(`string format ${c}`)}return i}function Pe(t,e,r,i,n=!0){let o=r._zod.def,s=o.type;if(o.coerce)throw new fe(`coercion (z.coerce.${s}())`);let a=n||!!o.checks?.length,c;switch(s){case"string":c=CE(t,e,r,i,a);break;case"number":c=FE(t,r,i);break;case"boolean":c=jE(t,i);break;case"bigint":c=ME(t,r,i);break;case"symbol":c=RE(t,i);break;case"undefined":c=VE(t,i);break;case"null":c=ZE(t,i);break;case"any":case"unknown":c=i;break;case"never":t.write("return INVALID;"),c=i;break;case"void":c=WE(t,i);break;case"nan":c=JE(t,i);break;case"date":c=HE(t,i);break;case"object":c=GE(t,e,r,i,a);break;case"optional":c=KE(t,e,r,i,a);break;case"nullable":c=qE(t,e,r,i,a);break;case"array":c=QE(t,e,r,i,a);break;case"literal":c=e2(t,e,r,i);break;case"enum":c=t2(t,e,r,i);break;case"readonly":{let u=wO(t,e,r,i),l=W(e);t.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":wO(t,e,r,i),c="true";break;case"default":case"prefault":c=r2(t,e,r,i);break;case"nonoptional":c=n2(t,e,r,i);break;case"tuple":c=i2(t,e,r,i);break;case"union":c=o2(t,e,r,i);break;case"intersection":c=c2(t,e,r,i);break;case"record":c=u2(t,e,r,i);break;case"map":c=d2(t,e,r,i);break;case"set":c=f2(t,e,r,i);break;case"file":c=p2(t,i);break;case"template_literal":c=m2(t,e,r,i);break;case"lazy":c=h2(t,e,r,i);break;case"pipe":c=g2(t,e,r,i);break;case"custom":c=y2(t,e,r,i);break;case"transform":c=_2(t,e,r,i);break;case"catch":c=b2(t,e,r,i);break;default:throw new fe(`schema type ${s}`)}return c===null?null:DE(t,e,r,c)}function CE(t,e,r,i,n=!0){t.write(`if (typeof ${i} !== "string") return INVALID;`);let o=r._zod.def;return o.format===void 0?i:kO(t,e,o,i,n)}function FE(t,e,r){t.write(`if (typeof ${r} !== "number" || !Number.isFinite(${r})) return INVALID;`);let i=e._zod.def;return i.check==="number_format"&&i.format&&SO(t,{format:i.format},r),r}function jE(t,e){return t.write(`if (typeof ${e} !== "boolean") return INVALID;`),e}function ME(t,e,r){t.write(`if (typeof ${r} !== "bigint") return INVALID;`);let i=e._zod.def;if(i.format)switch(i.format){case"int64":t.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":t.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break}return r}function RE(t,e){return t.write(`if (typeof ${e} !== "symbol") return INVALID;`),e}function VE(t,e){return t.write(`if (${e} !== undefined) return INVALID;`),e}function ZE(t,e){return t.write(`if (${e} !== null) return INVALID;`),e}function WE(t,e){return t.write(`if (${e} !== undefined) return INVALID;`),e}function JE(t,e){return t.write(`if (typeof ${e} !== "number" || !Number.isNaN(${e})) return INVALID;`),e}function HE(t,e){return t.write(`if (!(${e} instanceof Date) || Number.isNaN(${e}.getTime())) return INVALID;`),e}function GE(t,e,r,i,n=!0){let o=r._zod.def;t.write(`if (typeof ${i} !== "object" || ${i} === null || Array.isArray(${i})) return INVALID;`);let s=o.shape,a=Object.keys(s),c=Object.getOwnPropertySymbols(s),u=c.length?[...a,...c]:a,l=I=>typeof I=="symbol"?Q(e,I):$t(I),d=I=>typeof I=="symbol"?`[${l(I)}]`:$t(I),f=s;if(a.includes("__proto__"))throw new fe('object shape key "__proto__"');let p=new Map;for(let I of u){let A=f[I],L=l(I),N=W(e);if(t.write(`const ${N} = ${i}[${L}];`),A._zod.optin!==void 0){let S=W(e);t.write(`let ${S} = (() => {`),t.indented(q=>{let Ue=ht(q,e,A,N);q.write(`return ${Ue};`)}),t.write("})();"),A._zod.optout==="optional"?(t.write(`if (${S} === INVALID) {`),t.indented(q=>{q.write(`if (${L} in ${i}) return INVALID;`),q.write(`${S} = undefined;`)}),t.write("}")):t.write(`if (${S} === INVALID) return INVALID;`),p.set(I,S)}else{XE(A)&&t.write(`if (!(${L} in ${i})) return INVALID;`);let S=ht(t,e,A,N,n);S!==null&&p.set(I,S)}}let h=o.catchall,y="none";if(h){let I=h._zod.def.type;if(I==="never"){let A=a.map(L=>`k !== ${$t(L)}`).join(" && ")||"true";t.write(`for (const k in ${i}) {`),t.indented(L=>{L.write(`if (${A}) return INVALID;`)}),t.write("}")}else(I==="unknown"||I==="any")&&!h._zod.def.checks?.length?y="passthrough":y="schema"}let _=W(e),k=u.some(I=>_O(f[I])||r_(f[I]));if(!n){if(y==="schema"){let I=a.length>0?Q(e,new Set(a)):null;t.write(`for (const k in ${i}) {`),t.indented(A=>{A.write('if (k === "__proto__") continue;'),I&&A.write(`if (${I}.has(k)) continue;`);let L=W(e);A.write(`const ${L} = ${i}[k];`),ht(A,e,h,L,!1)}),t.write("}")}return null}if(k){t.write(`const ${_} = {};`);for(let I of u){let A=l(I),L=p.get(I);r_(f[I])?t.write(`if (${A} in ${i}) ${_}[${A}] = ${L};`):_O(f[I])?t.write(`if (${L} !== undefined || ${A} in ${i}) ${_}[${A}] = ${L};`):t.write(`${_}[${A}] = ${L};`)}}else{let I=u.map(A=>`${d(A)}: ${p.get(A)}`).join(", ");t.write(`const ${_} = { ${I} };`)}if(y!=="none"){let I=a.length>0?Q(e,new Set(a)):null;t.write(`for (const k in ${i}) {`),t.indented(A=>{if(A.write('if (k === "__proto__") continue;'),I&&A.write(`if (${I}.has(k)) continue;`),y==="passthrough")A.write(`${_}[k] = ${i}[k];`);else{let L=W(e);A.write(`const ${L} = ${i}[k];`);let N=ht(A,e,h,L);A.write(`${_}[k] = ${N};`)}}),t.write("}")}return _}function KE(t,e,r,i,n=!0){let o=r._zod.def;if(YE(r))return Pe(t,e,o.innerType,i,n);if(o.innerType._zod.optin==="defaulted"){let a=W(e),c=W(e);return t.write(`let ${a};`),t.write(`if (${i} === undefined) {`),t.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let d=Pe(l,e,o.innerType,i);l.write(`return ${d};`)}),u.write("})();"),u.write(`if (${c} !== INVALID) ${a} = ${c};`)}),t.write("} else {"),t.indented(u=>{let l=Pe(u,e,o.innerType,i);u.write(`${a} = ${l};`)}),t.write("}"),a}let s=n?W(e):null;return s&&t.write(`let ${s};`),t.write(`if (${i} !== undefined) {`),t.indented(a=>{let c=Pe(a,e,o.innerType,i,n);s&&c!==null&&a.write(`${s} = ${c};`)}),t.write("}"),s}function YE(t){return t._zod.traits?.has("$ZodExactOptional")===!0}function XE(t){return t._zod.optin===void 0&&mo(t)}function mo(t){if(t._zod.def.coerce)return!0;let e=t._zod.def;switch(e.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return e.innerType?mo(e.innerType):!1;case"literal":return!!e.values?.includes(void 0);case"enum":return!!t._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return e.innerType?mo(e.innerType):!0;case"catch":return!0;case"union":return e.options?e.options.some(mo):!0;case"intersection":return!e.left||!e.right?!0:mo(e.left)&&mo(e.right);case"pipe":return e.in?mo(e.in):!0;default:return!0}}function r_(t){return t._zod.optin==="optional"&&t._zod.optout==="optional"}function _O(t){return(t._zod.optin!=="defaulted"||t._zod.optout==="optional")&&Bs(t)}function Bs(t){let e=t._zod.def;switch(e.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!e.values?.includes(void 0);case"enum":return!!t._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return e.innerType?Bs(e.innerType):!0;case"union":return e.options?e.options.some(Bs):!0;case"intersection":return!e.left||!e.right||Bs(e.left)||Bs(e.right);case"pipe":return e.out?Bs(e.out):!0;default:return!0}}function qE(t,e,r,i,n=!0){let o=r._zod.def,s=n?W(e):null;return s&&t.write(`let ${s} = null;`),t.write(`if (${i} !== null) {`),t.indented(a=>{let c=Pe(a,e,o.innerType,i,n);s&&c!==null&&a.write(`${s} = ${c};`)}),t.write("}"),s}function QE(t,e,r,i,n=!0){let o=r._zod.def;t.write(`if (!Array.isArray(${i})) return INVALID;`);let s=n?W(e):null,a=W(e),c=W(e);return s&&t.write(`const ${s} = new Array(${i}.length);`),t.write(`for (let ${a} = 0; ${a} < ${i}.length; ${a}++) {`),t.indented(u=>{u.write(`const ${c} = ${i}[${a}];`);let l=ht(u,e,o.element,c,n);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),t.write("}"),s}function e2(t,e,r,i){let o=r._zod.def.values;if(o.length!==1){let a=Q(e,new Set(o));return t.write(`if (!${a}.has(${i})) return INVALID;`),i}let s=o[0];if(typeof s=="number"&&Number.isNaN(s)){let a=Q(e,new Set(o));return t.write(`if (!${a}.has(${i})) return INVALID;`),i}if(typeof s=="string")t.write(`if (${i} !== ${$t(s)}) return INVALID;`);else if(typeof s=="number"||typeof s=="boolean")t.write(`if (${i} !== ${s}) return INVALID;`);else if(s===null)t.write(`if (${i} !== null) return INVALID;`);else if(s===void 0)t.write(`if (${i} !== undefined) return INVALID;`);else if(typeof s=="bigint")t.write(`if (${i} !== ${s}n) return INVALID;`);else throw new fe(`literal type ${typeof s}`);return i}function t2(t,e,r,i){let n=r._zod.values;if(!n)throw new fe("enum schema without enumerated values");let o=Q(e,n);return t.write(`if (!${o}.has(${i})) return INVALID;`),i}function wO(t,e,r,i){let n=r._zod.def;return Pe(t,e,n.innerType,i)}function r2(t,e,r,i){let n=r._zod.def,s=Object.getOwnPropertyDescriptor(r._zod.def,"defaultValue")?()=>r._zod.def.defaultValue:void 0;if(r._zod.def.type==="prefault"){if(!s)return Pe(t,e,n.innerType,i);let c=Q(e,s),u=W(e);return t.write(`let ${u} = ${i};`),t.write(`if (${i} === undefined) ${u} = ${c}();`),Pe(t,e,n.innerType,u)}let a=W(e);if(s){let c=Q(e,s),u=Q(e,Tc);t.write(`let ${a};`),t.write(`if (${i} === undefined) {`),t.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),t.write("} else {"),t.indented(l=>{let d=Pe(l,e,n.innerType,i);l.write(`${a} = ${d} === undefined ? ${u}(${c}()) : ${d};`)}),t.write("}")}else t.write(`let ${a};`),t.write(`if (${i} !== undefined) {`),t.indented(c=>{let u=Pe(c,e,n.innerType,i);c.write(`${a} = ${u};`)}),t.write("}");return a}function n2(t,e,r,i){let n=r._zod.def,o=Pe(t,e,n.innerType,i),s=W(e);return t.write(`const ${s} = ${o};`),t.write(`if (${s} === undefined) return INVALID;`),s}function i2(t,e,r,i){let n=r._zod.def,o=n.items,s=n.rest;t.write(`if (!Array.isArray(${i})) return INVALID;`);let a=$O(o,"optin"),c=$O(o,"optout");s?t.write(`if (${i}.length < ${a}) return INVALID;`):t.write(`if (${i}.length < ${a} || ${i}.length > ${o.length}) return INVALID;`);let u=W(e);t.write(`const ${u} = [];`);for(let l=0;l<o.length;l++){let d=o[l];if(l>=c)t.write(`if (${u}.length === ${l}) {`),t.indented(f=>{f.write(`if (${l} < ${i}.length) {`),f.indented(p=>{let h=W(e);p.write(`const ${h} = ${i}[${l}];`);let y=ht(p,e,d,h);p.write(`${u}[${l}] = ${y};`)}),f.write("} else {"),f.indented(p=>{if(r_(d)){p.write(`${u}.length = ${l};`);return}let h=W(e),y=W(e);p.write(`const ${h} = undefined;`),p.write(`const ${y} = (() => {`),p.indented(_=>{let k=ht(_,e,d,h);_.write(`return ${k};`)}),p.write("})();"),p.write(`if (${y} === INVALID || ${y} === undefined) ${u}.length = ${l};`),p.write(`else ${u}[${l}] = ${y};`)}),f.write("}")}),t.write("}");else{let f=W(e);t.write(`const ${f} = ${i}[${l}];`);let p=ht(t,e,d,f);t.write(`${u}[${l}] = ${p};`)}}if(s){let l=W(e),d=W(e);t.write(`for (let ${l} = ${o.length}; ${l} < ${i}.length; ${l}++) {`),t.indented(f=>{f.write(`const ${d} = ${i}[${l}];`);let p=ht(f,e,s,d);f.write(`${u}[${l}] = ${p};`)}),t.write("}")}return u}function $O(t,e){for(let r=t.length-1;r>=0;r--)if(!(e==="optin"?t[r]._zod.optin!==void 0:t[r]._zod.optout==="optional"))return r+1;return 0}function o2(t,e,r,i){let n=r._zod.def,o=n.options;if(n.discriminator)return s2(t,e,n,i);if(n.inclusive===!1)throw new fe("exclusive unions (z.xor)");if(o.length===0)return t.write("return INVALID;"),i;if(o.length===1)return Pe(t,e,o[0],i);if(o.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(o.flatMap(l=>l._zod.def.values)),u=Q(e,c);return t.write(`if (!${u}.has(${i})) return INVALID;`),i}let a=W(e);t.write(`let ${a};`);for(let c=0;c<o.length;c++){let u=o[c];c===0?t.write(`${a} = (() => {`):t.write(`if (${a} === INVALID) ${a} = (() => {`),t.indented(l=>{let d=Pe(l,e,u,i);l.write(`return ${d};`)}),t.write("})();")}return t.write(`if (${a} === INVALID) return INVALID;`),a}function s2(t,e,r,i){if(r.unionFallback)throw new fe("discriminated union with unionFallback");if(r.options.length===0)return t.write("return INVALID;"),i;let n=W(e),o=W(e);t.write(`const ${n} = ${i}?.[${$t(r.discriminator)}];`),t.write(`let ${o};`);let s=!0,a=new Set;for(let c of r.options){let u=c._zod.propValues?.[r.discriminator];if(!u||u.size===0)throw new fe("discriminated union option without static discriminator values");for(let f of u){if(a.has(f))throw new fe(`duplicate discriminator value ${String(f)}`);a.add(f)}let l=Array.from(u,f=>a2(e,n,f)),d=s?"if":"else if";t.write(`${d} (${l.join(" || ")}) {`),t.indented(f=>{let p=Pe(f,e,c,i);f.write(`${o} = ${p};`)}),t.write("}"),s=!1}return t.write("else { return INVALID; }"),o}function a2(t,e,r){if(typeof r=="string")return`${e} === ${$t(r)}`;if(typeof r=="number")return Number.isNaN(r)?`Number.isNaN(${e})`:`${e} === ${r}`;if(typeof r=="boolean")return`${e} === ${r}`;if(r===null)return`${e} === null`;if(r===void 0)return`${e} === undefined`;if(typeof r=="bigint")return`${e} === ${r}n`;if(typeof r=="symbol"){let i=Q(t,r);return`${e} === ${i}`}throw new fe(`literal discriminator value ${String(r)}`)}function c2(t,e,r,i){let n=r._zod.def;e.definite=!1;let o=ht(t,e,n.left,i),s=ht(t,e,n.right,i),a=Q(e,ks),c=W(e);return t.write(`const ${c} = ${a}(${o}, ${s});`),t.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function u2(t,e,r,i){let n=r._zod.def,o=Q(e,fr);t.write(`if (!${o}(${i})) return INVALID;`);let s=W(e),a=W(e),c=W(e);t.write(`const ${s} = {};`);let u=n,l=u.partial?void 0:n.keyType._zod.values;if(l){let p=[];for(let y of l){if(!(typeof y=="string"||typeof y=="number"||typeof y=="symbol"))throw new fe(`record key value ${String(y)}`);let _=typeof y=="number"?y.toString():y;if(_==="__proto__")throw new fe('record key "__proto__"');p.push(_);let k=Q(e,y),I=Pe(t,e,n.keyType,k),A=W(e);t.write(`const ${A} = ${i}[${l2(e,_)}];`);let L=ht(t,e,n.valueType,A);t.write(`${s}[${I}] = ${L};`)}let h=Q(e,new Set(p));return t.write(`for (const ${a} in ${i}) {`),t.indented(y=>{y.write(`if (${h}.has(${a})) continue;`),u.mode==="loose"?y.write(`if (${a} !== "__proto__") ${s}[${a}] = ${i}[${a}];`):y.write("return INVALID;")}),t.write("}"),s}let d=n.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let p=n.mode==="loose",h=ap(n.keyType);h.definite===!1&&(e.definite=!1);let y=Q(e,h),_=Q(e,Pn),k=W(e);return xO(t,e,i,a,I=>{I.write(`let ${k} = ${y}(${a});`),I.write(`if (${k} === INVALID && typeof ${a} === "string" && ${_}.test(${a})) ${k} = ${y}(Number(${a}));`),p?I.write(`if (${k} === INVALID) { ${s}[${a}] = ${i}[${a}]; continue; }`):I.write(`if (${k} === INVALID) return INVALID;`),I.write(`if (${k} === "__proto__") continue;`);let A=W(e);I.write(`const ${A} = ${i}[${a}];`);let L=ht(I,e,n.valueType,A);I.write(`${s}[${k}] = ${L};`)}),s}return xO(t,e,i,a,p=>{p.write(`const ${c} = ${i}[${a}];`);let h=ht(p,e,n.valueType,c);p.write(`${s}[${a}] = ${h};`)},"return INVALID;"),s}function xO(t,e,r,i,n,o){let s=Q(e,Object.prototype.propertyIsEnumerable),a=W(e),c=W(e),u=W(e);t.write(`const ${a} = Object.getOwnPropertySymbols(${r});`),t.write(`const ${c} = Object.getOwnPropertyNames(${r});`),t.write(`for (let ${u} = 0; ${u} < ${c}.length; ${u}++) {`),t.indented(l=>{l.write(`const ${i} = ${c}[${u}];`),l.write(`if (${i} === "__proto__" || !${s}.call(${r}, ${i})) continue;`),n(l)}),t.write("}"),t.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),t.indented(l=>{l.write(`const ${i} = ${a}[${u}];`),l.write(`if (!${s}.call(${r}, ${i})) continue;`),o?l.write(o):n(l)}),t.write("}")}function l2(t,e){return typeof e=="string"?$t(e):Q(t,e)}function d2(t,e,r,i){let n=r._zod.def;t.write(`if (!(${i} instanceof Map)) return INVALID;`);let o=W(e),s=W(e),a=W(e);return t.write(`const ${o} = new Map();`),t.write(`for (const [${s}, ${a}] of ${i}) {`),t.indented(c=>{let u=Pe(c,e,n.keyType,s),l=Pe(c,e,n.valueType,a);c.write(`${o}.set(${u}, ${l});`)}),t.write("}"),o}function f2(t,e,r,i){let n=r._zod.def;t.write(`if (!(${i} instanceof Set)) return INVALID;`);let o=W(e),s=W(e);return t.write(`const ${o} = new Set();`),t.write(`for (const ${s} of ${i}) {`),t.indented(a=>{let c=Pe(a,e,n.valueType,s);a.write(`${o}.add(${c});`)}),t.write("}"),o}function p2(t,e){return t.write(`if (!(${e} instanceof File)) return INVALID;`),e}function m2(t,e,r,i){t.write(`if (typeof ${i} !== "string") return INVALID;`);let n=r._zod.pattern;if(n){let o=Q(e,n);t.write(`${o}.lastIndex = 0;`),t.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function h2(t,e,r,i){let n=r._zod.def,o=ho(e,n.getter),s=Q(e,{parser:null});t.write(`if (!${s}.parser) {`),t.indented(c=>{c.write(`const inner = ${o}();`),c.write(`${s}.parser = function(input) {`),c.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),t.write("}");let a=W(e);return t.write(`const ${a} = ${s}.parser(${i});`),t.write(`if (${a} === INVALID) return INVALID;`),a}function g2(t,e,r,i){let n=r._zod.def,o=Pe(t,e,n.in,i);if(n.transform){if(go(n.transform))throw new Tr("z.compile: async transforms in pipes are not supported");let s=n.transform,c=ho(e,l=>{let d={value:l,issues:[],addIssue:i_},f=s(l,d);return f instanceof Promise?It:d.issues.length===0?f:It}),u=W(e);return t.write(`const ${u} = ${c}(${o});`),t.write(`if (${u} === INVALID) return INVALID;`),Pe(t,e,n.out,u)}else return Pe(t,e,n.out,o)}function go(t){return typeof t=="function"&&(t.constructor.name==="AsyncFunction"||t[Symbol.toStringTag]==="AsyncFunction")}function y2(t,e,r,i){let n=r._zod.def;if(n.fn){if(go(n.fn))throw new Tr("z.compile: async custom predicates are not supported");let o=ho(e,n.fn),s=Q(e,t_),a=W(e);t.write(`const ${a} = ${o}(${i});`),t.write(`if (${a} instanceof Promise) ${s}();`),t.write(`if (!${a}) return INVALID;`)}else throw new fe("custom schema without a predicate function");return i}function v2(t,e,r){let i=t._zod.run({value:r,issues:[]},{});if(i&&typeof i.then=="function")return It;let n=i;return n.issues.length===0?n.value:e()}function b2(t,e,r,i){let n=r._zod.def;if(!n.catchValue[lf])throw new fe("catch with a callback (only a constant catch value compiles)",!1);let o=W(e);t.write(`let ${o} = (() => {`),t.indented(u=>{let l=ht(u,e,n.innerType,i);u.write(`return ${l};`)}),t.write("})();");let s=Q(e,n.innerType),a=ho(e,n.catchValue),c=Q(e,v2);return t.write(`if (${o} === INVALID) {`),t.indented(u=>{u.write(`${o} = ${c}(${s}, ${a}, ${i});`),u.write(`if (${o} === INVALID) return INVALID;`)}),t.write("}"),o}function _2(t,e,r,i){let n=r._zod.def;if(n.transform){if(go(n.transform))throw new Tr("z.compile: async transforms are not supported");let o=n.transform,a=ho(e,u=>{let l={value:u,issues:[],addIssue:i_},d=o(u,l);return d instanceof Promise?It:l.issues.length===0?d:It}),c=W(e);return t.write(`const ${c} = ${a}(${i});`),t.write(`if (${c} === INVALID) return INVALID;`),c}return i}var It,bO,Tr,fe,kE,EE,DO=m(()=>{ni();Of();Hb();uo();Ds();B();It=Symbol.for("zod.compile.invalid"),bO=Symbol.for("zod.compile.fallback"),Tr=class extends Error{constructor(e="z.compile does not support async refinements, transforms, or checks"){super(e),this.name="ZodCompileAsyncError"}},fe=class extends Error{constructor(e,r=!0){super(`z.compile does not support ${e}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=r}};kE=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);EE=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"])});function cp(t){return t.checks&&(t.checks=[...t.checks]),t}function o_(t,e){return new t(cp({type:"string",...D(e)}))}function s_(t,e){return new t(cp({type:"string",coerce:!0,...D(e)}))}function up(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...D(e)})}function lp(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...D(e)})}function dp(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...D(e)})}function fp(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...D(e)})}function pp(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...D(e)})}function mp(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...D(e)})}function cu(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...D(e)})}function hp(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...D(e)})}function gp(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...D(e)})}function yp(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...D(e)})}function vp(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...D(e)})}function bp(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...D(e)})}function _p(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...D(e)})}function wp(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...D(e)})}function $p(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...D(e)})}function xp(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...D(e)})}function a_(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...D(e)})}function Ip(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...D(e)})}function Sp(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...D(e)})}function kp(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...D(e)})}function Dp(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...D(e)})}function Ap(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...D(e)})}function c_(t,e){return new t({type:"string",format:"credit_card",check:"string_format",abort:!1,...D(e)})}function u_(t,e){return new t({type:"string",format:"iban",check:"string_format",abort:!1,...D(e)})}function Op(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...D(e)})}function uu(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...D(e)})}function lu(t,e){return new t({type:"string",format:"date",check:"string_format",...D(e)})}function du(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...D(e)})}function fu(t,e){return new t({type:"string",format:"duration",check:"string_format",...D(e)})}function d_(t,e){return new t(cp({type:"number",checks:[],...D(e)}))}function f_(t,e){return new t(cp({type:"number",coerce:!0,checks:[],...D(e)}))}function p_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...D(e)})}function m_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...D(e)})}function h_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...D(e)})}function g_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...D(e)})}function y_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...D(e)})}function v_(t,e){return new t({type:"boolean",...D(e)})}function b_(t,e){return new t({type:"boolean",coerce:!0,...D(e)})}function __(t,e){return new t({type:"bigint",...D(e)})}function w_(t,e){return new t({type:"bigint",coerce:!0,...D(e)})}function $_(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...D(e)})}function x_(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...D(e)})}function I_(t,e){return new t({type:"symbol",...D(e)})}function S_(t,e){return new t({type:"undefined",...D(e)})}function k_(t,e){return new t({type:"null",...D(e)})}function D_(t){return new t({type:"any"})}function A_(t){return new t({type:"unknown"})}function O_(t,e){return new t({type:"never",...D(e)})}function B_(t,e){return new t({type:"void",...D(e)})}function z_(t,e){return new t({type:"date",...D(e)})}function T_(t,e){return new t({type:"date",coerce:!0,...D(e)})}function N_(t,e){return new t({type:"nan",...D(e)})}function sn(t,e){return new kf({check:"less_than",...D(e),value:t,inclusive:!1})}function Qt(t,e){return new kf({check:"less_than",...D(e),value:t,inclusive:!0})}function an(t,e){return new Df({check:"greater_than",...D(e),value:t,inclusive:!1})}function er(t,e){return new Df({check:"greater_than",...D(e),value:t,inclusive:!0})}function Bp(t){return an(0,t)}function zp(t){return sn(0,t)}function Tp(t){return Qt(0,t)}function Np(t){return er(0,t)}function oi(t,e){return new dv({check:"multiple_of",...D(e),value:t})}function si(t,e){return new mv({check:"max_size",...D(e),maximum:t})}function cn(t,e){return new hv({check:"min_size",...D(e),minimum:t})}function yo(t,e){return new gv({check:"size_equals",...D(e),size:t})}function vo(t,e){return new yv({check:"max_length",...D(e),maximum:t})}function Ln(t,e){return new vv({check:"min_length",...D(e),minimum:t})}function bo(t,e){return new bv({check:"length_equals",...D(e),length:t})}function zs(t,e){return new _v({check:"string_format",format:"regex",...D(e),pattern:t})}function Ts(t){return new wv({check:"string_format",format:"lowercase",...D(t)})}function Ns(t){return new $v({check:"string_format",format:"uppercase",...D(t)})}function Us(t,e){return new xv({check:"string_format",format:"includes",...D(e),includes:t})}function Ps(t,e){return new Iv({check:"string_format",format:"starts_with",...D(e),prefix:t})}function Ls(t,e){return new Sv({check:"string_format",format:"ends_with",...D(e),suffix:t})}function Up(t,e,r){return new kv({check:"property",property:t,schema:e,...D(r)})}function Es(t,e){return new Dv({check:"properties",shape:t,...D(e)})}function Cs(t,e){return new Av({check:"mime_type",mime:t,...D(e)})}function Nr(t){return new Ov({check:"overwrite",tx:t})}function Fs(t){return Nr(e=>e.normalize(t))}function js(){return Nr(t=>t.trim())}function Ms(){return Nr(t=>t.toLowerCase())}function Rs(){return Nr(t=>t.toUpperCase())}function Vs(){return Nr(t=>dy(t))}function U_(t,e,r){return new t({type:"array",element:e,...D(r)})}function w2(t,e,r){return new t({type:"union",options:e,...D(r)})}function $2(t,e,r){return new t({type:"union",options:e,inclusive:!1,...D(r)})}function x2(t,e,r,i){return new t({type:"union",options:r,discriminator:e,...D(i)})}function I2(t,e,r){return new t({type:"intersection",left:e,right:r})}function S2(t,e,r,i){let n=r instanceof te,o=n?i:r,s=n?r:null;return new t({type:"tuple",items:e,rest:s,...D(o)})}function k2(t,e,r,i){return new t({type:"record",keyType:e,valueType:r,...D(i)})}function D2(t,e,r,i){return new t({type:"map",keyType:e,valueType:r,...D(i)})}function A2(t,e,r){return new t({type:"set",valueType:e,...D(r)})}function O2(t,e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:i,...D(r)})}function B2(t,e,r){return new t({type:"enum",entries:e,...D(r)})}function z2(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...D(r)})}function P_(t,e){return new t({type:"file",...D(e)})}function T2(t,e){return new t({type:"transform",transform:e})}function N2(t,e){return new t({type:"optional",innerType:e})}function U2(t,e){return new t({type:"nullable",innerType:e})}function P2(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Tc(r)}})}function L2(t,e,r){return new t({type:"nonoptional",innerType:e,...D(r)})}function E2(t,e){return new t({type:"success",innerType:e})}function C2(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:yy(r)})}function F2(t,e,r){return new t({type:"pipe",in:e,out:r})}function j2(t,e){return new t({type:"readonly",innerType:e})}function M2(t,e,r){return new t({type:"template_literal",parts:e,...D(r)})}function R2(t,e){return new t({type:"lazy",getter:e})}function V2(t,e){return new t({type:"promise",innerType:e})}function L_(t,e,r){let i=D(r);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function E_(t,e,r){return new t({type:"custom",check:"custom",fn:e,...D(r)})}function C_(t,e){let r=AO(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(_s(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(_s(o))}},t(i.value,i)),e);return r}function AO(t,e){let r=new Se({check:"custom",...D(e)});return r._zod.check=t,r}function F_(t){let e=new Se({check:"describe"});return e._zod.onattach=[r=>{let i=ct.get(r)??{};ct.add(r,{...i,description:t})}],e._zod.check=()=>{},e}function j_(t){let e=new Se({check:"meta"});return e._zod.onattach=[r=>{let i=ct.get(r)??{};ct.add(r,{...i,...t})}],e._zod.check=()=>{},e}function M_(t,e){let r=D(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(p=>typeof p=="string"?p.toLowerCase():p),n=n.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),s=new Set(n),a=t.Codec??eu,c=t.Boolean??qc,u=t.String??fo,l=new u({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),f=new a({type:"pipe",in:l,out:d,transform:((p,h)=>{let y=p;return r.case!=="sensitive"&&(y=y.toLowerCase()),o.has(y)?!0:s.has(y)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:h.value,inst:f,continue:!1}),{})}),reverseTransform:((p,h)=>p===!0?i[0]||"true":n[0]||"false"),error:r.error});return f._zod.bag.truthy=i,f._zod.bag.falsy=n,f._zod.bag.case=r.case??"insensitive",f}function _o(t,e,r,i={}){let n=D(i),o={check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:a=>r.test(a),...n};return r instanceof RegExp&&(o.pattern=r),new t(o)}var l_,OO=m(()=>{Af();au();Ds();B();l_={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function pu(t,...e){for(let r of e)for(let i of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,i)&&at(t,i,r[i]);return t}function ai(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??ct,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:t?.cycles??"ref",reused:t?.reused??"inline",intersections:[],deferred:[],external:t?.external??void 0}}function et(t,e,r,i,n){let o=typeof e.unrepresentable=="function"?e.unrepresentable({zodSchema:t,path:i.path,message:n}):e.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(n);return Object.assign(r,o),!0}function _e(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 s={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,s),e.sharedDefsExtractedFor=void 0,e.sharedEmitDoneFor=void 0;let a=t._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,l);else{let f=s.schema,p=e.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(t,e,f,l)}let d=t._zod.parent;d&&(s.ref||(s.ref=d),_e(d,e,l),e.seen.get(d).isParent=!0)}let c=e.metadataRegistry.get(t);return c&&pu(s.schema,c),e.io==="input"&&St(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&"_prefault"in s.schema&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function BO(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function ci(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");if(t.external&&t.sharedDefsExtractedFor===t.external)return;let i=new Map;for(let s of t.seen.entries()){let a=t.metadataRegistry.get(s[0])?.id;if(a){let c=i.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(a,s[0])}}let n=s=>{let a=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let d=t.external.registry.get(s[0])?.id,f=t.external.uri??(h=>h);if(d)return{ref:f(d)};let p=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=p,{defId:p,ref:`${f("__shared")}#/${a}/${BO(p)}`}}let c="#",u=`${c}/${a}/`;if(s[1]===r&&!s[1].schema.id)return{ref:c};let l=s[1].schema.id??`__schema${t.counter++}`;return{defId:l,ref:u+BO(l)}},o=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=n(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(t.cycles==="throw")for(let s of t.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
76
|
+
|
|
77
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let a=s[1];if(e===s[0]){o(s);continue}if(t.external){let u=t.external.registry.get(s[0])?.id;if(e!==s[0]&&u){o(s);continue}}if(t.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}a.count>1&&t.reused==="ref"&&o(s)}t.external&&(t.sharedDefsExtractedFor=t.external)}function NO(t){let e=t.anyOf;if(!Array.isArray(e)||e.length===0||t.type!==void 0)return;let r=[];for(let i of e){if(!i||typeof i!="object")return;NO(i);let n=Object.keys(i);if(n.length!==1||n[0]!=="type")return;let o=i.type;for(let s of Array.isArray(o)?o:[o]){if(typeof s!="string")return;r.includes(s)||r.push(s)}}delete t.anyOf,t.type=r.length===1?r[0]:r}function TO(t){let e=t.additionalProperties;return e===void 0||e===!1||typeof e!="object"||e===null?null:Object.keys(e).length?e:null}function R_(t){let e=[];for(let o of t){if(typeof o!="object"||o.type!=="object")return null;for(let s in o)if(!UO.has(s))return null;e.push(o)}let r={},i=new Set;for(let o of e){for(let s in o.properties){if(Object.prototype.hasOwnProperty.call(r,s))continue;let a=[];for(let u of e){let l=u.properties?.[s]??TO(u);l!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:R_(a)??{allOf:a};at(r,s,c)}for(let s of o.required??[])i.add(s)}let n={type:"object",properties:r};if(i.size&&(n.required=[...i]),e.every(o=>o.additionalProperties===!1))n.additionalProperties=!1;else{let o=[];for(let s of e){let a=TO(s);a&&!o.some(c=>JSON.stringify(c)===JSON.stringify(a))&&o.push(a)}o.length===1?n.additionalProperties=o[0]:o.length>1&&(n.additionalProperties={allOf:o})}return n}function Z2(t){let e=t.allOf;if(!Array.isArray(e)||e.length<2)return;for(let n of UO)if(n in t)return;let r=e.filter(n=>zO.some(o=>Array.isArray(n[o]))),i=null;if(!r.length)i=R_(e);else{let n=r[0],o=zO.find(c=>Array.isArray(n[c]));if(Object.keys(n).length!==1)return;let s=e.filter(c=>c!==n),a=n[o].map(c=>R_([...s,c]));if(a.some(c=>!c))return;i={[o]:a}}i&&(delete t.allOf,pu(t,i))}function ui(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let c=t.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){i(d);let p=t.seen.get(d),h=p.schema;if(h.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):pu(u,h),pu(u,l),a._zod.parent===d)for(let _ in u)_==="$ref"||_==="allOf"||_ in l||delete u[_];if(h.$ref&&p.def)for(let _ in u)_==="$ref"||_==="allOf"||_ in p.def&&JSON.stringify(u[_])===JSON.stringify(p.def[_])&&delete u[_]}let f=a._zod.parent;if(f&&f!==d){i(f);let p=t.seen.get(f);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(let h in u)h==="$ref"||h==="allOf"||h in p.def&&JSON.stringify(u[h])===JSON.stringify(p.def[h])&&delete u[h]}t.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};if(!t.external||t.sharedEmitDoneFor!==t.external){for(let a of[...t.seen.entries()].reverse())i(a[0]);if(t.target!=="openapi-3.0")for(let a of t.seen.entries())NO(a[1].def??a[1].schema);for(let a of t.deferred)a();if(t.intersections.length){let a=new Map;for(let c of t.seen.values())for(let u of[c.schema,c.def]){let l=u?.allOf;if(!Array.isArray(l))continue;let d=a.get(l);d?d.push(u):a.set(l,[u])}for(let c of t.intersections)for(let u of a.get(c)??[])Z2(u)}}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 a=t.external.registry.get(e)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(a)}pu(n,r.defId?r.schema:r.def??r.schema);let o=t.metadataRegistry.get(e)?.id;o!==void 0&&n.id===o&&delete n.id;let s=t.external?.defs??{};if(!t.external||t.sharedEmitDoneFor!==t.external)for(let a of t.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,at(s,c.defId,c.def))}t.external&&(t.sharedEmitDoneFor=t.external),t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?n.$defs=s:n.definitions=s);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...e["~standard"],jsonSchema:{input:Zs(e,"input",t.processors),output:Zs(e,"output",t.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function St(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 St(i.element,r);if(i.type==="set")return St(i.valueType,r);if(i.type==="lazy")return St(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"||i.type==="catch")return St(i.innerType,r);if(i.type==="intersection")return St(i.left,r)||St(i.right,r);if(i.type==="record"||i.type==="map")return St(i.keyType,r)||St(i.valueType,r);if(i.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:St(i.in,r)||St(i.out,r);if(i.type==="object"){for(let n in i.shape)if(St(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(St(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(St(n,r))return!0;return!!(i.rest&&St(i.rest,r))}return!1}var UO,zO,V_,Zs,mu=m(()=>{au();B();UO=new Set(["type","properties","required","additionalProperties"]),zO=["oneOf","anyOf"];V_=(t,e={})=>r=>{let i=ai({...r,processors:e});return _e(t,i),ci(i,t),ui(i,t)},Zs=(t,e,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},s=ai({...n??{},target:o,io:e,processors:r});return _e(t,s),ci(s,t),ui(s,t)}});function tt(t){let e={},r=t._zod.def,i=t._zod.traits.has("$ZodCheck")?[t,...r.checks??[]]:r.checks??[];for(let o of i)W2[o._zod.def.check]?.(e,o._zod.def);let n=t._zod.bag;n.minimum!==void 0&&Ws(e,"minimum",n.minimum),n.exclusiveMinimum!==void 0&&Ws(e,"exclusiveMinimum",n.exclusiveMinimum),n.maximum!==void 0&&Js(e,"maximum",n.maximum),n.exclusiveMaximum!==void 0&&Js(e,"exclusiveMaximum",n.exclusiveMaximum),n.multipleOf!==void 0&&FO(e,n.multipleOf),n.format!==void 0&&(e.format??(e.format=n.format),n.format.includes("int")&&(e.isInt=!0)),n.mime&&MO(e,n.mime);for(let o of n.patterns??[])jO(e,o);return e}function hu(t){let e=t._zod.def;return e.type==="pipe"&&e.in._zod.traits.has("$ZodTransform")?hu(e.out):e.type==="catch"?hu(e.innerType):t._zod.optin}function Z_(t,e,r){if(e.$ref){if(r.has(e))return e;r.add(e);let h=t.get(e)?.def;if(!h)return e;let y=Z_(t,h,r);return y===h?e:y}for(let h of["anyOf","oneOf"]){let y=e[h];if(!Array.isArray(y))continue;let _=y.map(k=>Z_(t,k,r));_.some((k,I)=>k!==y[I])&&(e={...e,[h]:_})}let i=Array.isArray(e.type)?e.type:[e.type],n=!i.includes("string")&&i.some(h=>h==="number"||h==="integer"),o=e.enum??(e.const!==void 0?[e.const]:void 0);if(!n&&!o?.some(h=>typeof h=="number"))return e;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:l,format:d,id:f,...p}=e;return p.enum?p.enum=p.enum.map(h=>typeof h=="number"?String(h):h):typeof p.const=="number"&&(p.const=String(p.const)),n&&(p.type="string",o||(p.pattern=(i.includes("number")?Pn:Zc).source)),p}function G2(t){let e=new Map;for(let i of t.seen.values())i.def&&!e.has(i.schema)&&e.set(i.schema,i);let r=new Map;for(let i of W_.get(t)??[]){let n=t.seen.get(i),o=(n?.def??n?.schema)?.propertyNames;if(!o||o===!0||r.has(o))continue;let s=Z_(e,o,new Set);s!==o&&r.set(o,s)}if(r.size)for(let i of t.seen.values())for(let n of[i.schema,i.def]){let o=n&&r.get(n.propertyNames);o&&(n.propertyNames=o)}}function ZO(t,e,r,i,n){let o=!1,s=JSON.stringify(t,(a,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(et(e,r,i,n,"BigInt defaults cannot be represented in JSON Schema"),$w):JSON.parse(s)}function Cp(t,e){if("_idmap"in t){let i=t,n=ai({...e,processors:Pp}),o={};for(let c of i._idmap.entries()){let[u,l]=c;_e(l,n)}let s={},a={registry:i,uri:e?.uri,defs:o};n.external=a;for(let c of i._idmap.entries()){let[u,l]=c;ci(n,l),at(s,u,ui(n,l))}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:o}}return{schemas:s}}let r=ai({...e,processors:Pp});return _e(t,r),ci(r,t),ui(r,t)}var Ws,Js,PO,FO,jO,MO,RO,LO,EO,CO,W2,J2,H2,VO,J_,H_,G_,K_,Y_,X_,q_,Q_,ew,tw,rw,nw,iw,ow,sw,aw,cw,uw,lw,dw,fw,pw,mw,hw,gw,Lp,yw,vw,W_,bw,_w,ww,$w,xw,Iw,Sw,kw,Dw,Aw,Ep,Ow,Pp,gu=m(()=>{uo();Ds();mu();B();Ws=(t,e,r)=>{(t[e]===void 0||r>t[e])&&(t[e]=r)},Js=(t,e,r)=>{(t[e]===void 0||r<t[e])&&(t[e]=r)},PO=(t,e)=>{Ws(t,"minimum",e),Js(t,"maximum",e)},FO=(t,e)=>{t.multipleOf??(t.multipleOf=[]),t.multipleOf.includes(e)||t.multipleOf.push(e)},jO=(t,e)=>{t.patterns??(t.patterns=new Set),t.patterns.add(e)},MO=(t,e)=>{t.mime=t.mime?t.mime.filter(r=>e.includes(r)):[...e]},RO=(t,e)=>{t.format=e,e.includes("int")&&(t.isInt=!0)},LO=(t,e)=>Ws(t,"minimum",e.minimum),EO=(t,e)=>Js(t,"maximum",e.maximum),CO=t=>(e,r)=>{RO(e,r.format);let[i,n]=t[r.format];Ws(e,"minimum",i),Js(e,"maximum",n)},W2={greater_than:(t,e)=>Ws(t,e.inclusive?"minimum":"exclusiveMinimum",e.value),less_than:(t,e)=>Js(t,e.inclusive?"maximum":"exclusiveMaximum",e.value),multiple_of:(t,e)=>FO(t,e.value),number_format:CO(Uc),bigint_format:CO(Pc),min_length:LO,max_length:EO,length_equals:(t,e)=>PO(t,e.length),min_size:LO,max_size:EO,size_equals:(t,e)=>PO(t,e.size),string_format:(t,e)=>{RO(t,e.format),e.pattern&&jO(t,e.pattern),(e.format==="base64"||e.format==="base64url")&&(t.contentEncoding=e.format),(e.local||e.precision===-1)&&(t.laxFormat=!0)},mime_type:(t,e)=>MO(t,e.mime)};J2={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},H2=new Map([[Ff,Wy],[Xc,Jy]]),VO=t=>H2.get(t)??t,J_=(t,e,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=tt(t);if(typeof o=="number"&&(n.minLength=o),typeof s=="number"&&(n.maxLength=s),a&&(n.format=J2[a]??a,n.format===""&&delete n.format,(a==="time"||l)&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let d=[...c].map(VO);d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(f=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},H_=(t,e,r,i)=>{let n=r,{minimum:o,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=tt(t);n.type=l?"integer":"number";let d=typeof u=="number"&&u>=(o??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),p=e.target==="draft-04"||e.target==="openapi-3.0";if(d?p?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u:typeof o=="number"&&(n.minimum=o),f?p?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof s=="number"&&(n.maximum=s),a){let h=new Set;for(let k of a)Number.isFinite(k)&&k!==0?h.add(Math.abs(k)):et(t,e,n,i,`A multipleOf divisor of ${k} cannot be represented in JSON Schema`);let[y,..._]=h;y!==void 0&&(n.multipleOf=y),_.length&&(n.allOf=[...n.allOf??[],..._.map(k=>({multipleOf:k}))])}},G_=(t,e,r,i)=>{r.type="boolean"},K_=(t,e,r,i)=>{et(t,e,r,i,"BigInt cannot be represented in JSON Schema")},Y_=(t,e,r,i)=>{et(t,e,r,i,"Symbols cannot be represented in JSON Schema")},X_=(t,e,r,i)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},q_=(t,e,r,i)=>{et(t,e,r,i,"Undefined cannot be represented in JSON Schema")},Q_=(t,e,r,i)=>{et(t,e,r,i,"Void cannot be represented in JSON Schema")},ew=(t,e,r,i)=>{r.not={}},tw=(t,e,r,i)=>{},rw=(t,e,r,i)=>{},nw=(t,e,r,i)=>{et(t,e,r,i,"Date cannot be represented in JSON Schema")},iw=(t,e,r,i)=>{let n=t._zod.def,o=gs(n.entries);if(o.length===0){r.not={};return}o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},ow=(t,e,r,i)=>{let n=t._zod.def;if(n.values.length===0){r.not={};return}let o=[];for(let s of n.values)if(s===void 0){if(et(t,e,r,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(et(t,e,r,i,"BigInt literals cannot be represented in JSON Schema"))return;o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},sw=(t,e,r,i)=>{et(t,e,r,i,"NaN cannot be represented in JSON Schema")},aw=(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},cw=(t,e,r,i)=>{let n=r;n.type="string",n.format="binary",n.contentEncoding="binary";let{minimum:o,maximum:s,mime:a}=tt(t);o!==void 0&&(n.minLength=o),s!==void 0&&(n.maxLength=s),a&&(a.length===0?n.not={}:a.length===1?n.contentMediaType=a[0]:n.anyOf=a.map(c=>({contentMediaType:c})))},uw=(t,e,r,i)=>{r.type="boolean"},lw=(t,e,r,i)=>{et(t,e,r,i,"Custom types cannot be represented in JSON Schema")},dw=(t,e,r,i)=>{et(t,e,r,i,"Function types cannot be represented in JSON Schema")},fw=(t,e,r,i)=>{et(t,e,r,i,"Transforms cannot be represented in JSON Schema")},pw=(t,e,r,i)=>{et(t,e,r,i,"Map cannot be represented in JSON Schema")},mw=(t,e,r,i)=>{et(t,e,r,i,"Set cannot be represented in JSON Schema")},hw=(t,e,r,i)=>{let n=r,o=t._zod.def,{minimum:s,maximum:a}=tt(t);typeof s=="number"&&(n.minItems=s),typeof a=="number"&&(n.maxItems=a),n.type="array",n.items=_e(o.element,e,{...i,path:[...i.path,"items"]})};gw=(t,e,r,i)=>{let n=r,o=t._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&et(t,e,n,i,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let u in s)at(n.properties,u,_e(s[u],e,{...i,path:[...i.path,"properties",u]}));let c=[];for(let u of Object.keys(s)){let l=o.shape[u];(e.io==="input"?hu(l)===void 0:l._zod.optout===void 0)&&c.push(u)}c.length>0&&(n.required=c),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=_e(o.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},Lp=(t,e,r,i)=>{let n=t._zod.def,o=n.inclusive===!1,s=n.options.map((a,c)=>_e(a,e,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=s:r.anyOf=s},yw=(t,e,r,i)=>{let n=t._zod.def,o=_e(n.left,e,{...i,path:[...i.path,"allOf",0]}),s=_e(n.right,e,{...i,path:[...i.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];r.allOf=c,e.intersections.push(c)},vw=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",a=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((y,_)=>_e(y,e,{...i,path:[...i.path,s,_]})),u=o.rest?_e(o.rest,e,{...i,path:[...i.path,a,...e.target==="openapi-3.0"?[o.items.length]:[]]}):null,l=o.items.length;for(;l>0;){let y=o.items[l-1];if(!(e.io==="input"?hu(y)!==void 0:y._zod.optout==="optional"))break;l--}let d=o.items.length,f=!o.rest;e.target==="draft-2020-12"?(n.prefixItems=c,f?n.items=!1:u&&(n.items=u),l>0&&(n.minItems=l),f&&(n.maxItems=d)):e.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),l>0&&(n.minItems=l),f&&(n.maxItems=d)):(n.items=c,f?n.additionalItems=!1:u&&(n.additionalItems=u),l>0&&(n.minItems=l),f&&(n.maxItems=d));let{minimum:p,maximum:h}=tt(t);typeof p=="number"&&(n.minItems=p),typeof h=="number"&&(n.maxItems=h)};W_=new WeakMap;bw=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object";let s=o.keyType,a=tt(s).patterns;if(o.mode==="loose"&&a&&a.size>0){let l=_e(o.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of a)at(n.patternProperties,VO(d).source,l)}else{if(e.target==="draft-07"||e.target==="draft-2020-12"){n.propertyNames=_e(o.keyType,e,{...i,path:[...i.path,"propertyNames"]});let l=W_.get(e);l||(l=[],W_.set(e,l),e.deferred.push(()=>G2(e))),l.push(t)}n.additionalProperties=_e(o.valueType,e,{...i,path:[...i.path,"additionalProperties"]})}let c=s._zod.values,u=e.io==="input"&&hu(o.valueType)!==void 0;if(c&&!o.partial&&!u){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l.map(String))}},_w=(t,e,r,i)=>{let n=t._zod.def,o=_e(n.innerType,e,i),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},ww=(t,e,r,i)=>{let n=t._zod.def;_e(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},$w=Symbol();xw=(t,e,r,i)=>{let n=t._zod.def;_e(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let s=ZO(n.defaultValue,t,e,r,i);s!==$w&&(r.default=s)},Iw=(t,e,r,i)=>{let n=t._zod.def;_e(n.innerType,e,i);let o=e.seen.get(t);if(o.ref=n.innerType,e.io!=="input")return;let s=ZO(n.defaultValue,t,e,r,i);s!==$w&&(r._prefault=s)},Sw=(t,e,r,i)=>{let n=t._zod.def;_e(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{et(t,e,r,i,"Dynamic catch values are not supported in JSON Schema");return}r.default=s},kw=(t,e,r,i)=>{let n=t._zod.def,o=n.in._zod.traits.has("$ZodTransform"),s=e.io==="input"?o?n.out:n.in:n.out;_e(s,e,i);let a=e.seen.get(t);a.ref=s},Dw=(t,e,r,i)=>{let n=t._zod.def;_e(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.readOnly=!0},Aw=(t,e,r,i)=>{let n=t._zod.def;_e(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},Ep=(t,e,r,i)=>{let n=t._zod.def;_e(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},Ow=(t,e,r,i)=>{let n=t._zod.innerType;_e(n,e,i);let o=e.seen.get(t);o.ref=n},Pp={string:J_,number:H_,boolean:G_,bigint:K_,symbol:Y_,null:X_,undefined:q_,void:Q_,never:ew,any:tw,unknown:rw,date:nw,enum:iw,literal:ow,nan:sw,template_literal:aw,file:cw,success:uw,custom:lw,function:dw,transform:fw,map:pw,set:mw,array:hw,object:gw,union:Lp,intersection:yw,tuple:vw,record:bw,nullable:_w,nonoptional:ww,default:xw,prefault:Iw,catch:Sw,pipe:kw,readonly:Dw,promise:Aw,optional:Ep,lazy:Ow}});var Fp,WO=m(()=>{gu();mu();Fp=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=ai({processors:Pp,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 _e(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)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,ci(this.ctx,e);let i=ui(this.ctx,e),{"~standard":n,...o}=i;return o}}});var JO={};var HO=m(()=>{});var En={};$e(En,{$ZodAny:()=>pb,$ZodArray:()=>vb,$ZodAsyncError:()=>Ct,$ZodBase64:()=>tb,$ZodBase64URL:()=>rb,$ZodBigInt:()=>Wf,$ZodBigIntFormat:()=>ub,$ZodBoolean:()=>qc,$ZodCIDRv4:()=>Qv,$ZodCIDRv6:()=>eb,$ZodCUID:()=>Mv,$ZodCUID2:()=>Rv,$ZodCatch:()=>Eb,$ZodCheck:()=>Se,$ZodCheckBigIntFormat:()=>pv,$ZodCheckEndsWith:()=>Sv,$ZodCheckGreaterThan:()=>Df,$ZodCheckIncludes:()=>xv,$ZodCheckLengthEquals:()=>bv,$ZodCheckLessThan:()=>kf,$ZodCheckLowerCase:()=>wv,$ZodCheckMaxLength:()=>yv,$ZodCheckMaxSize:()=>mv,$ZodCheckMimeType:()=>Av,$ZodCheckMinLength:()=>vv,$ZodCheckMinSize:()=>hv,$ZodCheckMultipleOf:()=>dv,$ZodCheckNumberFormat:()=>fv,$ZodCheckOverwrite:()=>Ov,$ZodCheckProperties:()=>Dv,$ZodCheckProperty:()=>kv,$ZodCheckRegex:()=>_v,$ZodCheckSizeEquals:()=>gv,$ZodCheckStartsWith:()=>Iv,$ZodCheckStringFormat:()=>Ss,$ZodCheckUpperCase:()=>$v,$ZodCodec:()=>eu,$ZodCreditCard:()=>ib,$ZodCustom:()=>Zb,$ZodCustomStringFormat:()=>ab,$ZodCyclicError:()=>qf,$ZodDate:()=>yb,$ZodDefault:()=>Nb,$ZodDiscriminatedUnion:()=>$b,$ZodE164:()=>nb,$ZodEmail:()=>Pv,$ZodEmoji:()=>Fv,$ZodEncodeError:()=>ii,$ZodEnum:()=>Db,$ZodError:()=>xy,$ZodExactOptional:()=>zb,$ZodFile:()=>Ob,$ZodFunction:()=>Rb,$ZodGUID:()=>Nv,$ZodIBAN:()=>ob,$ZodIPv4:()=>Yv,$ZodIPv6:()=>Xv,$ZodISODate:()=>Hv,$ZodISODateTime:()=>Jv,$ZodISODuration:()=>Kv,$ZodISOTime:()=>Gv,$ZodIntersection:()=>xb,$ZodJWT:()=>sb,$ZodKSUID:()=>Wv,$ZodLazy:()=>tu,$ZodLiteral:()=>Ab,$ZodMAC:()=>qv,$ZodMap:()=>Sb,$ZodNaN:()=>Cb,$ZodNanoID:()=>jv,$ZodNever:()=>hb,$ZodNonOptional:()=>Pb,$ZodNull:()=>fb,$ZodNullable:()=>Tb,$ZodNumber:()=>Zf,$ZodNumberFormat:()=>cb,$ZodObject:()=>YD,$ZodObjectJIT:()=>bb,$ZodOptional:()=>Hf,$ZodPipe:()=>Gf,$ZodPrefault:()=>Ub,$ZodPreprocess:()=>Fb,$ZodPromise:()=>Vb,$ZodReadonly:()=>jb,$ZodRealError:()=>Ft,$ZodRecord:()=>Ib,$ZodRegistry:()=>ip,$ZodSet:()=>kb,$ZodString:()=>fo,$ZodStringFormat:()=>be,$ZodSuccess:()=>Lb,$ZodSymbol:()=>lb,$ZodTemplateLiteral:()=>Mb,$ZodTransform:()=>Bb,$ZodTuple:()=>Jf,$ZodType:()=>te,$ZodULID:()=>Vv,$ZodURL:()=>Cv,$ZodUUID:()=>Uv,$ZodUndefined:()=>db,$ZodUnion:()=>Qc,$ZodUnknown:()=>mb,$ZodVoid:()=>gb,$ZodXID:()=>Zv,$ZodXor:()=>_b,$brand:()=>_y,$constructor:()=>v,$input:()=>Qb,$output:()=>qb,Doc:()=>lo,INVALID:()=>It,JSONSchema:()=>JO,JSONSchemaGenerator:()=>Fp,NEVER:()=>by,TimePrecision:()=>l_,URL_BAD_FORMAT:()=>Lv,URL_UNPARSEABLE:()=>Hc,ZodCompileAsyncError:()=>Tr,ZodCompileUnsupportedError:()=>fe,_any:()=>D_,_array:()=>U_,_base64:()=>kp,_base64url:()=>Dp,_bigint:()=>__,_boolean:()=>v_,_catch:()=>C2,_check:()=>AO,_cidrv4:()=>Ip,_cidrv6:()=>Sp,_coercedBigint:()=>w_,_coercedBoolean:()=>b_,_coercedDate:()=>T_,_coercedNumber:()=>f_,_coercedString:()=>s_,_creditCard:()=>c_,_cuid:()=>yp,_cuid2:()=>vp,_custom:()=>L_,_date:()=>z_,_decode:()=>hf,_decodeAsync:()=>yf,_default:()=>P2,_discriminatedUnion:()=>x2,_e164:()=>Ap,_email:()=>up,_emoji:()=>hp,_encode:()=>mf,_encodeAsync:()=>gf,_endsWith:()=>Ls,_enum:()=>O2,_file:()=>P_,_float32:()=>m_,_float64:()=>h_,_gt:()=>an,_gte:()=>er,_guid:()=>lp,_iban:()=>u_,_includes:()=>Us,_int:()=>p_,_int32:()=>g_,_int64:()=>$_,_intersection:()=>I2,_ipv4:()=>$p,_ipv6:()=>xp,_isoDate:()=>lu,_isoDateTime:()=>uu,_isoDuration:()=>fu,_isoTime:()=>du,_jwt:()=>Op,_ksuid:()=>wp,_lazy:()=>R2,_length:()=>bo,_literal:()=>z2,_lowercase:()=>Ts,_lt:()=>sn,_lte:()=>Qt,_mac:()=>a_,_map:()=>D2,_max:()=>Qt,_maxLength:()=>vo,_maxSize:()=>si,_mime:()=>Cs,_min:()=>er,_minLength:()=>Ln,_minSize:()=>cn,_multipleOf:()=>oi,_nan:()=>N_,_nanoid:()=>gp,_nativeEnum:()=>B2,_negative:()=>zp,_never:()=>O_,_nonnegative:()=>Np,_nonoptional:()=>L2,_nonpositive:()=>Tp,_normalize:()=>Fs,_null:()=>k_,_nullable:()=>U2,_number:()=>d_,_optional:()=>N2,_overwrite:()=>Nr,_parse:()=>ws,_parseAsync:()=>$s,_pipe:()=>F2,_positive:()=>Bp,_promise:()=>V2,_properties:()=>Es,_property:()=>Up,_readonly:()=>j2,_record:()=>k2,_refine:()=>E_,_regex:()=>zs,_safeDecode:()=>bf,_safeDecodeAsync:()=>wf,_safeEncode:()=>vf,_safeEncodeAsync:()=>_f,_safeParse:()=>xs,_safeParseAsync:()=>Is,_set:()=>A2,_size:()=>yo,_slugify:()=>Vs,_startsWith:()=>Ps,_string:()=>o_,_stringFormat:()=>_o,_stringbool:()=>M_,_success:()=>E2,_superRefine:()=>C_,_symbol:()=>I_,_templateLiteral:()=>M2,_toLowerCase:()=>Ms,_toUpperCase:()=>Rs,_transform:()=>T2,_trim:()=>js,_tuple:()=>S2,_uint32:()=>y_,_uint64:()=>x_,_ulid:()=>bp,_undefined:()=>S_,_union:()=>w2,_unknown:()=>A_,_uppercase:()=>Ns,_url:()=>cu,_uuid:()=>dp,_uuidv4:()=>fp,_uuidv6:()=>pp,_uuidv7:()=>mp,_void:()=>B_,_xid:()=>_p,_xor:()=>$2,base64Charset:()=>Ff,base64urlCharset:()=>Xc,canParseURL:()=>Ev,clone:()=>ve,compile:()=>n_,compileFn:()=>ap,config:()=>Me,createStandardJSONSchemaMethod:()=>Zs,createToJSONSchemaMethod:()=>V_,decode:()=>SL,decodeAsync:()=>DL,describe:()=>F_,encode:()=>IL,encodeAsync:()=>kL,extractDefs:()=>ci,finalize:()=>ui,flattenError:()=>Fc,formatError:()=>jc,getDiscriminatedOption:()=>wb,globalConfig:()=>rt,globalRegistry:()=>ct,handleUnrepresentable:()=>et,initializeContext:()=>ai,isBackEdge:()=>ep,isRecursiveSchema:()=>Qf,isValidBase64:()=>Yc,isValidBase64URL:()=>jf,isValidCIDRv6:()=>Cf,isValidCreditCard:()=>Mf,isValidIBAN:()=>Rf,isValidIPv6:()=>Kc,isValidJWT:()=>Vf,locales:()=>su,memoizer:()=>iu,mergeValues:()=>ks,meta:()=>j_,parse:()=>ff,parseAsync:()=>pf,parseURLObject:()=>HD,prettifyError:()=>Sy,process:()=>_e,processSchema:()=>_e,regexes:()=>mr,registry:()=>op,safeDecode:()=>OL,safeDecodeAsync:()=>zL,safeEncode:()=>AL,safeEncodeAsync:()=>BL,safeParse:()=>bL,safeParseAsync:()=>_L,standardProps:()=>Uf,stripTabAndNewline:()=>Gc,toDotPath:()=>kD,toJSONSchema:()=>Cp,toZod:()=>Bc,treeifyError:()=>Iy,urlHostnameOk:()=>Lf,urlProtocolOk:()=>Ef,util:()=>w,validate:()=>Mc,validateAsync:()=>Rc,validateURL:()=>Pf,version:()=>Bv,withParser:()=>sp});var tr=m(()=>{ni();Dy();ky();Ds();Hb();Af();zv();B();B();uo();Xb();au();Of();DO();OO();mu();gu();WO();HO()});var jp={};$e(jp,{endsWith:()=>Ls,gt:()=>an,gte:()=>er,includes:()=>Us,length:()=>bo,lowercase:()=>Ts,lt:()=>sn,lte:()=>Qt,maxLength:()=>vo,maxSize:()=>si,mime:()=>Cs,minLength:()=>Ln,minSize:()=>cn,multipleOf:()=>oi,negative:()=>zp,nonnegative:()=>Np,nonpositive:()=>Tp,normalize:()=>Fs,overwrite:()=>Nr,positive:()=>Bp,properties:()=>Es,property:()=>Up,regex:()=>zs,size:()=>yo,slugify:()=>Vs,startsWith:()=>Ps,toLowerCase:()=>Ms,toUpperCase:()=>Rs,trim:()=>js,uppercase:()=>Ns});var Mp=m(()=>{tr()});function Rp(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get(){let i=r(this);return Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0})}})}var GO,KO,Y2,jt,Bw=m(()=>{tr();tr();B();GO=new WeakSet([Object.prototype,Error.prototype]);KO=(t,e)=>{xy.init(t,e),t.name="ZodError";let r=Object.getPrototypeOf(t);GO.has(r)||(GO.add(r),Rp(r,"format",i=>n=>jc(i,n)),Rp(r,"flatten",i=>n=>Fc(i,n)),Rp(r,"addIssue",i=>n=>{i.issues.push(n),i.message=JSON.stringify(i.issues,ys,2)}),Rp(r,"addIssues",i=>n=>{i.issues.push(...n),i.message=JSON.stringify(i.issues,ys,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Y2=v("ZodError",KO),jt=v("ZodError",KO,void 0,{Parent:Error})});var zw,Tw,Nw,Uw,Pw,Lw,Ew,Cw,Fw,jw,Mw,Rw,Vw=m(()=>{tr();Bw();tr();zw=ws(jt),Tw=$s(jt),Nw=xs(jt),Uw=Is(jt),Pw=mf(jt),Lw=hf(jt),Ew=gf(jt),Cw=yf(jt),Fw=vf(jt),jw=bf(jt),Mw=_f(jt),Rw=wf(jt)});var ea={};$e(ea,{ZodAny:()=>Qw,ZodArray:()=>n$,ZodBase64:()=>om,ZodBase64URL:()=>sm,ZodBigInt:()=>qs,ZodBigIntFormat:()=>um,ZodBoolean:()=>Xs,ZodCIDRv4:()=>nm,ZodCIDRv6:()=>im,ZodCUID:()=>Yp,ZodCUID2:()=>Xp,ZodCatch:()=>I$,ZodCodec:()=>ku,ZodCreditCard:()=>Ww,ZodCustom:()=>Du,ZodCustomStringFormat:()=>Io,ZodDate:()=>_u,ZodDefault:()=>v$,ZodDiscriminatedUnion:()=>o$,ZodE164:()=>am,ZodEmail:()=>Jp,ZodEmoji:()=>Gp,ZodEnum:()=>Gs,ZodExactOptional:()=>pm,ZodFile:()=>m$,ZodFunction:()=>U$,ZodGUID:()=>Hp,ZodIBAN:()=>Jw,ZodIPv4:()=>tm,ZodIPv6:()=>rm,ZodISODate:()=>di,ZodISODateTime:()=>li,ZodISODuration:()=>pi,ZodISOTime:()=>fi,ZodInstanceOf:()=>E$,ZodIntersection:()=>s$,ZodJWT:()=>cm,ZodKSUID:()=>em,ZodLazy:()=>z$,ZodLiteral:()=>p$,ZodMAC:()=>Zw,ZodMap:()=>d$,ZodNaN:()=>k$,ZodNanoID:()=>Kp,ZodNever:()=>t$,ZodNonOptional:()=>mm,ZodNull:()=>Xw,ZodNullable:()=>y$,ZodNumber:()=>Ys,ZodNumberFormat:()=>So,ZodObject:()=>$u,ZodOptional:()=>Iu,ZodPipe:()=>Su,ZodPrefault:()=>_$,ZodPreprocess:()=>D$,ZodPromise:()=>N$,ZodReadonly:()=>A$,ZodRecord:()=>Hs,ZodSet:()=>f$,ZodString:()=>Ks,ZodStringFormat:()=>we,ZodSuccess:()=>x$,ZodSymbol:()=>Kw,ZodTemplateLiteral:()=>B$,ZodTransform:()=>h$,ZodTuple:()=>c$,ZodType:()=>ae,ZodULID:()=>qp,ZodURL:()=>bu,ZodUUID:()=>un,ZodUndefined:()=>Yw,ZodUnion:()=>xu,ZodUnknown:()=>e$,ZodVoid:()=>r$,ZodXID:()=>Qp,ZodXor:()=>i$,_ZodString:()=>Wp,_default:()=>b$,_function:()=>oz,any:()=>LB,array:()=>wu,base64:()=>gB,base64url:()=>yB,bigint:()=>zB,boolean:()=>Gw,catch:()=>S$,check:()=>sz,cidrv4:()=>mB,cidrv6:()=>hB,codec:()=>tz,creditCard:()=>bB,cuid:()=>sB,cuid2:()=>aB,currencyCode:()=>SB,custom:()=>az,date:()=>CB,describe:()=>cz,discriminatedUnion:()=>ZB,e164:()=>vB,email:()=>YO,emoji:()=>iB,enum:()=>dm,exactOptional:()=>g$,file:()=>XB,float32:()=>DB,float64:()=>AB,function:()=>oz,guid:()=>XO,hash:()=>kB,hex:()=>IB,hostname:()=>xB,httpUrl:()=>nB,iban:()=>_B,instanceof:()=>lz,int:()=>Vp,int32:()=>OB,int64:()=>TB,intersection:()=>a$,invertCodec:()=>rz,ipv4:()=>dB,ipv6:()=>pB,json:()=>fz,jwt:()=>wB,keyof:()=>FB,ksuid:()=>lB,lazy:()=>T$,literal:()=>YB,looseObject:()=>RB,looseRecord:()=>JB,mac:()=>fB,map:()=>HB,meta:()=>uz,nan:()=>ez,nanoid:()=>oB,nativeEnum:()=>KB,never:()=>lm,nonoptional:()=>$$,null:()=>qw,nullable:()=>vu,nullish:()=>qB,number:()=>Hw,object:()=>jB,optional:()=>$o,partialRecord:()=>WB,pipe:()=>Zp,prefault:()=>w$,preprocess:()=>pz,promise:()=>iz,readonly:()=>O$,record:()=>l$,refine:()=>P$,set:()=>GB,strictObject:()=>MB,string:()=>yu,stringFormat:()=>$B,stringbool:()=>dz,success:()=>QB,superRefine:()=>L$,symbol:()=>UB,templateLiteral:()=>nz,transform:()=>fm,tuple:()=>u$,uint32:()=>BB,uint64:()=>NB,ulid:()=>cB,undefined:()=>PB,union:()=>Qs,unknown:()=>wo,url:()=>rB,uuid:()=>qO,uuidv4:()=>QO,uuidv6:()=>eB,uuidv7:()=>tB,void:()=>EB,xid:()=>uB,xor:()=>VB});function q2(){rt.localeError||Me(tp())}function xo(){rt.memoizer||Me({memoizer:iu()})}function yu(t){return o_(Ks,t)}function YO(t){return up(Jp,t)}function XO(t){return lp(Hp,t)}function qO(t){return dp(un,t)}function QO(t){return fp(un,t)}function eB(t){return pp(un,t)}function tB(t){return mp(un,t)}function rB(t){return cu(bu,t)}function nB(t){return cu(bu,{protocol:Vc,hostname:Gy,...w.normalizeParams(t)})}function iB(t){return hp(Gp,t)}function oB(t){return gp(Kp,t)}function sB(t){return yp(Yp,t)}function aB(t){return vp(Xp,t)}function cB(t){return bp(qp,t)}function uB(t){return _p(Qp,t)}function lB(t){return wp(em,t)}function dB(t){return $p(tm,t)}function fB(t){return a_(Zw,t)}function pB(t){return xp(rm,t)}function mB(t){return Ip(nm,t)}function hB(t){return Sp(im,t)}function gB(t){return kp(om,t)}function yB(t){return Dp(sm,t)}function vB(t){return Ap(am,t)}function bB(t){return c_(Ww,t)}function _B(t){return u_(Jw,t)}function wB(t){return Op(cm,t)}function $B(t,e,r={}){return _o(Io,t,e,r)}function xB(t){return _o(Io,"hostname",Hy,t)}function IB(t){return _o(Io,"hex",cv,t)}function SB(t){return _o(Io,"currency_code",Yy,t)}function kB(t,e){let r=e?.enc??"hex",i=`${t}_${r}`,n=mr[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return _o(Io,i,n,e)}function Hw(t){return d_(Ys,t)}function Vp(t){return p_(So,t)}function DB(t){return m_(So,t)}function AB(t){return h_(So,t)}function OB(t){return g_(So,t)}function BB(t){return y_(So,t)}function Gw(t){return v_(Xs,t)}function zB(t){return __(qs,t)}function TB(t){return $_(um,t)}function NB(t){return x_(um,t)}function UB(t){return I_(Kw,t)}function PB(t){return S_(Yw,t)}function qw(t){return k_(Xw,t)}function LB(){return D_(Qw)}function wo(){return A_(e$)}function lm(t){return O_(t$,t)}function EB(t){return B_(r$,t)}function CB(t){return z_(_u,t)}function wu(t,e){return U_(n$,t,e)}function FB(t){let e=t._zod.def.shape;return dm(Object.keys(e))}function jB(t,e){let r={type:"object",shape:t??{},...w.normalizeParams(e)};return new $u(r)}function MB(t,e){return new $u({type:"object",shape:t,catchall:lm(),...w.normalizeParams(e)})}function RB(t,e){return new $u({type:"object",shape:t,catchall:wo(),...w.normalizeParams(e)})}function Qs(t,e){return new xu({type:"union",options:t,...w.normalizeParams(e)})}function VB(t,e){return new i$({type:"union",options:t,inclusive:!1,...w.normalizeParams(e)})}function ZB(t,e,r){return new o$({type:"union",options:e,discriminator:t,...w.normalizeParams(r)})}function a$(t,e){return new s$({type:"intersection",left:t,right:e})}function u$(t,e,r){let i=e instanceof te,n=i?r:e,o=i?e:null;return new c$({type:"tuple",items:t,rest:o,...w.normalizeParams(n)})}function l$(t,e,r){return!e||!e._zod?new Hs({type:"record",keyType:yu(),valueType:t,...w.normalizeParams(e)}):new Hs({type:"record",keyType:t,valueType:e,...w.normalizeParams(r)})}function WB(t,e,r){return new Hs({type:"record",keyType:t,valueType:e,...w.normalizeParams(r),partial:!0})}function JB(t,e,r){return new Hs({type:"record",keyType:t,valueType:e,mode:"loose",...w.normalizeParams(r)})}function HB(t,e,r){return new d$({type:"map",keyType:t,valueType:e,...w.normalizeParams(r)})}function GB(t,e){return new f$({type:"set",valueType:t,...w.normalizeParams(e)})}function dm(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Gs({type:"enum",entries:r,...w.normalizeParams(e)})}function KB(t,e){return new Gs({type:"enum",entries:t,...w.normalizeParams(e)})}function YB(t,e){return new p$({type:"literal",values:Array.isArray(t)?t:[t],...w.normalizeParams(e)})}function XB(t){return P_(m$,t)}function fm(t){return new h$({type:"transform",transform:t})}function $o(t){return new Iu({type:"optional",innerType:t})}function g$(t){return new pm({type:"optional",innerType:t})}function vu(t){return new y$({type:"nullable",innerType:t})}function qB(t){return $o(vu(t))}function b$(t,e){return new v$({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():w.shallowClone(e)}})}function w$(t,e){return new _$({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():w.shallowClone(e)}})}function $$(t,e){return new mm({type:"nonoptional",innerType:t,...w.normalizeParams(e)})}function QB(t){return new x$({type:"success",innerType:t})}function S$(t,e){return new I$({type:"catch",innerType:t,catchValue:typeof e=="function"?e:w.constantCatch(e)})}function ez(t){return N_(k$,t)}function Zp(t,e){return new Su({type:"pipe",in:t,out:e})}function tz(t,e,r){return new ku({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}function rz(t){let e=t._zod.def;return new ku({type:"pipe",in:e.out,out:e.in,transform:e.reverseTransform,reverseTransform:e.transform})}function O$(t){return new A$({type:"readonly",innerType:t})}function nz(t,e){return new B$({type:"template_literal",parts:t,...w.normalizeParams(e)})}function T$(t){return new z$({type:"lazy",getter:t})}function iz(t){return new N$({type:"promise",innerType:t})}function oz(t){return new U$({type:"function",input:Array.isArray(t?.input)?u$(t?.input):t?.input??wu(wo()),output:t?.output??wo()})}function sz(t){let e=new Se({check:"custom"});return e._zod.check=t,e}function az(t,e){return L_(Du,t??(()=>!0),e)}function P$(t,e={}){return E_(Du,t,e)}function L$(t,e){return C_(t,e)}function lz(t,e={}){let r=new E$({type:"custom",check:"custom",fn:i=>i instanceof t,abort:!0,...w.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}function fz(t){let e=T$(()=>Qs([yu(t),Hw(),Gw(),qw(),wu(e),l$(yu(),e)]));return e}function pz(t,e){return new D$({type:"pipe",in:fm(t),out:e})}var ae,Wp,Ks,we,li,di,fi,pi,Jp,Hp,un,bu,Gp,Kp,Yp,Xp,qp,Qp,em,tm,Zw,rm,nm,im,om,sm,am,Ww,Jw,cm,Io,Ys,So,Xs,qs,um,Kw,Yw,Xw,Qw,e$,t$,r$,_u,n$,$u,xu,i$,o$,s$,c$,Hs,d$,f$,Gs,p$,m$,h$,Iu,pm,y$,v$,_$,mm,x$,I$,k$,Su,ku,D$,A$,B$,z$,N$,U$,Du,cz,uz,E$,dz,mi=m(()=>{tr();tr();gu();uo();mu();Gb();Mp();Vw();ae=v("ZodType",(t,e)=>(q2(),te.init(t,e),t.def=e,t.type=e.type,t),{check(...t){let e=this.def;return this.clone(w.mergeDefs(e,{checks:[...e.checks??[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...t){return this.check(...t)},clone(t,e){return ve(this,t,e)},brand(){return this},register(t,e){return t.add(this,e),this},refine(t,e){return this.check(P$(t,e))},superRefine(t,e){return this.check(L$(t,e))},overwrite(t){return this.check(Nr(t))},optional(){return $o(this)},exactOptional(){return g$(this)},nullable(){return vu(this)},nullish(){return $o(vu(this))},nonoptional(t){return $$(this,t)},array(){return wu(this)},or(t){return Qs([this,t])},and(t){return a$(this,t)},transform(t){return Zp(this,fm(t))},default(t){return b$(this,t)},prefault(t){return w$(this,t)},catch(t){return S$(this,t)},pipe(t){return Zp(this,t)},readonly(){return O$(this)},describe(t){let e=this.clone();return ct.add(e,{description:t}),e},meta(...t){if(t.length===0)return ct.get(this);let e=this.clone();return ct.add(e,t[0]),e},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(t,...e){return e.length===0?t(this):t(this,...e)},get"~standard"(){return w.hide(this,"~standard",{...Uf(this),jsonSchema:{input:Zs(this,"input"),output:Zs(this,"output")}})},set"~standard"(t){w.own(this,"~standard",t)},parse:function t(e,r){return zw(this,e,r,{callee:t})},parseAsync:async function t(e,r){return await Tw(this,e,r,{callee:t})},safeParse(t,e){return Nw(this,t,e)},async safeParseAsync(t,e){return Uw(this,t,e)},get spa(){return this?.safeParseAsync},set spa(t){w.own(this,"spa",t)},validate(t,e){return Mc(this,t,e)},validateAsync(t,e){return Rc(this,t,e)},encode:function t(e,r){return Pw(this,e,r,{callee:t})},decode:function t(e,r){return Lw(this,e,r,{callee:t})},encodeAsync:async function t(e,r){return await Ew(this,e,r,{callee:t})},decodeAsync:async function t(e,r){return await Cw(this,e,r,{callee:t})},safeEncode(t,e){return Fw(this,t,e)},safeDecode(t,e){return jw(this,t,e)},async safeEncodeAsync(t,e){return Mw(this,t,e)},async safeDecodeAsync(t,e){return Rw(this,t,e)},toJSONSchema(t){return V_(this,{})(t)},get description(){return ct.get(this)?.description},get _def(){return this._zod.def}}),Wp=v("_ZodString",(t,e)=>{fo.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>J_(t,r,i,n)},w.derived({format:t=>tt(t).format??null,minLength:t=>tt(t).minimum??null,maxLength:t=>tt(t).maximum??null},{regex(...t){return this.check(zs(...t))},includes(...t){return this.check(Us(...t))},startsWith(...t){return this.check(Ps(...t))},endsWith(...t){return this.check(Ls(...t))},min(...t){return this.check(Ln(...t))},max(...t){return this.check(vo(...t))},length(...t){return this.check(bo(...t))},nonempty(...t){return this.check(Ln(1,...t))},lowercase(t){return this.check(Ts(t))},uppercase(t){return this.check(Ns(t))},trim(){return this.check(js())},normalize(...t){return this.check(Fs(...t))},toLowerCase(){return this.check(Ms())},toUpperCase(){return this.check(Rs())},slugify(){return this.check(Vs())}})),Ks=v("ZodString",(t,e)=>{fo.init(t,e),Wp.init(t,e)},{email(t){return this.check(up(Jp,t))},url(t){return this.check(cu(bu,t))},jwt(t){return this.check(Op(cm,t))},emoji(t){return this.check(hp(Gp,t))},guid(t){return this.check(lp(Hp,t))},uuid(t){return this.check(dp(un,t))},uuidv4(t){return this.check(fp(un,t))},uuidv6(t){return this.check(pp(un,t))},uuidv7(t){return this.check(mp(un,t))},nanoid(t){return this.check(gp(Kp,t))},cuid(t){return this.check(yp(Yp,t))},cuid2(t){return this.check(vp(Xp,t))},ulid(t){return this.check(bp(qp,t))},base64(t){return this.check(kp(om,t))},base64url(t){return this.check(Dp(sm,t))},xid(t){return this.check(_p(Qp,t))},ksuid(t){return this.check(wp(em,t))},ipv4(t){return this.check($p(tm,t))},ipv6(t){return this.check(xp(rm,t))},cidrv4(t){return this.check(Ip(nm,t))},cidrv6(t){return this.check(Sp(im,t))},e164(t){return this.check(Ap(am,t))},datetime(t){return this.check(uu(li,t))},date(t){return this.check(lu(di,t))},time(t){return this.check(du(fi,t))},duration(t){return this.check(fu(pi,t))}});we=v("ZodStringFormat",(t,e)=>{be.init(t,e),Wp.init(t,e)}),li=v("ZodISODateTime",(t,e)=>{Jv.init(t,e),we.init(t,e)}),di=v("ZodISODate",(t,e)=>{Hv.init(t,e),we.init(t,e)}),fi=v("ZodISOTime",(t,e)=>{Gv.init(t,e),we.init(t,e)}),pi=v("ZodISODuration",(t,e)=>{Kv.init(t,e),we.init(t,e)}),Jp=v("ZodEmail",(t,e)=>{Pv.init(t,e),we.init(t,e)});Hp=v("ZodGUID",(t,e)=>{Nv.init(t,e),we.init(t,e)});un=v("ZodUUID",(t,e)=>{Uv.init(t,e),we.init(t,e)});bu=v("ZodURL",(t,e)=>{Cv.init(t,e),we.init(t,e)});Gp=v("ZodEmoji",(t,e)=>{Fv.init(t,e),we.init(t,e)});Kp=v("ZodNanoID",(t,e)=>{jv.init(t,e),we.init(t,e)});Yp=v("ZodCUID",(t,e)=>{Mv.init(t,e),we.init(t,e)});Xp=v("ZodCUID2",(t,e)=>{Rv.init(t,e),we.init(t,e)});qp=v("ZodULID",(t,e)=>{Vv.init(t,e),we.init(t,e)});Qp=v("ZodXID",(t,e)=>{Zv.init(t,e),we.init(t,e)});em=v("ZodKSUID",(t,e)=>{Wv.init(t,e),we.init(t,e)});tm=v("ZodIPv4",(t,e)=>{Yv.init(t,e),we.init(t,e)});Zw=v("ZodMAC",(t,e)=>{qv.init(t,e),we.init(t,e)});rm=v("ZodIPv6",(t,e)=>{Xv.init(t,e),we.init(t,e)});nm=v("ZodCIDRv4",(t,e)=>{Qv.init(t,e),we.init(t,e)});im=v("ZodCIDRv6",(t,e)=>{eb.init(t,e),we.init(t,e)});om=v("ZodBase64",(t,e)=>{tb.init(t,e),we.init(t,e)});sm=v("ZodBase64URL",(t,e)=>{rb.init(t,e),we.init(t,e)});am=v("ZodE164",(t,e)=>{nb.init(t,e),we.init(t,e)});Ww=v("ZodCreditCard",(t,e)=>{ib.init(t,e),we.init(t,e)});Jw=v("ZodIBAN",(t,e)=>{ob.init(t,e),we.init(t,e)});cm=v("ZodJWT",(t,e)=>{sb.init(t,e),we.init(t,e)});Io=v("ZodCustomStringFormat",(t,e)=>{ab.init(t,e),we.init(t,e)});Ys=v("ZodNumber",(t,e)=>{Zf.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>H_(t,r,i,n),t.isFinite=!0},w.derived({minValue:t=>{let{minimum:e,exclusiveMinimum:r}=tt(t);return Math.max(e??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:t=>{let{maximum:e,exclusiveMaximum:r}=tt(t);return Math.min(e??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:t=>{let{isInt:e,multipleOf:r}=tt(t);return!!e||!!r?.some(Number.isSafeInteger)},format:t=>tt(t).format??null},{gt(t,e){return this.check(an(t,e))},gte(t,e){return this.check(er(t,e))},min(t,e){return this.check(er(t,e))},lt(t,e){return this.check(sn(t,e))},lte(t,e){return this.check(Qt(t,e))},max(t,e){return this.check(Qt(t,e))},int(t){return this.check(Vp(t))},safe(t){return this.check(Vp(t))},positive(t){return this.check(an(0,t))},nonnegative(t){return this.check(er(0,t))},negative(t){return this.check(sn(0,t))},nonpositive(t){return this.check(Qt(0,t))},multipleOf(t,e){return this.check(oi(t,e))},step(t,e){return this.check(oi(t,e))},finite(){return this}}));So=v("ZodNumberFormat",(t,e)=>{cb.init(t,e),Ys.init(t,e)});Xs=v("ZodBoolean",(t,e)=>{qc.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>G_(t,r,i,n)});qs=v("ZodBigInt",(t,e)=>{Wf.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>K_(t,r,i,n)},w.derived({minValue:t=>tt(t).minimum??null,maxValue:t=>tt(t).maximum??null,format:t=>tt(t).format??null},{gte(t,e){return this.check(er(t,e))},min(t,e){return this.check(er(t,e))},gt(t,e){return this.check(an(t,e))},lt(t,e){return this.check(sn(t,e))},lte(t,e){return this.check(Qt(t,e))},max(t,e){return this.check(Qt(t,e))},positive(t){return this.check(an(BigInt(0),t))},negative(t){return this.check(sn(BigInt(0),t))},nonpositive(t){return this.check(Qt(BigInt(0),t))},nonnegative(t){return this.check(er(BigInt(0),t))},multipleOf(t,e){return this.check(oi(t,e))}}));um=v("ZodBigIntFormat",(t,e)=>{ub.init(t,e),qs.init(t,e)});Kw=v("ZodSymbol",(t,e)=>{lb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Y_(t,r,i,n)});Yw=v("ZodUndefined",(t,e)=>{db.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>q_(t,r,i,n)});Xw=v("ZodNull",(t,e)=>{fb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>X_(t,r,i,n)});Qw=v("ZodAny",(t,e)=>{pb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>tw(t,r,i,n)});e$=v("ZodUnknown",(t,e)=>{mb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>rw(t,r,i,n)});t$=v("ZodNever",(t,e)=>{hb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ew(t,r,i,n)});r$=v("ZodVoid",(t,e)=>{gb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Q_(t,r,i,n)});_u=v("ZodDate",(t,e)=>{yb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>nw(t,r,i,n),t.min=(r,i)=>t.check(er(r,i)),t.max=(r,i)=>t.check(Qt(r,i))},w.derived({minDate:t=>{let{minimum:e}=tt(t);return e?new Date(e):null},maxDate:t=>{let{maximum:e}=tt(t);return e?new Date(e):null}},{}));n$=v("ZodArray",(t,e)=>{xo(),vb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>hw(t,r,i,n),t.element=e.element},{min(t,e){return this.check(Ln(t,e))},nonempty(t){return this.check(Ln(1,t))},max(t,e){return this.check(vo(t,e))},length(t,e){return this.check(bo(t,e))},unwrap(){return this.element}});$u=v("ZodObject",(t,e)=>{xo(),bb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>gw(t,r,i,n),w.installLazyProp(t,"shape",r=>r._zod.def.shape,!1)},{keyof(){return dm(Object.keys(this._zod.def.shape))},catchall(t){return this.clone(w.mergeDefs(this._zod.def,{catchall:t}))},passthrough(){return this.clone(w.mergeDefs(this._zod.def,{catchall:wo()}))},loose(){return this.clone(w.mergeDefs(this._zod.def,{catchall:wo()}))},strict(){return this.clone(w.mergeDefs(this._zod.def,{catchall:lm()}))},strip(){return this.clone(w.mergeDefs(this._zod.def,{catchall:void 0}))},extend(t){return w.extend(this,t)},safeExtend(t){return w.safeExtend(this,t)},merge(t){return w.merge(this,t)},pick(t){return w.pick(this,t)},omit(t){return w.omit(this,t)},partial(...t){return w.partial(Iu,this,t[0])},exactPartial(...t){return w.partial(pm,this,t[0],"exactPartial")},required(...t){return w.required(mm,this,t[0])}});xu=v("ZodUnion",(t,e)=>{Qc.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Lp(t,r,i,n),t.options=e.options});i$=v("ZodXor",(t,e)=>{xu.init(t,e),_b.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Lp(t,r,i,n),t.options=e.options});o$=v("ZodDiscriminatedUnion",(t,e)=>{xu.init(t,e),$b.init(t,e)});s$=v("ZodIntersection",(t,e)=>{xb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>yw(t,r,i,n)});c$=v("ZodTuple",(t,e)=>{xo(),Jf.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>vw(t,r,i,n)},{rest(t){return this.clone({...this._zod.def,rest:t})},partial(){let t=this._zod.def;if(t.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...t,items:t.items.map(e=>new Iu({type:"optional",innerType:e}))})}});Hs=v("ZodRecord",(t,e)=>{xo(),Ib.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>bw(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType});d$=v("ZodMap",(t,e)=>{xo(),Sb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>pw(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(cn(...r)),t.nonempty=r=>t.check(cn(1,r)),t.max=(...r)=>t.check(si(...r)),t.size=(...r)=>t.check(yo(...r))});f$=v("ZodSet",(t,e)=>{xo(),kb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>mw(t,r,i,n),t.min=(...r)=>t.check(cn(...r)),t.nonempty=r=>t.check(cn(1,r)),t.max=(...r)=>t.check(si(...r)),t.size=(...r)=>t.check(yo(...r))});Gs=v("ZodEnum",(t,e)=>{Db.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(i,n,o)=>iw(t,i,n,o),t.enum=e.entries,t.options=[...t._zod.values];let r=new Set(Object.keys(e.entries));t.extract=(i,n)=>{let o={};for(let s of i)if(r.has(s))o[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Gs({...e,checks:[],...w.normalizeParams(n),entries:o})},t.exclude=(i,n)=>{let o={...e.entries};for(let s of i)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Gs({...e,checks:[],...w.normalizeParams(n),entries:o})}});p$=v("ZodLiteral",(t,e)=>{Ab.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ow(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]}})});m$=v("ZodFile",(t,e)=>{Ob.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>cw(t,r,i,n),t.min=(r,i)=>t.check(cn(r,i)),t.max=(r,i)=>t.check(si(r,i)),t.mime=(r,i)=>t.check(Cs(Array.isArray(r)?r:[r],i))});h$=v("ZodTransform",(t,e)=>{xo(),Bb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>fw(t,r,i,n),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new ii(t.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(w.issue(o,r.value,e));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=r.value),s.inst??(s.inst=t),r.issues.push(w.issue(s))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});Iu=v("ZodOptional",(t,e)=>{Hf.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ep(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});pm=v("ZodExactOptional",(t,e)=>{zb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ep(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});y$=v("ZodNullable",(t,e)=>{Tb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>_w(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});v$=v("ZodDefault",(t,e)=>{Nb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>xw(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});_$=v("ZodPrefault",(t,e)=>{Ub.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Iw(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});mm=v("ZodNonOptional",(t,e)=>{Pb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ww(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});x$=v("ZodSuccess",(t,e)=>{Lb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>uw(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});I$=v("ZodCatch",(t,e)=>{Eb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Sw(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});k$=v("ZodNaN",(t,e)=>{Cb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>sw(t,r,i,n)});Su=v("ZodPipe",(t,e)=>{Gf.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>kw(t,r,i,n),t.in=e.in,t.out=e.out});ku=v("ZodCodec",(t,e)=>{Su.init(t,e),eu.init(t,e)});D$=v("ZodPreprocess",(t,e)=>{Su.init(t,e),Fb.init(t,e)}),A$=v("ZodReadonly",(t,e)=>{jb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Dw(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});B$=v("ZodTemplateLiteral",(t,e)=>{Mb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>aw(t,r,i,n)});z$=v("ZodLazy",(t,e)=>{tu.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ow(t,r,i,n),t.unwrap=()=>t._zod.def.getter()});N$=v("ZodPromise",(t,e)=>{Vb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Aw(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});U$=v("ZodFunction",(t,e)=>{Rb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>dw(t,r,i,n)});Du=v("ZodCustom",(t,e)=>{Zb.init(t,e),ae.init(t,e),t._zod.processJSONSchema=(r,i,n)=>lw(t,r,i,n)});cz=F_,uz=j_,E$=v("ZodInstanceOf",(t,e)=>{Du.init(t,e)},{properties(t,e){return this.check(Es(t,e))}});dz=(...t)=>M_({Codec:ku,Boolean:Xs,String:Ks},...t)});function eC(t){Me({customError:t})}function tC(){return Me().customError}var Q2,C$,mz=m(()=>{tr();Q2={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"};C$||(C$={})});var Au={};$e(Au,{ZodISODate:()=>di,ZodISODateTime:()=>li,ZodISODuration:()=>pi,ZodISOTime:()=>fi,date:()=>nC,datetime:()=>rC,duration:()=>oC,time:()=>iC});function rC(t){return uu(li,t)}function nC(t){return lu(di,t)}function iC(t){return du(fi,t)}function oC(t){return fu(pi,t)}var hm=m(()=>{tr();mi();mi()});function aC(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 hz(t,e){return t.map((r,i)=>i<e?r:r.optional())}function cC(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function uC(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]===void 0?void 0:cC(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 lC(t,e){return z.transform(i=>i).check(i=>{let n=i.value;if(typeof n!="object"||n===null||Array.isArray(n))return;let o=Object.getOwnPropertyNames(n);if(e.minProperties!==void 0&&o.length<e.minProperties&&i.issues.push({origin:"object",code:"too_small",minimum:e.minProperties,inclusive:!0,message:`Too small: expected object to have >=${e.minProperties} properties`,input:n,inst:t,continue:!0}),e.maxProperties!==void 0&&o.length>e.maxProperties&&i.issues.push({origin:"object",code:"too_big",maximum:e.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${e.maxProperties} properties`,input:n,inst:t,continue:!0}),e.keySchema)for(let s of o){let a=e.keySchema.safeParse(s);a.success||i.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(t)}function F$(t,e){if(t===null)return"z";let r=typeof t;if(r!=="object"){if(r==="number"&&Number.isNaN(t))return null;let i=String(t);return`${r[0]}${i.length}:${i}`}if(e.has(t))return null;e.add(t);try{if(Array.isArray(t)){let o=[];for(let s of t){let a=F$(s,e);if(a===null)return null;o.push(a)}return`a${o.length}:[${o.join(",")}]`}let i=Object.keys(t).sort(),n=[];for(let o of i){let s=F$(t[o],e);if(s===null)return null;n.push(`${o.length}:${o}=${s}`)}return`o${n.length}:{${n.join(",")}}`}finally{e.delete(t)}}function Ou(t){return typeof t!="object"||t===null?!1:Array.isArray(t)?t.some(Ou):typeof t.$ref=="string"?!0:Object.entries(t).some(([e,r])=>dC.has(e)?Ou(r):!fC.has(e)||typeof r!="object"||r===null?!1:Object.values(r).some(Ou))}function gz(t){return t===1?"element":"elements"}function pC(t,e){return z.transform(i=>i).check(i=>{let n=i.value;if(Array.isArray(n)){if(e.uniqueItems===!0){let o=new Map;for(let s=0;s<n.length;s++){let a=F$(n[s],new Set);if(a===null)continue;let c=o.get(a);if(c===void 0){o.set(a,s);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${s} duplicates the one at index ${c}`,input:n,path:[s],continue:!0})}}if(e.containsSchema){let o=e.minContains??1,s=e.maxContains!==void 0?e.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let c of n)if(e.containsSchema.safeParse(c).success&&++a>=s)break;a<o&&i.issues.push({code:"custom",message:`Array must contain at least ${o} matching ${gz(o)}; found ${a}`,input:n,continue:!0}),e.maxContains!==void 0&&a>e.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${e.maxContains} matching ${gz(e.maxContains)}`,input:n,continue:!0})}}}).pipe(t)}function yz(t,e){if(t!==!1)return t===void 0||t===!0?z.any():kt(t,e)}function vz(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return z.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 z.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=uC(n,e),s=kt(o,e);return e.refs.set(n,s),e.processing.delete(n),s}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 z.null();if(n.length===0)return z.never();if(n.length===1)return z.literal(n[0]);if(n.every(s=>typeof s=="string"))return z.enum(n);let o=n.map(s=>z.literal(s));return o.length<2?o[0]:z.union([o[0],o[1],...o.slice(2)])}if(t.const!==void 0)return z.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(o=>{let s={...t,type:o};return vz(s,e)});return n.length===0?z.never():n.length===1?n[0]:z.union(n)}if(!r)return z.any();let i;switch(r){case"string":{let n=z.string();if(t.format){let o=t.format;o==="email"?n=n.check(z.email()):o==="uri"||o==="uri-reference"?n=n.check(z.url()):o==="uuid"||o==="guid"?n=n.check(z.uuid()):o==="date-time"?n=n.check(z.iso.datetime({offset:!0})):o==="date"?n=n.check(z.iso.date()):o==="time"?n=n.check(z.regex(mC)):o==="duration"?n=n.check(z.iso.duration()):o==="hostname"?n=n.check(z.hostname()):o==="ipv4"?n=n.check(z.ipv4()):o==="ipv6"?n=n.check(z.ipv6()):o==="mac"?n=n.check(z.mac()):o==="cidr"?n=n.check(z.cidrv4()):o==="cidr-v6"?n=n.check(z.cidrv6()):o==="base64"?n=n.check(z.base64()):o==="base64url"?n=n.check(z.base64url()):o==="e164"?n=n.check(z.e164()):o==="credit_card"?n=n.check(z.creditCard()):o==="iban"?n=n.check(z.iban()):o==="jwt"?n=n.check(z.jwt()):o==="emoji"?n=n.check(z.emoji()):o==="nanoid"?n=n.check(z.nanoid()):o==="cuid"?n=n.check(z.cuid()):o==="cuid2"?n=n.check(z.cuid2()):o==="ulid"?n=n.check(z.ulid()):o==="xid"?n=n.check(z.xid()):o==="ksuid"&&(n=n.check(z.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"?z.number().int():z.number();typeof t.minimum=="number"&&t.exclusiveMinimum!==!0&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&t.exclusiveMaximum!==!0&&(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=z.boolean();break}case"null":{i=z.null();break}case"object":{let n={},o=t.properties||{},s=new Set(t.required||[]),a=typeof t.additionalProperties=="object"?kt(t.additionalProperties,e):void 0;for(let[d,f]of Object.entries(o)){let p=kt(f,e);at(n,d,s.has(d)?p:p.optional())}if(t.patternProperties){let d=t.patternProperties,f=Object.keys(d),p=[];for(let y of f){let _=kt(d[y],e),k=z.string().regex(new RegExp(y));p.push(z.looseRecord(k,_))}let h=[];if(Object.keys(n).length>0&&h.push(z.object(n).passthrough()),h.push(...p),h.length===0)i=z.object({}).passthrough();else if(h.length===1)i=h[0];else{let y=z.intersection(h[0],h[1]);for(let _=2;_<h.length;_++)y=z.intersection(y,h[_]);i=y}if(t.additionalProperties===!1){let y=Object.keys(n),_=f.map(I=>new RegExp(I)),k=i;i=i.check(I=>{if(!fr(I.value))return;let A=[];for(let L of Object.keys(I.value))y.includes(L)||_.some(N=>N.test(L))||A.push(L);A.length&&I.issues.push({code:"unrecognized_keys",keys:A,input:I.value,inst:k})})}}else{let d=z.object(n);t.additionalProperties===!1?i=d.strict():a?i=d.catchall(a):i=d.passthrough()}let c=t.propertyNames!==void 0&&t.propertyNames!==!0,u=typeof t.minProperties=="number"?t.minProperties:void 0,l=typeof t.maxProperties=="number"?t.maxProperties:void 0;if(c||u!==void 0||l!==void 0){let d;if(c){let f=typeof t.propertyNames=="object"&&t.propertyNames.type===void 0?{type:"string",...t.propertyNames}:t.propertyNames;d=kt(f,e)}i=lC(i,{keySchema:d,minProperties:u,maxProperties:l})}break}case"array":{let n=t.prefixItems,o=t.items;if(n&&Array.isArray(n)){let s=typeof t.minItems=="number"?t.minItems:0,a=n.map(d=>kt(d,e)),c=hz(a,s),u=Array.isArray(o)?void 0:yz(o,e),l=z.tuple(c);i=u?l.rest(u):l,typeof t.minItems=="number"&&(i=i.check(z.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(z.maxLength(t.maxItems)))}else if(Array.isArray(o)){let s=typeof t.minItems=="number"?t.minItems:0,a=o.map(d=>kt(d,e)),c=hz(a,s),u=yz(t.additionalItems,e),l=z.tuple(c);i=u?l.rest(u):l,typeof t.minItems=="number"&&(i=i.check(z.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(z.maxLength(t.maxItems)))}else if(o!==void 0){let s=kt(o,e),a=z.array(s);typeof t.minItems=="number"&&(a=a.min(t.minItems)),typeof t.maxItems=="number"&&(a=a.max(t.maxItems)),i=a}else i=z.array(z.any());(t.uniqueItems===!0||t.contains!==void 0)&&(i=pC(i,{uniqueItems:t.uniqueItems===!0,containsSchema:t.contains!==void 0?kt(t.contains,e):void 0,minContains:typeof t.minContains=="number"?t.minContains:void 0,maxContains:typeof t.maxContains=="number"?t.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${r}`)}return i}function kt(t,e){if(typeof t=="boolean")return t?z.any():z.never();let r=vz(t,e),i=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let a=t.anyOf.map(u=>kt(u,e)),c=z.union(a);r=i?z.intersection(r,c):c}if(t.oneOf&&Array.isArray(t.oneOf)){let a=t.oneOf.map(u=>kt(u,e)),c=z.xor(a);r=i?z.intersection(r,c):c}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=i?r:z.any();else{let a=i?r:kt(t.allOf[0],e),c=i?0:1;for(let u=c;u<t.allOf.length;u++)a=z.intersection(a,kt(t.allOf[u],e));r=a}t.nullable===!0&&e.version==="openapi-3.0"&&(r=z.nullable(r)),t.readOnly===!0&&(r=z.readonly(r)),t.default!==void 0&&(r=r.default(t.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of o)a in t&&(n[a]=t[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in t&&(n[a]=t[a]);if(t.type==="object"&&t.$ref===void 0){t.propertyNames!==void 0&&!Ou(t.propertyNames)&&(n.propertyNames=t.propertyNames);for(let a of["minProperties","maxProperties"])t[a]!==void 0&&(n[a]=t[a])}if(t.type==="array"&&t.$ref===void 0){t.contains!==void 0&&!Ou(t.contains)&&(n.contains=t.contains);for(let a of["uniqueItems","minContains","maxContains"])t[a]!==void 0&&(n[a]=t[a])}for(let a of Object.keys(t))sC.has(a)||at(n,a,t[a]);return Object.keys(n).length>0&&e.registry.add(r,n),t.description&&(r=r.describe(t.description)),r}function bz(t,e){if(typeof t=="boolean")return t?z.any():z.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=aC(r,e?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:e?.registry??ct};return kt(r,o)}var z,sC,dC,fC,mC,_z=m(()=>{au();B();Mp();hm();mi();z={...ea,...jp,iso:Au},sC=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"]);dC=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),fC=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);mC=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/});function Bu(t,e){let r=typeof e=="function"?e:(s,a)=>{let c=e[s._zod.def.type];return c?c(s,a):s},i=new Map;function n(s){let a=i.get(s);if(a===wz)return new tu({type:"lazy",getter:()=>i.get(s)});if(a!==void 0)return a;i.set(s,wz);let c=o(s),u=r(c,c!==s);return i.set(s,u),u}function o(s){let a=s._zod.def,c=a.type;switch(c){case"object":{let u=a.shape,l=Object.keys(u),d=!1,f={};for(let h of l){let y=n(u[h]);y!==u[h]&&(d=!0),f[h]=y}let p=a.catchall;return a.catchall&&(p=n(a.catchall),p!==a.catchall&&(d=!0)),d?ve(s,{...a,shape:f,catchall:p}):s}case"array":{let u=n(a.element);return u===a.element?s:ve(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,d=[];for(let p of u){let h=n(p);h!==p&&(l=!0),d.push(h)}let f=a.rest;return a.rest&&(f=n(a.rest),f!==a.rest&&(l=!0)),l?ve(s,{...a,items:d,rest:f}):s}case"record":case"map":{let u=n(a.keyType),l=n(a.valueType);return u===a.keyType&&l===a.valueType?s:ve(s,{...a,keyType:u,valueType:l})}case"set":{let u=n(a.valueType);return u===a.valueType?s:ve(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,d=[];for(let f of u){let p=n(f);p!==f&&(l=!0),d.push(p)}return l?ve(s,{...a,options:d}):s}case"intersection":{let u=n(a.left),l=n(a.right);return u===a.left&&l===a.right?s:ve(s,{...a,left:u,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=n(a.innerType);return u===a.innerType?s:ve(s,{...a,innerType:u})}case"pipe":{let u=n(a.in),l=n(a.out);return u===a.in&&l===a.out?s:ve(s,{...a,in:u,out:l})}case"function":{let u=n(a.input),l=n(a.output);return u===a.input&&l===a.output?s:ve(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...d}=a;return ve(s,{...d,getter:()=>n(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return s;default:return s}}return n(t)}var wz,j$=m(()=>{Ds();B();wz=Symbol("z.visit/resolving")});function $z(t){return Bu(t,{object:e=>e.partial(),union:e=>{let r=e._zod.def;return r.discriminator===void 0?e:Qs(r.options)}})}var xz=m(()=>{j$();mi()});function hC(t,e){if(!e?.length)return t;let r=t._zod.def;return ve(t,zr(r,{checks:[...r.checks??[],...e]}),{parent:!0})}function Iz(t){return hC(t.out,t.checks)}function gC(t){return t.in._zod.traits.has("$ZodTransform")?Iz(t):t.in}function Sz(t){return Bu(t,{pipe:e=>gC(e._zod.def),default:(e,r)=>r?$o(e._zod.def.innerType):e,catch:(e,r)=>r?e._zod.def.innerType:e})}function kz(t){return Bu(t,{pipe:e=>Iz(e._zod.def),prefault:(e,r)=>r?e._zod.def.innerType:e})}var Dz=m(()=>{B();j$();mi()});var M$={};$e(M$,{bigint:()=>_C,boolean:()=>bC,date:()=>wC,number:()=>vC,string:()=>yC});function yC(t){return s_(Ks,t)}function vC(t){return f_(Ys,t)}function bC(t){return b_(Xs,t)}function _C(t){return w_(qs,t)}function wC(t){return T_(_u,t)}var Az=m(()=>{tr();mi()});var he={};$e(he,{$brand:()=>_y,$input:()=>Qb,$output:()=>qb,INVALID:()=>It,NEVER:()=>by,TimePrecision:()=>l_,ZodAny:()=>Qw,ZodArray:()=>n$,ZodBase64:()=>om,ZodBase64URL:()=>sm,ZodBigInt:()=>qs,ZodBigIntFormat:()=>um,ZodBoolean:()=>Xs,ZodCIDRv4:()=>nm,ZodCIDRv6:()=>im,ZodCUID:()=>Yp,ZodCUID2:()=>Xp,ZodCatch:()=>I$,ZodCodec:()=>ku,ZodCompileAsyncError:()=>Tr,ZodCompileUnsupportedError:()=>fe,ZodCreditCard:()=>Ww,ZodCustom:()=>Du,ZodCustomStringFormat:()=>Io,ZodDate:()=>_u,ZodDefault:()=>v$,ZodDiscriminatedUnion:()=>o$,ZodE164:()=>am,ZodEmail:()=>Jp,ZodEmoji:()=>Gp,ZodEnum:()=>Gs,ZodError:()=>Y2,ZodExactOptional:()=>pm,ZodFile:()=>m$,ZodFirstPartyTypeKind:()=>C$,ZodFunction:()=>U$,ZodGUID:()=>Hp,ZodIBAN:()=>Jw,ZodIPv4:()=>tm,ZodIPv6:()=>rm,ZodISODate:()=>di,ZodISODateTime:()=>li,ZodISODuration:()=>pi,ZodISOTime:()=>fi,ZodInstanceOf:()=>E$,ZodIntersection:()=>s$,ZodIssueCode:()=>Q2,ZodJWT:()=>cm,ZodKSUID:()=>em,ZodLazy:()=>z$,ZodLiteral:()=>p$,ZodMAC:()=>Zw,ZodMap:()=>d$,ZodNaN:()=>k$,ZodNanoID:()=>Kp,ZodNever:()=>t$,ZodNonOptional:()=>mm,ZodNull:()=>Xw,ZodNullable:()=>y$,ZodNumber:()=>Ys,ZodNumberFormat:()=>So,ZodObject:()=>$u,ZodOptional:()=>Iu,ZodPipe:()=>Su,ZodPrefault:()=>_$,ZodPreprocess:()=>D$,ZodPromise:()=>N$,ZodReadonly:()=>A$,ZodRealError:()=>jt,ZodRecord:()=>Hs,ZodSet:()=>f$,ZodString:()=>Ks,ZodStringFormat:()=>we,ZodSuccess:()=>x$,ZodSymbol:()=>Kw,ZodTemplateLiteral:()=>B$,ZodTransform:()=>h$,ZodTuple:()=>c$,ZodType:()=>ae,ZodULID:()=>qp,ZodURL:()=>bu,ZodUUID:()=>un,ZodUndefined:()=>Yw,ZodUnion:()=>xu,ZodUnknown:()=>e$,ZodVoid:()=>r$,ZodXID:()=>Qp,ZodXor:()=>i$,_ZodString:()=>Wp,_default:()=>b$,_function:()=>oz,any:()=>LB,array:()=>wu,base64:()=>gB,base64url:()=>yB,bigint:()=>zB,boolean:()=>Gw,catch:()=>S$,check:()=>sz,cidrv4:()=>mB,cidrv6:()=>hB,clone:()=>ve,codec:()=>tz,coerce:()=>M$,compile:()=>n_,config:()=>Me,core:()=>En,creditCard:()=>bB,cuid:()=>sB,cuid2:()=>aB,currencyCode:()=>SB,custom:()=>az,date:()=>CB,decode:()=>Lw,decodeAsync:()=>Cw,deepPartial:()=>$z,describe:()=>cz,discriminatedUnion:()=>ZB,e164:()=>vB,email:()=>YO,emoji:()=>iB,encode:()=>Pw,encodeAsync:()=>Ew,endsWith:()=>Ls,enum:()=>dm,exactOptional:()=>g$,file:()=>XB,flattenError:()=>Fc,float32:()=>DB,float64:()=>AB,formatError:()=>jc,fromJSONSchema:()=>bz,function:()=>oz,getDiscriminatedOption:()=>wb,getErrorMap:()=>tC,globalRegistry:()=>ct,gt:()=>an,gte:()=>er,guid:()=>XO,hash:()=>kB,hex:()=>IB,hostname:()=>xB,httpUrl:()=>nB,iban:()=>_B,includes:()=>Us,input:()=>Sz,instanceof:()=>lz,int:()=>Vp,int32:()=>OB,int64:()=>TB,intersection:()=>a$,invertCodec:()=>rz,ipv4:()=>dB,ipv6:()=>pB,iso:()=>Au,json:()=>fz,jwt:()=>wB,keyof:()=>FB,ksuid:()=>lB,lazy:()=>T$,length:()=>bo,literal:()=>YB,locales:()=>su,looseObject:()=>RB,looseRecord:()=>JB,lowercase:()=>Ts,lt:()=>sn,lte:()=>Qt,mac:()=>fB,map:()=>HB,maxLength:()=>vo,maxSize:()=>si,memoizer:()=>iu,meta:()=>uz,mime:()=>Cs,minLength:()=>Ln,minSize:()=>cn,multipleOf:()=>oi,nan:()=>ez,nanoid:()=>oB,nativeEnum:()=>KB,negative:()=>zp,never:()=>lm,nonnegative:()=>Np,nonoptional:()=>$$,nonpositive:()=>Tp,normalize:()=>Fs,null:()=>qw,nullable:()=>vu,nullish:()=>qB,number:()=>Hw,object:()=>jB,optional:()=>$o,output:()=>kz,overwrite:()=>Nr,parse:()=>zw,parseAsync:()=>Tw,partialRecord:()=>WB,pipe:()=>Zp,positive:()=>Bp,prefault:()=>w$,preprocess:()=>pz,prettifyError:()=>Sy,promise:()=>iz,properties:()=>Es,property:()=>Up,readonly:()=>O$,record:()=>l$,refine:()=>P$,regex:()=>zs,regexes:()=>mr,registry:()=>op,safeDecode:()=>jw,safeDecodeAsync:()=>Rw,safeEncode:()=>Fw,safeEncodeAsync:()=>Mw,safeParse:()=>Nw,safeParseAsync:()=>Uw,set:()=>GB,setErrorMap:()=>eC,size:()=>yo,slugify:()=>Vs,startsWith:()=>Ps,strictObject:()=>MB,string:()=>yu,stringFormat:()=>$B,stringbool:()=>dz,success:()=>QB,superRefine:()=>L$,symbol:()=>UB,templateLiteral:()=>nz,toJSONSchema:()=>Cp,toLowerCase:()=>Ms,toUpperCase:()=>Rs,toZod:()=>Bc,transform:()=>fm,treeifyError:()=>Iy,trim:()=>js,tuple:()=>u$,uint32:()=>BB,uint64:()=>NB,ulid:()=>cB,undefined:()=>PB,union:()=>Qs,unknown:()=>wo,uppercase:()=>Ns,url:()=>rB,util:()=>w,uuid:()=>qO,uuidv4:()=>QO,uuidv6:()=>eB,uuidv7:()=>tB,validate:()=>Mc,validateAsync:()=>Rc,void:()=>EB,withParser:()=>sp,xid:()=>uB,xor:()=>VB});var R$=m(()=>{tr();mi();Mp();Bw();Vw();mz();tr();gu();_z();xz();Dz();Xb();hm();hm();Az()});var Oz=m(()=>{R$();R$()});var Dt,Bz,$C,zz,xC,Tz,Nz=m(()=>{"use strict";Oz();Dt=he.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),Bz=he.object({rgbMin:he.number().finite().optional(),rgbMax:he.number().finite().optional(),lnScaleMin:he.number().finite().optional(),lnScaleMax:he.number().finite().optional(),sh1Max:he.number().finite().optional(),sh2Max:he.number().finite().optional(),sh3Max:he.number().finite().optional(),lodOpacity:he.boolean().optional()}).passthrough(),$C=he.object({offset:Dt,bytes:Dt,base:Dt.optional(),count:Dt.optional(),filename:he.string().optional()}).passthrough(),zz=he.object({version:he.literal(1),type:he.literal("gsplat"),count:Dt,maxSh:Dt.optional(),lodTree:he.boolean().optional(),chunkSize:Dt.optional(),allChunkBytes:Dt.optional(),chunks:he.array($C),splatEncoding:Bz.optional(),shCodeCount:Dt.optional(),comment:he.string().optional()}).passthrough(),xC=he.object({offset:Dt,bytes:Dt,property:he.string(),encoding:he.string(),compression:he.string().optional(),min:he.number().finite().optional(),max:he.number().finite().optional()}).passthrough(),Tz=he.object({version:he.literal(1),base:Dt,count:Dt,payloadBytes:Dt,maxSh:Dt.optional(),lodTree:he.boolean().optional(),splatEncoding:Bz.optional(),properties:he.array(xC)}).passthrough()});function zu(t){let e=ta(t);if(!e)throw new Error("RADLoader: file must contain a complete RAD metadata header.");return e}function ta(t){let e=Pz(t);if(e.byteLength<hi)return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0);if(i!==IC)throw new Error(`RADLoader: RAD0 magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=hi+n;if(e.byteLength<o)return null;let s=zz.parse(Uz(e.subarray(hi,o),"RADLoader: failed to parse RAD metadata JSON."));return AC(s,n)}function ra(t){let e=Pz(t);if(e.byteLength<hi)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!==SC)throw new Error(`RADLoader: RADC magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=hi+n,s=hi+gm(n),a=s+kC;if(e.byteLength<a)throw new Error("RADLoader: RADC chunk must contain a complete metadata header.");let c=Tz.parse(Uz(e.subarray(hi,o),"RADLoader: failed to parse RADC metadata JSON.")),u=BC(r,s,"RADC payload byte length");return OC(c,n,a,u)}function gm(t){return t+7&-8}function AC(t,e){return{...t,headerJsonByteLength:e,chunksByteOffset:hi+gm(e)}}function OC(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 Uz(t,e){try{return JSON.parse(DC.decode(t))}catch{throw new Error(e)}}function BC(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 Pz(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var IC,SC,hi,kC,DC,Tu=m(()=>{"use strict";Nz();IC=809779538,SC=1128546642,hi=8,kC=8,DC=new TextDecoder});var ym,Lz=m(()=>{"use strict";Vm();wi();Zm();ym=class extends rr{name="deflate";extensions=[];contentEncodings=["deflate"];isSupported=!0;options;constructor(e={}){super(e),this.options=e}decompressSync(e){let r=new Uint8Array(e);return(this.options.raw?iI(r):sI(r)).slice().buffer}async*decompressBatches(e){let r=this.options.raw?new Pr:new ul;yield*dl(r,e)}}});var Nu,Ez=m(()=>{"use strict";Lz();$i();Nu=class extends ym{constructor(e={}){super(e)}async decompress(e){if(this.options.useNative!==!1){let r=this.options.raw?"deflate-raw":"deflate",i=await Ur(e,r);if(i)return i}return this.decompressSync(e)}async*decompressBatches(e){if(this.options.useNative!==!1){let r=this.options.raw?"deflate-raw":"deflate",i=mn(e,r);if(i){yield*i;return}}yield*super.decompressBatches(e)}}});function vm(t,e){return on(Pu(t,e))}function Pu(t,e){let r=cF(t),i=nF(ra(r),e);if(r.byteLength<i.chunkByteLength)throw new Error("RADLoader: RADC chunk payload is incomplete.");let n=i.count,o=na(r,i,rF(i,"center"),3),s=NC(r,i,n),a=PC(r,i,n),c=LC(r,i,n),u=EC(r,i,n),{colors:l,sphericalHarmonicDcs:d}=qC(a),f=e?.radChunk?.includeLoDTree??!0,p=f?FC(r,i,"child_count"):null,h=f?jC(r,i,"child_start"):null,_=e?.radChunk?.includeSphericalHarmonics??!1?CC(r,i):null;return{format:"rad",splatCount:n,positions:o,scales:c,rotations:u,colors:l,sphericalHarmonicDcs:d,opacities:s,sphericalHarmonics:_?.values,sphericalHarmonicsComponentCount:_?.componentCount,loaderData:{format:"rad",base:i.base,count:i.count,maxSh:i.maxSh??0,lodTree:i.lodTree??!1,splatEncoding:i.splatEncoding,childCounts:p??void 0,childStarts:h??void 0}}}function NC(t,e,r){let i=ln(e,"alpha");if(!i)return new Float32Array(r).fill(1);let n=na(t,e,i,1);for(let o=0;o<n.length;o++)n[o]=UC(n[o],e,i);return n}function UC(t,e,r){let i=Math.max(t,0);return!e.splatEncoding?.lodOpacity||r.encoding!=="r8"&&r.encoding!=="r8_delta"?i:i*2}function PC(t,e,r){let i=ln(e,"rgb");return i?na(t,e,i,3):new Float32Array(r*3).fill(1)}function LC(t,e,r){let i=ln(e,"scales");return i?na(t,e,i,3):new Float32Array(r*3).fill(1)}function EC(t,e,r){let i=ln(e,"orientation");if(!i)return QC(r);let n=bm(t,e,i);switch(i.encoding){case"oct88r8":return XC(n,r);case"f32":case"f16":{let o=na(t,e,i,3),s=new Float32Array(r*4);for(let a=0;a<r;a++){let c=a*3,u=a*4,l=o[c+0],d=o[c+1],f=o[c+2],p=Math.sqrt(Math.max(0,1-l*l-d*d-f*f)),h=nn(p,l,d,f);s.set(h,u)}return s}default:throw new Error(`RADLoader: unsupported orientation encoding ${i.encoding}.`)}}function CC(t,e){let r=[{property:ln(e,"sh1"),dimensions:9},{property:ln(e,"sh2"),dimensions:15},{property:ln(e,"sh3"),dimensions:21}].filter(s=>s.property!==void 0);if(r.length===0)return null;let i=r.map(s=>({values:na(t,e,s.property,s.dimensions),dimensions:s.dimensions})),n=i.reduce((s,a)=>s+a.dimensions,0),o=new Float32Array(e.count*n);for(let s=0;s<e.count;s++){let a=s*n;for(let c of i){let u=s*c.dimensions;o.set(c.values.subarray(u,u+c.dimensions),a),a+=c.dimensions}}return{values:o,componentCount:n}}function na(t,e,r,i){let n=bm(t,e,r);switch(r.encoding){case"f32":return RC(n,i,e.count);case"f16":return Cz(n,i,e.count);case"f32_lebytes":return VC(n,i,e.count);case"f16_lebytes":return ZC(n,i,e.count);case"r8":return WC(n,i,e.count,V$(e,r),Uu(e,r));case"r8_delta":return JC(n,i,e.count,V$(e,r),Uu(e,r));case"s8":return HC(n,i,e.count,Uu(e,r));case"s8_delta":return GC(n,i,e.count,Uu(e,r));case"ln_0r8":return KC(n,i,e.count,V$(e,r),Uu(e,r));case"ln_f16":return YC(n,i,e.count);default:throw new Error(`RADLoader: unsupported ${r.property} encoding ${r.encoding}.`)}}function FC(t,e,r){let i=ln(e,r);if(!i)return null;if(i.encoding!=="u16")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=bm(t,e,i),o=new Uint16Array(e.count);for(let s=0;s<e.count;s++)o[s]=n[s*2]|n[s*2+1]<<8;return o}function jC(t,e,r){let i=ln(e,r);if(!i)return null;if(i.encoding!=="u32")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=bm(t,e,i),o=new DataView(n.buffer,n.byteOffset,n.byteLength),s=new Uint32Array(e.count);for(let a=0;a<e.count;a++)s[a]=o.getUint32(a*4,!0);return s}function bm(t,e,r){let i=gm(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 s=t.subarray(n,n+r.bytes);if(!r.compression)return s;if(r.compression!=="gz")throw new Error(`RADLoader: unsupported property compression ${r.compression}.`);return MC(s,r.property)}function MC(t,e){let r=aF(t);try{return new Uint8Array(zC.decompressSync(r))}catch{try{return new Uint8Array(TC.decompressSync(r))}catch{throw new Error(`RADLoader: failed to decompress RADC property ${e}.`)}}}function RC(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 s=0;s<e;s++)n[o*e+s]=i.getFloat32((s*r+o)*4,!0);return n}function Cz(t,e,r){let i=new Float32Array(r*e);for(let n=0;n<r;n++)for(let o=0;o<e;o++){let s=(o*r+n)*2;i[n*e+o]=Ac(t[s]|t[s+1]<<8)}return i}function VC(t,e,r){let i=new Float32Array(r*e),n=r*e,o=new Uint8Array(4),s=new DataView(o.buffer);for(let a=0;a<r;a++)for(let c=0;c<e;c++){let u=c*r+a;for(let l=0;l<4;l++)o[l]=t[u+n*l];i[a*e+c]=s.getFloat32(0,!0)}return i}function ZC(t,e,r){let i=new Float32Array(r*e),n=r*e;for(let o=0;o<r;o++)for(let s=0;s<e;s++){let a=s*r+o;i[o*e+s]=Ac(t[a]|t[a+n]<<8)}return i}function WC(t,e,r,i,n){let o=new Float32Array(r*e),s=n-i;for(let a=0;a<r;a++)for(let c=0;c<e;c++)o[a*e+c]=t[c*r+a]/255*s+i;return o}function JC(t,e,r,i,n){let o=new Float32Array(r*e),s=n-i,a=new Uint8Array(e);for(let c=0;c<r;c++)for(let u=0;u<e;u++){let l=u*r+c,d=a[u]+t[l]&255;a[u]=d,o[c*e+u]=d/255*s+i}return o}function HC(t,e,r,i){let n=new Float32Array(r*e);for(let o=0;o<r;o++)for(let s=0;s<e;s++){let a=t[s*r+o];n[o*e+s]=(a<<24>>24)/127*i}return n}function GC(t,e,r,i){let n=new Float32Array(r*e),o=new Uint8Array(e);for(let s=0;s<r;s++)for(let a=0;a<e;a++){let c=a*r+s,u=o[a]+t[c]&255;o[a]=u,n[s*e+a]=(u<<24>>24)/127*i}return n}function KC(t,e,r,i,n){let o=new Float32Array(r*e);for(let s=0;s<r;s++)for(let a=0;a<e;a++)o[s*e+a]=eF(t[a*r+s],i,n);return o}function YC(t,e,r){let i=Cz(t,e,r);for(let n=0;n<i.length;n++)i[n]=Math.exp(i[n]);return i}function XC(t,e){let r=new Float32Array(e*4);for(let i=0;i<e;i++){let n=i*3,[o,s,a,c]=tF(t[n],t[n+1],t[n+2]);r.set(nn(c,o,s,a),i*4)}return r}function qC(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]=sF(n),r[i]=(n-.5)/Hg}return{colors:e,sphericalHarmonicDcs:r}}function QC(t){let e=new Float32Array(t*4);for(let r=0;r<t;r++)e[r*4]=1;return e}function eF(t,e,r){if(t===0)return 0;let i=(r-e)/254;return Math.exp(e+(t-1)*i)}function tF(t,e,r){let i=t/255*2-1,n=e/255*2-1,o=1-Math.abs(i)-Math.abs(n),s=Math.max(-o,0);i=i>=0?i-s:i+s,n=n>=0?n-s:n+s;let a=Math.hypot(i,n,o),c=a>Number.EPSILON?i/a:1,u=a>Number.EPSILON?n/a:0,l=a>Number.EPSILON?o/a:0,d=r/255*.5*Math.PI,f=Math.sin(d);return[c*f,u*f,l*f,Math.cos(d)]}function rF(t,e){let r=ln(t,e);if(!r)throw new Error(`RADLoader: RADC chunk is missing ${e} property.`);return r}function ln(t,e){return t.properties.find(r=>r.property===e)}function nF(t,e){let r=e?.radChunk?.splatEncoding;return r?{...t,splatEncoding:{...r,...t.splatEncoding}}:t}function V$(t,e){if(e.min===void 0){let r=iF(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 Uu(t,e){if(e.max===void 0){let r=oF(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 iF(t,e){switch(e){case"rgb":return t?.rgbMin;case"scales":return t?.lnScaleMin;default:return}}function oF(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 sF(t){return Math.round(Math.min(Math.max(t,0),1)*255)}function aF(t){let e=new Uint8Array(t.byteLength);return e.set(t),e.buffer}function cF(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var zC,TC,Z$=m(()=>{"use strict";Ez();Tu();fs();ls();zC=new Nu({useNative:!1}),TC=new Nu({raw:!0,useNative:!1})});var Fz={};$e(Fz,{RADLoaderWithParser:()=>lF,parseRADChunk:()=>vm,parseRADChunkHeader:()=>ra,parseRADChunkToGaussianSplats:()=>Pu,parseRADHeader:()=>zu,tryParseRADHeader:()=>ta});var lX,uF,lF,jz=m(()=>{"use strict";Tu();W$();Tu();Z$();({preload:lX,...uF}=_m),lF={...uF,parse:async t=>zu(t),parseSync:t=>zu(t)}});async function fF(){let{RADLoaderWithParser:t}=await Promise.resolve().then(()=>(jz(),Fz));return t}var dF,_m,W$=m(()=>{"use strict";yi();dF="5.0.0-alpha.11";_m={dataType:null,batchType:null,...ko,version:dF,options:{},preload:fF}});var Eu={};$e(Eu,{KSPLATFormat:()=>Ju,KSPLATLoader:()=>nf,RADFormat:()=>ko,RADLoader:()=>_m,RADSource:()=>Lu,RADSourceLoader:()=>J$,SPLATFormat:()=>Wu,SPLATLoader:()=>ef,SPZFormat:()=>Hu,SPZLoader:()=>of,parseSPZ:()=>Qd,parseSPZToGaussianSplats:()=>Kg,resolveRADChunkUrl:()=>wm});Zu(Eu,Gz(Q$(),1));yi();qg();ey();oy();sy();W$();Bo();yi();Tu();Z$();fs();var pF=[64*1024,256*1024,1024*1024],mF=4,hF="5.0.0-alpha.11",J$={dataType:null,batchType:null,...ko,name:"RADSourceLoader",version:hF,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,r)=>new Lu(t,e,r)},Lu=class extends ca{metadata;_metadataPromise=null;_chunkMetadataPromises=new Map;constructor(e,r,i){super(e,r,J$.defaultOptions,i),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?wm(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(wm(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=>ra(n)),this._chunkMetadataPromises.set(e,i)),await i}async getChunkSplats(e,r={}){let i=await this.getMetadata();return Pu(await this.getChunk(e,r),this._getChunkDecodeOptions(i,r))}async getChunkTable(e,r={}){let i=await this.getMetadata();return vm(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,s=0,a=0;if(e.pruneLoadedLoDParents){let c=gF(r,i,n,o),u=await this._getChunkSplatsConcurrently(c,e),l=0;for(let d of u){s++,a+=d.splatCount;let f=vF(d);l=Math.max(l,f+d.splatCount)}for(let d of u)yield on(bF(d,l));return}for(let c=i;c<r.chunks.length&&s<n&&a<o;c++){let u=await this.getChunkTable(c,e);s++,a+=u.data.numRows,yield u}}async _getChunkSplatsConcurrently(e,r){let i=new Array(e.length),n=yF(r.maxConcurrentChunkRequests),o=0;async function s(c){for(;o<e.length;){let u=o++,l=e[u];i[u]=await c.getChunkSplats(l,r)}}let a=Math.min(n,e.length);return await Promise.all(Array.from({length:a},()=>s(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:pF;if(typeof this.data!="string"){let r=Math.min(this.data.size,Math.max(...e)),i=ta(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=ta(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 this._hasCustomFetch()?await this.fetch(e,r):this.hasCoreApi?await this.coreApi.fetchFile(e,r):await this.fetch(e,r)}_hasCustomFetch(){return!!(this.loadOptions?.core?.fetch||this.loadOptions?.fetch)}_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 gF(t,e,r,i){let n=[],o=0;for(let s=e;s<t.chunks.length&&n.length<r&&o<i;s++){let a=t.chunks[s];n.push(s),o+=a?.count??t.chunkSize??0}return n}function yF(t){return Number.isFinite(t)&&t>0?Math.floor(t):mF}function vF(t){return typeof t.loaderData?.base=="number"?t.loaderData.base:0}function bF(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 c=0;c<t.splatCount;c++){let u=r[c],l=i[c];u>0&&l<e||(n[o++]=c)}if(o===t.splatCount)return t;let s=n.subarray(0,o),a=t.sphericalHarmonicsComponentCount??0;return{...t,splatCount:o,positions:Cn(t.positions,3,s),scales:Cn(t.scales,3,s),rotations:Cn(t.rotations,4,s),colors:Cn(t.colors,3,s),sphericalHarmonicDcs:t.sphericalHarmonicDcs?Cn(t.sphericalHarmonicDcs,3,s):void 0,opacities:Cn(t.opacities,1,s),sphericalHarmonics:t.sphericalHarmonics&&a?Cn(t.sphericalHarmonics,a,s):void 0,loaderData:{...t.loaderData,count:o,childCounts:Cn(r,1,s),childStarts:Cn(i,1,s)}}}function Cn(t,e,r){let i=new t.constructor(r.length*e);for(let n=0;n<r.length;n++){let o=r[n]*e,s=n*e;i.set(t.subarray(o,o+e),s)}return i}function wm(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 Kz(Eu);})();
|
|
17
78
|
return __exports__;
|
|
18
79
|
});
|