@loaders.gl/splats 5.0.0-alpha.1 → 5.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +14 -3
- package/dist/dist.dev.js +18326 -5805
- package/dist/dist.min.js +46 -7
- package/dist/index.cjs +1294 -180
- package/dist/index.cjs.map +3 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ksplat-loader-types.js +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.js +3 -3
- package/dist/lib/parse-spz.js.map +1 -1
- package/dist/rad-loader-types.js +1 -1
- package/dist/rad-metadata.schema.json +133 -0
- package/dist/rad-source-loader.js +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/spz-loader-types.js +1 -1
- package/package.json +17 -8
- package/src/index.ts +2 -0
- package/src/lib/parse-rad-chunk.ts +3 -3
- package/src/lib/parse-rad.ts +46 -167
- package/src/lib/parse-spz.ts +3 -3
- package/src/rad-zod-schema.ts +83 -0
package/dist/dist.min.js
CHANGED
|
@@ -4,15 +4,54 @@
|
|
|
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 ZD=Object.create;var Vc=Object.defineProperty;var WD=Object.getOwnPropertyDescriptor;var JD=Object.getOwnPropertyNames;var HD=Object.getPrototypeOf,GD=Object.prototype.hasOwnProperty;var f=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var KD=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},be=(t,e)=>{for(var r in e)Vc(t,r,{get:e[r],enumerable:!0})},Rc=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of JD(e))!GD.call(t,n)&&n!==r&&Vc(t,n,{get:()=>e[n],enumerable:!(i=WD(e,n))||i.enumerable});return t},Zc=(t,e,r)=>(Rc(t,e,"default"),r&&Rc(r,e,"default")),YD=(t,e,r)=>(r=t!=null?ZD(HD(t)):{},Rc(e||!t||!t.__esModule?Vc(r,"default",{value:t,enumerable:!0}):r,t)),XD=t=>Rc(Vc({},"__esModule",{value:!0}),t);var Eb=KD((U6,Nb)=>{Nb.exports=globalThis.loaders});var Wc,Jc,Hc,qi,Qn=f(()=>{"use strict";Wc={name:"SPLAT",id:"splat",module:"splats",format:"splat",extensions:["splat"],mimeTypes:["application/octet-stream"],binary:!0},Jc={name:"KSPLAT",id:"ksplat",module:"splats",format:"ksplat",extensions:["ksplat"],mimeTypes:["application/octet-stream"],binary:!0},Hc={name:"SPZ",id:"spz",module:"splats",format:"spz",extensions:["spz"],mimeTypes:["application/octet-stream"],binary:!0,tests:[new Uint8Array([78,71,83,80]).buffer]},qi={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 Pb(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 k(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 Lb(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 K(t){return this instanceof K?(this.v=t,this):new K(t)}function At(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(m){return function(v){return Promise.resolve(v).then(m,d)}}function a(m,v){i[m]&&(n[m]=function(x){return new Promise(function(O,ae){o.push([m,x,O,ae])>1||c(m,x)})},v&&(n[m]=v(n[m])))}function c(m,v){try{u(i[m](v))}catch(x){h(o[0][3],x)}}function u(m){m.value instanceof K?Promise.resolve(m.value.v).then(l,d):h(o[0][2],m)}function l(m){c("next",m)}function d(m){c("throw",m)}function h(m,v){m(v),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Qi(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:K(t[n](s)),done:!1}:o?o(s):s}:o}}function tr(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 Lb=="function"?Lb(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 Bt=f(()=>{});var Fb,eo,qD,zt,Yr=f(()=>{Fb=new TextDecoder("utf-8"),eo=Fb.decode.bind(Fb),qD=new TextEncoder,zt=t=>qD.encode(t)});var QD,Cb,Ze,st,rr,nr,Zt,Gc,Kc,Yc,Xc,qc,jb,As,Mb,Qc,Rb,ei=f(()=>{QD=t=>typeof t=="number",Cb=t=>typeof t=="boolean",Ze=t=>typeof t=="function",st=t=>t!=null&&Object(t)===t,rr=t=>st(t)&&Ze(t.then),nr=t=>st(t)&&Ze(t[Symbol.iterator]),Zt=t=>st(t)&&Ze(t[Symbol.asyncIterator]),Gc=t=>st(t)&&st(t.schema),Kc=t=>st(t)&&"done"in t&&"value"in t,Yc=t=>st(t)&&Ze(t.stat)&&QD(t.fd),Xc=t=>st(t)&&As(t.body),qc=t=>"_getDOMStream"in t&&"_getNodeStream"in t,jb=t=>st(t)&&Ze(t.abort)&&Ze(t.getWriter)&&!qc(t),As=t=>st(t)&&Ze(t.cancel)&&Ze(t.getReader)&&!qc(t),Mb=t=>st(t)&&Ze(t.end)&&Ze(t.write)&&Cb(t.writable)&&!qc(t),Qc=t=>st(t)&&Ze(t.read)&&Ze(t.pipe)&&Cb(t.readable)&&!qc(t),Rb=t=>st(t)&&Ze(t.clear)&&Ze(t.bytes)&&Ze(t.position)&&Ze(t.setPosition)&&Ze(t.capacity)&&Ze(t.getBufferIdentifier)&&Ze(t.createLong)});var Qf={};be(Qf,{compareArrayLike:()=>qf,joinUint8Arrays:()=>Tt,memcpy:()=>Bs,rebaseValueOffsets:()=>eu,toArrayBufferView:()=>Y,toArrayBufferViewAsyncIterator:()=>ir,toArrayBufferViewIterator:()=>wr,toBigInt64Array:()=>zs,toBigUint64Array:()=>oA,toFloat32Array:()=>sA,toFloat32ArrayAsyncIterator:()=>xA,toFloat32ArrayIterator:()=>hA,toFloat64Array:()=>aA,toFloat64ArrayAsyncIterator:()=>SA,toFloat64ArrayIterator:()=>mA,toInt16Array:()=>rA,toInt16ArrayAsyncIterator:()=>vA,toInt16ArrayIterator:()=>lA,toInt32Array:()=>ti,toInt32ArrayAsyncIterator:()=>_A,toInt32ArrayIterator:()=>dA,toInt8Array:()=>tA,toInt8ArrayAsyncIterator:()=>yA,toInt8ArrayIterator:()=>uA,toUint16Array:()=>nA,toUint16ArrayAsyncIterator:()=>bA,toUint16ArrayIterator:()=>fA,toUint32Array:()=>iA,toUint32ArrayAsyncIterator:()=>wA,toUint32ArrayIterator:()=>pA,toUint8Array:()=>T,toUint8ArrayAsyncIterator:()=>Xf,toUint8ArrayIterator:()=>Yf,toUint8ClampedArray:()=>cA,toUint8ClampedArrayAsyncIterator:()=>IA,toUint8ClampedArrayIterator:()=>gA});function eA(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 Bs(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 Tt(t,e){let r=eA(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?Bs(s,o,a):s=o;break}Bs(s||(s=new Uint8Array(u)),o,a),a+=o.length}return[s||new Uint8Array(0),r.slice(c),i-(s?s.byteLength:0)]}function Y(t,e){let r=Kc(e)?e.value:e;return r instanceof t?t===Uint8Array?new t(r.buffer,r.byteOffset,r.byteLength):r:r?(typeof r=="string"&&(r=zt(r)),r instanceof ArrayBuffer?new t(r):r instanceof Kf?new t(r):Rb(r)?Y(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*wr(t,e){let r=function*(n){yield n},i=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Kf?r(e):nr(e)?e:r(e);return yield*Gf((function*(n){let o=null;do o=n.next(yield Y(t,o));while(!o.done)})(i[Symbol.iterator]())),new t}function ir(t,e){return At(this,arguments,function*(){if(rr(e))return yield K(yield K(yield*Qi(tr(ir(t,yield K(e))))));let i=function(s){return At(this,arguments,function*(){yield yield K(yield K(s))})},n=function(s){return At(this,arguments,function*(){yield K(yield*Qi(tr(Gf((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 Kf?i(e):nr(e)?n(e):Zt(e)?e:i(e);return yield K(yield*Qi(tr(Gf((function(s){return At(this,arguments,function*(){let a=null;do a=yield K(s.next(yield yield K(Y(t,a))));while(!a.done)})})(o[Symbol.asyncIterator]()))))),yield K(new t)})}function eu(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 qf(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 Kf,tA,rA,ti,zs,T,nA,iA,oA,sA,aA,cA,Gf,uA,lA,dA,Yf,fA,pA,hA,mA,gA,yA,vA,_A,Xf,bA,wA,xA,SA,IA,We=f(()=>{Bt();Yr();ei();Kf=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;tA=t=>Y(Int8Array,t),rA=t=>Y(Int16Array,t),ti=t=>Y(Int32Array,t),zs=t=>Y(BigInt64Array,t),T=t=>Y(Uint8Array,t),nA=t=>Y(Uint16Array,t),iA=t=>Y(Uint32Array,t),oA=t=>Y(BigUint64Array,t),sA=t=>Y(Float32Array,t),aA=t=>Y(Float64Array,t),cA=t=>Y(Uint8ClampedArray,t),Gf=t=>(t.next(),t);uA=t=>wr(Int8Array,t),lA=t=>wr(Int16Array,t),dA=t=>wr(Int32Array,t),Yf=t=>wr(Uint8Array,t),fA=t=>wr(Uint16Array,t),pA=t=>wr(Uint32Array,t),hA=t=>wr(Float32Array,t),mA=t=>wr(Float64Array,t),gA=t=>wr(Uint8ClampedArray,t);yA=t=>ir(Int8Array,t),vA=t=>ir(Int16Array,t),_A=t=>ir(Int32Array,t),Xf=t=>ir(Uint8Array,t),bA=t=>ir(Uint16Array,t),wA=t=>ir(Uint32Array,t),xA=t=>ir(Float32Array,t),SA=t=>ir(Float64Array,t),IA=t=>ir(Uint8ClampedArray,t)});function*$A(t){let e,r=!1,i=[],n,o,s,a=0;function c(){return o==="peek"?Tt(i,s)[0]:([n,i,a]=Tt(i,s),n)}({cmd:o,size:s}=(yield null)||{cmd:"read",size:0});let u=Yf(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 kA(t){return At(this,arguments,function*(){let r,i=!1,n=[],o,s,a,c=0;function u(){return s==="peek"?Tt(n,a)[0]:([o,n,c]=Tt(n,a),o)}({cmd:s,size:a}=(yield yield K(null))||{cmd:"read",size:0});let l=Xf(t)[Symbol.asyncIterator]();try{do if({done:r,value:o}=Number.isNaN(a-c)?yield K(l.next()):yield K(l.next(a-c)),!r&&o.byteLength>0&&(n.push(o),c+=o.byteLength),r||a<=c)do({cmd:s,size:a}=yield yield K(u()));while(a<c);while(!r)}catch(d){i=!0,typeof l.throw=="function"&&(yield K(l.throw(d)))}finally{i===!1&&typeof l.return=="function"&&(yield K(l.return(new Uint8Array(0))))}return yield K(null)})}function DA(t){return At(this,arguments,function*(){let r=!1,i=!1,n=[],o,s,a,c=0;function u(){return s==="peek"?Tt(n,a)[0]:([o,n,c]=Tt(n,a),o)}({cmd:s,size:a}=(yield yield K(null))||{cmd:"read",size:0});let l=new tp(t);try{do if({done:r,value:o}=Number.isNaN(a-c)?yield K(l.read()):yield K(l.read(a-c)),!r&&o.byteLength>0&&(n.push(T(o)),c+=o.byteLength),r||a<=c)do({cmd:s,size:a}=yield yield K(u()));while(a<c);while(!r)}catch(d){i=!0,yield K(l.cancel(d))}finally{i===!1?yield K(l.cancel()):t.locked&&l.releaseLock()}return yield K(null)})}function AA(t){return At(this,arguments,function*(){let r=[],i="error",n=!1,o=null,s,a,c=0,u=[],l;function d(){return s==="peek"?Tt(u,a)[0]:([l,u,c]=Tt(u,a),l)}if({cmd:s,size:a}=(yield yield K(null))||{cmd:"read",size:0},t.isTTY)return yield yield K(new Uint8Array(0)),yield K(null);try{r[0]=ep(t,"end"),r[1]=ep(t,"error");do{if(r[2]=ep(t,"readable"),[i,o]=yield K(Promise.race(r.map(m=>m[2]))),i==="error")break;if((n=i==="end")||(Number.isFinite(a-c)?(l=T(t.read(a-c)),l.byteLength<a-c&&(l=T(t.read()))):l=T(t.read()),l.byteLength>0&&(u.push(l),c+=l.byteLength)),n||a<=c)do({cmd:s,size:a}=yield yield K(d()));while(a<c)}while(!n)}finally{yield K(h(r,i==="error"?o:null))}return yield K(null);function h(m,v){return l=u=null,new Promise((x,O)=>{for(let[ae,le]of m)t.off(ae,le);try{let ae=t.destroy;ae&&ae.call(t,v),v=void 0}catch(ae){v=ae||v}finally{v!=null?O(v):x()}})}})}var Ke,tu,tp,ep,Ts=f(()=>{Bt();We();Ke={fromIterable(t){return tu($A(t))},fromAsyncIterable(t){return tu(kA(t))},fromDOMStream(t){return tu(DA(t))},fromNodeStream(t){return tu(AA(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')}},tu=t=>(t.next(),t);tp=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 k(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 k(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=T(r)),r})}},ep=(t,e)=>{let r=n=>i([e,n]),i;return[e,r,new Promise(n=>(i=n)&&t.once(e,r))]}});var he,ru=f(()=>{(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"})(he||(he={}))});var we,rp=f(()=>{(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(we||(we={}))});var ge,np=f(()=>{(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(ge||(ge={}))});var Le,ip=f(()=>{(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(Le||(Le={}))});var z,Os=f(()=>{(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(z||(z={}))});var ke,op=f(()=>{(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"})(ke||(ke={}))});var nu=f(()=>{});var xr,iu,ou,to,sp=f(()=>{xr=new Int32Array(2),iu=new Float32Array(xr.buffer),ou=new Float64Array(xr.buffer),to=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1});var Us,ap=f(()=>{(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(Us||(Us={}))});var Ye,cp=f(()=>{nu();ap();sp();Ye=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 xr[0]=this.readInt32(e),iu[0]}readFloat64(e){return xr[to?0:1]=this.readInt32(e),xr[to?1:0]=this.readInt32(e+4),ou[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){iu[0]=r,this.writeInt32(e,xr[0])}writeFloat64(e,r){ou[0]=r,this.writeInt32(e,xr[to?0:1]),this.writeInt32(e+4,xr[to?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===Us.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 ri,Vb=f(()=>{cp();nu();ri=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=Ye.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=Ye.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 ie=f(()=>{nu();sp();Vb();cp();ap()});var ni,up=f(()=>{(function(t){t[t.BUFFER=0]="BUFFER"})(ni||(ni={}))});var at,Ns=f(()=>{(function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"})(at||(at={}))});var Xr,lp=f(()=>{ie();up();Ns();Xr=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):at.LZ4_FRAME}method(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):ni.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,r){e.addFieldInt8(0,r,at.LZ4_FRAME)}static addMethod(e,r){e.addFieldInt8(1,r,ni.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 ro,dp=f(()=>{ro=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 no,fp=f(()=>{no=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 et,pp=f(()=>{ie();lp();dp();fp();et=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 no).__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 ro).__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 Xr).__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 qr,Zb=f(()=>{ie();pp();qr=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 et).__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 $n,hp=f(()=>{(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})($n||($n={}))});var Es,Wb=f(()=>{(function(t){t[t.DenseArray=0]="DenseArray"})(Es||(Es={}))});var sr,au=f(()=>{ie();sr=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 Sr,mp=f(()=>{ie();Wb();au();Sr=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 sr).__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):Es.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,Es.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}});var Oe,io=f(()=>{ie();Oe=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 Ls,Jb=f(()=>{ie();Ls=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 Ps,Hb=f(()=>{ie();Ps=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 Fs,Gb=f(()=>{ie();Fs=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 kn,gp=f(()=>{ie();ip();kn=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):Le.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,Le.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,r){return t.startDate(e),t.addUnit(e,r),t.endDate(e)}}});var Ir,yp=f(()=>{ie();Ir=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 Dn,vp=f(()=>{ie();Os();Dn=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):z.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,z.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,r){return t.startDuration(e),t.addUnit(e,r),t.endDuration(e)}}});var An,_p=f(()=>{ie();An=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 Bn,bp=f(()=>{ie();Bn=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,wp=f(()=>{ie();np();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):ge.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,r){e.addFieldInt16(0,r,ge.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,r){return t.startFloatingPoint(e),t.addPrecision(e,r),t.endFloatingPoint(e)}}});var Tn,xp=f(()=>{ie();op();Tn=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):ke.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,ke.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,r){return t.startInterval(e),t.addUnit(e,r),t.endInterval(e)}}});var Cs,Kb=f(()=>{ie();Cs=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 js,Yb=f(()=>{ie();js=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 Ms,Xb=f(()=>{ie();Ms=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 Rs,qb=f(()=>{ie();Rs=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 On,Sp=f(()=>{ie();On=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 Vs,Qb=f(()=>{ie();Vs=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 Zs,ew=f(()=>{ie();Zs=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 Qr,Ip=f(()=>{ie();Os();Qr=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):z.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,z.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 en,$p=f(()=>{ie();Os();en=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):z.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,z.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 ar,kp=f(()=>{ie();rp();ar=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):we.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,we.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 Ws,tw=f(()=>{ie();Ws=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 Js,rw=f(()=>{ie();Js=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 de,Dp=f(()=>{(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"})(de||(de={}))});var tt,Ap=f(()=>{ie();mp();io();Dp();tt=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):de.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 Sr).__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 Oe).__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,de.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 ht,Bp=f(()=>{ie();hp();Ap();io();ht=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):$n.Little}fields(e,r){let i=this.bb.__offset(this.bb_pos,6);return i?(r||new tt).__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 Oe).__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,$n.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 re,zp=f(()=>{(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"})(re||(re={}))});var p,Ot,Je=f(()=>{ru();rp();np();ip();Os();op();zp();(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"})(p||(p={}));(function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"})(Ot||(Ot={}))});var Tp={};be(Tp,{valueToString:()=>cr});function cr(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=>cr(e))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(e,r)=>typeof r=="bigint"?`${r}`:r)}var Hs=f(()=>{});function X(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 Op(t,e){return X(t/e)+X(t%e)/X(e)}var $r=f(()=>{});var Ep={};be(Ep,{BN:()=>Ks,bigNumToBigInt:()=>iw,bigNumToNumber:()=>Np,bigNumToString:()=>ao,isArrowBigNumSymbol:()=>nw});function ur(t,...e){return e.length===0?Object.setPrototypeOf(Y(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function oo(...t){return ur.apply(this,t)}function so(...t){return ur.apply(this,t)}function Gs(...t){return ur.apply(this,t)}function Np(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^zA)*(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,h=a?-(c%l):c%l,m=X(d),v=`${h}`.padStart(e,"0");return+`${a&&m===0?"-":""}${m}.${v}`}return X(c)}function ao(t){if(t.byteLength===8)return`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`;if(!t.signed)return Up(t);let e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return Up(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`-${Up(e)}`}function iw(t){return t.byteLength===8?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:ao(t)}function Up(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 nw,BA,zA,Ks,Lp=f(()=>{We();$r();nw=Symbol.for("isArrowBigNum");ur.prototype[nw]=!0;ur.prototype.toJSON=function(){return`"${ao(this)}"`};ur.prototype.valueOf=function(t){return Np(this,t)};ur.prototype.toString=function(){return ao(this)};ur.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return Np(this);case"string":return ao(this);case"default":return iw(this)}return ao(this)};Object.setPrototypeOf(oo.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(so.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Gs.prototype,Object.create(Uint32Array.prototype));Object.assign(oo.prototype,ur.prototype,{constructor:oo,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(so.prototype,ur.prototype,{constructor:so,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(Gs.prototype,ur.prototype,{constructor:Gs,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});BA=BigInt(4294967296)*BigInt(4294967296),zA=BA-BigInt(1);Ks=class t{static new(e,r){switch(r){case!0:return new oo(e);case!1:return new so(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new oo(e)}return e.byteLength===16?new Gs(e):new so(e)}static signed(e){return new oo(e)}static unsigned(e){return new so(e)}static decimal(e){return new Gs(e)}constructor(e,r){return t.new(e,r)}}});function Et(t){let e=t;switch(t.typeId){case p.Decimal:return t.bitWidth/32;case p.Interval:return e.unit===ke.MONTH_DAY_NANO?4:1+e.unit;case p.BinaryView:case p.Utf8View:return 16;case p.FixedSizeList:return e.listSize;case p.FixedSizeBinary:return e.byteWidth;default:return 1}}var ow,sw,aw,cw,uw,lw,dw,fw,pw,hw,mw,gw,yw,vw,_w,bw,ww,xw,Sw,Iw,$w,kw,Dw,Aw,Bw,zw,I,rt,Ce,ii,oi,Ut,si,ai,ci,ui,li,Nt,Ys,di,fi,kr,G,Dr,Ar,mt,Br,zr,Tr,Or,Ur,Nr,Er,Lr,Jt,Ht,xe,Gt,Pr,gt,Kt,TA,yt,ye=f(()=>{$r();Je();zw=Symbol.for("apache-arrow/DataType"),I=class t{static isDataType(e){return e?.[zw]===!0}static isNull(e){return e?.typeId===p.Null}static isInt(e){return e?.typeId===p.Int}static isFloat(e){return e?.typeId===p.Float}static isBinary(e){return e?.typeId===p.Binary}static isBinaryView(e){return e?.typeId===p.BinaryView}static isLargeBinary(e){return e?.typeId===p.LargeBinary}static isUtf8(e){return e?.typeId===p.Utf8}static isUtf8View(e){return e?.typeId===p.Utf8View}static isLargeUtf8(e){return e?.typeId===p.LargeUtf8}static isBool(e){return e?.typeId===p.Bool}static isDecimal(e){return e?.typeId===p.Decimal}static isDate(e){return e?.typeId===p.Date}static isTime(e){return e?.typeId===p.Time}static isTimestamp(e){return e?.typeId===p.Timestamp}static isInterval(e){return e?.typeId===p.Interval}static isDuration(e){return e?.typeId===p.Duration}static isList(e){return e?.typeId===p.List}static isLargeList(e){return e?.typeId===p.LargeList}static isStruct(e){return e?.typeId===p.Struct}static isUnion(e){return e?.typeId===p.Union}static isFixedSizeBinary(e){return e?.typeId===p.FixedSizeBinary}static isFixedSizeList(e){return e?.typeId===p.FixedSizeList}static isMap(e){return e?.typeId===p.Map}static isDictionary(e){return e?.typeId===p.Dictionary}static isDenseUnion(e){return t.isUnion(e)&&e.mode===we.Dense}static isSparseUnion(e){return t.isUnion(e)&&e.mode===we.Sparse}constructor(e){this.typeId=e}};ow=Symbol.toStringTag;I[ow]=(t=>(t.children=null,t.ArrayType=Array,t.OffsetArrayType=Int32Array,t[zw]=!0,t[Symbol.toStringTag]="DataType"))(I.prototype);rt=class extends I{constructor(){super(p.Null)}toString(){return"Null"}};sw=Symbol.toStringTag;rt[sw]=(t=>t[Symbol.toStringTag]="Null")(rt.prototype);Ce=class extends I{constructor(e,r){super(p.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}`}};aw=Symbol.toStringTag;Ce[aw]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(Ce.prototype);ii=class extends Ce{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},oi=class extends Ce{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},Ut=class extends Ce{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},si=class extends Ce{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},ai=class extends Ce{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},ci=class extends Ce{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},ui=class extends Ce{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},li=class extends Ce{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(ii.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(oi.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(Ut.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(si.prototype,"ArrayType",{value:BigInt64Array});Object.defineProperty(ai.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(ci.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(ui.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(li.prototype,"ArrayType",{value:BigUint64Array});Nt=class extends I{constructor(e){super(p.Float),this.precision=e}get ArrayType(){switch(this.precision){case ge.HALF:return Uint16Array;case ge.SINGLE:return Float32Array;case ge.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};cw=Symbol.toStringTag;Nt[cw]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(Nt.prototype);Ys=class extends Nt{constructor(){super(ge.HALF)}},di=class extends Nt{constructor(){super(ge.SINGLE)}},fi=class extends Nt{constructor(){super(ge.DOUBLE)}};Object.defineProperty(Ys.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(di.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(fi.prototype,"ArrayType",{value:Float64Array});kr=class extends I{constructor(){super(p.Binary)}toString(){return"Binary"}};uw=Symbol.toStringTag;kr[uw]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(kr.prototype);G=class extends I{constructor(){super(p.BinaryView)}toString(){return"BinaryView"}};lw=Symbol.toStringTag;G.ELEMENT_WIDTH=16;G.INLINE_CAPACITY=12;G.LENGTH_OFFSET=0;G.INLINE_OFFSET=4;G.BUFFER_INDEX_OFFSET=8;G.BUFFER_OFFSET_OFFSET=12;G[lw]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="BinaryView"))(G.prototype);Dr=class extends I{constructor(){super(p.LargeBinary)}toString(){return"LargeBinary"}};dw=Symbol.toStringTag;Dr[dw]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(Dr.prototype);Ar=class extends I{constructor(){super(p.Utf8)}toString(){return"Utf8"}};fw=Symbol.toStringTag;Ar[fw]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(Ar.prototype);mt=class extends I{constructor(){super(p.Utf8View)}toString(){return"Utf8View"}};pw=Symbol.toStringTag;mt.ELEMENT_WIDTH=G.ELEMENT_WIDTH;mt.INLINE_CAPACITY=G.INLINE_CAPACITY;mt[pw]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8View"))(mt.prototype);Br=class extends I{constructor(){super(p.LargeUtf8)}toString(){return"LargeUtf8"}};hw=Symbol.toStringTag;Br[hw]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(Br.prototype);zr=class extends I{constructor(){super(p.Bool)}toString(){return"Bool"}};mw=Symbol.toStringTag;zr[mw]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(zr.prototype);Tr=class extends I{constructor(e,r,i=128){super(p.Decimal),this.scale=e,this.precision=r,this.bitWidth=i}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};gw=Symbol.toStringTag;Tr[gw]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(Tr.prototype);Or=class extends I{constructor(e){super(p.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Le[this.unit]}>`}get ArrayType(){return this.unit===Le.DAY?Int32Array:BigInt64Array}};yw=Symbol.toStringTag;Or[yw]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(Or.prototype);Ur=class extends I{constructor(e,r){super(p.Time),this.unit=e,this.bitWidth=r}toString(){return`Time${this.bitWidth}<${z[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};vw=Symbol.toStringTag;Ur[vw]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(Ur.prototype);Nr=class extends I{constructor(e,r){super(p.Timestamp),this.unit=e,this.timezone=r}toString(){return`Timestamp<${z[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};_w=Symbol.toStringTag;Nr[_w]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(Nr.prototype);Er=class extends I{constructor(e){super(p.Interval),this.unit=e}toString(){return`Interval<${ke[this.unit]}>`}};bw=Symbol.toStringTag;Er[bw]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(Er.prototype);Lr=class extends I{constructor(e){super(p.Duration),this.unit=e}toString(){return`Duration<${z[this.unit]}>`}};ww=Symbol.toStringTag;Lr[ww]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(Lr.prototype);Jt=class extends I{constructor(e){super(p.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}};xw=Symbol.toStringTag;Jt[xw]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(Jt.prototype);Ht=class extends I{constructor(e){super(p.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}};Sw=Symbol.toStringTag;Ht[Sw]=(t=>(t.children=null,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeList"))(Ht.prototype);xe=class extends I{constructor(e){super(p.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};Iw=Symbol.toStringTag;xe[Iw]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(xe.prototype);Gt=class extends I{constructor(e,r,i){super(p.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(" | ")}>`}};$w=Symbol.toStringTag;Gt[$w]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(Gt.prototype);Pr=class extends I{constructor(e){super(p.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};kw=Symbol.toStringTag;Pr[kw]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Pr.prototype);gt=class extends I{constructor(e,r){super(p.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}>`}};Dw=Symbol.toStringTag;gt[Dw]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(gt.prototype);Kt=class extends I{constructor(e,r=!1){var i,n,o;if(super(p.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(", ")}}>`}};Aw=Symbol.toStringTag;Kt[Aw]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(Kt.prototype);TA=(t=>()=>++t)(-1),yt=class extends I{constructor(e,r,i,n){super(p.Dictionary),this.indices=r,this.dictionary=e,this.isOrdered=n||!1,this.id=i==null?TA():X(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}>`}};Bw=Symbol.toStringTag;yt[Bw]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(yt.prototype)});function UA(t,e,r=!0){return typeof e=="number"?co(t,e,r):typeof e=="string"&&e in p?co(t,p[e],r):e&&e instanceof I?co(t,Tw(e),r):e?.type&&e.type instanceof I?co(t,Tw(e.type),r):co(t,p.NONE,r)}function co(t,e,r=!0){let i=null;switch(e){case p.Null:i=t.visitNull;break;case p.Bool:i=t.visitBool;break;case p.Int:i=t.visitInt;break;case p.Int8:i=t.visitInt8||t.visitInt;break;case p.Int16:i=t.visitInt16||t.visitInt;break;case p.Int32:i=t.visitInt32||t.visitInt;break;case p.Int64:i=t.visitInt64||t.visitInt;break;case p.Uint8:i=t.visitUint8||t.visitInt;break;case p.Uint16:i=t.visitUint16||t.visitInt;break;case p.Uint32:i=t.visitUint32||t.visitInt;break;case p.Uint64:i=t.visitUint64||t.visitInt;break;case p.Float:i=t.visitFloat;break;case p.Float16:i=t.visitFloat16||t.visitFloat;break;case p.Float32:i=t.visitFloat32||t.visitFloat;break;case p.Float64:i=t.visitFloat64||t.visitFloat;break;case p.Utf8:i=t.visitUtf8;break;case p.LargeUtf8:i=t.visitLargeUtf8;break;case p.Utf8View:i=t.visitUtf8View||t.visitUtf8;break;case p.Binary:i=t.visitBinary;break;case p.LargeBinary:i=t.visitLargeBinary;break;case p.BinaryView:i=t.visitBinaryView||t.visitBinary;break;case p.FixedSizeBinary:i=t.visitFixedSizeBinary;break;case p.Date:i=t.visitDate;break;case p.DateDay:i=t.visitDateDay||t.visitDate;break;case p.DateMillisecond:i=t.visitDateMillisecond||t.visitDate;break;case p.Timestamp:i=t.visitTimestamp;break;case p.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp;break;case p.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp;break;case p.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp;break;case p.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp;break;case p.Time:i=t.visitTime;break;case p.TimeSecond:i=t.visitTimeSecond||t.visitTime;break;case p.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime;break;case p.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime;break;case p.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime;break;case p.Decimal:i=t.visitDecimal;break;case p.List:i=t.visitList;break;case p.LargeList:i=t.visitLargeList;break;case p.Struct:i=t.visitStruct;break;case p.Union:i=t.visitUnion;break;case p.DenseUnion:i=t.visitDenseUnion||t.visitUnion;break;case p.SparseUnion:i=t.visitSparseUnion||t.visitUnion;break;case p.Dictionary:i=t.visitDictionary;break;case p.Interval:i=t.visitInterval;break;case p.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval;break;case p.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval;break;case p.IntervalMonthDayNano:i=t.visitIntervalMonthDayNano||t.visitInterval;break;case p.Duration:i=t.visitDuration;break;case p.DurationSecond:i=t.visitDurationSecond||t.visitDuration;break;case p.DurationMillisecond:i=t.visitDurationMillisecond||t.visitDuration;break;case p.DurationMicrosecond:i=t.visitDurationMicrosecond||t.visitDuration;break;case p.DurationNanosecond:i=t.visitDurationNanosecond||t.visitDuration;break;case p.FixedSizeList:i=t.visitFixedSizeList;break;case p.Map:i=t.visitMap;break}if(typeof i=="function")return i;if(!r)return()=>null;throw new Error(`Unrecognized type '${p[e]}'`)}function Tw(t){switch(t.typeId){case p.Null:return p.Null;case p.Int:{let{bitWidth:e,isSigned:r}=t;switch(e){case 8:return r?p.Int8:p.Uint8;case 16:return r?p.Int16:p.Uint16;case 32:return r?p.Int32:p.Uint32;case 64:return r?p.Int64:p.Uint64}return p.Int}case p.Float:switch(t.precision){case ge.HALF:return p.Float16;case ge.SINGLE:return p.Float32;case ge.DOUBLE:return p.Float64}return p.Float;case p.Binary:return p.Binary;case p.LargeBinary:return p.LargeBinary;case p.BinaryView:return p.BinaryView;case p.Utf8:return p.Utf8;case p.LargeUtf8:return p.LargeUtf8;case p.Utf8View:return p.Utf8View;case p.Bool:return p.Bool;case p.Decimal:return p.Decimal;case p.Time:switch(t.unit){case z.SECOND:return p.TimeSecond;case z.MILLISECOND:return p.TimeMillisecond;case z.MICROSECOND:return p.TimeMicrosecond;case z.NANOSECOND:return p.TimeNanosecond}return p.Time;case p.Timestamp:switch(t.unit){case z.SECOND:return p.TimestampSecond;case z.MILLISECOND:return p.TimestampMillisecond;case z.MICROSECOND:return p.TimestampMicrosecond;case z.NANOSECOND:return p.TimestampNanosecond}return p.Timestamp;case p.Date:switch(t.unit){case Le.DAY:return p.DateDay;case Le.MILLISECOND:return p.DateMillisecond}return p.Date;case p.Interval:switch(t.unit){case ke.DAY_TIME:return p.IntervalDayTime;case ke.YEAR_MONTH:return p.IntervalYearMonth;case ke.MONTH_DAY_NANO:return p.IntervalMonthDayNano}return p.Interval;case p.Duration:switch(t.unit){case z.SECOND:return p.DurationSecond;case z.MILLISECOND:return p.DurationMillisecond;case z.MICROSECOND:return p.DurationMicrosecond;case z.NANOSECOND:return p.DurationNanosecond}return p.Duration;case p.Map:return p.Map;case p.List:return p.List;case p.LargeList:return p.LargeList;case p.Struct:return p.Struct;case p.Union:switch(t.mode){case we.Dense:return p.DenseUnion;case we.Sparse:return p.SparseUnion}return p.Union;case p.FixedSizeBinary:return p.FixedSizeBinary;case p.FixedSizeList:return p.FixedSizeList;case p.Dictionary:return p.Dictionary}throw new Error(`Unrecognized type '${p[t.typeId]}'`)}var C,lr=f(()=>{Je();ye();C=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 UA(this,e,r)}getVisitFnByTypeId(e,r=!0){return co(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}};C.prototype.visitInt8=null;C.prototype.visitInt16=null;C.prototype.visitInt32=null;C.prototype.visitInt64=null;C.prototype.visitUint8=null;C.prototype.visitUint16=null;C.prototype.visitUint32=null;C.prototype.visitUint64=null;C.prototype.visitFloat16=null;C.prototype.visitFloat32=null;C.prototype.visitFloat64=null;C.prototype.visitDateDay=null;C.prototype.visitDateMillisecond=null;C.prototype.visitTimestampSecond=null;C.prototype.visitTimestampMillisecond=null;C.prototype.visitTimestampMicrosecond=null;C.prototype.visitTimestampNanosecond=null;C.prototype.visitTimeSecond=null;C.prototype.visitTimeMillisecond=null;C.prototype.visitTimeMicrosecond=null;C.prototype.visitTimeNanosecond=null;C.prototype.visitDenseUnion=null;C.prototype.visitSparseUnion=null;C.prototype.visitIntervalDayTime=null;C.prototype.visitIntervalYearMonth=null;C.prototype.visitIntervalMonthDayNano=null;C.prototype.visitDuration=null;C.prototype.visitDurationSecond=null;C.prototype.visitDurationMillisecond=null;C.prototype.visitDurationMicrosecond=null;C.prototype.visitDurationNanosecond=null});var Pp={};be(Pp,{float64ToUint16:()=>Xs,uint16ToFloat64:()=>cu});function cu(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 Xs(t){if(t!==t)return 32256;Ow[0]=t;let e=(uo[1]&2147483648)>>16&65535,r=uo[1]&2146435072,i=0;return r>=1089470464?uo[0]>0?r=31744:(r=(r&2080374784)>>16,i=(uo[1]&1048575)>>10):r<=1056964608?(i=1048576+(uo[1]&1048575),i=1048576+(i<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,i=(uo[1]&1048575)+512>>10),e|r|i&65535}var Ow,uo,qs=f(()=>{Ow=new Float64Array(1),uo=new Uint32Array(Ow.buffer)});function R(t){return(e,r,i)=>{if(e.setValid(r,i!=null))return t(e,r,i)}}var F,NA,Uw,EA,tn,Fp,Nw,LA,uu,lu,Cp,Ew,PA,Lw,FA,Pw,CA,jp,du,fu,pu,hu,Mp,mu,gu,yu,vu,Rp,Vp,Fw,jA,MA,RA,VA,ZA,WA,JA,Cw,jw,HA,Zp,_u,bu,wu,xu,Su,Iu,$u,Wp,GA,Xe,Lt=f(()=>{vt();lr();$r();Yr();qs();Je();ye();F=class extends C{};NA=(t,e,r)=>{t[e]=Math.floor(r/864e5)},Uw=(t,e,r,i)=>{if(r+1<e.length){let n=X(e[r]),o=X(e[r+1]);t.set(i.subarray(0,o-n),n)}},EA=({offset:t,values:e},r,i)=>{let n=t+r;i?e[n>>3]|=1<<n%8:e[n>>3]&=~(1<<n%8)},tn=({values:t},e,r)=>{t[e]=r},Fp=({values:t},e,r)=>{t[e]=r},Nw=({values:t},e,r)=>{t[e]=Xs(r)},LA=(t,e,r)=>{switch(t.type.precision){case ge.HALF:return Nw(t,e,r);case ge.SINGLE:case ge.DOUBLE:return Fp(t,e,r)}},uu=({values:t},e,r)=>{NA(t,e,r.valueOf())},lu=({values:t},e,r)=>{t[e]=BigInt(r)},Cp=({stride:t,values:e},r,i)=>{e.set(i.subarray(0,t),t*r)},Ew=({values:t,valueOffsets:e},r,i)=>Uw(t,e,r,i),PA=t=>{let e=t.variadicBuffers;return(!Array.isArray(e)||Object.isFrozen(e))&&(e=Array.from(e),t.variadicBuffers=e),e},Lw=(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=G.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),h=r.length;if(d.setInt32(G.LENGTH_OFFSET,h,!0),h<=G.INLINE_CAPACITY){a.set(r,u+G.INLINE_OFFSET);return}let m=((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(G.INLINE_OFFSET,m>>>0,!0);let v=PA(t),x=r.slice(),O=v.push(x)-1;d.setInt32(G.BUFFER_INDEX_OFFSET,O,!0),d.setInt32(G.BUFFER_OFFSET_OFFSET,0,!0)},FA=(t,e,r)=>{let i=r instanceof Uint8Array?r:new Uint8Array(r);Lw(t,e,i)},Pw=({values:t,valueOffsets:e},r,i)=>Uw(t,e,r,zt(i)),CA=(t,e,r)=>{let i=zt(r);Lw(t,e,i)},jp=(t,e,r)=>{t.type.unit===Le.DAY?uu(t,e,r):lu(t,e,r)},du=({values:t},e,r)=>{t[e]=BigInt(r/1e3)},fu=({values:t},e,r)=>{t[e]=BigInt(r)},pu=({values:t},e,r)=>{t[e]=BigInt(r*1e3)},hu=({values:t},e,r)=>{t[e]=BigInt(r*1e6)},Mp=(t,e,r)=>{switch(t.type.unit){case z.SECOND:return du(t,e,r);case z.MILLISECOND:return fu(t,e,r);case z.MICROSECOND:return pu(t,e,r);case z.NANOSECOND:return hu(t,e,r)}},mu=({values:t},e,r)=>{t[e]=r},gu=({values:t},e,r)=>{t[e]=r},yu=({values:t},e,r)=>{t[e]=r},vu=({values:t},e,r)=>{t[e]=r},Rp=(t,e,r)=>{switch(t.type.unit){case z.SECOND:return mu(t,e,r);case z.MILLISECOND:return gu(t,e,r);case z.MICROSECOND:return yu(t,e,r);case z.NANOSECOND:return vu(t,e,r)}},Vp=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},Fw=(t,e,r)=>{let i=t.children[0],n=t.valueOffsets,o=Xe.getVisitFn(i),s=X(n[e]),a=X(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))},jA=(t,e,r)=>{let i=t.children[0],{valueOffsets:n}=t,o=Xe.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},MA=(t,e)=>(r,i,n,o)=>i&&r(i,t,e[o]),RA=(t,e)=>(r,i,n,o)=>i&&r(i,t,e.get(o)),VA=(t,e)=>(r,i,n,o)=>i&&r(i,t,e.get(n.name)),ZA=(t,e)=>(r,i,n,o)=>i&&r(i,t,e[n.name]),WA=(t,e,r)=>{let i=t.type.children.map(o=>Xe.getVisitFn(o.type)),n=r instanceof Map?VA(e,r):r instanceof B?RA(e,r):Array.isArray(r)?MA(e,r):ZA(e,r);t.type.children.forEach((o,s)=>n(i[s],t.children[s],o,s))},JA=(t,e,r)=>{t.type.mode===we.Dense?Cw(t,e,r):jw(t,e,r)},Cw=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];Xe.visit(n,t.valueOffsets[e],r)},jw=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];Xe.visit(n,e,r)},HA=(t,e,r)=>{var i;(i=t.dictionary)===null||i===void 0||i.set(t.values[e],r)},Zp=(t,e,r)=>{switch(t.type.unit){case ke.YEAR_MONTH:return bu(t,e,r);case ke.DAY_TIME:return _u(t,e,r);case ke.MONTH_DAY_NANO:return wu(t,e,r)}},_u=({values:t},e,r)=>{t.set(r.subarray(0,2),2*e)},bu=({values:t},e,r)=>{t[e]=r[0]*12+r[1]%12},wu=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},xu=({values:t},e,r)=>{t[e]=r},Su=({values:t},e,r)=>{t[e]=r},Iu=({values:t},e,r)=>{t[e]=r},$u=({values:t},e,r)=>{t[e]=r},Wp=(t,e,r)=>{switch(t.type.unit){case z.SECOND:return xu(t,e,r);case z.MILLISECOND:return Su(t,e,r);case z.MICROSECOND:return Iu(t,e,r);case z.NANOSECOND:return $u(t,e,r)}},GA=(t,e,r)=>{let{stride:i}=t,n=t.children[0],o=Xe.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))};F.prototype.visitBool=R(EA);F.prototype.visitInt=R(tn);F.prototype.visitInt8=R(tn);F.prototype.visitInt16=R(tn);F.prototype.visitInt32=R(tn);F.prototype.visitInt64=R(tn);F.prototype.visitUint8=R(tn);F.prototype.visitUint16=R(tn);F.prototype.visitUint32=R(tn);F.prototype.visitUint64=R(tn);F.prototype.visitFloat=R(LA);F.prototype.visitFloat16=R(Nw);F.prototype.visitFloat32=R(Fp);F.prototype.visitFloat64=R(Fp);F.prototype.visitUtf8=R(Pw);F.prototype.visitLargeUtf8=R(Pw);F.prototype.visitUtf8View=R(CA);F.prototype.visitBinary=R(Ew);F.prototype.visitLargeBinary=R(Ew);F.prototype.visitBinaryView=R(FA);F.prototype.visitFixedSizeBinary=R(Cp);F.prototype.visitDate=R(jp);F.prototype.visitDateDay=R(uu);F.prototype.visitDateMillisecond=R(lu);F.prototype.visitTimestamp=R(Mp);F.prototype.visitTimestampSecond=R(du);F.prototype.visitTimestampMillisecond=R(fu);F.prototype.visitTimestampMicrosecond=R(pu);F.prototype.visitTimestampNanosecond=R(hu);F.prototype.visitTime=R(Rp);F.prototype.visitTimeSecond=R(mu);F.prototype.visitTimeMillisecond=R(gu);F.prototype.visitTimeMicrosecond=R(yu);F.prototype.visitTimeNanosecond=R(vu);F.prototype.visitDecimal=R(Vp);F.prototype.visitList=R(Fw);F.prototype.visitLargeList=R(Fw);F.prototype.visitStruct=R(WA);F.prototype.visitUnion=R(JA);F.prototype.visitDenseUnion=R(Cw);F.prototype.visitSparseUnion=R(jw);F.prototype.visitDictionary=R(HA);F.prototype.visitInterval=R(Zp);F.prototype.visitIntervalDayTime=R(_u);F.prototype.visitIntervalYearMonth=R(bu);F.prototype.visitIntervalMonthDayNano=R(wu);F.prototype.visitDuration=R(Wp);F.prototype.visitDurationSecond=R(xu);F.prototype.visitDurationMillisecond=R(Su);F.prototype.visitDurationMicrosecond=R(Iu);F.prototype.visitDurationNanosecond=R($u);F.prototype.visitFixedSizeList=R(GA);F.prototype.visitMap=R(jA);Xe=new F});var dr,lo,Un,Jp,Hp,KA,Gp=f(()=>{Hs();pi();Lt();dr=Symbol.for("parent"),lo=Symbol.for("rowIndex"),Un=class{constructor(e,r){return this[dr]=e,this[lo]=r,new Proxy(this,KA)}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[lo],r=this[dr],i=r.type.children,n={};for(let o=-1,s=i.length;++o<s;)n[i[o].name]=je.visit(r.children[o],e);return n}toString(){return`{${[...this].map(([e,r])=>`${cr(e)}: ${cr(r)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Jp(this[dr],this[lo])}},Jp=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,je.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}};Object.defineProperties(Un.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[dr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[lo]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});Hp=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=je.visit(e[dr].children[i],e[lo]);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?(Xe.visit(e[dr].children[n],e[lo],i),Reflect.set(e,r,i)):Reflect.has(e,r)||typeof r=="symbol"?Reflect.set(e,r,i):!1}},KA=new Hp});function j(t){return(e,r)=>e.getValid(r)?t(e,r):null}var N,YA,fo,XA,qA,Mw,QA,Rw,Vw,Nn,eB,Zw,tB,Ww,Jw,rB,Hw,nB,iB,oB,sB,Gw,Kw,Yw,Xw,aB,qw,Qw,ex,tx,cB,uB,rx,lB,dB,fB,nx,ix,pB,hB,ox,sx,ax,cx,ux,lx,dx,mB,gB,je,pi=f(()=>{Lp();vt();lr();ku();Gp();$r();Yr();qs();Je();N=class extends C{};YA=(t,e)=>864e5*t[e],fo=16,XA=12,qA=(t,e)=>null,Mw=(t,e,r)=>{if(r+1>=e.length)return null;let i=X(e[r]),n=X(e[r+1]);return t.subarray(i,n)},QA=({offset:t,values:e},r)=>{let i=t+r;return(e[i>>3]&1<<i%8)!==0},Rw=({values:t},e)=>YA(t,e),Vw=({values:t},e)=>X(t[e]),Nn=({stride:t,values:e},r)=>e[t*r],eB=({stride:t,values:e},r)=>cu(e[t*r]),Zw=({values:t},e)=>t[e],tB=({stride:t,values:e},r)=>e.subarray(t*r,t*(r+1)),Ww=({values:t,valueOffsets:e},r)=>Mw(t,e,r),Jw=(t,e)=>{var r;let i=t.values;if(!i)throw new Error("BinaryView data is missing view buffer");let n=e*fo,o=n+fo;if(n<0||o>i.length)throw new Error(`BinaryView data buffer is too short: expected ${fo} bytes, got ${Math.max(0,i.length-n)}`);let s=i.subarray(n,o);if(s.length<fo)throw new Error(`BinaryView data buffer is too short: expected ${fo} bytes, got ${s.length}`);let a=new DataView(i.buffer,s.byteOffset,fo),c=a.getInt32(0,!0);if(c<=0)return new Uint8Array(0);if(c<=XA)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)},rB=(t,e)=>Jw(t,e),Hw=({values:t,valueOffsets:e},r)=>{let i=Mw(t,e,r);return i!==null?eo(i):null},nB=(t,e)=>{let r=Jw(t,e);return eo(r)},iB=({values:t},e)=>t[e],oB=({type:t,values:e},r)=>t.precision!==ge.HALF?e[r]:cu(e[r]),sB=(t,e)=>t.type.unit===Le.DAY?Rw(t,e):Vw(t,e),Gw=({values:t},e)=>1e3*X(t[e]),Kw=({values:t},e)=>X(t[e]),Yw=({values:t},e)=>Op(t[e],BigInt(1e3)),Xw=({values:t},e)=>Op(t[e],BigInt(1e6)),aB=(t,e)=>{switch(t.type.unit){case z.SECOND:return Gw(t,e);case z.MILLISECOND:return Kw(t,e);case z.MICROSECOND:return Yw(t,e);case z.NANOSECOND:return Xw(t,e)}},qw=({values:t},e)=>t[e],Qw=({values:t},e)=>t[e],ex=({values:t},e)=>t[e],tx=({values:t},e)=>t[e],cB=(t,e)=>{switch(t.type.unit){case z.SECOND:return qw(t,e);case z.MILLISECOND:return Qw(t,e);case z.MICROSECOND:return ex(t,e);case z.NANOSECOND:return tx(t,e)}},uB=({values:t,stride:e},r)=>Ks.decimal(t.subarray(e*r,e*(r+1))),rx=(t,e)=>{let{valueOffsets:r,stride:i,children:n}=t,o=X(r[e*i]),s=X(r[e*i+1]),c=n[0].slice(o,s-o);return new B([c])},lB=(t,e)=>{let{valueOffsets:r,children:i}=t,{[e]:n,[e+1]:o}=r,s=i[0];return new Fr(s.slice(n,o-n))},dB=(t,e)=>new Un(t,e),fB=(t,e)=>t.type.mode===we.Dense?nx(t,e):ix(t,e),nx=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return je.visit(i,t.valueOffsets[e])},ix=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return je.visit(i,e)},pB=(t,e)=>{var r;return(r=t.dictionary)===null||r===void 0?void 0:r.get(t.values[e])},hB=(t,e)=>t.type.unit===ke.MONTH_DAY_NANO?ax(t,e):t.type.unit===ke.DAY_TIME?ox(t,e):sx(t,e),ox=({values:t},e)=>t.subarray(2*e,2*(e+1)),sx=({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},ax=({values:t},e)=>t.subarray(4*e,4*(e+1)),cx=({values:t},e)=>t[e],ux=({values:t},e)=>t[e],lx=({values:t},e)=>t[e],dx=({values:t},e)=>t[e],mB=(t,e)=>{switch(t.type.unit){case z.SECOND:return cx(t,e);case z.MILLISECOND:return ux(t,e);case z.MICROSECOND:return lx(t,e);case z.NANOSECOND:return dx(t,e)}},gB=(t,e)=>{let{stride:r,children:i}=t,o=i[0].slice(e*r,r);return new B([o])};N.prototype.visitNull=j(qA);N.prototype.visitBool=j(QA);N.prototype.visitInt=j(iB);N.prototype.visitInt8=j(Nn);N.prototype.visitInt16=j(Nn);N.prototype.visitInt32=j(Nn);N.prototype.visitInt64=j(Zw);N.prototype.visitUint8=j(Nn);N.prototype.visitUint16=j(Nn);N.prototype.visitUint32=j(Nn);N.prototype.visitUint64=j(Zw);N.prototype.visitFloat=j(oB);N.prototype.visitFloat16=j(eB);N.prototype.visitFloat32=j(Nn);N.prototype.visitFloat64=j(Nn);N.prototype.visitUtf8=j(Hw);N.prototype.visitLargeUtf8=j(Hw);N.prototype.visitUtf8View=j(nB);N.prototype.visitBinary=j(Ww);N.prototype.visitLargeBinary=j(Ww);N.prototype.visitBinaryView=j(rB);N.prototype.visitFixedSizeBinary=j(tB);N.prototype.visitDate=j(sB);N.prototype.visitDateDay=j(Rw);N.prototype.visitDateMillisecond=j(Vw);N.prototype.visitTimestamp=j(aB);N.prototype.visitTimestampSecond=j(Gw);N.prototype.visitTimestampMillisecond=j(Kw);N.prototype.visitTimestampMicrosecond=j(Yw);N.prototype.visitTimestampNanosecond=j(Xw);N.prototype.visitTime=j(cB);N.prototype.visitTimeSecond=j(qw);N.prototype.visitTimeMillisecond=j(Qw);N.prototype.visitTimeMicrosecond=j(ex);N.prototype.visitTimeNanosecond=j(tx);N.prototype.visitDecimal=j(uB);N.prototype.visitList=j(rx);N.prototype.visitLargeList=j(rx);N.prototype.visitStruct=j(dB);N.prototype.visitUnion=j(fB);N.prototype.visitDenseUnion=j(nx);N.prototype.visitSparseUnion=j(ix);N.prototype.visitDictionary=j(pB);N.prototype.visitInterval=j(hB);N.prototype.visitIntervalDayTime=j(ox);N.prototype.visitIntervalYearMonth=j(sx);N.prototype.visitIntervalMonthDayNano=j(ax);N.prototype.visitDuration=j(mB);N.prototype.visitDurationSecond=j(cx);N.prototype.visitDurationMillisecond=j(ux);N.prototype.visitDurationMicrosecond=j(lx);N.prototype.visitDurationNanosecond=j(dx);N.prototype.visitFixedSizeList=j(gB);N.prototype.visitMap=j(lB);je=new N});var En,ho,po,Kp,Fr,Yp,Xp,ku=f(()=>{vt();Hs();pi();Lt();En=Symbol.for("keys"),ho=Symbol.for("vals"),po=Symbol.for("kKeysAsStrings"),Kp=Symbol.for("_kKeysAsStrings"),Fr=class{constructor(e){return this[En]=new B([e.children[0]]).memoize(),this[ho]=e.children[1],new Proxy(this,new Xp)}get[po](){return this[Kp]||(this[Kp]=Array.from(this[En].toArray(),String))}[Symbol.iterator](){return new Yp(this[En],this[ho])}get size(){return this[En].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[En],r=this[ho],i={};for(let n=-1,o=e.length;++n<o;)i[e.get(n)]=je.visit(r,n);return i}toString(){return`{${[...this].map(([e,r])=>`${cr(e)}: ${cr(r)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},Yp=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),je.visit(this.vals,e)]})}},Xp=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[po]}has(e,r){return e[po].includes(r)}getOwnPropertyDescriptor(e,r){if(e[po].indexOf(r)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,r){if(Reflect.has(e,r))return e[r];let i=e[po].indexOf(r);if(i!==-1){let n=je.visit(Reflect.get(e,ho),i);return Reflect.set(e,r,n),n}}set(e,r,i){let n=e[po].indexOf(r);return n!==-1?(Xe.visit(Reflect.get(e,ho),n,i),Reflect.set(e,r,i)):Reflect.has(e,r)?Reflect.set(e,r,i):!1}};Object.defineProperties(Fr.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[En]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ho]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Kp]:{writable:!0,enumerable:!1,configurable:!1,value:null}})});var qp={};be(qp,{clampRange:()=>Qs,createElementComparator:()=>Ln,wrapIndex:()=>hi});function Qs(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&&(fx=o,o=s,s=fx),s>n&&(s=n),i?i(t,o,s):[o,s]}function Ln(t){if(typeof t!=="object"||t===null)return px(t)?px: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?qf(t,r):!1:t instanceof Map?vB(t):Array.isArray(t)?yB(t):t instanceof B?_B(t):bB(t,!0)}function yB(t){let e=[];for(let r=-1,i=t.length;++r<i;)e[r]=Ln(t[r]);return Du(e)}function vB(t){let e=-1,r=[];for(let i of t.values())r[++e]=Ln(i);return Du(r)}function _B(t){let e=[];for(let r=-1,i=t.length;++r<i;)e[r]=Ln(t.get(r));return Du(e)}function bB(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]=Ln(t[r[n]]);return Du(i,r)}function Du(t,e){return r=>{if(!r||typeof r!="object")return!1;switch(r.constructor){case Array:return wB(t,r);case Map:return hx(t,r,r.keys());case Fr:case Un:case Object:case void 0:return hx(t,r,e||Object.keys(r))}return r instanceof B?xB(t,r):!1}}function wB(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 xB(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 hx(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 fx,hi,px,mo=f(()=>{vt();ku();Gp();We();hi=(t,e)=>t<0?e+t:t,px=t=>t!==t});var Qp={};be(Qp,{BitIterator:()=>mi,getBit:()=>mx,getBool:()=>Bu,packBools:()=>yi,popcnt_array:()=>gx,popcnt_bit_range:()=>ea,popcnt_uint32:()=>Au,setBool:()=>SB,truncateBitmap:()=>gi});function Bu(t,e,r,i){return(r&1<<i)!==0}function mx(t,e,r,i){return(r&1<<i)>>i}function SB(t,e,r){return r?!!(t[e>>3]|=1<<e%8)||!0:!(t[e>>3]&=~(1<<e%8))&&!1}function gi(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):yi(new mi(r,t,e,null,Bu)).subarray(0,i)),n}return r}function yi(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 ea(t,e,r){if(r-e<=0)return 0;if(r-e<8){let o=0;for(let s of new mi(t,e,r-e,t,mx))o+=s;return o}let i=r>>3<<3,n=e+(e%8===0?0:8-e%8);return ea(t,e,n)+ea(t,i,r)+gx(t,n>>3,i-n>>3)}function gx(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+=Au(o.getUint32(n)),n+=4;for(;s-n>=2;)i+=Au(o.getUint16(n)),n+=2;for(;s-n>=1;)i+=Au(o.getUint8(n)),n+=1;return i}function Au(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 mi,go=f(()=>{mi=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 A(t){return $B.visit(t)}var IB,yx,J,eh,$B,fr=f(()=>{vt();Je();ye();go();ye();lr();We();IB=-1,yx=Symbol.for("apache-arrow/Data"),J=class t{static isData(e){return e?.[yx]===!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 I.isSparseUnion(e)?this.children.some(r=>r.nullable):I.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(I.isUnion(this.type))return this.children.reduce((i,n)=>i+n.nullCount,0);let e=this._nullCount,r;return e<=IB&&(r=this.nullBitmap)&&(this._nullCount=e=r.length===0?0:this.length-ea(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=Et(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(I.isUnion(r)){let i=r,n=this.typeIds[e],o=i.typeIdToChildIndex[n],s=this.children[o],a=this.valueOffsets,c=i.mode===we.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(I.isUnion(n)){let o=n,s=this.typeIds[e],a=o.typeIdToChildIndex[s],c=this.children[a],u=this.valueOffsets,l=o.mode===we.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(gi(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===p.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(gi(this.offset,r,this.nullBitmap),0);let o=this.buffers;return o[Ot.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[Ot.TYPE])&&(s[Ot.TYPE]=o.subarray(e,e+r)),I.isBinaryView(this.type)||I.isUtf8View(this.type)){let a=G.ELEMENT_WIDTH;(o=s[Ot.DATA])&&(s[Ot.DATA]=o.subarray(e*a,(e+r)*a))}else(o=s[Ot.OFFSET])&&(s[Ot.OFFSET]=o.subarray(e,e+r+1))||(o=s[Ot.DATA])&&(s[Ot.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))}};J.prototype.children=Object.freeze([]);J.prototype[yx]=!0;Object.defineProperty(J,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===J&&J.isData(e)}});eh=class t extends C{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{["type"]:r,["offset"]:i=0,["length"]:n=0}=e;return new J(r,i,n,n)}visitBool(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length>>3,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,o,n])}visitInt(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,o,n])}visitFloat(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,o,n])}visitUtf8(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.data),o=T(e.nullBitmap),s=ti(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new J(r,i,a,c,[s,n,o])}visitUtf8View(e){var r;let{["type"]:i,["offset"]:n=0}=e,o=Y(i.ArrayType,e.views),s=T(e.nullBitmap),a=(e.variadicBuffers||[]).map(l=>T(l)),c=(r=e.length)!==null&&r!==void 0?r:Math.trunc(o.length/mt.ELEMENT_WIDTH),u=e.nullBitmap?-1:0;return new J(i,n,c,u,[void 0,o,s],[],void 0,a)}visitLargeUtf8(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.data),o=T(e.nullBitmap),s=zs(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new J(r,i,a,c,[s,n,o])}visitBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.data),o=T(e.nullBitmap),s=ti(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new J(r,i,a,c,[s,n,o])}visitBinaryView(e){var r;let{["type"]:i,["offset"]:n=0}=e,o=Y(i.ArrayType,e.views),s=T(e.nullBitmap),a=(e.variadicBuffers||[]).map(l=>T(l)),c=(r=e.length)!==null&&r!==void 0?r:Math.trunc(o.length/G.ELEMENT_WIDTH),u=e.nullBitmap?-1:0;return new J(i,n,c,u,[void 0,o,s],[],void 0,a)}visitLargeBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.data),o=T(e.nullBitmap),s=zs(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new J(r,i,a,c,[s,n,o])}visitFixedSizeBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length/Et(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,o,n])}visitDate(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length/Et(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,o,n])}visitTimestamp(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length/Et(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,o,n])}visitTime(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length/Et(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,o,n])}visitDecimal(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length/Et(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,o,n])}visitList(e){let{["type"]:r,["offset"]:i=0,["child"]:n}=e,o=T(e.nullBitmap),s=ti(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new J(r,i,a,c,[s,void 0,o],[n])}visitLargeList(e){let{["type"]:r,["offset"]:i=0,["child"]:n}=e,o=T(e.nullBitmap),s=zs(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new J(r,i,a,c,[s,void 0,o],[n])}visitStruct(e){let{["type"]:r,["offset"]:i=0,["children"]:n=[]}=e,o=T(e.nullBitmap),{length:s=n.reduce((c,{length:u})=>Math.max(c,u),0),nullCount:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,void 0,o],n)}visitUnion(e){let{["type"]:r,["offset"]:i=0,["children"]:n=[]}=e,o=Y(r.ArrayType,e.typeIds),{["length"]:s=o.length,["nullCount"]:a=-1}=e;if(I.isSparseUnion(r))return new J(r,i,s,a,[void 0,void 0,void 0,o],n);let c=ti(e.valueOffsets);return new J(r,i,s,a,[c,void 0,void 0,o],n)}visitDictionary(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.indices.ArrayType,e.data),{["dictionary"]:s=new B([new t().visit({type:r.dictionary})])}=e,{["length"]:a=o.length,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new J(r,i,a,c,[void 0,o,n],[],s)}visitInterval(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length/Et(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(r,i,s,a,[void 0,o,n])}visitDuration(e){let{["type"]:r,["offset"]:i=0}=e,n=T(e.nullBitmap),o=Y(r.ArrayType,e.data),{["length"]:s=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(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=T(e.nullBitmap),{["length"]:s=n.length/Et(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new J(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=T(e.nullBitmap),s=ti(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new J(r,i,a,c,[s,void 0,o],[n])}},$B=new eh});function vx(t){return t.some(e=>e.nullable)}function zu(t){return t.reduce((e,r)=>e+r.nullCount,0)}function Tu(t){return t.reduce((e,r,i)=>(e[i+1]=e[i]+r.length,e),new Uint32Array(t.length+1))}function Ou(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 th(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 ra(t,e){return t.getValid(e)}function yo(t){function e(r,i,n){return t(r[i],n)}return function(r){let i=this.data;return th(i,this._offsets,r,e)}}function Uu(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=th(o,this._offsets,i,r);return e=void 0,s}}function Nu(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):th(o,this._offsets,n,r);return e=void 0,s}}var ta,Eu=f(()=>{ta=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 kB(t,e){return e===null&&t.length>0?0:-1}function DB(t,e){let{nullBitmap:r}=t;if(!r||t.nullCount<=0)return-1;let i=0;for(let n of new mi(r,t.offset+(e||0),t.length,r,Bu)){if(!n)return i;++i}return-1}function Z(t,e,r){if(e===void 0)return-1;if(e===null)switch(t.typeId){case p.Union:break;case p.Dictionary:break;default:return DB(t,r)}let i=je.getVisitFn(t),n=Ln(e);for(let o=(r||0)-1,s=t.length;++o<s;)if(n(i(t,o)))return o;return-1}function _x(t,e,r){let i=je.getVisitFn(t),n=Ln(e);for(let o=(r||0)-1,s=t.length;++o<s;)if(n(i(t,o)))return o;return-1}var E,vi,Lu=f(()=>{Je();lr();pi();go();mo();E=class extends C{};E.prototype.visitNull=kB;E.prototype.visitBool=Z;E.prototype.visitInt=Z;E.prototype.visitInt8=Z;E.prototype.visitInt16=Z;E.prototype.visitInt32=Z;E.prototype.visitInt64=Z;E.prototype.visitUint8=Z;E.prototype.visitUint16=Z;E.prototype.visitUint32=Z;E.prototype.visitUint64=Z;E.prototype.visitFloat=Z;E.prototype.visitFloat16=Z;E.prototype.visitFloat32=Z;E.prototype.visitFloat64=Z;E.prototype.visitUtf8=Z;E.prototype.visitLargeUtf8=Z;E.prototype.visitUtf8View=Z;E.prototype.visitBinary=Z;E.prototype.visitLargeBinary=Z;E.prototype.visitBinaryView=Z;E.prototype.visitFixedSizeBinary=Z;E.prototype.visitDate=Z;E.prototype.visitDateDay=Z;E.prototype.visitDateMillisecond=Z;E.prototype.visitTimestamp=Z;E.prototype.visitTimestampSecond=Z;E.prototype.visitTimestampMillisecond=Z;E.prototype.visitTimestampMicrosecond=Z;E.prototype.visitTimestampNanosecond=Z;E.prototype.visitTime=Z;E.prototype.visitTimeSecond=Z;E.prototype.visitTimeMillisecond=Z;E.prototype.visitTimeMicrosecond=Z;E.prototype.visitTimeNanosecond=Z;E.prototype.visitDecimal=Z;E.prototype.visitList=Z;E.prototype.visitLargeList=Z;E.prototype.visitStruct=Z;E.prototype.visitUnion=Z;E.prototype.visitDenseUnion=_x;E.prototype.visitSparseUnion=_x;E.prototype.visitDictionary=Z;E.prototype.visitInterval=Z;E.prototype.visitIntervalDayTime=Z;E.prototype.visitIntervalYearMonth=Z;E.prototype.visitIntervalMonthDayNano=Z;E.prototype.visitDuration=Z;E.prototype.visitDurationSecond=Z;E.prototype.visitDurationMillisecond=Z;E.prototype.visitDurationMicrosecond=Z;E.prototype.visitDurationNanosecond=Z;E.prototype.visitFixedSizeList=Z;E.prototype.visitMap=Z;vi=new E});function M(t){let{type:e}=t;if(t.nullCount===0&&t.stride===1&&(I.isInt(e)&&e.bitWidth!==64||I.isTime(e)&&e.bitWidth!==64||I.isFloat(e)&&e.precision!==ge.HALF))return new ta(t.data.length,i=>{let n=t.data[i];return n.values.subarray(0,n.length)[Symbol.iterator]()});let r=0;return new ta(t.data.length,i=>{let o=t.data[i].length,s=t.slice(r,r+o);return r+=o,new rh(s)})}var L,rh,vo,Pu=f(()=>{lr();Je();ye();Eu();L=class extends C{};rh=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}};L.prototype.visitNull=M;L.prototype.visitBool=M;L.prototype.visitInt=M;L.prototype.visitInt8=M;L.prototype.visitInt16=M;L.prototype.visitInt32=M;L.prototype.visitInt64=M;L.prototype.visitUint8=M;L.prototype.visitUint16=M;L.prototype.visitUint32=M;L.prototype.visitUint64=M;L.prototype.visitFloat=M;L.prototype.visitFloat16=M;L.prototype.visitFloat32=M;L.prototype.visitFloat64=M;L.prototype.visitUtf8=M;L.prototype.visitLargeUtf8=M;L.prototype.visitUtf8View=M;L.prototype.visitBinary=M;L.prototype.visitLargeBinary=M;L.prototype.visitBinaryView=M;L.prototype.visitFixedSizeBinary=M;L.prototype.visitDate=M;L.prototype.visitDateDay=M;L.prototype.visitDateMillisecond=M;L.prototype.visitTimestamp=M;L.prototype.visitTimestampSecond=M;L.prototype.visitTimestampMillisecond=M;L.prototype.visitTimestampMicrosecond=M;L.prototype.visitTimestampNanosecond=M;L.prototype.visitTime=M;L.prototype.visitTimeSecond=M;L.prototype.visitTimeMillisecond=M;L.prototype.visitTimeMicrosecond=M;L.prototype.visitTimeNanosecond=M;L.prototype.visitDecimal=M;L.prototype.visitList=M;L.prototype.visitLargeList=M;L.prototype.visitStruct=M;L.prototype.visitUnion=M;L.prototype.visitDenseUnion=M;L.prototype.visitSparseUnion=M;L.prototype.visitDictionary=M;L.prototype.visitInterval=M;L.prototype.visitIntervalDayTime=M;L.prototype.visitIntervalYearMonth=M;L.prototype.visitIntervalMonthDayNano=M;L.prototype.visitDuration=M;L.prototype.visitDurationSecond=M;L.prototype.visitDurationMillisecond=M;L.prototype.visitDurationMicrosecond=M;L.prototype.visitDurationNanosecond=M;L.prototype.visitFixedSizeList=M;L.prototype.visitMap=M;vo=new L});function _i(t){if(t){if(t instanceof J)return new B([t]);if(t instanceof B)return new B(t.data);if(t.type instanceof I)return new B([A(t)]);if(Array.isArray(t))return new B(t.flatMap(e=>AB(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 B([A(Object.assign(Object.assign({},e),{type:new ii}))]);if(t instanceof Int16Array)return new B([A(Object.assign(Object.assign({},e),{type:new oi}))]);if(t instanceof Int32Array)return new B([A(Object.assign(Object.assign({},e),{type:new Ut}))]);if(t instanceof BigInt64Array)return new B([A(Object.assign(Object.assign({},e),{type:new si}))]);if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return new B([A(Object.assign(Object.assign({},e),{type:new ai}))]);if(t instanceof Uint16Array)return new B([A(Object.assign(Object.assign({},e),{type:new ci}))]);if(t instanceof Uint32Array)return new B([A(Object.assign(Object.assign({},e),{type:new ui}))]);if(t instanceof BigUint64Array)return new B([A(Object.assign(Object.assign({},e),{type:new li}))]);if(t instanceof Float32Array)return new B([A(Object.assign(Object.assign({},e),{type:new di}))]);if(t instanceof Float64Array)return new B([A(Object.assign(Object.assign({},e),{type:new fi}))]);throw new Error("Unrecognized input")}}throw new Error("Unrecognized input")}function AB(t){return t instanceof J?[t]:t instanceof B?t.data:_i(t).data}var bx,wx,xx,Sx,B,Fu,vt=f(()=>{Je();mo();ye();fr();Eu();pi();Lt();Lu();Pu();ye();wx=Symbol.for("apache-arrow/Vector"),xx={},Sx={},B=class t{static isVector(e){return e?.[wx]===!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 J)))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}=xx[s.typeId],l=o[0];this.isValid=d=>ra(l,d),this.get=d=>a(l,d),this.set=(d,h)=>c(l,d,h),this.indexOf=d=>u(l,d),this._offsets=[0,l.length];break}default:Object.setPrototypeOf(this,Sx[s.typeId]),this._offsets=Tu(o);break}this.data=o,this.type=s,this.stride=Et(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 vx(this.data)}get nullCount(){return zu(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${p[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(hi(e,this.length))}set(e,r){}indexOf(e,r){return-1}includes(e,r){return this.indexOf(e,r)>-1}[Symbol.iterator](){return vo.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(Qs(this,e,r,({data:i,_offsets:n},o,s)=>Ou(i,n,o,s)))}toJSON(){return[...this]}toArray(){let{type:e,data:r,length:i,stride:n,ArrayType:o}=this;switch(e.typeId){case p.Int:case p.Float:case p.Decimal:case p.Time:case p.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 I.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(I.isDictionary(this.type)){let e=new Fu(this.data[0].dictionary),r=this.data.map(i=>{let n=i.clone();return n.dictionary=e,n});return new t(r)}return new Fu(this)}unmemoize(){if(I.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}};bx=Symbol.toStringTag;B[bx]=(t=>{t.type=I.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0,t[wx]=!0;let e=Object.keys(p).map(r=>p[r]).filter(r=>typeof r=="number"&&r!==p.NONE);for(let r of e){let i=je.getVisitFnByTypeId(r),n=Xe.getVisitFnByTypeId(r),o=vi.getVisitFnByTypeId(r);xx[r]={get:i,set:n,indexOf:o},Sx[r]=Object.create(t,{isValid:{value:yo(ra)},get:{value:yo(je.getVisitFnByTypeId(r))},set:{value:Uu(Xe.getVisitFnByTypeId(r))},indexOf:{value:Nu(vi.getVisitFnByTypeId(r))}})}return"Vector"})(B.prototype);Object.defineProperty(B,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===B&&B.isVector(e)}});Fu=class t extends B{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 B(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}});function Ix(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 ${BB(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 BB(t){return typeof t!="bigint"?cr(t):`${cr(t)}n`}var $x=f(()=>{Hs()});function nh(t,e){let r=Math.ceil(t)*e-1;return(r-r%64+64||64)/e}function kx(t,e=0){return t.length>=e?t.subarray(0,e):Bs(new t.constructor(e),t,0)}var _t,rn,_o,Pn,pr=f(()=>{We();_t=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?nh(i*1,this.BYTES_PER_ELEMENT):nh(i*2,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=nh(e*this.stride,this.BYTES_PER_ELEMENT);let r=kx(this.buffer,e);return this.clear(),r}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(e){return this.buffer=kx(this.buffer,e)}},rn=class extends _t{last(){return this.get(this.length-1)}get(e){return this.buffer[e]}set(e,r){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=r,this}},_o=class extends rn{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()}},Pn=class extends rn{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 Se,Me,nt,ze=f(()=>{vt();fr();ku();ye();$x();pr();Se=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=Et(e),this._nulls=new _o,r&&r.length>0&&(this._isValid=Ix(r))}toVector(){return new B([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 h=this.children.map(m=>m.flush());return this.clear(),A({type:o,length:s,nullCount:a,children:h,child:h[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}};Se.prototype.length=1;Se.prototype.stride=1;Se.prototype.children=null;Se.prototype.finished=!1;Se.prototype.nullValues=null;Se.prototype._isValid=()=>!0;Me=class extends Se{constructor(e){super(e),this._values=new rn(this.ArrayType,0,this.stride)}setValue(e,r){let i=this._values;return i.reserve(e-i.length+1),super.setValue(e,r)}},nt=class extends Se{constructor(e){super(e),this._pendingLength=0,this._offsets=new Pn(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 Fr?r[En].length:r.length,i.set(e,r)}setValid(e,r){return super.setValid(e,r)?!0:((this._pending||(this._pending=new Map)).set(e,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let e=this._pending,r=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,r),this}}});var bi,ih=f(()=>{bi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,r,i,n){return e.prep(8,24),e.writeInt64(BigInt(n??0)),e.pad(4),e.writeInt32(i),e.writeInt64(BigInt(r??0)),e.offset()}}});var Pt,Dx=f(()=>{ie();ih();io();ru();Bp();Pt=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):he.V1}schema(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new ht).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}dictionaries(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new bi).__init(this.bb.__vector(this.bb_pos+i)+e*24,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,r){let i=this.bb.__offset(this.bb_pos,10);return i?(r||new bi).__init(this.bb.__vector(this.bb_pos+i)+e*24,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,12);return i?(r||new Oe).__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,he.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 Cu(t,e){return new Map([...t||new Map,...e||new Map])}function oh(t,e=new Map){for(let r=-1,i=t.length;++r<i;){let o=t[r].type;if(I.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&&oh(o.children,e)}return e}var Ax,Bx,Q,V,ct=f(()=>{Je();ye();Ax=Symbol.for("apache-arrow/Schema"),Bx=Symbol.for("apache-arrow/Field"),Q=class t{static isSchema(e){return e?.[Ax]===!0}constructor(e=[],r,i,n=he.V5){this.fields=e||[],this.metadata=r||new Map,i||(i=oh(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=Cu(Cu(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:Cu(Cu(new Map,i[c].metadata),a.metadata)}))&&!1:!0}),s=oh(o,new Map);return new t([...i,...o],n,new Map([...this.dictionaries,...s]))}};Q.prototype.fields=null;Q.prototype.metadata=null;Q.prototype.dictionaries=null;Q.prototype[Ax]=!0;Object.defineProperty(Q,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===Q&&Q.isSchema(e)}});V=class t{static isField(e){return e?.[Bx]===!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)}};V.prototype.type=null;V.prototype.name=null;V.prototype.nullable=null;V.prototype.metadata=null;V.prototype[Bx]=!0;Object.defineProperty(V,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===V&&V.isField(e)}})});var zB,TB,nn,sh,on,ah=f(()=>{ih();Dx();ie();ct();Je();We();$r();zB=ri,TB=Ye,nn=class{static decode(e){e=new TB(T(e));let r=Pt.getRootAsFooter(e),i=Q.decode(r.schema(),new Map,r.version());return new sh(i,r)}static encode(e){let r=new zB,i=Q.encode(r,e.schema);Pt.startRecordBatchesVector(r,e.numRecordBatches);for(let s of[...e.recordBatches()].slice().reverse())on.encode(r,s);let n=r.endVector();Pt.startDictionariesVector(r,e.numDictionaries);for(let s of[...e.dictionaryBatches()].slice().reverse())on.encode(r,s);let o=r.endVector();return Pt.startFooter(r),Pt.addSchema(r,i),Pt.addVersion(r,he.V5),Pt.addRecordBatches(r,n),Pt.addDictionaries(r,o),Pt.finishFooterBuffer(r,Pt.endFooter(r)),r.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,r=he.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}},sh=class extends nn{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 on.decode(r)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){let r=this._footer.dictionaries(e);if(r)return on.decode(r)}return null}},on=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 bi.createBlock(e,n,i,o)}constructor(e,r,i){this.metaDataLength=e,this.offset=X(i),this.bodyLength=X(r)}}});var Ft,zx=f(()=>{ie();io();zp();ru();Ft=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):he.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):re.NONE}header(e){let r=this.bb.__offset(this.bb_pos,8);return r?this.bb.__union(e,this.bb_pos+r):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,12);return i?(r||new Oe).__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,he.V1)}static addHeaderType(e,r){e.addFieldInt8(1,r,re.NONE)}static addHeader(e,r){e.addFieldOffset(2,r,0)}static addBodyLength(e,r){e.addFieldInt64(3,r,BigInt("0"))}static addCustomMetadata(e,r){e.addFieldOffset(4,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,r){e.finish(r)}static finishSizePrefixedMessageBuffer(e,r){e.finish(r,void 0,!0)}static createMessage(e,r,i,n,o,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 ch,ju,Tx=f(()=>{lr();Qb();au();wp();Jb();Hb();Kb();Gb();tw();rw();Xb();yp();gp();Ip();$p();xp();vp();qb();Yb();ew();kp();mp();_p();bp();Sp();ch=class extends C{visit(e,r){return e==null||r==null?void 0:super.visit(e,r)}visitNull(e,r){return Vs.startNull(r),Vs.endNull(r)}visitInt(e,r){return sr.startInt(r),sr.addBitWidth(r,e.bitWidth),sr.addIsSigned(r,e.isSigned),sr.endInt(r)}visitFloat(e,r){return zn.startFloatingPoint(r),zn.addPrecision(r,e.precision),zn.endFloatingPoint(r)}visitBinary(e,r){return Ls.startBinary(r),Ls.endBinary(r)}visitBinaryView(e,r){return Ps.startBinaryView(r),Ps.endBinaryView(r)}visitLargeBinary(e,r){return Cs.startLargeBinary(r),Cs.endLargeBinary(r)}visitBool(e,r){return Fs.startBool(r),Fs.endBool(r)}visitUtf8(e,r){return Ws.startUtf8(r),Ws.endUtf8(r)}visitUtf8View(e,r){return Js.startUtf8View(r),Js.endUtf8View(r)}visitLargeUtf8(e,r){return Ms.startLargeUtf8(r),Ms.endLargeUtf8(r)}visitDecimal(e,r){return Ir.startDecimal(r),Ir.addScale(r,e.scale),Ir.addPrecision(r,e.precision),Ir.addBitWidth(r,e.bitWidth),Ir.endDecimal(r)}visitDate(e,r){return kn.startDate(r),kn.addUnit(r,e.unit),kn.endDate(r)}visitTime(e,r){return Qr.startTime(r),Qr.addUnit(r,e.unit),Qr.addBitWidth(r,e.bitWidth),Qr.endTime(r)}visitTimestamp(e,r){let i=e.timezone&&r.createString(e.timezone)||void 0;return en.startTimestamp(r),en.addUnit(r,e.unit),i!==void 0&&en.addTimezone(r,i),en.endTimestamp(r)}visitInterval(e,r){return Tn.startInterval(r),Tn.addUnit(r,e.unit),Tn.endInterval(r)}visitDuration(e,r){return Dn.startDuration(r),Dn.addUnit(r,e.unit),Dn.endDuration(r)}visitList(e,r){return Rs.startList(r),Rs.endList(r)}visitLargeList(e,r){return js.startLargeList(r),js.endLargeList(r)}visitStruct(e,r){return Zs.startStruct_(r),Zs.endStruct_(r)}visitUnion(e,r){ar.startTypeIdsVector(r,e.typeIds.length);let i=ar.createTypeIdsVector(r,e.typeIds);return ar.startUnion(r),ar.addMode(r,e.mode),ar.addTypeIds(r,i),ar.endUnion(r)}visitDictionary(e,r){let i=this.visit(e.indices,r);return Sr.startDictionaryEncoding(r),Sr.addId(r,BigInt(e.id)),Sr.addIsOrdered(r,e.isOrdered),i!==void 0&&Sr.addIndexType(r,i),Sr.endDictionaryEncoding(r)}visitFixedSizeBinary(e,r){return An.startFixedSizeBinary(r),An.addByteWidth(r,e.byteWidth),An.endFixedSizeBinary(r)}visitFixedSizeList(e,r){return Bn.startFixedSizeList(r),Bn.addListSize(r,e.listSize),Bn.endFixedSizeList(r)}visitMap(e,r){return On.startMap(r),On.addKeysSorted(r,e.keysSorted),On.endMap(r)}},ju=new ch});function Ex(t,e=new Map){return new Q(OB(t,e),Mu(t.metadata),e)}function uh(t){return new Re(t.count,Px(t.columns),Fx(t.columns),null,Cx(t.columns))}function Lx(t){return new it(uh(t.data),t.id,t.isDelta)}function OB(t,e){return(t.fields||[]).filter(Boolean).map(r=>V.fromJSON(r,e))}function Ox(t,e){return(t.children||[]).filter(Boolean).map(r=>V.fromJSON(r,e))}function Px(t){return(t||[]).reduce((e,r)=>[...e,new Yt(r.count,UB(r.VALIDITY)),...Px(r.children)],[])}function Fx(t,e=[]){for(let r=-1,i=(t||[]).length;++r<i;){let n=t[r];if(n.VALIDITY&&e.push(new Ne(e.length,n.VALIDITY.length)),n.TYPE_ID&&e.push(new Ne(e.length,n.TYPE_ID.length)),n.OFFSET&&e.push(new Ne(e.length,n.OFFSET.length)),n.DATA&&e.push(new Ne(e.length,n.DATA.length)),n.VIEWS&&e.push(new Ne(e.length,n.VIEWS.length)),n.VARIADIC_DATA_BUFFERS)for(let o of n.VARIADIC_DATA_BUFFERS)e.push(new Ne(e.length,o.length));e=Fx(n.children,e)}return e}function UB(t){return(t||[]).reduce((e,r)=>e+ +(r===0),0)}function Cx(t){return(t||[]).reduce((e,r)=>[...e,...r.VARIADIC_DATA_BUFFERS?[r.VARIADIC_DATA_BUFFERS.length]:[],...Cx(r.children)],[])}function jx(t,e){let r,i,n,o,s,a;return!e||!(o=t.dictionary)?(s=Nx(t,Ox(t,e)),n=new V(t.name,s,t.nullable,Mu(t.metadata))):e.has(r=o.id)?(i=(i=o.indexType)?Ux(i):new Ut,a=new yt(e.get(r),i,r,o.isOrdered),n=new V(t.name,a,t.nullable,Mu(t.metadata))):(i=(i=o.indexType)?Ux(i):new Ut,e.set(r,s=Nx(t,Ox(t,e))),a=new yt(s,i,r,o.isOrdered),n=new V(t.name,a,t.nullable,Mu(t.metadata))),n||null}function Mu(t=[]){return new Map(t.map(({key:e,value:r})=>[e,r]))}function Ux(t){return new Ce(t.isSigned,t.bitWidth)}function Nx(t,e){let r=t.type.name;switch(r){case"NONE":return new rt;case"null":return new rt;case"binary":return new kr;case"largebinary":return new Dr;case"binaryview":return new G;case"utf8":return new Ar;case"largeutf8":return new Br;case"utf8view":return new mt;case"bool":return new zr;case"list":return new Jt((e||[])[0]);case"largelist":return new Ht((e||[])[0]);case"struct":return new xe(e||[]);case"struct_":return new xe(e||[])}switch(r){case"int":{let i=t.type;return new Ce(i.isSigned,i.bitWidth)}case"floatingpoint":{let i=t.type;return new Nt(ge[i.precision])}case"decimal":{let i=t.type;return new Tr(i.scale,i.precision,i.bitWidth)}case"date":{let i=t.type;return new Or(Le[i.unit])}case"time":{let i=t.type;return new Ur(z[i.unit],i.bitWidth)}case"timestamp":{let i=t.type;return new Nr(z[i.unit],i.timezone)}case"interval":{let i=t.type;return new Er(ke[i.unit])}case"duration":{let i=t.type;return new Lr(z[i.unit])}case"union":{let i=t.type,[n,...o]=(i.mode+"").toLowerCase(),s=n.toUpperCase()+o.join("");return new Gt(we[s],i.typeIds||[],e||[])}case"fixedsizebinary":{let i=t.type;return new Pr(i.byteWidth)}case"fixedsizelist":{let i=t.type;return new gt(i.listSize,(e||[])[0])}case"map":{let i=t.type;return new Kt((e||[])[0],i.keysSorted)}}throw new Error(`Unrecognized type: "${r}"`)}var Mx=f(()=>{ct();ye();wi();Je()});function LB(t,e){return(()=>{switch(e){case re.Schema:return Q.fromJSON(t);case re.RecordBatch:return Re.fromJSON(t);case re.DictionaryBatch:return it.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${re[e]}, type: ${e} }`)})}function PB(t,e){return(()=>{switch(e){case re.Schema:return Q.decode(t.header(new ht),new Map,t.version());case re.RecordBatch:return Re.decode(t.header(new et),t.version());case re.DictionaryBatch:return it.decode(t.header(new qr),t.version())}throw new Error(`Unrecognized Message type: { name: ${re[e]}, type: ${e} }`)})}function FB(t,e=new Map,r=he.V5){let i=JB(t,e);return new Q(i,Ru(t),e,r)}function CB(t,e=he.V5){return new Re(t.length(),VB(t),ZB(t,e),Wx(t.compression()),WB(t))}function jB(t,e=he.V5){return new it(Re.decode(t.data(),e),t.id(),t.isDelta())}function MB(t){return new Ne(t.offset(),t.length())}function RB(t){return new Yt(t.length(),t.nullCount())}function VB(t){let e=[];for(let r,i=-1,n=-1,o=t.nodesLength();++i<o;)(r=t.nodes(i))&&(e[++n]=Yt.decode(r));return e}function ZB(t,e){let r=[];for(let i,n=-1,o=-1,s=t.buffersLength();++n<s;)(i=t.buffers(n))&&(e<he.V4&&(i.bb_pos+=8*(n+1)),r[++o]=Ne.decode(i));return r}function WB(t){let e=[],r=Math.trunc(t.variadicBufferCountsLength());for(let i=0;i<r;++i)e.push(X(t.variadicBufferCounts(i)));return e}function JB(t,e){let r=[];for(let i,n=-1,o=-1,s=t.fieldsLength();++n<s;)(i=t.fields(n))&&(r[++o]=V.decode(i,e));return r}function Rx(t,e){let r=[];for(let i,n=-1,o=-1,s=t.childrenLength();++n<s;)(i=t.children(n))&&(r[++o]=V.decode(i,e));return r}function HB(t,e){let r,i,n,o,s,a;return!e||!(a=t.dictionary())?(n=Zx(t,Rx(t,e)),i=new V(t.name(),n,t.nullable(),Ru(t))):e.has(r=X(a.id()))?(o=(o=a.indexType())?Vx(o):new Ut,s=new yt(e.get(r),o,r,a.isOrdered()),i=new V(t.name(),s,t.nullable(),Ru(t))):(o=(o=a.indexType())?Vx(o):new Ut,e.set(r,n=Zx(t,Rx(t,e))),s=new yt(n,o,r,a.isOrdered()),i=new V(t.name(),s,t.nullable(),Ru(t))),i||null}function Ru(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 GB(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 Vx(t){return new Ce(t.isSigned(),t.bitWidth())}function Zx(t,e){let r=t.typeType();switch(r){case de.NONE:return new rt;case de.Null:return new rt;case de.Binary:return new kr;case de.LargeBinary:return new Dr;case de.BinaryView:return new G;case de.Utf8:return new Ar;case de.LargeUtf8:return new Br;case de.Utf8View:return new mt;case de.Bool:return new zr;case de.List:return new Jt((e||[])[0]);case de.LargeList:return new Ht((e||[])[0]);case de.Struct_:return new xe(e||[])}switch(r){case de.Int:{let i=t.type(new sr);return new Ce(i.isSigned(),i.bitWidth())}case de.FloatingPoint:{let i=t.type(new zn);return new Nt(i.precision())}case de.Decimal:{let i=t.type(new Ir);return new Tr(i.scale(),i.precision(),i.bitWidth())}case de.Date:{let i=t.type(new kn);return new Or(i.unit())}case de.Time:{let i=t.type(new Qr);return new Ur(i.unit(),i.bitWidth())}case de.Timestamp:{let i=t.type(new en);return new Nr(i.unit(),i.timezone())}case de.Interval:{let i=t.type(new Tn);return new Er(i.unit())}case de.Duration:{let i=t.type(new Dn);return new Lr(i.unit())}case de.Union:{let i=t.type(new ar);return new Gt(i.mode(),i.typeIdsArray()||[],e||[])}case de.FixedSizeBinary:{let i=t.type(new An);return new Pr(i.byteWidth())}case de.FixedSizeList:{let i=t.type(new Bn);return new gt(i.listSize(),(e||[])[0])}case de.Map:{let i=t.type(new On);return new Kt((e||[])[0],i.keysSorted())}}throw new Error(`Unrecognized type: "${de[r]}" (${r})`)}function Wx(t){return t?new xi(t.codec(),t.method()):null}function KB(t,e){let r=e.fields.map(o=>V.encode(t,o));ht.startFieldsVector(t,r.length);let i=ht.createFieldsVector(t,r),n=e.metadata&&e.metadata.size>0?ht.createCustomMetadataVector(t,[...e.metadata].map(([o,s])=>{let a=t.createString(`${o}`),c=t.createString(`${s}`);return Oe.startKeyValue(t),Oe.addKey(t,a),Oe.addValue(t,c),Oe.endKeyValue(t)})):-1;return ht.startSchema(t),ht.addFields(t,i),ht.addEndianness(t,tz?$n.Little:$n.Big),n!==-1&&ht.addCustomMetadata(t,n),ht.endSchema(t)}function YB(t,e){let r=-1,i=-1,n=-1,o=e.type,s=e.typeId;I.isDictionary(o)?(s=o.dictionary.typeId,n=ju.visit(o,t),i=ju.visit(o.dictionary,t)):i=ju.visit(o,t);let a=(o.children||[]).map(l=>V.encode(t,l)),c=tt.createChildrenVector(t,a),u=e.metadata&&e.metadata.size>0?tt.createCustomMetadataVector(t,[...e.metadata].map(([l,d])=>{let h=t.createString(`${l}`),m=t.createString(`${d}`);return Oe.startKeyValue(t),Oe.addKey(t,h),Oe.addValue(t,m),Oe.endKeyValue(t)})):-1;return e.name&&(r=t.createString(e.name)),tt.startField(t),tt.addType(t,i),tt.addTypeType(t,s),tt.addChildren(t,c),tt.addNullable(t,!!e.nullable),r!==-1&&tt.addName(t,r),n!==-1&&tt.addDictionary(t,n),u!==-1&&tt.addCustomMetadata(t,u),tt.endField(t)}function XB(t,e){let r=e.nodes||[],i=e.buffers||[],n=e.variadicBufferCounts||[];et.startNodesVector(t,r.length);for(let u of r.slice().reverse())Yt.encode(t,u);let o=t.endVector();et.startBuffersVector(t,i.length);for(let u of i.slice().reverse())Ne.encode(t,u);let s=t.endVector(),a=null;e.compression!==null&&(a=Jx(t,e.compression));let c=-1;return n.length>0&&(c=et.createVariadicBufferCountsVector(t,n.map(BigInt))),et.startRecordBatch(t),et.addLength(t,BigInt(e.length)),et.addNodes(t,o),et.addBuffers(t,s),e.compression!==null&&a&&et.addCompression(t,a),c!==-1&&et.addVariadicBufferCounts(t,c),et.endRecordBatch(t)}function Jx(t,e){return Xr.startBodyCompression(t),Xr.addCodec(t,e.type),Xr.addMethod(t,e.method),Xr.endBodyCompression(t)}function qB(t,e){let r=Re.encode(t,e.data);return qr.startDictionaryBatch(t),qr.addId(t,BigInt(e.id)),qr.addIsDelta(t,e.isDelta),qr.addData(t,r),qr.endDictionaryBatch(t)}function QB(t,e){return no.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))}function ez(t,e){return ro.createBuffer(t,BigInt(e.offset),BigInt(e.length))}var NB,EB,bt,Re,it,Ne,Yt,xi,tz,wi=f(()=>{ie();Bp();au();pp();Zb();dp();Ap();fp();Dp();io();hp();wp();yp();gp();Ip();$p();xp();vp();kp();_p();bp();Sp();zx();lp();up();ct();We();$r();Je();Tx();Mx();ye();NB=ri,EB=Ye,bt=class t{static fromJSON(e,r){let i=new t(0,he.V5,r);return i._createHeader=LB(e,r),i}static decode(e){e=new EB(T(e));let r=Ft.getRootAsMessage(e),i=r.bodyLength(),n=r.version(),o=r.headerType(),s=GB(r),a=new t(i,n,o,void 0,s);return a._createHeader=PB(r,o),a}static encode(e){let r=new NB,i=-1;e.isSchema()?i=Q.encode(r,e.header()):e.isRecordBatch()?i=Re.encode(r,e.header()):e.isDictionaryBatch()&&(i=it.encode(r,e.header()));let n=e.metadata&&e.metadata.size>0?Ft.createCustomMetadataVector(r,[...e.metadata].map(([o,s])=>{let a=r.createString(`${o}`),c=r.createString(`${s}`);return Oe.startKeyValue(r),Oe.addKey(r,a),Oe.addValue(r,c),Oe.endKeyValue(r)})):-1;return Ft.startMessage(r),Ft.addVersion(r,he.V5),Ft.addHeader(r,i),Ft.addHeaderType(r,e.headerType),Ft.addBodyLength(r,BigInt(e.bodyLength)),n!==-1&&Ft.addCustomMetadata(r,n),Ft.finishMessageBuffer(r,Ft.endMessage(r)),r.asUint8Array()}static from(e,r=0){if(e instanceof Q)return new t(0,he.V5,re.Schema,e);if(e instanceof Re)return new t(r,he.V5,re.RecordBatch,e,e.metadata);if(e instanceof it)return new t(r,he.V5,re.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get compression(){return this._compression}get bodyLength(){return this._bodyLength}get metadata(){return this._metadata}header(){return this._createHeader()}isSchema(){return this.headerType===re.Schema}isRecordBatch(){return this.headerType===re.RecordBatch}isDictionaryBatch(){return this.headerType===re.DictionaryBatch}constructor(e,r,i,n,o){this._version=r,this._headerType=i,this.body=new Uint8Array(0),this._compression=n?.compression,n&&(this._createHeader=()=>n),this._bodyLength=X(e),this._metadata=o||new Map}},Re=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=X(e),this._compression=n,this._variadicBufferCounts=o,this._metadata=s||new Map}},it=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=X(r)}},Ne=class{constructor(e,r){this.offset=X(e),this.length=X(r)}},Yt=class{constructor(e,r){this.length=X(e),this.nullCount=X(r)}},xi=class{constructor(e,r=ni.BUFFER){this.type=e,this.method=r}};V.encode=YB;V.decode=HB;V.fromJSON=jx;Q.encode=KB;Q.decode=FB;Q.fromJSON=Ex;Re.encode=XB;Re.decode=CB;Re.fromJSON=uh;it.encode=qB;it.decode=jB;it.fromJSON=Lx;Yt.encode=QB;Yt.decode=RB;Ne.encode=ez;Ne.decode=MB;xi.encode=Jx;xi.decode=Wx;tz=(()=>{let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})()});var De,na,Si,Vu,ia=f(()=>{Bt();Ts();De=Object.freeze({done:!0,value:void 0}),na=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}},Si=class{tee(){return this._getDOMStream().tee()}pipe(e,r){return this._getNodeStream().pipe(e,r)}pipeTo(e,r){return this._getDOMStream().pipeTo(e,r)}pipeThrough(e,r){return this._getDOMStream().pipeThrough(e,r)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}},Vu=class extends Si{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return k(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(De);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Ke.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Ke.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return k(this,void 0,void 0,function*(){return yield this.abort(e),De})}return(e){return k(this,void 0,void 0,function*(){return yield this.close(),De})}read(e){return k(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return k(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(De)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}});var Cr,jr,Xt,lh,sn,Ii=f(()=>{Bt();Ts();Yr();ia();We();ei();Cr=class extends Vu{write(e){if((e=T(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?eo(this.toUint8Array(!0)):this.toUint8Array(!1).then(eo)}toUint8Array(e=!1){return e?Tt(this._values)[0]:k(this,void 0,void 0,function*(){var r,i,n,o;let s=[],a=0;try{for(var c=!0,u=tr(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 Tt(s,a)[0]})}},jr=class{constructor(e){e&&(this.source=new lh(Ke.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)}},Xt=class t{constructor(e){e instanceof t?this.source=e.source:e instanceof Cr?this.source=new sn(Ke.fromAsyncIterable(e)):Qc(e)?this.source=new sn(Ke.fromNodeStream(e)):As(e)?this.source=new sn(Ke.fromDOMStream(e)):Xc(e)?this.source=new sn(Ke.fromDOMStream(e.body)):nr(e)?this.source=new sn(Ke.fromIterable(e)):rr(e)?this.source=new sn(Ke.fromAsyncIterable(e)):Zt(e)&&(this.source=new sn(Ke.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)}},lh=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)||De)}return(e){return Object.create(this.source.return&&this.source.return(e)||De)}},sn=class{constructor(e){this.source=e,this._closedPromise=new Promise(r=>this._closedPromiseResolve=r)}cancel(e){return k(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return k(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return k(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e){return k(this,arguments,void 0,function*(r,i="read"){return yield this.source.next({cmd:i,size:r})})}throw(e){return k(this,void 0,void 0,function*(){let r=this.source.throw&&(yield this.source.throw(e))||De;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}return(e){return k(this,void 0,void 0,function*(){let r=this.source.return&&(yield this.source.return(e))||De;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}}});var oa,Fn,dh=f(()=>{Bt();Ii();We();oa=class extends jr{constructor(e,r){super(),this.position=0,this.buffer=T(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}}},Fn=class extends Xt{constructor(e,r){super(),this.position=0,this._handle=e,typeof r=="number"?this.size=r:this._pending=k(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return k(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 k(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 k(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 k(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 k(this,void 0,void 0,function*(){let e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return k(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return k(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}});var ph={};be(ph,{BaseInt64:()=>sa,Int128:()=>aa,Int64:()=>an,Uint64:()=>Ue});function bo(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}var wo,fh,sa,Ue,an,aa,hh=f(()=>{wo=8,fh=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],sa=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`${bo(this.buffer[1])} ${bo(this.buffer[0])}`}},Ue=class t extends sa{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=wo<i-o?wo:i-o,a=new t(new Uint32Array([Number.parseInt(e.slice(o,o+s),10),0])),c=new t(new Uint32Array([fh[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)}},an=class t extends sa{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=wo<n-s?wo:n-s,c=new t(new Uint32Array([Number.parseInt(e.slice(s,s+a),10),0])),u=new t(new Uint32Array([fh[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)}},aa=class t{constructor(e){this.buffer=e}high(){return new an(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new an(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 Ue(new Uint32Array([this.buffer[3],0])),i=new Ue(new Uint32Array([this.buffer[2],0])),n=new Ue(new Uint32Array([this.buffer[1],0])),o=new Ue(new Uint32Array([this.buffer[0],0])),s=new Ue(new Uint32Array([e.buffer[3],0])),a=new Ue(new Uint32Array([e.buffer[2],0])),c=new Ue(new Uint32Array([e.buffer[1],0])),u=new Ue(new Uint32Array([e.buffer[0],0])),l=Ue.multiply(o,u);this.buffer[0]=l.low();let d=new Ue(new Uint32Array([l.high(),0]));return l=Ue.multiply(n,u),d.plus(l),l=Ue.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 Ue(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Ue.multiply(i,u)).plus(Ue.multiply(n,c)).plus(Ue.multiply(o,a)),this.buffer[3]+=Ue.multiply(r,u).plus(Ue.multiply(i,c)).plus(Ue.multiply(n,a)).plus(Ue.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`${bo(this.buffer[3])} ${bo(this.buffer[2])} ${bo(this.buffer[1])} ${bo(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=wo<n-s?wo:n-s,c=new t(new Uint32Array([Number.parseInt(e.slice(s,s+a),10),0,0,0])),u=new t(new Uint32Array([fh[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 yh={};be(yh,{toIntervalDayTimeInt32Array:()=>mh,toIntervalDayTimeObjects:()=>rz,toIntervalMonthDayNanoInt32Array:()=>gh,toIntervalMonthDayNanoObjects:()=>nz});function mh(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 gh(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 rz(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 nz(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 vh=f(()=>{});function Gx(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 iz(t){return Gx(t.join(""))}function Kx(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 oz(t){return Kx(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 sz(t){return Kx(t,e=>new TextEncoder().encode(e))}var xo,Zu,Wu,Yx=f(()=>{fr();ct();ye();lr();go();Yr();hh();Je();We();vh();xo=class extends C{constructor(e,r,i,n,o=he.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 V?e.type:e)}visitNull(e,{length:r}=this.nextFieldNode()){return A({type:e,length:r})}visitBool(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitInt(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFloat(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitUtf8(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({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 A({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 A({type:e,length:r,nullCount:i,nullBitmap:n,views:o,variadicBuffers:s})}visitBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({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 A({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 A({type:e,length:r,nullCount:i,nullBitmap:n,views:o,variadicBuffers:s})}visitFixedSizeBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDate(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTimestamp(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTime(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDecimal(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitList(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({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 A({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 A({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<he.V5&&this.readNullBitmap(e,i),e.mode===we.Sparse?this.visitSparseUnion(e,{length:r,nullCount:i}):this.visitDenseUnion(e,{length:r,nullCount:i})}visitDenseUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({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 A({type:e,length:r,nullCount:i,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({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 A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDuration(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFixedSizeList(e,{length:r,nullCount:i}=this.nextFieldNode()){return A({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 A({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)}},Zu=class extends xo{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):yi(this.sources[i])}readOffsets(e,{offset:r}=this.nextBufferRange()){return Y(Uint8Array,Y(e.OffsetArrayType,this.sources[r]))}readTypeIds(e,{offset:r}=this.nextBufferRange()){return Y(Uint8Array,Y(e.ArrayType,this.sources[r]))}readData(e,{offset:r}=this.nextBufferRange()){let{sources:i}=this;if(I.isTimestamp(e))return Y(Uint8Array,an.convertArray(i[r]));if((I.isInt(e)||I.isTime(e))&&e.bitWidth===64||I.isDuration(e))return Y(Uint8Array,an.convertArray(i[r]));if(I.isDate(e)&&e.unit===Le.MILLISECOND)return Y(Uint8Array,an.convertArray(i[r]));if(I.isDecimal(e))return Y(Uint8Array,aa.convertArray(i[r]));if(I.isBinary(e)||I.isLargeBinary(e)||I.isFixedSizeBinary(e))return iz(i[r]);if(I.isBinaryView(e))return oz(i[r]);if(I.isUtf8View(e))return sz(i[r]);if(I.isBool(e))return yi(i[r]);if(I.isUtf8(e)||I.isLargeUtf8(e))return zt(i[r].join(""));if(I.isInterval(e))switch(e.unit){case ke.DAY_TIME:return mh(i[r]);case ke.MONTH_DAY_NANO:return gh(i[r]);default:break}return Y(Uint8Array,Y(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(Gx(o))}return r}};Wu=class extends xo{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 So,_h=f(()=>{pr();ze();We();So=class extends nt{constructor(e){super(e),this._values=new _t(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,T(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 Io,bh=f(()=>{We();pr();ze();Io=class extends nt{constructor(e){super(e),this._values=new _t(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,T(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 Ju,Xx=f(()=>{pr();ze();Ju=class extends Se{constructor(e){super(e),this._values=new _o}setValue(e,r){this._values.set(e,+r)}}});var $i,ca,ua,qx=f(()=>{ze();Lt();$i=class extends Me{};$i.prototype._setValue=jp;ca=class extends $i{};ca.prototype._setValue=uu;ua=class extends $i{};ua.prototype._setValue=lu});var la,Qx=f(()=>{ze();Lt();la=class extends Me{};la.prototype._setValue=Vp});var Hu,e0=f(()=>{ye();ze();wh();Hu=class extends Se{constructor({type:e,nullValues:r,dictionaryHashFunction:i}){super({type:new yt(e.dictionary,e.indices,e.id,e.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=ki({type:this.type.indices,nullValues:r}),this.dictionary=ki({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 da,t0=f(()=>{ze();Lt();da=class extends Me{};da.prototype._setValue=Cp});var Gu,r0=f(()=>{ct();ze();ye();Gu=class extends Se{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 gt(this.type.listSize,new V(r,e.type,!0)),i}}});var Di,Ku,Yu,Xu,n0=f(()=>{qs();ze();Di=class extends Me{setValue(e,r){this._values.set(e,r)}},Ku=class extends Di{setValue(e,r){super.setValue(e,Xs(r))}},Yu=class extends Di{},Xu=class extends Di{}});var Cn,fa,pa,ha,i0=f(()=>{ze();Lt();Cn=class extends Me{};Cn.prototype._setValue=Zp;fa=class extends Cn{};fa.prototype._setValue=_u;pa=class extends Cn{};pa.prototype._setValue=bu;ha=class extends Cn{};ha.prototype._setValue=wu});var cn,ma,ga,ya,va,o0=f(()=>{ze();Lt();cn=class extends Me{};cn.prototype._setValue=Wp;ma=class extends cn{};ma.prototype._setValue=xu;ga=class extends cn{};ga.prototype._setValue=Su;ya=class extends cn{};ya.prototype._setValue=Iu;va=class extends cn{};va.prototype._setValue=$u});var qt,qu,Qu,el,tl,rl,nl,il,ol,s0=f(()=>{ze();qt=class extends Me{setValue(e,r){this._values.set(e,r)}},qu=class extends qt{},Qu=class extends qt{},el=class extends qt{},tl=class extends qt{},rl=class extends qt{},nl=class extends qt{},il=class extends qt{},ol=class extends qt{}});var sl,a0=f(()=>{ct();ye();pr();ze();sl=class extends nt{constructor(e){super(e),this._offsets=new Pn(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 Jt(new V(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 al,c0=f(()=>{ct();ye();pr();$r();ze();al=class extends nt{constructor(e){super(e),this._offsets=new Pn(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 Ht(new V(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=X(r.set(n,BigInt(a)).buffer[n]);for(let u=-1;++u<a;)i.set(c+u,s[u])}}}});var cl,u0=f(()=>{ct();ye();ze();cl=class extends nt{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 Kt(new V(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 ul,l0=f(()=>{ze();ul=class extends Se{setValue(e,r){}setValid(e,r){return this.length=Math.max(e+1,this.length),r}}});var ll,d0=f(()=>{ct();ze();ye();ll=class extends Se{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 xe([...this.type.children,new V(r,e.type,!0)]),i}}});var un,_a,ba,wa,xa,f0=f(()=>{ze();Lt();un=class extends Me{};un.prototype._setValue=Mp;_a=class extends un{};_a.prototype._setValue=du;ba=class extends un{};ba.prototype._setValue=fu;wa=class extends un{};wa.prototype._setValue=pu;xa=class extends un{};xa.prototype._setValue=hu});var ln,Sa,Ia,$a,ka,p0=f(()=>{ze();Lt();ln=class extends Me{};ln.prototype._setValue=Rp;Sa=class extends ln{};Sa.prototype._setValue=mu;Ia=class extends ln{};Ia.prototype._setValue=gu;$a=class extends ln{};$a.prototype._setValue=yu;ka=class extends ln{};ka.prototype._setValue=vu});var $o,dl,fl,h0=f(()=>{ct();pr();ze();ye();$o=class extends Se{constructor(e){super(e),this._typeIds=new rn(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 V(r,e.type)];return this.type=new Gt(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.")}},dl=class extends $o{},fl=class extends $o{constructor(e){super(e),this._offsets=new rn(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 Da,m0=f(()=>{Yr();_h();pr();ze();Da=class extends nt{constructor(e){super(e),this._values=new _t(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,zt(r))}_flushPending(e,r){}};Da.prototype._flushPending=So.prototype._flushPending});var Aa,g0=f(()=>{Yr();pr();ze();bh();Aa=class extends nt{constructor(e){super(e),this._values=new _t(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,zt(r))}_flushPending(e,r){}};Aa.prototype._flushPending=Io.prototype._flushPending});var ko,xh=f(()=>{ye();ze();pr();We();fr();ko=class extends Se{constructor(e){super(e),this._variadicBuffers=[],this._currentBuffer=null,this._currentBufferIndex=0,this._currentBufferOffset=0,this._bufferSize=32*1024*1024,this._views=new _t(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)*G.ELEMENT_WIDTH,o=this._views.length;n>o&&this._views.reserve(n-o);let s=this._views.buffer,a=e*G.ELEMENT_WIDTH,c=new DataView(s.buffer,s.byteOffset+a,G.ELEMENT_WIDTH);if(c.setInt32(G.LENGTH_OFFSET,i,!0),i<=G.INLINE_CAPACITY){s.set(r,a+G.INLINE_OFFSET);for(let u=i;u<G.INLINE_CAPACITY;u++)s[a+G.INLINE_OFFSET+u]=0}else{let u=new DataView(r.buffer,r.byteOffset,Math.min(4,i));c.setUint32(G.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 _t(Uint8Array),this._currentBufferIndex=this._variadicBuffers.length,this._currentBufferOffset=0),this._currentBuffer.reserve(i).buffer.set(r,this._currentBufferOffset),c.setInt32(G.BUFFER_INDEX_OFFSET,this._currentBufferIndex,!0),c.setInt32(G.BUFFER_OFFSET_OFFSET,this._currentBufferOffset,!0),this._currentBufferOffset+=i}return this}encodeValue(e){return T(e)}setValid(e,r){let i=(e+1)*G.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*G.ELEMENT_WIDTH;for(let c=0;c<G.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*G.ELEMENT_WIDTH),a=i>0?o.flush(r):void 0,c=this._variadicBuffers.slice();return this._variadicBuffers=[],this._currentBufferIndex=0,this.clear(),A({type:e,length:r,nullCount:i,nullBitmap:a,views:s,variadicBuffers:c})}finish(){return this.finished=!0,this}}});var pl,y0=f(()=>{xh();Yr();pl=class extends ko{constructor(e){super(e)}setValue(e,r){return this.writeBinaryValue(e,zt(r))}}});var Sh,v0,_0=f(()=>{lr();_h();bh();Xx();qx();Qx();e0();t0();r0();n0();i0();o0();s0();a0();c0();u0();l0();d0();f0();p0();h0();m0();g0();xh();y0();Sh=class extends C{visitNull(){return ul}visitBool(){return Ju}visitInt(){return qt}visitInt8(){return qu}visitInt16(){return Qu}visitInt32(){return el}visitInt64(){return tl}visitUint8(){return rl}visitUint16(){return nl}visitUint32(){return il}visitUint64(){return ol}visitFloat(){return Di}visitFloat16(){return Ku}visitFloat32(){return Yu}visitFloat64(){return Xu}visitUtf8(){return Da}visitLargeUtf8(){return Aa}visitBinary(){return So}visitLargeBinary(){return Io}visitFixedSizeBinary(){return da}visitDate(){return $i}visitDateDay(){return ca}visitDateMillisecond(){return ua}visitTimestamp(){return un}visitTimestampSecond(){return _a}visitTimestampMillisecond(){return ba}visitTimestampMicrosecond(){return wa}visitTimestampNanosecond(){return xa}visitTime(){return ln}visitTimeSecond(){return Sa}visitTimeMillisecond(){return Ia}visitTimeMicrosecond(){return $a}visitTimeNanosecond(){return ka}visitDecimal(){return la}visitList(){return sl}visitLargeList(){return al}visitStruct(){return ll}visitUnion(){return $o}visitDenseUnion(){return fl}visitSparseUnion(){return dl}visitDictionary(){return Hu}visitInterval(){return Cn}visitIntervalDayTime(){return fa}visitIntervalYearMonth(){return pa}visitIntervalMonthDayNano(){return ha}visitDuration(){return cn}visitDurationSecond(){return ma}visitDurationMillisecond(){return ga}visitDurationMicrosecond(){return ya}visitDurationNanosecond(){return va}visitFixedSizeList(){return Gu}visitMap(){return cl}visitBinaryView(){return ko}visitUtf8View(){return pl}},v0=new Sh});function ut(t,e){return e instanceof t.constructor}function dn(t,e){return t===e||ut(t,e)}function fn(t,e){return t===e||ut(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function hl(t,e){return t===e||ut(t,e)&&t.precision===e.precision}function az(t,e){return t===e||ut(t,e)&&t.byteWidth===e.byteWidth}function Ih(t,e){return t===e||ut(t,e)&&t.unit===e.unit}function Ba(t,e){return t===e||ut(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function za(t,e){return t===e||ut(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function b0(t,e){return t===e||ut(t,e)&&t.children.length===e.children.length&&Mr.compareManyFields(t.children,e.children)}function cz(t,e){return t===e||ut(t,e)&&t.children.length===e.children.length&&Mr.compareManyFields(t.children,e.children)}function $h(t,e){return t===e||ut(t,e)&&t.mode===e.mode&&t.typeIds.every((r,i)=>r===e.typeIds[i])&&Mr.compareManyFields(t.children,e.children)}function uz(t,e){return t===e||ut(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&Mr.visit(t.indices,e.indices)&&Mr.visit(t.dictionary,e.dictionary)}function ml(t,e){return t===e||ut(t,e)&&t.unit===e.unit}function Ta(t,e){return t===e||ut(t,e)&&t.unit===e.unit}function lz(t,e){return t===e||ut(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&Mr.compareManyFields(t.children,e.children)}function dz(t,e){return t===e||ut(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&Mr.compareManyFields(t.children,e.children)}function Ai(t,e){return Mr.compareSchemas(t,e)}function w0(t,e){return Mr.compareFields(t,e)}function x0(t,e){return Mr.visit(t,e)}var P,Mr,gl=f(()=>{lr();P=class extends C{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)}};P.prototype.visitNull=dn;P.prototype.visitBool=dn;P.prototype.visitInt=fn;P.prototype.visitInt8=fn;P.prototype.visitInt16=fn;P.prototype.visitInt32=fn;P.prototype.visitInt64=fn;P.prototype.visitUint8=fn;P.prototype.visitUint16=fn;P.prototype.visitUint32=fn;P.prototype.visitUint64=fn;P.prototype.visitFloat=hl;P.prototype.visitFloat16=hl;P.prototype.visitFloat32=hl;P.prototype.visitFloat64=hl;P.prototype.visitUtf8=dn;P.prototype.visitLargeUtf8=dn;P.prototype.visitUtf8View=dn;P.prototype.visitBinary=dn;P.prototype.visitLargeBinary=dn;P.prototype.visitBinaryView=dn;P.prototype.visitFixedSizeBinary=az;P.prototype.visitDate=Ih;P.prototype.visitDateDay=Ih;P.prototype.visitDateMillisecond=Ih;P.prototype.visitTimestamp=Ba;P.prototype.visitTimestampSecond=Ba;P.prototype.visitTimestampMillisecond=Ba;P.prototype.visitTimestampMicrosecond=Ba;P.prototype.visitTimestampNanosecond=Ba;P.prototype.visitTime=za;P.prototype.visitTimeSecond=za;P.prototype.visitTimeMillisecond=za;P.prototype.visitTimeMicrosecond=za;P.prototype.visitTimeNanosecond=za;P.prototype.visitDecimal=dn;P.prototype.visitList=b0;P.prototype.visitLargeList=b0;P.prototype.visitStruct=cz;P.prototype.visitUnion=$h;P.prototype.visitDenseUnion=$h;P.prototype.visitSparseUnion=$h;P.prototype.visitDictionary=uz;P.prototype.visitInterval=ml;P.prototype.visitIntervalDayTime=ml;P.prototype.visitIntervalYearMonth=ml;P.prototype.visitIntervalMonthDayNano=ml;P.prototype.visitDuration=Ta;P.prototype.visitDurationSecond=Ta;P.prototype.visitDurationMillisecond=Ta;P.prototype.visitDurationMicrosecond=Ta;P.prototype.visitDurationNanosecond=Ta;P.prototype.visitFixedSizeList=lz;P.prototype.visitMap=dz;Mr=new P});function ki(t){let e=t.type,r=new(v0.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(ki(Object.assign(Object.assign({},u),{type:c})))}}return r}var wh=f(()=>{_0()});function yl(t,e){return fz(t,e.map(r=>r.data.concat()))}function fz(t,e){let r=[...t.fields],i=[],n={numBatches:e.reduce((d,h)=>Math.max(d,h.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=pz(r,s,l,e,n),s>0&&(i[o++]=A({type:new xe(r),length:s,nullCount:0,children:l.slice()})))}return[t=t.assign(r),i.map(d=>new Ie(t,d))]}function pz(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:A({type:d.type,length:e,nullCount:e,nullBitmap:new Uint8Array(s)})}}return r}var S0=f(()=>{fr();ye();Bi()});var I0,$0,He,Oa=f(()=>{Je();fr();vt();ct();ye();gl();S0();Eu();pi();Lt();Lu();Pu();mo();Bi();$0=Symbol.for("apache-arrow/Table"),He=class t{static isTable(e){return e?.[$0]===!0}constructor(...e){var r,i;if(e.length===0)return this.batches=[],this.schema=new Q([]),this._offsets=[0],this;let n,o;e[0]instanceof Q&&(n=e.shift()),e.at(-1)instanceof Uint32Array&&(o=e.pop());let s=c=>{if(c){if(c instanceof Ie)return[c];if(c instanceof t)return c.batches;if(c instanceof J){if(c.type instanceof xe)return[new Ie(new Q(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(m=>new B([c[m]])),d=n??new Q(u.map((m,v)=>new V(String(m),l[v].type,l[v].nullable))),[,h]=yl(d,l);return h.length===0?[new Ie(c)]:h}}}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 Q([]),!(n instanceof Q))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let c of a){if(!(c instanceof Ie))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Ai(n,c.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=n,this.batches=a,this._offsets=o??Tu(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=zu(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(hi(e,this.numRows))}set(e,r){}indexOf(e,r){return-1}[Symbol.iterator](){return this.batches.length>0?vo.visit(new B(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 Ie(r,n)))}slice(e,r){let i=this.schema;[e,r]=Qs({length:this.numRows},e,r);let n=Ou(this.data,this._offsets,e,r);return new t(i,n.map(o=>new Ie(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=A({type:i,length:0,nullCount:0});r.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new B(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 B([A({type:new rt,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]=yl(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,h=r.findIndex(m=>m.name===c.name);return~h?d[h]=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(...yl(o,s))}};I0=Symbol.toStringTag;He[I0]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[$0]=!0,t.isValid=yo(ra),t.get=yo(je.getVisitFn(p.Struct)),t.set=Uu(Xe.getVisitFn(p.Struct)),t.indexOf=Nu(vi.getVisitFn(p.Struct)),"Table"))(He.prototype);Object.defineProperty(He,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===He&&He.isTable(e)}})});function k0(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:A({type:c.type,length:r,nullCount:r,nullBitmap:new Uint8Array(s)}))}return[t.assign(n),A({type:new xe(n),length:r,children:o})]}function B0(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)||[]])B0(a.children,u?.children,r);if(I.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 D0,A0,Ie,zi,Bi=f(()=>{fr();Oa();vt();ct();ye();mo();pi();Lt();Lu();Pu();A0=Symbol.for("apache-arrow/RecordBatch"),Ie=class t{static isRecordBatch(e){return e?.[A0]===!0}constructor(...e){switch(e.length){case 3:case 2:{if([this.schema]=e,!(this.schema instanceof Q))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=A({nullCount:0,type:new xe(this.schema.fields),children:this.schema.fields.map(r=>A({type:r.type,nullCount:0}))}),this._metadata=new Map]=e,!(this.data instanceof J))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=k0(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]=V.new({name:u,type:r[u].type,nullable:!0}),c),{length:0,fields:new Array,children:new Array}),s=new Q(i),a=A({type:new xe(i),length:o,children:n,nullCount:0});[this.schema,this.data]=k0(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=B0(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 je.visit(this.data,e)}at(e){return this.get(hi(e,this.numRows))}set(e,r){return Xe.visit(this.data,e,r)}indexOf(e,r){return vi.visit(this.data,e,r)}[Symbol.iterator](){return vo.visit(new B([this.data]))}toArray(){return[...this]}concat(...e){return new He(this.schema,[this,...e])}slice(e,r){let[i]=new B([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 B([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 B([A({type:new rt,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 Q(o,new Map(this.schema.metadata)),n=A({type:new xe(o),length:n.length,children:s})}return new t(i,n,this._metadata)}select(e){let r=this.schema.select(e),i=new xe(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,A({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=A({type:new xe(r.fields),length:this.numRows,children:i});return new t(r,n,this._metadata)}};D0=Symbol.toStringTag;Ie[D0]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[A0]=!0,"RecordBatch"))(Ie.prototype);Object.defineProperty(Ie,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===Ie&&Ie.isRecordBatch(e)}});zi=class extends Ie{constructor(e,r){let i=e.fields.map(o=>A({type:o.type})),n=A({type:new xe(e.fields),length:0,nullCount:0,children:i});super(e,n,r||new Map)}}});function _l(t,e=0){for(let r=-1,i=Ao.length;++r<i;)if(Ao[r]!==t[e+r])return!1;return!0}var Dh,Ah,z0,T0,Do,Ua,Na,vl,kh,Ao,Bo,Bh,O0,zh=f(()=>{Bt();Je();ie();wi();ei();dh();We();Ii();ia();Dh=t=>`Expected ${re[t]} Message in stream, but was null or length 0.`,Ah=t=>`Header pointer of flatbuffer-encoded ${re[t]} Message is null or length 0.`,z0=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,T0=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,Do=class{constructor(e){this.source=e instanceof jr?e:new jr(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done?De:e.value===-1&&(e=this.readMetadataLength()).done?De:(e=this.readMetadata(e.value)).done?De: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(Dh(e));return r.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let r=T(this.source.read(e));if(r.byteLength<e)throw new Error(T0(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()}readSchema(e=!1){let r=re.Schema,i=this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(Ah(r));return n}readMetadataLength(){let e=this.source.read(vl),r=e&&new Ye(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}}readMetadata(e){let r=this.source.read(e);if(!r)return De;if(r.byteLength<e)throw new Error(z0(e,r.byteLength));return{done:!1,value:bt.decode(r)}}},Ua=class{constructor(e,r){this.source=e instanceof Xt?e:Yc(e)?new Fn(e,r):new Xt(e)}[Symbol.asyncIterator](){return this}next(){return k(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done?De:e.value===-1&&(e=yield this.readMetadataLength()).done?De:(e=yield this.readMetadata(e.value)).done?De:e})}throw(e){return k(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return k(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return k(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(Dh(e));return r.value})}readMessageBody(e){return k(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);let r=T(yield this.source.read(e));if(r.byteLength<e)throw new Error(T0(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()})}readSchema(){return k(this,arguments,void 0,function*(e=!1){let r=re.Schema,i=yield this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(Ah(r));return n})}readMetadataLength(){return k(this,void 0,void 0,function*(){let e=yield this.source.read(vl),r=e&&new Ye(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}})}readMetadata(e){return k(this,void 0,void 0,function*(){let r=yield this.source.read(e);if(!r)return De;if(r.byteLength<e)throw new Error(z0(e,r.byteLength));return{done:!1,value:bt.decode(r)}})}},Na=class extends Do{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof na?e:new na(e)}next(){let{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:bt.fromJSON(e.schema,re.Schema)};if(this._dictionaryIndex<e.dictionaries.length){let r=e.dictionaries[this._dictionaryIndex++];return this._body=r.data.columns,{done:!1,value:bt.fromJSON(r,re.DictionaryBatch)}}if(this._batchIndex<e.batches.length){let r=e.batches[this._batchIndex++];return this._body=r.columns,{done:!1,value:bt.fromJSON(r,re.RecordBatch)}}return this._body=[],De}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(Dh(e));return r.value}readSchema(){let e=re.Schema,r=this.readMessage(e),i=r?.header();if(!r||!i)throw new Error(Ah(e));return i}},vl=4,kh="ARROW1",Ao=new Uint8Array(kh.length);for(let t=0;t<kh.length;t+=1)Ao[t]=kh.codePointAt(t);Bo=Ao.length,Bh=Bo+vl,O0=Bo*2+vl});var Th,Oh,U0,N0=f(()=>{Ns();Th=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}},Oh=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)}},U0={[at.LZ4_FRAME]:new Th,[at.ZSTD]:new Oh}});var Uh,zo,Nh=f(()=>{Ns();N0();Uh=class{constructor(){this.registry={}}set(e,r){if(r?.encode&&typeof r.encode=="function"&&!U0[e].isValidCodecEncode(r))throw new Error(`Encoder for ${at[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}},zo=new Uh});function F0(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*E0(t){let e=hr.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function L0(t){return At(this,arguments,function*(){let r=yield K(hr.from(t));try{if(!(yield K(r.open({autoDestroy:!1}))).closed)do yield yield K(r);while(!(yield K(r.reset().open())).closed)}finally{yield K(r.cancel())}})}function mz(t){return new pn(new Lh(t))}function gz(t){let e=t.peek(Bo+7&-8);return e&&e.byteLength>=4?_l(e)?new Oi(new xl(t.read())):new pn(new To(t)):new pn(new To((function*(){})()))}function yz(t){return k(this,void 0,void 0,function*(){let e=yield t.peek(Bo+7&-8);return e&&e.byteLength>=4?_l(e)?new Oi(new xl(yield t.read())):new Ti(new Oo(t)):new Ti(new Oo((function(){return At(this,arguments,function*(){})})()))})}function vz(t){return k(this,void 0,void 0,function*(){let{size:e}=yield t.stat(),r=new Fn(t,e);return e>=O0&&_l(yield r.readAt(0,Bo+7&-8))?new bl(new Eh(r)):new Ti(new Oo(r))})}var hr,pn,Ti,Oi,bl,wl,To,Oo,xl,Eh,Lh,Ph=f(()=>{Bt();fr();vt();ye();Je();ah();Ts();wi();Ii();dh();Yx();Bi();ia();zh();ei();Nh();$r();ie();hr=class t extends Si{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 rr(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 Ke.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Ke.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:Gc(e)?mz(e):Yc(e)?vz(e):rr(e)?k(this,void 0,void 0,function*(){return yield t.from(yield e)}):Xc(e)||As(e)||Qc(e)||Zt(e)?yz(new Xt(e)):gz(new jr(e))}static readAll(e){return e instanceof t?e.isSync()?E0(e):L0(e):Gc(e)||ArrayBuffer.isView(e)||nr(e)||Kc(e)?E0(e):L0(e)}},pn=class extends hr{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return At(this,arguments,function*(){yield K(yield*Qi(tr(this[Symbol.iterator]())))})}},Ti=class extends hr{constructor(e){super(e),this._impl=e}readAll(){return k(this,void 0,void 0,function*(){var e,r,i,n;let o=new Array;try{for(var s=!0,a=tr(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]()}},Oi=class extends pn{constructor(e){super(e),this._impl=e}},bl=class extends Ti{constructor(e){super(e),this._impl=e}},wl=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=zo.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 Re(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=A({type:new xe(this.schema.fields),length:e.length,children:n});return new Ie(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=zo.get(e.data.compression.type);if(l?.decode&&typeof l.decode=="function"){let{decommpressedBody:d,buffers:h}=this._decompressBuffers(e.data,r,l);u=this._loadCompressedVectors(e.data,d,[c]),e=new it(new Re(e.data.length,e.data.nodes,h,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 B(u)):new B(u)).memoize()}_loadVectors(e,r,i){return new xo(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}_loadCompressedVectors(e,r,i){return new Wu(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 Ne(s,0));continue}let u=new Ye(r.subarray(a,a+c)),l=X(u.readInt64(0)),d=u.bytes().subarray(8),h=l===-1?d:i.decode(d);n.push(h);let m=(s+7&-8)-s;s+=m,o.push(new Ne(s,h.length)),s+=h.length}return{decommpressedBody:n,buffers:o}}},To=class extends wl{constructor(e,r){super(r),this._reader=Gc(e)?new Na(this._handle=e):new Do(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=F0(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):De}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):De}next(){if(this.closed)return De;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 zi(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Oo=class extends wl{constructor(e,r){super(r),this._reader=new Ua(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return k(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 k(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=F0(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return k(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):De})}return(e){return k(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):De})}next(){return k(this,void 0,void 0,function*(){if(this.closed)return De;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 zi(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return k(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},xl=class extends To{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,r){super(e instanceof oa?e:new oa(e),r)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let r of this._footer.dictionaryBatches())r&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var r;if(this.closed)return null;this._footer||this.open();let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&this._handle.seek(i.offset)){let n=this._reader.readMessage(re.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),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(re.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-Bh,i=e.readInt32(r),n=e.readAt(r-i,i);return nn.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}},Eh=class extends Oo{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 Fn?e:new Fn(e,i),n)}isFile(){return!0}isAsync(){return!0}open(e){let r=Object.create(null,{open:{get:()=>super.open}});return k(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 k(this,void 0,void 0,function*(){var r;if(this.closed)return null;this._footer||(yield this.open());let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(re.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),s=yield this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,s,n.metadata)}}return null})}_readDictionaryBatch(e){return k(this,void 0,void 0,function*(){var r;let i=(r=this._footer)===null||r===void 0?void 0:r.getDictionaryBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(re.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),s=yield this._reader.readMessageBody(n.bodyLength),a=this._loadDictionaryBatch(o,s);this.dictionaries.set(o.id,a)}}})}_readFooter(){return k(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let r=e.size-Bh,i=yield e.readInt32(r),n=yield e.readAt(r-i,i);return nn.decode(n)})}_readNextMessageAndValidate(e){return k(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})}},Lh=class extends To{constructor(e,r){super(e,r)}_loadVectors(e,r,i){return new Zu(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}}});function Ct(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Ne(this._byteLength,e)),this._byteLength+=e,this}function _z(t){var e;let{type:r,length:i,typeIds:n,valueOffsets:o}=t;if(Ct.call(this,n),r.mode===we.Sparse)return Fh.call(this,t);if(r.mode===we.Dense){if(t.offset<=0)return Ct.call(this,o),Fh.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);Ct.call(this,s),this.visitMany(t.children.map((u,l)=>{let d=r.typeIds[l],h=a[d],m=c[d];return u.slice(h,Math.min(i,m))}))}}return this}function bz(t){let e;return t.nullCount>=t.length?Ct.call(this,new Uint8Array(t.length+7>>3)):(e=t.values)instanceof Uint8Array?Ct.call(this,gi(t.offset,t.length,e)):Ct.call(this,yi(t.values))}function hn(t){return Ct.call(this,t.values.subarray(0,t.length*t.stride))}function Sl(t){let{length:e,values:r,valueOffsets:i}=t,n=X(i[0]),o=X(i[e]),s=Math.min(o-n,r.byteLength-n);return Ct.call(this,eu(-n,e+1,i)),Ct.call(this,r.subarray(n,n+s)),this}function C0(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;Ct.call(this,n.subarray(s,a));for(let c of o)Ct.call(this,c);return this._variadicBufferCounts.push(o.length),this}function Il(t){let{length:e,valueOffsets:r}=t;if(r){let i=X(r[0]),n=X(r[e]);return Ct.call(this,eu(-i,e+1,r)),this.visit(t.children[0].slice(i,n-i))}return this.visit(t.children[0])}function Fh(t){return this.visitMany(t.type.children.map((e,r)=>t.children[r]).filter(Boolean))[0]}var Ae,j0=f(()=>{vt();lr();Je();Bi();We();go();wi();ye();$r();Ae=class t extends C{static assemble(...e){let r=n=>n.flatMap(o=>Array.isArray(o)?r(o):o instanceof Ie?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 B)return this.visitMany(e.data),this;let{type:r}=e;if(!I.isDictionary(r)){let{length:i}=e;if(i>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(I.isUnion(r))this.nodes.push(new Yt(i,0));else{let{nullCount:n}=e;I.isNull(r)||Ct.call(this,n<=0?new Uint8Array(0):gi(e.offset,i,e.nullBitmap)),this.nodes.push(new Yt(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}};Ae.prototype.visitBool=bz;Ae.prototype.visitInt=hn;Ae.prototype.visitFloat=hn;Ae.prototype.visitUtf8=Sl;Ae.prototype.visitLargeUtf8=Sl;Ae.prototype.visitUtf8View=C0;Ae.prototype.visitBinary=Sl;Ae.prototype.visitLargeBinary=Sl;Ae.prototype.visitBinaryView=C0;Ae.prototype.visitFixedSizeBinary=hn;Ae.prototype.visitDate=hn;Ae.prototype.visitTimestamp=hn;Ae.prototype.visitTime=hn;Ae.prototype.visitDecimal=hn;Ae.prototype.visitList=Il;Ae.prototype.visitLargeList=Il;Ae.prototype.visitStruct=Fh;Ae.prototype.visitUnion=_z;Ae.prototype.visitInterval=hn;Ae.prototype.visitDuration=hn;Ae.prototype.visitFixedSizeList=Il;Ae.prototype.visitMap=Il});function Ch(t,e){let r=e;e instanceof He&&(r=e.batches,t.reset(void 0,e.schema));for(let i of r)t.write(i);return t.finish()}function jh(t,e){return k(this,void 0,void 0,function*(){var r,i,n,o,s,a,c;try{for(r=!0,i=tr(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 Ui,Ea,La,M0=f(()=>{Bt();Oa();zh();vt();wi();wi();ah();Je();gl();Ii();j0();We();Bi();ia();ei();Ns();Nh();ie();Ui=class extends Si{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 Cr,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,st(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(at).includes(e.compressionType))this._compression=new xi(e.compressionType);else{let r=Object.values(at).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 rr(e)?e.then(r=>this.writeAll(r)):Zt(e)?jh(this,e):Ch(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 Cr?this._sink=e:(this._sink=new Cr,e&&jb(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&Mb(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||!Ai(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 He&&!(r=e.schema))return this.finish()&&void 0;if(e instanceof Ie&&!(r=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(r&&!Ai(r,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,r)}e instanceof Ie?e instanceof zi||this._writeRecordBatch(e):e instanceof He?this.writeAll(e.batches):nr(e)&&this.writeAll(e)}_writeMessage(e,r=8){let i=r-1,n=bt.encode(e),o=n.byteLength,s=this._writeLegacyIpcFormat?4:8,a=o+s+i&~i,c=a-o-s;return e.headerType===re.RecordBatch?this._recordBatchBlocks.push(new on(a,e.bodyLength,this._position)):e.headerType===re.DictionaryBatch&&this._dictionaryBlocks.push(new on(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=T(e);r&&r.byteLength>0&&(this._sink.write(r),this._position+=r.byteLength)}return this}_writeSchema(e){return this._writeMessage(bt.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Ao)}_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 Re(e.numRows,i,n,this._compression,s,e.metadata),c=bt.from(a,r);return this._writeDictionaries(e)._writeMessage(c)._writeBodyBuffers(o)}_assembleRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:s}=Ae.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=zo.get(this._compression.type);if(!r?.encode||typeof r.encode!="function")throw new Error(`Codec for compression type "${at[this._compression.type]}" has invalid encode method`);let i=0,n=[],o=[];for(let a of e){let c=T(a);if(c.length===0){n.push(new Uint8Array(0),new Uint8Array(0)),o.push(new Ne(i,0));continue}let u=r.encode(c),l=u.length<c.length,d=l?u:c,h=l?d.length:-1,m=new Ye(new Uint8Array(8));m.writeInt64(0,BigInt(h)),n.push(m.bytes(),new Uint8Array(d));let v=(i+7&-8)-i;i+=v;let x=8+d.length;o.push(new Ne(i,x)),i+=x}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 B([e])),u=new Re(e.length,o,s,this._compression,c),l=new it(u,r,i),d=bt.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}},Ea=class t extends Ui{static writeAll(e,r){let i=new t(r);return rr(e)?e.then(n=>i.writeAll(n)):Zt(e)?jh(i,e):Ch(i,e)}},La=class t extends Ui{static writeAll(e,r){let i=new t(r);return rr(e)?e.then(n=>i.writeAll(n)):Zt(e)?jh(i,e):Ch(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=nn.encode(new nn(e,he.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(r)._write(Int32Array.of(r.byteLength))._writeMagic()}}});function R0(t,e){if(Zt(t))return xz(t,e);if(nr(t))return wz(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function wz(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=T(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 xz(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 k(this,void 0,void 0,function*(){yield o(s,r||(r=t[Symbol.asyncIterator]()))})},pull(s){return k(this,void 0,void 0,function*(){r?yield o(s,r):s.close()})},cancel(){return k(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 k(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=T(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 V0=f(()=>{Bt();We();ei()});function J0(t){return new Mh(t)}var Mh,Z0,W0,H0=f(()=>{Bt();wh();Mh=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:r,["writableStrategy"]:i,["queueingStrategy"]:n="count"}=e,o=Pb(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=ki(o),this._getSize=n!=="bytes"?Z0:W0;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"?Z0:W0}),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)}},Z0=t=>{var e;return(e=t?.length)!==null&&e!==void 0?e:0},W0=t=>{var e;return(e=t?.byteLength)!==null&&e!==void 0?e:0}});function $l(t,e){let r=new Cr,i=null,n=new ReadableStream({cancel(){return k(this,void 0,void 0,function*(){yield r.close()})},start(a){return k(this,void 0,void 0,function*(){yield s(a,i||(i=yield o()))})},pull(a){return k(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 k(this,void 0,void 0,function*(){return yield(yield hr.from(r)).open(e)})}function s(a,c){return k(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 G0=f(()=>{Bt();Ii();Ph()});function kl(t,e){let r=new this(t),i=new Xt(r),n=new ReadableStream({cancel(){return k(this,void 0,void 0,function*(){yield i.cancel()})},pull(s){return k(this,void 0,void 0,function*(){yield o(s)})},start(s){return k(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 k(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 K0=f(()=>{Bt();Ii()});var Rh={};be(Rh,{isArrowData:()=>Q0,isArrowDataType:()=>q0,isArrowField:()=>X0,isArrowRecordBatch:()=>tS,isArrowSchema:()=>Y0,isArrowTable:()=>rS,isArrowVector:()=>eS});function Y0(t){return Q.isSchema(t)}function X0(t){return V.isField(t)}function q0(t){return I.isDataType(t)}function Q0(t){return J.isData(t)}function eS(t){return B.isVector(t)}function tS(t){return Ie.isRecordBatch(t)}function rS(t){return He.isTable(t)}var nS=f(()=>{ct();ye();fr();vt();Bi();Oa()});var Zz,iS=f(()=>{fr();ye();Oa();vt();ct();Lp();hh();go();qs();We();mo();Hs();vh();nS();gl();Zz=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ep),ph),Qp),Pp),Qf),qp),Tp),yh),Rh),{compareSchemas:Ai,compareFields:w0,compareTypes:x0})});var oS=f(()=>{Ts();ze();Ph();M0();V0();H0();G0();K0();iS();Ke.toDOMStream=R0;Se.throughDOM=J0;hr.throughDOM=$l;Oi.throughDOM=$l;pn.throughDOM=$l;Ui.throughDOM=kl;La.throughDOM=kl;Ea.throughDOM=kl});function Dl(t){return(t/255-.5)/Vh}function Al(t){return Math.min(Math.max(t/255,0),1)}function mn(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 Pa(t){return(t-128)/128}function Fa(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 Vh,Uo=f(()=>{"use strict";Vh=.28209479177387814});function Rr(t){let e={},r=[],i=[];aS(e,r,i,"POSITION",Hz(t.positions,3),{type:"fixed-size-list",listSize:3,children:[{name:"value",type:"float32"}]});let n=Gz(t);No(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"}),No(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"}),No(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"}),No(e,r,i,"opacity",t.opacities,{"loaders_gl.gaussian_splats.semantic":"opacity","loaders_gl.gaussian_splats.encoding":"linear"}),sS(e,r,i,"scale",t.scales,3,{"loaders_gl.gaussian_splats.semantic":"scale","loaders_gl.gaussian_splats.encoding":"linear"}),sS(e,r,i,"rot",t.rotations,4,{"loaders_gl.gaussian_splats.semantic":"rotation","loaders_gl.gaussian_splats.encoding":"quaternion"}),t.sphericalHarmonics&&t.sphericalHarmonicsComponentCount&&Jz(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 Q(r,o);return{shape:"arrow-table",schema:{fields:i,metadata:Object.fromEntries(o)},data:new He(s,e),topology:"point-list",loaderData:t.loaderData}}function sS(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];No(t,e,r,`${i}_${a}`,c,{...s,"loaders_gl.gaussian_splats.component":String(a)})}}function Jz(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];No(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 No(t,e,r,i,n,o){aS(t,e,r,i,_i(n),"float32",o)}function aS(t,e,r,i,n,o,s={}){t[i]=n,e.push(new V(i,n.type,!1,new Map(Object.entries(s)))),r.push({name:i,type:o,nullable:!1,metadata:s})}function Hz(t,e){let i=_i(t).data[0],n=new gt(e,new V("value",i.type,!1)),o=new J(n,0,t.length/e,0,{},[i]);return new B([o])}function Gz(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]=Dl(t.colors[o*3+0]),i[o]=Dl(t.colors[o*3+1]),n[o]=Dl(t.colors[o*3+2]));return[r,i,n]}var Eo=f(()=>{"use strict";oS();Uo()});function Zh(t){return Rr(Kz(t))}function Kz(t){if(t.byteLength%Ca!==0)throw new Error(`SPLATLoader: byte length must be a multiple of ${Ca}.`);let e=t.byteLength/Ca,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*Ca,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]=Al(r.getUint8(u+27));let[h,m,v,x]=mn(Pa(r.getUint8(u+28)),Pa(r.getUint8(u+29)),Pa(r.getUint8(u+30)),Pa(r.getUint8(u+31)));o[d+0]=h,o[d+1]=m,o[d+2]=v,o[d+3]=x}return{format:"splat",splatCount:e,positions:i,scales:n,rotations:o,colors:s,opacities:a,loaderData:{format:"splat",splatCount:e,rowByteLength:Ca}}}var Ca,cS=f(()=>{"use strict";Eo();Uo();Ca=32});var uS={};be(uS,{SPLATLoaderWithParser:()=>Xz});var CR,Yz,Xz,lS=f(()=>{"use strict";cS();Wh();({preload:CR,...Yz}=Bl),Xz={...Yz,parse:async t=>Zh(t),parseSync:t=>Zh(t)}});async function Qz(){let{SPLATLoaderWithParser:t}=await Promise.resolve().then(()=>(lS(),uS));return t}var qz,Bl,Wh=f(()=>{"use strict";Qn();qz="5.0.0-alpha.3";Bl={dataType:null,batchType:null,...Wc,version:qz,options:{splats:{shape:"arrow-table"}},preload:Qz}});function Gh(t){return Rr(rT(t))}function rT(t){if(t.byteLength<Lo)throw new Error(`KSPLATLoader: file must contain a ${Lo}-byte header.`);let e=iT(t);oT(e);let r=sT(t,e),i=fT(e,r),n=Math.max(0,...r.slice(0,Tl(e)).map(h=>Kh(h.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 h of r.slice(0,Tl(e))){pT(t,h);for(let m=0;m<h.splatCount&&d<i;m++)nT(t,e,h,m,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,Tl(e)).map(h=>({splatCount:h.splatCount,maxSplatCount:h.maxSplatCount,sphericalHarmonicsDegree:h.sphericalHarmonicsDegree}))}}}function nT(t,e,r,i,n,o,s,a,c,u,l,d){let h=Hh[e.compressionLevel],m=r.dataBase+r.bytesPerSplat*i,v=n*3,x=n*4,O=cT(t,r,i);o[v+0]=Jh(t,m,0,e,r,O[0]),o[v+1]=Jh(t,m,1,e,r,O[1]),o[v+2]=Jh(t,m,2,e,r,O[2]),s[v+0]=jn(t,m+h.scaleOffsetBytes,0,e.compressionLevel),s[v+1]=jn(t,m+h.scaleOffsetBytes,1,e.compressionLevel),s[v+2]=jn(t,m+h.scaleOffsetBytes,2,e.compressionLevel);let[ae,le,ne,ce]=mn(jn(t,m+h.scaleOffsetBytes,3,e.compressionLevel),jn(t,m+h.scaleOffsetBytes,4,e.compressionLevel),jn(t,m+h.scaleOffsetBytes,5,e.compressionLevel),jn(t,m+h.scaleOffsetBytes,6,e.compressionLevel));a[x+0]=ae,a[x+1]=le,a[x+2]=ne,a[x+3]=ce;let oe=m+h.colorOffsetBytes,W=new Uint8Array(t,oe,4);c[v+0]=W[0],c[v+1]=W[1],c[v+2]=W[2],u[n]=Al(W[3]),l&&d&&lT(t,m+h.sphericalHarmonicsOffsetBytes,e,r,n,l,d)}function iT(t){let e=new DataView(t,0,Lo),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)||-fS,maxSphericalHarmonicsCoeff:e.getFloat32(40,!0)||fS}}function oT(t){if(!(t.versionMajor===dS?t.versionMinor>=eT:t.versionMajor>dS))throw new Error(`KSPLATLoader: version ${t.versionMajor}.${t.versionMinor} is not supported.`)}function sT(t,e){if(t.byteLength<Lo+e.maxSectionCount*zl)throw new Error("KSPLATLoader: file does not contain all section headers.");let r=[],i=Lo+e.maxSectionCount*zl,n=0;for(let o=0;o<e.maxSectionCount;o++){let s=Lo+o*zl,a=new DataView(t,s,zl),c=a.getUint32(0,!0),u=a.getUint32(4,!0),l=a.getUint32(8,!0),d=a.getUint32(12,!0),h=a.getFloat32(16,!0),m=a.getUint16(20,!0),v=a.getUint32(24,!0)||Hh[e.compressionLevel].scaleRange,x=a.getUint32(32,!0),O=a.getUint32(36,!0),ae=a.getUint16(40,!0),le=dT(e.compressionLevel,ae),ne=O*4,ce=m*d+ne,oe=le*u+ce;r.push({bytesPerSplat:le,splatCountOffset:n,splatCount:c||u,maxSplatCount:u,bucketSize:l,bucketCount:d,bucketStorageSizeBytes:m,bucketsStorageSizeBytes:ce,compressionScaleRange:v,compressionScaleFactor:h/2/v,base:i,bucketsBase:i+ne,dataBase:i+ce,fullBucketCount:x,partiallyFilledBucketCount:O,sphericalHarmonicsDegree:ae}),i+=oe,n+=u}return r}function Jh(t,e,r,i,n,o){let s=aT(t,e,r,i.compressionLevel);return i.compressionLevel>=1?(s-n.compressionScaleRange)*n.compressionScaleFactor+o:s}function aT(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 cT(t,e,r){if(!e.bucketCount)return[0,0,0];let i=uT(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 uT(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 lT(t,e,r,i,n,o,s){let a=Kh(i.sphericalHarmonicsDegree),c=n*s;for(let u=0;u<a;u++)o[c+u]=jn(t,e,u,r.compressionLevel,!0,r.minSphericalHarmonicsCoeff,r.maxSphericalHarmonicsCoeff)}function jn(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?Fa(a.getUint16(e+r*2,!0)):a.getUint8(e+r)/255*(s-o)+o}function dT(t,e){let r=Hh[t];return r.bytesPerCenter+r.bytesPerScale+r.bytesPerRotation+r.bytesPerColor+r.bytesPerSphericalHarmonicsComponent*Kh(e)}function Kh(t){switch(t){case 0:return 0;case 1:return 9;case 2:return 24;case 3:return 45;default:throw new Error(`KSPLATLoader: unsupported spherical harmonics degree ${t}.`)}}function Tl(t){return t.sectionCount||t.maxSectionCount}function fT(t,e){let r=e.slice(0,Tl(t)).reduce((i,n)=>i+n.splatCount,0);return t.splatCount?Math.min(t.splatCount,r||t.splatCount):r}function pT(t,e){if(e.dataBase+e.bytesPerSplat*e.splatCount>t.byteLength)throw new Error("KSPLATLoader: section data extends beyond the file length.")}var dS,eT,Lo,zl,tT,fS,Hh,pS=f(()=>{"use strict";Eo();Uo();dS=0,eT=1,Lo=4096,zl=1024,tT=3,fS=tT/2,Hh={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 hS={};be(hS,{KSPLATLoaderWithParser:()=>mT});var HR,hT,mT,mS=f(()=>{"use strict";pS();Yh();({preload:HR,...hT}=Ol),mT={...hT,parse:async t=>Gh(t),parseSync:t=>Gh(t)}});async function yT(){let{KSPLATLoaderWithParser:t}=await Promise.resolve().then(()=>(mS(),hS));return t}var gT,Ol,Yh=f(()=>{"use strict";Qn();gT="5.0.0-alpha.3";Ol={dataType:null,batchType:null,...Jc,version:gT,options:{splats:{shape:"arrow-table"}},preload:yT}});var Ul,vT,Nl,_T,YR,gS=f(()=>{Ul=globalThis,vT=globalThis.document||{},Nl=globalThis.process||{},_T=globalThis.console,YR=globalThis.navigator||{}});function yS(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 vS=f(()=>{});function Ni(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||yS()}var _S=f(()=>{vS()});var Xh,El=f(()=>{gS();_S();Xh="4.1.1"});function Po(t,e){if(!t)throw new Error(e||"Assertion failed")}var qh=f(()=>{});function Qh(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return Po(Number.isFinite(e)&&e>=0),e}function bS(t){let{logLevel:e,message:r}=t;t.logLevel=Qh(e);let i=t.args?Array.from(t.args):[];for(;i.length&&i.shift()!==r;);switch(typeof e){case"string":case"function":r!==void 0&&i.unshift(r),t.message=e;break;case"object":Object.assign(t,e);break;default:}typeof t.message=="function"&&(t.message=t.message());let n=typeof t.message;return Po(n==="string"||n==="object"),Object.assign(t,{args:i},t.opts)}var wS=f(()=>{qh()});var Ei,Ll,xS=f(()=>{wS();Ei=()=>{},Ll=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=bS({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 Ei;let n=this._getOnceTag(i.tag??r.tag??r.message);if((i.once||r.once)&&n!==void 0){if(this._onceCache.has(n))return Ei;this._onceCache.add(n)}return this._emit(e,r)}_shouldLog(e){return this.getLevel()>=Qh(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e=="string"?e:String(e)}catch{return}}}});function wT(t){try{let e=window[t],r="__storage_test__";return e.setItem(r,r),e.removeItem(r),e}catch{return null}}var Pl,SS=f(()=>{Pl=class{constructor(e,r,i="sessionStorage"){this.storage=wT(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 IS(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 $S(t,e=8){let r=Math.max(e-t.length,0);return`${" ".repeat(r)}${t}`}var kS=f(()=>{});function DS(t){return typeof t!="string"?t:(t=t.toUpperCase(),Fl[t]||Fl.WHITE)}function AS(t,e,r){return!Ni&&typeof t=="string"&&(e&&(t=`\x1B[${DS(e)}m${t}\x1B[39m`),r&&(t=`\x1B[${DS(r)+xT}m${t}\x1B[49m`)),t}var Fl,xT,BS=f(()=>{El();(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"})(Fl||(Fl={}));xT=10});function zS(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 TS=f(()=>{});function Fo(){let t;if(Ni()&&Ul.performance)t=Ul?.performance?.now?.();else if("hrtime"in Nl){let e=Nl?.hrtime?.();t=e[0]*1e3+e[1]/1e6}else t=Date.now();return t}var OS=f(()=>{El()});function ST(t,e,r){if(typeof e=="string"){let i=r.time?$S(IS(r.total)):"";e=r.time?`${t}: ${i} ${e}`:`${t}: ${e}`,e=AS(e,r.color,r.background)}return e}function IT(t){for(let e in t)for(let r in t[e])return r||"untitled";return"empty"}var Co,em,gn,tm=f(()=>{El();xS();SS();kS();BS();TS();qh();OS();Co={debug:Ni()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},em={enabled:!0,level:0},gn=class extends Ll{constructor({id:e}={id:""}){super({level:0}),this.VERSION=Xh,this._startTs=Fo(),this._deltaTs=Fo(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new Pl(`__probe-${this.id}__`,{[this.id]:em}),this.timeStamp(`${this.id} started`),zS(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((Fo()-this._startTs).toPrecision(10))}getDelta(){return Number((Fo()-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:Co.warn,once:!0})}error(e,...r){return this._log("error",0,e,r,{method:Co.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:Co.log,time:!0,once:!0})}log(e,r,...i){return this._log("log",e,r,i,{method:Co.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:Co.debug||Co.info,once:!0})}table(e,r,i){return r?this._log("table",e,r,i&&[i]||[],{method:console.table||Ei,tag:IT(r)}):Ei}time(e,r){return this._log("time",e,r,[],{method:console.time?console.time:console.info})}timeEnd(e,r){return this._log("time",e,r,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(e,r){return this._log("time",e,r,[],{method:console.timeStamp||Ei})}group(e,r,i={collapsed:!1}){let n=(i.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",e,r,[],{method:n})}groupCollapsed(e,r,i={}){return this.group(e,r,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._log("groupEnd",e,"",[],{method:console.groupEnd||Ei})}withGroup(e,r,i){this.group(e,r)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&super._shouldLog(e)}_emit(e,r){let i=r.method;Po(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=Fo();let n=ST(this.id,r.message,r);return i.bind(console,n,...r.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(em),this._storage.config[this.id]}_updateConfiguration(e){let r=this._storage.config[this.id]||{...em};this._storage.setConfiguration({[this.id]:{...r,...e}})}};gn.VERSION=Xh});var US=f(()=>{globalThis.probe={}});var kV,NS=f(()=>{tm();tm();US();kV=new gn({id:"@probe.gl/log"})});function kT(){let t=new gn({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=t,globalThis.loaders.version=$T,globalThis.probe||={},globalThis.probe.loaders=t,t}var rm,$T,ES,LS=f(()=>{"use strict";NS();rm="5.0.0-alpha.3",$T=rm[0]>="0"&&rm[0]<="9"?`v${rm}`:"";ES=kT()});var DT,PS,FS,nm=f(()=>{"use strict";DT=t=>t!==null&&typeof t=="object",PS=t=>DT(t)&&t.constructor==={}.constructor,FS=t=>typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer});function CS(t,e){return jS(t||{},e)}function jS(t,e,r=0){if(r>3)return e;let i={...t};for(let[n,o]of Object.entries(e))PS(o)?i[n]=jS(i[n]||{},e[n],r+1):i[n]=e[n];return i}var MS=f(()=>{"use strict";nm()});function yn(t){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,t)}function Cl(t,e){let r=globalThis.loaders?.modules?.[t];if(!r)throw new Error(`${e}: ${t} library not installed`);return r}function mr(t){return globalThis.loaders?.modules?.[t]||null}var im=f(()=>{"use strict"});function RS(...t){return AT(t)}function AT(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 VS=f(()=>{"use strict"});async function om(t){let e=[];for await(let r of t)e.push(BT(r));return RS(...e)}function BT(t){if(t instanceof ArrayBuffer)return t;if(ArrayBuffer.isView(t)){let{buffer:e,byteOffset:r,byteLength:i}=t;return ZS(e,r,i)}return ZS(t)}function ZS(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 WS=f(()=>{"use strict";VS()});function KS(t){let e=t.fetch||((n,o)=>fetch(n,o));if(!t.credentials.length||e[JS]===t.credentials)return e;let i=async(n,o={})=>{let s=OT(n);if(!s)return e(n,o);let a=await HS(s,o,t.credentials),c=await e(a.url,a.options),u=a.credentials.filter(({credential:h})=>typeof h.token=="function"&&h.refreshStatusCodes.includes(c.status));if(!u.length||!UT(o))return c;if(o.signal?.aborted)throw GS();let l=new Map;if(await Promise.all(u.map(async({credential:h})=>{let m=await zT(h,n,c);m&&l.set(h,m)})),!l.size)return c;if(await c.body?.cancel().catch(()=>{}),o.signal?.aborted)throw GS();let d=await HS(s,o,t.credentials,l,a.credentials);return e(d.url,d.options)};return Object.defineProperty(i,JS,{value:t.credentials}),i}async function HS(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),h=u.type==="query-parameter"&&d!==void 0,m=u.type==="header"&&d!==void 0;if(u.type==="query-parameter"&&o.searchParams.has(u.name)&&!h||u.type==="header"&&s.has(u.name)&&!m)continue;let v=l??d??await TT(u.token,{url:t.toString(),reason:"request"});v&&(u.type==="query-parameter"?o.searchParams.set(u.name,v):s.set(u.name,`${u.prefix||""}${v}`),a.push({credential:u,token:v}))}return{url:o.toString(),options:{...e,headers:s},credentials:a}}async function zT(t,e,r){let i=sm.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(()=>sm.delete(t));return sm.set(t,o),o}async function TT(t,e){return typeof t=="function"?t(e):t}function OT(t){try{let e=new URL(t);return["http:","https:"].includes(e.protocol)?e:null}catch{return null}}function UT(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 GS(){return new DOMException("The operation was aborted.","AbortError")}var JS,sm,YS=f(()=>{"use strict";JS=Symbol("loaders.gl.authenticated-fetch"),sm=new WeakMap});function qS(t){for(let e in XS)if(t.startsWith(e)){let r=XS[e];t=t.replace(e,r)}return!t.startsWith("http://")&&!t.startsWith("https://")&&(t=`${NT}${t}`),t}var NT,XS,QS=f(()=>{"use strict";NT="",XS={}});function jl(t){if(t instanceof ArrayBuffer)return t;if(FS(t))return am(t);let{buffer:e,byteOffset:r,byteLength:i}=t;return e instanceof ArrayBuffer&&r===0&&i===e.byteLength?e:am(e,r,i)}function am(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 eI=f(()=>{"use strict";nm()});function LT(t){let e=t?.fetch??t?.core?.fetch,r;return typeof e=="function"?r=(i,n)=>e(i,n):e?r=(i,n)=>fetch(i,PT(e,n)):r=(i,n)=>fetch(i,n),KS({fetch:r,credentials:t?.core?.credentials||[]})}function PT(t,e){let r={...t,...e};return(t.headers||e?.headers)&&(r.headers=FT(t.headers,e?.headers)),r}function FT(t,e){let r=new Headers(t);return e&&new Headers(e).forEach((i,n)=>r.set(n,i)),r}function CT(t){let e={...t};t?.core&&(e.core={...t.core});let r=typeof e.baseUri=="string"?e.baseUri:void 0,i=typeof e.baseUrl=="string"?e.baseUrl:void 0;return(r!==void 0||i!==void 0)&&(e.core||={},e.core.baseUrl===void 0&&(e.core.baseUrl=i??r),delete e.baseUri,delete e.baseUrl),e}function jT(t,e){return t instanceof Error?t:typeof t=="string"?new Error(t):new Error(e)}function Li(t){return()=>{throw new Error(`CoreAPI.${t} is unavailable. Use @loaders.gl/core.createDataSource().`)}}var ET,ja,tI=f(()=>{"use strict";MS();QS();LS();YS();ET={fetchFile:Li("fetchFile"),parse:Li("parse"),parseFile:Li("parseFile"),parseSync:Li("parseSync"),parseInBatches:Li("parseInBatches"),load:Li("load"),loadInBatches:Li("loadInBatches")},ja=class t{static defaultOptions={core:{type:"auto",attributions:[],loadOptions:{},loaders:[],onError:void 0}};optionsType;options;data;url;loadOptions;fetch;coreApi;hasCoreApi;_needsRefresh=!0;constructor(e,r,i,n){i?this.options=CS({...i,core:t.defaultOptions},r):this.options={...r},this.data=e,this.url=typeof e=="string"?qS(e):"";let o=CT(this.options.core?.loadOptions);this.loadOptions=o;let s=LT(o);this.coreApi=n||ET,this.hasCoreApi=!!n,this.fetch=s}setProps(e){this.options=Object.assign(this.options,e),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(e=!0){let r=this._needsRefresh;return e&&(this._needsRefresh=!1),r}reportError(e,r){let i=jT(e,r),n=this.options.core?.onError;return n?n(i,this):ES.warn(`${this.constructor.name}: ${i.message}`)(),i}}});var jo=f(()=>{"use strict";im();im();WS();eI();tI()});var Ml,Rl,Vr,Vl,Mo=f(()=>{"use strict";jo();Ml=class{async preload(e={}){yn(e)}concatenate(e){return om(e)}improveError(e){return e.message.includes(this.name)||(e.message=`${this.name} ${e.message}`),e}},Rl=class extends Ml{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)}},Vr=class extends Ml{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)}},Vl=class extends Rl{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)}}});function lI(t,e){return dm(t,e)}function fI(t,e){return dm((KT(t),t.subarray(2,-4)),e)}var wt,Pi,rI,nI,iI,MT,oI,sI,aI,RT,cI,VT,u8,lm,vn,fe,Ma,Va,fe,fe,fe,fe,uI,fe,ZT,WT,cm,gr,um,JT,Zl,HT,jt,dm,GT,KT,Ra,dI,YT,XT,pI=f(()=>{wt=Uint8Array,Pi=Uint16Array,rI=Uint32Array,nI=new wt([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]),iI=new wt([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]),MT=new wt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oI=function(t,e){for(var r=new Pi(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];for(var n=new rI(r[30]),i=1;i<30;++i)for(var o=r[i];o<r[i+1];++o)n[o]=o-r[i]<<5|i;return[r,n]},sI=oI(nI,2),aI=sI[0],RT=sI[1];aI[28]=258,RT[258]=28;cI=oI(iI,0),VT=cI[0],u8=cI[1],lm=new Pi(32768);for(fe=0;fe<32768;++fe)vn=(fe&43690)>>>1|(fe&21845)<<1,vn=(vn&52428)>>>2|(vn&13107)<<2,vn=(vn&61680)>>>4|(vn&3855)<<4,lm[fe]=((vn&65280)>>>8|(vn&255)<<8)>>>1;Ma=(function(t,e,r){for(var i=t.length,n=0,o=new Pi(e);n<i;++n)t[n]&&++o[t[n]-1];var s=new Pi(e);for(n=0;n<e;++n)s[n]=s[n-1]+o[n-1]<<1;var a;if(r){a=new Pi(1<<e);var c=15-e;for(n=0;n<i;++n)if(t[n])for(var u=n<<4|t[n],l=e-t[n],d=s[t[n]-1]++<<l,h=d|(1<<l)-1;d<=h;++d)a[lm[d]>>>c]=u}else for(a=new Pi(i),n=0;n<i;++n)t[n]&&(a[n]=lm[s[t[n]-1]++]>>>15-t[n]);return a}),Va=new wt(288);for(fe=0;fe<144;++fe)Va[fe]=8;for(fe=144;fe<256;++fe)Va[fe]=9;for(fe=256;fe<280;++fe)Va[fe]=7;for(fe=280;fe<288;++fe)Va[fe]=8;uI=new wt(32);for(fe=0;fe<32;++fe)uI[fe]=5;ZT=Ma(Va,9,1),WT=Ma(uI,5,1),cm=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},gr=function(t,e,r){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(e&7)&r},um=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},JT=function(t){return(t+7)/8|0},Zl=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t.BYTES_PER_ELEMENT==2?Pi:t.BYTES_PER_ELEMENT==4?rI:wt)(r-e);return i.set(t.subarray(e,r)),i},HT=["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"],jt=function(t,e,r){var i=new Error(e||HT[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,jt),!r)throw i;return i},dm=function(t,e,r){var i=t.length;if(!i||r&&r.f&&!r.l)return e||new wt(0);var n=!e||r,o=!r||r.i;r||(r={}),e||(e=new wt(i*3));var s=function($s){var br=e.length;if($s>br){var In=new wt(Math.max(br*2,$s));In.set(e),e=In}},a=r.f||0,c=r.p||0,u=r.b||0,l=r.l,d=r.d,h=r.m,m=r.n,v=i*8;do{if(!l){a=gr(t,c,1);var x=gr(t,c+1,3);if(c+=3,x)if(x==1)l=ZT,d=WT,h=9,m=5;else if(x==2){var ne=gr(t,c,31)+257,ce=gr(t,c+10,15)+4,oe=ne+gr(t,c+5,31)+1;c+=14;for(var W=new wt(oe),Fe=new wt(19),Be=0;Be<ce;++Be)Fe[MT[Be]]=gr(t,c+Be*3,7);c+=ce*3;for(var kt=cm(Fe),Qe=(1<<kt)-1,Vt=Ma(Fe,kt,1),Be=0;Be<oe;){var Dt=Vt[gr(t,c,Qe)];c+=Dt&15;var O=Dt>>>4;if(O<16)W[Be++]=O;else{var Ge=0,ue=0;for(O==16?(ue=3+gr(t,c,3),c+=2,Ge=W[Be-1]):O==17?(ue=3+gr(t,c,7),c+=3):O==18&&(ue=11+gr(t,c,127),c+=7);ue--;)W[Be++]=Ge}}var te=W.subarray(0,ne),Te=W.subarray(ne);h=cm(te),m=cm(Te),l=Ma(te,h,1),d=Ma(Te,m,1)}else jt(1);else{var O=JT(c)+4,ae=t[O-4]|t[O-3]<<8,le=O+ae;if(le>i){o&&jt(0);break}n&&s(u+ae),e.set(t.subarray(O,le),u),r.b=u+=ae,r.p=c=le*8,r.f=a;continue}if(c>v){o&&jt(0);break}}n&&s(u+131072);for(var Gi=(1<<h)-1,Ki=(1<<m)-1,Sn=c;;Sn=c){var Ge=l[um(t,c)&Gi],_r=Ge>>>4;if(c+=Ge&15,c>v){o&&jt(0);break}if(Ge||jt(2),_r<256)e[u++]=_r;else if(_r==256){Sn=c,l=null;break}else{var Ss=_r-254;if(_r>264){var Be=_r-257,Kr=nI[Be];Ss=gr(t,c,(1<<Kr)-1)+aI[Be],c+=Kr}var Yi=d[um(t,c)&Ki],Xi=Yi>>>4;Yi||jt(3),c+=Yi&15;var Te=VT[Xi];if(Xi>3){var Kr=iI[Xi];Te+=um(t,c)&(1<<Kr)-1,c+=Kr}if(c>v){o&&jt(0);break}n&&s(u+131072);for(var Is=u+Ss;u<Is;u+=4)e[u]=e[u-Te],e[u+1]=e[u+1-Te],e[u+2]=e[u+2-Te],e[u+3]=e[u+3-Te];u=Is}}r.l=l,r.p=Sn,r.b=u,r.f=a,l&&(a=1,r.m=h,r.d=d,r.n=m)}while(!a);return u==e.length?e:Zl(e,0,u)},GT=new wt(0),KT=function(t){((t[0]&15)!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&jt(6,"invalid zlib data"),t[1]&32&&jt(6,"invalid zlib data: preset dictionaries not supported")},Ra=(function(){function t(e){this.s={},this.p=new wt(0),this.ondata=e}return t.prototype.e=function(e){this.ondata||jt(5),this.d&&jt(4);var r=this.p.length,i=new wt(r+e.length);i.set(this.p),i.set(e,r),this.p=i},t.prototype.c=function(e){this.d=this.s.i=e||!1;var r=this.s.b,i=dm(this.p,this.o,this.s);this.ondata(Zl(i,r,this.s.b),this.d),this.o=Zl(i,this.s.b-32768),this.s.b=this.o.length,this.p=Zl(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(e,r){this.e(e),this.c(r)},t})();dI=(function(){function t(e){this.v=1,Ra.call(this,e)}return t.prototype.push=function(e,r){if(Ra.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&&jt(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Ra.prototype.c.call(this,r)},t})();YT=typeof TextDecoder<"u"&&new TextDecoder,XT=0;try{YT.decode(GT,{stream:!0}),XT=1}catch{}});async function hI(t,e){let r=qT([t],e);return r?await rO(r):null}function qT(t,e){let r=QT(e);return r?eO(t,r):null}function QT(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*eO(t,e){let r=e.writable.getWriter(),i=e.readable.getReader(),n=tO(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 tO(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 rO(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 mI=f(()=>{"use strict"});async function Mn(t,e){let r=Fi([t],e);return r?await iO(r):null}function Fi(t,e){let r=yI(e);return r?nO(t,r):null}function gI(t){return!!yI(t)}function yI(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*nO(t,e){let r=e.writable.getWriter(),i=e.readable.getReader(),n=sO(t,r);n.catch(()=>{});let o=!1;try{for(;;){let{done:s,value:a}=await i.read();if(s){o=!0;break}yield oO(a)}await n}finally{o||(await i.cancel().catch(()=>{}),await r.abort().catch(()=>{}),await n.catch(()=>{})),i.releaseLock()}}async function iO(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 oO(t){return new Uint8Array(t).buffer}async function sO(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 Ro=f(()=>{"use strict"});var vI={};be(vI,{NativeDecompressor:()=>fm});var fm,_I=f(()=>{"use strict";Mo();Ro();fm=class extends Vr{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 Mn(e,this.format);if(!r)throw new Error(`${this.name}: built-in decompression is no longer available`);return r}async*decompressBatches(e){let r=Fi(e,this.format);if(!r)throw new Error(`${this.name}: built-in decompression is no longer available`);yield*r}}});function aO(t,e){return{...t,modules:{...t.modules,...e}}}var Wl,bI=f(()=>{"use strict";Mo();Ro();Wl=class extends Vr{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=aO(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)&&gI(this.nativeFormat)){let{NativeDecompressor:n}=await Promise.resolve().then(()=>(_I(),vI));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 Gl(t,e){for(var r=[],i=+!e,n=0,o=0;t.length;){var s=pO(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=wO(t,s,e);a||Ve(5),e?s.e=s.y:(r.push(a),o+=a.length,lO(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 xO(r,o)}var cO,Pe,Jl,uO,Hl,pm,Wa,lO,dO,Ve,wI,fO,pO,Ci,Ja,hO,mO,gO,yO,xI,hm,vO,mm,_O,Za,bO,wO,xO,gm=f(()=>{cO=ArrayBuffer,Pe=Uint8Array,Jl=Uint16Array,uO=Int16Array,Hl=Int32Array,pm=function(t,e,r){if(Pe.prototype.slice)return Pe.prototype.slice.call(t,e,r);(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new Pe(r-e);return i.set(t.subarray(e,r)),i},Wa=function(t,e,r,i){if(Pe.prototype.fill)return Pe.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},lO=function(t,e,r,i){if(Pe.prototype.copyWithin)return Pe.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++]},dO=["invalid zstd data","window size too large (>2046MB)","invalid block type","FSE accuracy too high","match distance too far back","unexpected EOF"],Ve=function(t,e,r){var i=new Error(e||dO[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,Ve),!r)throw i;return i},wI=function(t,e,r){for(var i=0,n=0;i<r;++i)n|=t[e++]<<(i<<3);return n},fO=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},pO=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&&Ve(0);var c=6-n,u=s==3?4:s,l=wI(t,c,u);c+=u;var d=a?1<<a:n,h=wI(t,c,d)+(a==1&&256),m=h;if(!n){var v=1<<10+(t[5]>>3);m=v+(v>>3)*(t[5]&7)}m>2145386496&&Ve(1);var x=new Pe((e==1?h||m:e?0:m)+12);return x[0]=1,x[4]=4,x[8]=8,{b:c+d,y:0,l:0,d:l,w:e&&e!=1?e:x.subarray(12),e:m,o:new Hl(x.buffer,0,3),u:h,c:o,m:Math.min(131072,m)}}else if((r>>4|t[3]<<20)==25481893)return fO(t,4)+8;Ve(0)},Ci=function(t){for(var e=0;1<<e<=t;++e);return e-1},Ja=function(t,e,r){var i=(e<<3)+4,n=(t[e]&15)+5;n>r&&Ve(3);for(var o=1<<n,s=o,a=-1,c=-1,u=-1,l=o,d=new cO(512+(o<<2)),h=new uO(d,0,256),m=new Jl(d,0,256),v=new Jl(d,512,o),x=512+(o<<1),O=new Pe(d,x,o),ae=new Pe(d,x+o);a<255&&s>0;){var le=Ci(s+1),ne=i>>3,ce=(1<<le+1)-1,oe=(t[ne]|t[ne+1]<<8|t[ne+2]<<16)>>(i&7)&ce,W=(1<<le)-1,Fe=ce-s-1,Be=oe&W;if(Be<Fe?(i+=le,oe=Be):(i+=le+1,oe>W&&(oe-=Fe)),h[++a]=--oe,oe==-1?(s+=oe,O[--l]=a):s-=oe,!oe)do{var kt=i>>3;c=(t[kt]|t[kt+1]<<8)>>(i&7)&3,i+=2,a+=c}while(c==3)}(a>255||s)&&Ve(0);for(var Qe=0,Vt=(o>>1)+(o>>3)+3,Dt=o-1,Ge=0;Ge<=a;++Ge){var ue=h[Ge];if(ue<1){m[Ge]=-ue;continue}for(u=0;u<ue;++u){O[Qe]=Ge;do Qe=Qe+Vt&Dt;while(Qe>=l)}}for(Qe&&Ve(0),u=0;u<o;++u){var te=m[O[u]]++,Te=ae[u]=n-Ci(te);v[u]=(te<<Te)-o}return[i+7>>3,{b:n,s:O,n:ae,t:v}]},hO=function(t,e){var r=0,i=-1,n=new Pe(292),o=t[e],s=n.subarray(0,256),a=n.subarray(256,268),c=new Jl(n.buffer,268);if(o<128){var u=Ja(t,e+1,6),l=u[0],d=u[1];e+=o;var h=l<<3,m=t[e];m||Ve(0);for(var v=0,x=0,O=d.b,ae=O,le=(++e<<3)-8+Ci(m);le-=O,!(le<h);){var ne=le>>3;if(v+=(t[ne]|t[ne+1]<<8)>>(le&7)&(1<<O)-1,s[++i]=d.s[v],le-=ae,le<h)break;ne=le>>3,x+=(t[ne]|t[ne+1]<<8)>>(le&7)&(1<<ae)-1,s[++i]=d.s[x],O=d.n[v],v=d.t[v],ae=d.n[x],x=d.t[x]}++i>255&&Ve(0)}else{for(i=o-127;r<i;r+=2){var ce=t[++e];s[r]=ce>>4,s[r+1]=ce&15}++e}var oe=0;for(r=0;r<i;++r){var W=s[r];W>11&&Ve(0),oe+=W&&1<<W-1}var Fe=Ci(oe)+1,Be=1<<Fe,kt=Be-oe;for(kt&kt-1&&Ve(0),s[i++]=Ci(kt)+1,r=0;r<i;++r){var W=s[r];++a[s[r]=W&&Fe+1-W]}var Qe=new Pe(Be<<1),Vt=Qe.subarray(0,Be),Dt=Qe.subarray(Be);for(c[Fe]=0,r=Fe;r>0;--r){var Ge=c[r];Wa(Dt,r,Ge,c[r-1]=Ge+a[r]*(1<<Fe-r))}for(c[0]!=Be&&Ve(0),r=0;r<i;++r){var ue=s[r];if(ue){var te=c[ue];Wa(Vt,r,te,c[ue]=te+(1<<Fe-ue))}}return[e,{n:Dt,b:Fe,s:Vt}]},mO=Ja(new Pe([81,16,99,140,49,198,24,99,12,33,196,24,99,102,102,134,70,146,4]),0,6)[1],gO=Ja(new Pe([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],yO=Ja(new Pe([32,132,16,66,102,70,68,68,68,68,36,73,2]),0,5)[1],xI=function(t,e){for(var r=t.length,i=new Hl(r),n=0;n<r;++n)i[n]=e,e+=1<<t[n];return i},hm=new Pe(new Hl([0,0,0,0,16843009,50528770,134678020,202050057,269422093]).buffer,0,36),vO=xI(hm,0),mm=new Pe(new Hl([0,0,0,0,0,0,0,0,16843009,50528770,117769220,185207048,252579084,16]).buffer,0,53),_O=xI(mm,3),Za=function(t,e,r){var i=t.length,n=e.length,o=t[i-1],s=(1<<r.b)-1,a=-r.b;o||Ve(0);for(var c=0,u=r.b,l=(i<<3)-8+Ci(o)-u,d=-1;l>a&&d<n;){var h=l>>3,m=(t[h]|t[h+1]<<8|t[h+2]<<16)>>(l&7);c=(c<<u|m)&s,e[++d]=r.s[c],l-=u=r.n[c]}(l!=a||d+1!=n)&&Ve(0)},bO=function(t,e,r){var i=6,n=e.length,o=n+3>>2,s=o<<1,a=o+s;Za(t.subarray(i,i+=t[0]|t[1]<<8),e.subarray(0,o),r),Za(t.subarray(i,i+=t[2]|t[3]<<8),e.subarray(o,s),r),Za(t.subarray(i,i+=t[4]|t[5]<<8),e.subarray(s,a),r),Za(t.subarray(i),e.subarray(a),r)},wO=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?(Wa(r,t[n],e.y,e.y+=a),r):Wa(new Pe(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):pm(t,n,c);if(s==2){var u=t[n],l=u&3,d=u>>2&3,h=u>>4,m=0,v=0;l<2?d&1?h|=t[++n]<<4|(d&2&&t[++n]<<12):h=u>>3:(v=d,d<2?(h|=(t[++n]&63)<<4,m=t[n]>>6|t[++n]<<2):d==2?(h|=t[++n]<<4|(t[++n]&3)<<12,m=t[n]>>2|t[++n]<<6):(h|=t[++n]<<4|(t[++n]&63)<<12,m=t[n]>>6|t[++n]<<2|t[++n]<<10)),++n;var x=r?r.subarray(e.y,e.y+e.m):new Pe(e.m),O=x.length-h;if(l==0)x.set(t.subarray(n,n+=h),O);else if(l==1)Wa(x,t[n++],O);else{var ae=e.h;if(l==2){var le=hO(t,n);m+=n-(n=le[0]),e.h=ae=le[1]}else ae||Ve(0);(v?bO:Za)(t.subarray(n,n+=m),x.subarray(O),ae)}var ne=t[n++];if(ne){ne==255?ne=(t[n++]|t[n++]<<8)+32512:ne>127&&(ne=ne-128<<8|t[n++]);var ce=t[n++];ce&3&&Ve(0);for(var oe=[gO,yO,mO],W=2;W>-1;--W){var Fe=ce>>(W<<1)+2&3;if(Fe==1){var Be=new Pe([0,0,t[n++]]);oe[W]={s:Be.subarray(2,3),n:Be.subarray(0,1),t:new Jl(Be.buffer,0,1),b:0}}else Fe==2?(i=Ja(t,n,9-(W&1)),n=i[0],oe[W]=i[1]):Fe==3&&(e.t||Ve(0),oe[W]=e.t[W])}var kt=e.t=oe,Qe=kt[0],Vt=kt[1],Dt=kt[2],Ge=t[c-1];Ge||Ve(0);var ue=(c<<3)-8+Ci(Ge)-Dt.b,te=ue>>3,Te=0,Gi=(t[te]|t[te+1]<<8)>>(ue&7)&(1<<Dt.b)-1;te=(ue-=Vt.b)>>3;var Ki=(t[te]|t[te+1]<<8)>>(ue&7)&(1<<Vt.b)-1;te=(ue-=Qe.b)>>3;var Sn=(t[te]|t[te+1]<<8)>>(ue&7)&(1<<Qe.b)-1;for(++ne;--ne;){var _r=Dt.s[Gi],Ss=Dt.n[Gi],Kr=Qe.s[Sn],Yi=Qe.n[Sn],Xi=Vt.s[Ki],Is=Vt.n[Ki];te=(ue-=Xi)>>3;var $s=1<<Xi,br=$s+((t[te]|t[te+1]<<8|t[te+2]<<16|t[te+3]<<24)>>>(ue&7)&$s-1);te=(ue-=mm[Kr])>>3;var In=_O[Kr]+((t[te]|t[te+1]<<8|t[te+2]<<16)>>(ue&7)&(1<<mm[Kr])-1);te=(ue-=hm[_r])>>3;var jc=vO[_r]+((t[te]|t[te+1]<<8|t[te+2]<<16)>>(ue&7)&(1<<hm[_r])-1);if(te=(ue-=Ss)>>3,Gi=Dt.t[Gi]+((t[te]|t[te+1]<<8)>>(ue&7)&(1<<Ss)-1),te=(ue-=Yi)>>3,Sn=Qe.t[Sn]+((t[te]|t[te+1]<<8)>>(ue&7)&(1<<Yi)-1),te=(ue-=Is)>>3,Ki=Vt.t[Ki]+((t[te]|t[te+1]<<8)>>(ue&7)&(1<<Is)-1),br>3)e.o[2]=e.o[1],e.o[1]=e.o[0],e.o[0]=br-=3;else{var Mc=br-(jc!=0);Mc?(br=Mc==3?e.o[0]-1:e.o[Mc],Mc>1&&(e.o[2]=e.o[1]),e.o[1]=e.o[0],e.o[0]=br):br=e.o[0]}for(var W=0;W<jc;++W)x[Te+W]=x[O+W];Te+=jc,O+=jc;var ks=Te-br;if(ks<0){var Ds=-ks,VD=e.e+ks;Ds>In&&(Ds=In);for(var W=0;W<Ds;++W)x[Te+W]=e.w[VD+W];Te+=Ds,In-=Ds,ks=0}for(var W=0;W<In;++W)x[Te+W]=x[ks+W];Te+=In}if(Te!=O)for(;O<x.length;)x[Te++]=x[O++];else Te=x.length;r?e.y+=Te:x=pm(x,0,Te)}else if(r){if(e.y+=h,O)for(var W=0;W<h;++W)x[W]=x[O+W]}else O&&(x=pm(x,O));return e.b=c,x}Ve(2)}},xO=function(t,e){if(t.length==1)return t[0];for(var r=new Pe(e),i=0,n=0;i<t.length;++i){var o=t[i];r.set(o,n),n+=o.length}return r}});var Kl,SI=f(()=>{"use strict";Mo();gm();Kl=class extends Vr{name="zstd";extensions=["zst"];contentEncodings=["zstd"];isSupported=!0;constructor(e={}){super(e)}decompressSync(e){return Gl(new Uint8Array(e)).slice().buffer}}});var II={};be(II,{decompressZstd:()=>SO});function SO(t){return Gl(t)}var $I=f(()=>{"use strict";gm()});var DI={};be(DI,{ZstdCompression:()=>ym});var kI,Yl,Ha,ym,AI=f(()=>{"use strict";Mo();jo();mI();Ro();kI=1e6,ym=class extends Vl{name="zstd";extensions=[];contentEncodings=[];isSupported=!0;options;constructor(e={}){super(e),this.options=e,yn(e?.modules)}async preload(e={}){yn(e);let r=mr("zstd-codec");!Yl&&r&&(Yl=new Promise(i=>r.run(n=>i(n)))),Yl&&(Ha=await Yl)}compressSync(e){Cl("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 hI(e,"zstd");if(r)return r}return await this.preload(),this.compressSync(e)}decompressSync(e){Cl("zstd-codec",this.name);let r=new Ha.Simple,i=new Uint8Array(e);return r.decompress(i).buffer}async decompress(e,r){if(!mr("zstd-codec")&&this.options.useNative!==!1&&this.options.zstd?.useNative!==!1){let a=await Mn(e,"zstd");if(a)return a}await this.preload();let i=new Uint8Array(e);if(!Ha){let{decompressZstd:a}=await Promise.resolve().then(()=>($I(),II));return jl(a(i))}let n=new Ha.Streaming,o=[];for(let a=0;a<=i.length;a+=kI){let c=i.subarray(a,a+kI),u=jl(c);o.push(new Uint8Array(u))}return(await n.decompressChunks(o)).buffer}}});var BI={};be(BI,{ZstdDecompressor:()=>vm});var vm,zI=f(()=>{"use strict";SI();Ro();jo();vm=class extends Kl{options;compatibility=null;constructor(e={}){super(e),this.options=e,yn(e.modules)}async preload(e={}){if(yn(e),mr("zstd-codec")){let{ZstdCompression:r}=await Promise.resolve().then(()=>(AI(),DI));this.compatibility||=new r(this.options),await this.compatibility.preload(e)}}async decompress(e){if(this.options.useNative!==!1){let r=await Mn(e,"zstd");if(r)return r}return mr("zstd-codec")&&await this.preload(this.options.modules),this.decompressSync(e)}decompressSync(e){if(this.compatibility)return this.compatibility.decompressSync(e);if(mr("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=Fi(e,"zstd");if(r){yield*r;return}}if(mr("zstd-codec")){yield this.decompress(await this.concatenate(e));return}yield*super.decompressBatches(e)}}});var IO,Ga,TI=f(()=>{"use strict";bI();jo();IO={name:"zstd",extensions:["zst"],contentEncodings:["zstd"]},Ga=class extends Wl{constructor(e={}){super(IO,async()=>(await Promise.resolve().then(()=>(zI(),BI))).ZstdDecompressor,e,"zstd",r=>!r.modules?.["zstd-codec"]&&!mr("zstd-codec"))}}});var OI=f(()=>{"use strict";TI()});async function LI(t,e){return Rr(await BO(t,e))}async function BO(t,e){let r=zO(t),i=TO(t,r,OO(r)),n=i.map(a=>t.slice(a.compressedOffset,a.compressedOffset+a.compressedSize)),o=new Ga({modules:e?.modules}),s=await Promise.all(n.map((a,c)=>o.decompress(a,i[c].uncompressedSize)));return UO(s,i),NO(r,s,t)}function zO(t){if(t.byteLength<Ka)throw new Error(`SPZLoader: file must contain a ${Ka}-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!==$O)throw new Error("SPZLoader: NGSP magic header not found.");if(r.version!==kO)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<Ka||r.tocByteOffset>t.byteLength)throw new Error("SPZLoader: invalid table of contents byte offset.");return r}function TO(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=NI(o,u),d=NI(o,u+8),h=r[c];if(d!==h)throw new Error(`SPZLoader: stream ${c} has ${d} uncompressed bytes, expected ${h}.`);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 NI(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 OO(t){return[t.numPoints*9,t.numPoints,t.numPoints*3,t.numPoints*3,t.numPoints*4,t.numPoints*PI(t.shDegree)].filter(e=>e>0)}function UO(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 NO(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=PI(t.shDegree),d=l?new Float32Array(i*l):void 0,[h,m,v,x,O,ae]=e.map(le=>new Uint8Array(le));return EO(h,n,t.fractionalBits),LO(x,o),PO(O,s),CO(v,a,c),jO(m,u),d&&ae&&MO(ae,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:FI(t),extensionBytes:VO(r,t)}}}function EO(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 LO(t,e){for(let r=0;r<e.length;r++)e[r]=Math.exp(t[r]/16-10)}function PO(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=FO(n>>>0),[s,a,c,u]=mn(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 FO(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&UI,a=i>>>9&1;i>>>=10;let c=AO*s/UI;a&&(c=-c),e[o]=c,n+=c*c}return e[r]=Math.sqrt(Math.max(0,1-n)),e}function CO(t,e,r){for(let i=0;i<e.length;i++)r[i]=(t[i]/255-.5)/EI,e[i]=RO(r[i])}function jO(t,e){for(let r=0;r<e.length;r++)e[r]=t[r]/255}function MO(t,e){for(let r=0;r<e.length;r++)e[r]=(t[r]-128)/128}function RO(t){return Math.min(Math.max(Math.round((t*EI+.5)*255),0),255)}function PI(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 FI(t){return t.flags&DO?t.tocByteOffset-Ka:0}function VO(t,e){return FI(e)?new Uint8Array(t.slice(Ka,e.tocByteOffset)):void 0}var Ka,$O,kO,DO,EI,AO,UI,CI=f(()=>{"use strict";OI();Eo();Uo();Ka=32,$O=1347635022,kO=4,DO=2,EI=.15,AO=Math.SQRT1_2,UI=511});var jI={};be(jI,{SPZLoaderWithParser:()=>WO});var oZ,ZO,WO,MI=f(()=>{"use strict";CI();_m();({preload:oZ,...ZO}=Xl),WO={...ZO,parse:async(t,e)=>LI(t,e)}});async function HO(){let{SPZLoaderWithParser:t}=await Promise.resolve().then(()=>(MI(),jI));return t}var JO,Xl,_m=f(()=>{"use strict";Qn();JO="5.0.0-alpha.3";Xl={dataType:null,batchType:null,...Hc,version:JO,options:{splats:{shape:"arrow-table"}},preload:HO}});function g(t,e,r){function i(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(t))return;a._zod.traits.add(t),e(a,c);let u=s.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){let h=l[d];h in a||(a[h]=u[h].bind(a))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:t});function s(a){var c;let u=r?.Parent?new o:this;i(u,a),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}function Ee(t){return t&&Object.assign(Ya,t),Ya}var bm,ql,yr,Rn,Ya,Vo=f(()=>{bm=Object.freeze({status:"aborted"});ql=Symbol("zod_brand"),yr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Rn=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}},Ya={}});var w={};be(w,{BIGINT_FORMAT_RANGES:()=>zm,Class:()=>xm,NUMBER_FORMAT_RANGES:()=>Bm,aborted:()=>Jn,allowsEval:()=>$m,assert:()=>qO,assertEqual:()=>GO,assertIs:()=>YO,assertNever:()=>XO,assertNotEqual:()=>KO,assignProp:()=>Zn,base64ToUint8Array:()=>VI,base64urlToUint8Array:()=>mU,cached:()=>Wo,captureStackTrace:()=>ed,cleanEnum:()=>hU,cleanRegex:()=>Qa,clone:()=>lt,cloneDef:()=>eU,createTransparentProxy:()=>sU,defineLazy:()=>ee,esc:()=>Ql,escapeRegex:()=>Qt,extend:()=>uU,finalizeIssue:()=>xt,floatSafeRemainder:()=>Sm,getElementAtPath:()=>tU,getEnumValues:()=>qa,getLengthableOrigin:()=>rc,getParsedType:()=>oU,getSizableOrigin:()=>tc,hexToUint8Array:()=>yU,isObject:()=>ji,isPlainObject:()=>Wn,issue:()=>Jo,joinValues:()=>y,jsonStringifyReplacer:()=>Zo,merge:()=>dU,mergeDefs:()=>_n,normalizeParams:()=>S,nullish:()=>Vn,numKeys:()=>iU,objectClone:()=>QO,omit:()=>cU,optionalKeys:()=>Am,parsedType:()=>b,partial:()=>fU,pick:()=>aU,prefixIssues:()=>Mt,primitiveTypes:()=>Dm,promiseAllObject:()=>rU,propertyKeyTypes:()=>ec,randomString:()=>nU,required:()=>pU,safeExtend:()=>lU,shallowClone:()=>km,slugify:()=>Im,stringifyPrimitive:()=>_,uint8ArrayToBase64:()=>ZI,uint8ArrayToBase64url:()=>gU,uint8ArrayToHex:()=>vU,unwrapMessage:()=>Xa});function GO(t){return t}function KO(t){return t}function YO(t){}function XO(t){throw new Error("Unexpected value in exhaustive check")}function qO(t){}function qa(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 y(t,e="|"){return t.map(r=>_(r)).join(e)}function Zo(t,e){return typeof e=="bigint"?e.toString():e}function Wo(t){return{get value(){{let r=t();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Vn(t){return t==null}function Qa(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Sm(t,e){let r=(t.toString().split(".")[1]||"").length,i=e.toString(),n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){let c=i.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[1]))}let o=r>n?r:n,s=Number.parseInt(t.toFixed(o).replace(".","")),a=Number.parseInt(e.toFixed(o).replace(".",""));return s%a/10**o}function ee(t,e,r){let i;Object.defineProperty(t,e,{get(){if(i!==RI)return i===void 0&&(i=RI,i=r()),i},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}function QO(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function Zn(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function _n(...t){let e={};for(let r of t){let i=Object.getOwnPropertyDescriptors(r);Object.assign(e,i)}return Object.defineProperties({},e)}function eU(t){return _n(t._zod.def)}function tU(t,e){return e?e.reduce((r,i)=>r?.[i],t):t}function rU(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 nU(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}function Ql(t){return JSON.stringify(t)}function Im(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function ji(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Wn(t){if(ji(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(ji(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function km(t){return Wn(t)?{...t}:Array.isArray(t)?[...t]:t}function iU(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}function Qt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function lt(t,e,r){let i=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(i._zod.parent=t),i}function S(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 sU(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 Am(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}function aU(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=_n(t._zod.def,{get shape(){let s={};for(let a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&(s[a]=r.shape[a])}return Zn(this,"shape",s),s},checks:[]});return lt(t,o)}function cU(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=_n(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let a in e){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);e[a]&&delete s[a]}return Zn(this,"shape",s),s},checks:[]});return lt(t,o)}function uU(t,e){if(!Wn(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let o=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(o,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=_n(t._zod.def,{get shape(){let o={...t._zod.def.shape,...e};return Zn(this,"shape",o),o}});return lt(t,n)}function lU(t,e){if(!Wn(e))throw new Error("Invalid input to safeExtend: expected a plain object");let r=_n(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e};return Zn(this,"shape",i),i}});return lt(t,r)}function dU(t,e){let r=_n(t._zod.def,{get shape(){let i={...t._zod.def.shape,...e._zod.def.shape};return Zn(this,"shape",i),i},get catchall(){return e._zod.def.catchall},checks:[]});return lt(t,r)}function fU(t,e,r){let n=e._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=_n(e._zod.def,{get shape(){let a=e._zod.def.shape,c={...a};if(r)for(let u in r){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=t?new t({type:"optional",innerType:a[u]}):a[u])}else for(let u in a)c[u]=t?new t({type:"optional",innerType:a[u]}):a[u];return Zn(this,"shape",c),c},checks:[]});return lt(e,s)}function pU(t,e,r){let i=_n(e._zod.def,{get shape(){let n=e._zod.def.shape,o={...n};if(r)for(let s in r){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(o[s]=new t({type:"nonoptional",innerType:n[s]}))}else for(let s in n)o[s]=new t({type:"nonoptional",innerType:n[s]});return Zn(this,"shape",o),o}});return lt(e,i)}function Jn(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 Mt(t,e){return e.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(t),r})}function Xa(t){return typeof t=="string"?t:t?.message}function xt(t,e,r){let i={...t,path:t.path??[]};if(!t.message){let n=Xa(t.inst?._zod.def?.error?.(t))??Xa(e?.error?.(t))??Xa(r.customError?.(t))??Xa(r.localeError?.(t))??"Invalid input";i.message=n}return delete i.inst,delete i.continue,e?.reportInput||delete i.input,i}function tc(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function rc(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function b(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 Jo(...t){let[e,r,i]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:i}:{...e}}function hU(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function VI(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 ZI(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function mU(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return VI(e+r)}function gU(t){return ZI(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function yU(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 vU(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}var RI,ed,$m,oU,ec,Dm,Bm,zm,xm,U=f(()=>{RI=Symbol("evaluating");ed="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};$m=Wo(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});oU=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}`)}},ec=new Set(["string","number","symbol"]),Dm=new Set(["string","number","bigint","boolean","symbol","undefined"]);Bm={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]},zm={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};xm=class{constructor(...e){}}});function ic(t,e=r=>r.message){let r={},i=[];for(let n of t.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:r}}function oc(t,e=r=>r.message){let r={_errors:[]},i=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>i({issues:s}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)r._errors.push(e(o));else{let s=r,a=0;for(;a<o.path.length;){let c=o.path[a];a===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(e(o))):s[c]=s[c]||{_errors:[]},s=s[c],a++}}};return i(t),r}function Tm(t,e=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var s,a;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},c.path));else if(c.code==="invalid_key")i({issues:c.issues},c.path);else if(c.code==="invalid_element")i({issues:c.issues},c.path);else{let u=[...o,...c.path];if(u.length===0){r.errors.push(e(c));continue}let l=r,d=0;for(;d<u.length;){let h=u[d],m=d===u.length-1;typeof h=="string"?(l.properties??(l.properties={}),(s=l.properties)[h]??(s[h]={errors:[]}),l=l.properties[h]):(l.items??(l.items=[]),(a=l.items)[h]??(a[h]={errors:[]}),l=l.items[h]),m&&l.errors.push(e(c)),d++}}};return i(t),r}function JI(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 Om(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 ${JI(i.path)}`);return e.join(`
|
|
17
|
+
`)}var WI,nc,St,Um=f(()=>{Vo();U();WI=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Zo,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},nc=g("$ZodError",WI),St=g("$ZodError",WI,{Parent:Error})});var Ho,td,Go,rd,Ko,Nm,Yo,Em,nd,bU,id,wU,od,xU,sd,SU,ad,IU,cd,$U,ud,kU,ld,DU,Lm=f(()=>{Vo();Um();U();Ho=t=>(e,r,i,n)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},s=e._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new yr;if(s.issues.length){let a=new(n?.Err??t)(s.issues.map(c=>xt(c,o,Ee())));throw ed(a,n?.callee),a}return s.value},td=Ho(St),Go=t=>async(e,r,i,n)=>{let o=i?Object.assign(i,{async:!0}):{async:!0},s=e._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let a=new(n?.Err??t)(s.issues.map(c=>xt(c,o,Ee())));throw ed(a,n?.callee),a}return s.value},rd=Go(St),Ko=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 yr;return o.issues.length?{success:!1,error:new(t??nc)(o.issues.map(s=>xt(s,n,Ee())))}:{success:!0,data:o.value}},Nm=Ko(St),Yo=t=>async(e,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},o=e._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new t(o.issues.map(s=>xt(s,n,Ee())))}:{success:!0,data:o.value}},Em=Yo(St),nd=t=>(e,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ho(t)(e,r,n)},bU=nd(St),id=t=>(e,r,i)=>Ho(t)(e,r,i),wU=id(St),od=t=>async(e,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Go(t)(e,r,n)},xU=od(St),sd=t=>async(e,r,i)=>Go(t)(e,r,i),SU=sd(St),ad=t=>(e,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ko(t)(e,r,n)},IU=ad(St),cd=t=>(e,r,i)=>Ko(t)(e,r,i),$U=cd(St),ud=t=>async(e,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Yo(t)(e,r,n)},kU=ud(St),ld=t=>async(e,r,i)=>Yo(t)(e,r,i),DU=ld(St)});var er={};be(er,{base64:()=>qm,base64url:()=>dd,bigint:()=>ig,boolean:()=>sg,browserEmail:()=>EU,cidrv4:()=>Ym,cidrv6:()=>Xm,cuid:()=>Pm,cuid2:()=>Fm,date:()=>eg,datetime:()=>rg,domain:()=>FU,duration:()=>Vm,e164:()=>Qm,email:()=>Wm,emoji:()=>Jm,extendedDuration:()=>AU,guid:()=>Zm,hex:()=>CU,hostname:()=>PU,html5Email:()=>OU,idnEmail:()=>NU,integer:()=>og,ipv4:()=>Hm,ipv6:()=>Gm,ksuid:()=>Mm,lowercase:()=>ug,mac:()=>Km,md5_base64:()=>MU,md5_base64url:()=>RU,md5_hex:()=>jU,nanoid:()=>Rm,null:()=>ag,number:()=>fd,rfc5322Email:()=>UU,sha1_base64:()=>ZU,sha1_base64url:()=>WU,sha1_hex:()=>VU,sha256_base64:()=>HU,sha256_base64url:()=>GU,sha256_hex:()=>JU,sha384_base64:()=>YU,sha384_base64url:()=>XU,sha384_hex:()=>KU,sha512_base64:()=>QU,sha512_base64url:()=>e4,sha512_hex:()=>qU,string:()=>ng,time:()=>tg,ulid:()=>Cm,undefined:()=>cg,unicodeEmail:()=>HI,uppercase:()=>lg,uuid:()=>Mi,uuid4:()=>BU,uuid6:()=>zU,uuid7:()=>TU,xid:()=>jm});function Jm(){return new RegExp(LU,"u")}function KI(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tg(t){return new RegExp(`^${KI(t)}$`)}function rg(t){let e=KI({precision:t.precision}),r=["Z"];t.local&&r.push(""),t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${e}(?:${r.join("|")})`;return new RegExp(`^${GI}T(?:${i})$`)}function sc(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function ac(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var Pm,Fm,Cm,jm,Mm,Rm,Vm,AU,Zm,Mi,BU,zU,TU,Wm,OU,UU,HI,NU,EU,LU,Hm,Gm,Km,Ym,Xm,qm,dd,PU,FU,Qm,GI,eg,ng,ig,og,fd,sg,ag,cg,ug,lg,CU,jU,MU,RU,VU,ZU,WU,JU,HU,GU,KU,YU,XU,qU,QU,e4,pd=f(()=>{U();Pm=/^[cC][^\s-]{8,}$/,Fm=/^[0-9a-z]+$/,Cm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,jm=/^[0-9a-vA-V]{20}$/,Mm=/^[A-Za-z0-9]{27}$/,Rm=/^[a-zA-Z0-9_-]{21}$/,Vm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,AU=/^[-+]?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)?)??$/,Zm=/^([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})$/,Mi=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)$/,BU=Mi(4),zU=Mi(6),TU=Mi(7),Wm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,OU=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,UU=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,HI=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,NU=HI,EU=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,LU="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";Hm=/^(?:(?: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])$/,Gm=/^(([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}|:))$/,Km=t=>{let e=Qt(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Ym=/^((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])$/,Xm=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,qm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,dd=/^[A-Za-z0-9_-]*$/,PU=/^(?=.{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])?)*\.?$/,FU=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Qm=/^\+[1-9]\d{6,14}$/,GI="(?:(?:\\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])))",eg=new RegExp(`^${GI}$`);ng=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},ig=/^-?\d+n?$/,og=/^-?\d+$/,fd=/^-?\d+(?:\.\d+)?$/,sg=/^(?:true|false)$/i,ag=/^null$/i,cg=/^undefined$/i,ug=/^[^A-Z]*$/,lg=/^[^a-z]*$/,CU=/^[0-9a-fA-F]*$/;jU=/^[0-9a-fA-F]{32}$/,MU=sc(22,"=="),RU=ac(22),VU=/^[0-9a-fA-F]{40}$/,ZU=sc(27,"="),WU=ac(27),JU=/^[0-9a-fA-F]{64}$/,HU=sc(43,"="),GU=ac(43),KU=/^[0-9a-fA-F]{96}$/,YU=sc(64,""),XU=ac(64),qU=/^[0-9a-fA-F]{128}$/,QU=sc(86,"=="),e4=ac(86)});function YI(t,e,r){t.issues.length&&e.issues.push(...Mt(r,t.issues))}var $e,XI,hd,md,dg,fg,pg,hg,mg,gg,yg,vg,_g,Xo,bg,wg,xg,Sg,Ig,$g,kg,Dg,Ag,gd=f(()=>{Vo();pd();U();$e=g("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),XI={number:"number",bigint:"bigint",object:"date"},hd=g("$ZodCheckLessThan",(t,e)=>{$e.init(t,e);let r=XI[typeof e.value];t._zod.onattach.push(i=>{let n=i._zod.bag,o=(e.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<o&&(e.inclusive?n.maximum=e.value:n.exclusiveMaximum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value<e.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),md=g("$ZodCheckGreaterThan",(t,e)=>{$e.init(t,e);let r=XI[typeof e.value];t._zod.onattach.push(i=>{let n=i._zod.bag,o=(e.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>o&&(e.inclusive?n.minimum=e.value:n.exclusiveMinimum=e.value)}),t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),dg=g("$ZodCheckMultipleOf",(t,e)=>{$e.init(t,e),t._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=e.value)}),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%e.value===BigInt(0):Sm(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})}}),fg=g("$ZodCheckNumberFormat",(t,e)=>{$e.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),i=r?"int":"number",[n,o]=Bm[e.format];t._zod.onattach.push(s=>{let a=s._zod.bag;a.format=e.format,a.minimum=n,a.maximum=o,r&&(a.pattern=og)}),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})}}),pg=g("$ZodCheckBigIntFormat",(t,e)=>{$e.init(t,e);let[r,i]=zm[e.format];t._zod.onattach.push(n=>{let o=n._zod.bag;o.format=e.format,o.minimum=r,o.maximum=i}),t._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),hg=g("$ZodCheckMaxSize",(t,e)=>{var r;$e.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Vn(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let n=i.value;n.size<=e.maximum||i.issues.push({origin:tc(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),mg=g("$ZodCheckMinSize",(t,e)=>{var r;$e.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Vn(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let n=i.value;n.size>=e.minimum||i.issues.push({origin:tc(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),gg=g("$ZodCheckSizeEquals",(t,e)=>{var r;$e.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Vn(n)&&n.size!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=e.size,n.maximum=e.size,n.size=e.size}),t._zod.check=i=>{let n=i.value,o=n.size;if(o===e.size)return;let s=o>e.size;i.issues.push({origin:tc(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})}}),yg=g("$ZodCheckMaxLength",(t,e)=>{var r;$e.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Vn(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<n&&(i._zod.bag.maximum=e.maximum)}),t._zod.check=i=>{let n=i.value;if(n.length<=e.maximum)return;let s=rc(n);i.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),vg=g("$ZodCheckMinLength",(t,e)=>{var r;$e.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Vn(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>n&&(i._zod.bag.minimum=e.minimum)}),t._zod.check=i=>{let n=i.value;if(n.length>=e.minimum)return;let s=rc(n);i.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),_g=g("$ZodCheckLengthEquals",(t,e)=>{var r;$e.init(t,e),(r=t._zod.def).when??(r.when=i=>{let n=i.value;return!Vn(n)&&n.length!==void 0}),t._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=e.length,n.maximum=e.length,n.length=e.length}),t._zod.check=i=>{let n=i.value,o=n.length;if(o===e.length)return;let s=rc(n),a=o>e.length;i.issues.push({origin:s,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),Xo=g("$ZodCheckStringFormat",(t,e)=>{var r,i;$e.init(t,e),t._zod.onattach.push(n=>{let o=n._zod.bag;o.format=e.format,e.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(e.pattern))}),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=t._zod).check??(i.check=()=>{})}),bg=g("$ZodCheckRegex",(t,e)=>{Xo.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})}}),wg=g("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=ug),Xo.init(t,e)}),xg=g("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=lg),Xo.init(t,e)}),Sg=g("$ZodCheckIncludes",(t,e)=>{$e.init(t,e);let r=Qt(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position}}${r}`:r);e.pattern=i,t._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),Ig=g("$ZodCheckStartsWith",(t,e)=>{$e.init(t,e);let r=new RegExp(`^${Qt(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=i=>{i.value.startsWith(e.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:i.value,inst:t,continue:!e.abort})}}),$g=g("$ZodCheckEndsWith",(t,e)=>{$e.init(t,e);let r=new RegExp(`.*${Qt(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),t._zod.check=i=>{i.value.endsWith(e.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:i.value,inst:t,continue:!e.abort})}});kg=g("$ZodCheckProperty",(t,e)=>{$e.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=>YI(n,r,e.property));YI(i,r,e.property)}}),Dg=g("$ZodCheckMimeType",(t,e)=>{$e.init(t,e);let r=new Set(e.mime);t._zod.onattach.push(i=>{i._zod.bag.mime=e.mime}),t._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:e.mime,input:i.value.type,inst:t,continue:!e.abort})}}),Ag=g("$ZodCheckOverwrite",(t,e)=>{$e.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}})});var cc,Bg=f(()=>{cc=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let i=e.split(`
|
|
18
|
+
`).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?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new e(...r,n.join(`
|
|
19
|
+
`))}}});var zg,Tg=f(()=>{zg={major:4,minor:3,patch:6}});function Qg(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}function l$(t){if(!dd.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return Qg(r)}function d$(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 QI(t,e,r){t.issues.length&&e.issues.push(...Mt(r,t.issues)),e.value[r]=t.value}function wd(t,e,r,i,n){if(t.issues.length){if(n&&!(r in i))return;e.issues.push(...Mt(r,t.issues))}t.value===void 0?r in i&&(e.value[r]=void 0):e.value[r]=t.value}function f$(t){let e=Object.keys(t.shape);for(let i of e)if(!t.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=Am(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}}function p$(t,e,r,i,n,o){let s=[],a=n.keySet,c=n.catchall._zod,u=c.def.type,l=c.optout==="optional";for(let d in e){if(a.has(d))continue;if(u==="never"){s.push(d);continue}let h=c.run({value:e[d],issues:[]},i);h instanceof Promise?t.push(h.then(m=>wd(m,r,d,e,l))):wd(h,r,d,e,l)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:o}),t.length?Promise.all(t).then(()=>r):r}function e$(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=>!Jn(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=>xt(s,i,Ee())))}),e)}function t$(t,e,r,i){let n=t.filter(o=>o.issues.length===0);return n.length===1?(e.value=n[0].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(s=>xt(s,i,Ee())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1}),e)}function Og(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(Wn(t)&&Wn(e)){let r=Object.keys(e),i=Object.keys(t).filter(o=>r.indexOf(o)!==-1),n={...t,...e};for(let o of i){let s=Og(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=Og(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 r$(t,e,r){let i=new Map,n;for(let a of e.issues)if(a.code==="unrecognized_keys"){n??(n=a);for(let c of a.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else t.issues.push(a);for(let a of r.issues)if(a.code==="unrecognized_keys")for(let c of a.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else t.issues.push(a);let o=[...i].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(o.length&&n&&t.issues.push({...n,keys:o}),Jn(t))return t;let s=Og(e.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}function yd(t,e,r){t.issues.length&&e.issues.push(...Mt(r,t.issues)),e.value[r]=t.value}function n$(t,e,r,i,n,o,s){t.issues.length&&(ec.has(typeof i)?r.issues.push(...Mt(i,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:t.issues.map(a=>xt(a,s,Ee()))})),e.issues.length&&(ec.has(typeof i)?r.issues.push(...Mt(i,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:e.issues.map(a=>xt(a,s,Ee()))})),r.value.set(t.value,e.value)}function i$(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}function o$(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}function s$(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}function a$(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){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}function _d(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=>bd(t,o,e.out,r)):bd(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(o=>bd(t,o,e.in,r)):bd(t,n,e.in,r)}}function bd(t,e,r,i){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},i)}function c$(t){return t.value=Object.freeze(t.value),t}function u$(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(Jo(n))}}var H,Ri,ve,Ug,Ng,Eg,Lg,Pg,Fg,Cg,jg,Mg,Rg,Vg,Zg,Wg,Jg,Hg,Gg,Kg,Yg,Xg,qg,ey,ty,ry,ny,iy,xd,oy,uc,Sd,sy,ay,cy,uy,ly,dy,fy,py,hy,my,h$,gy,lc,yy,vy,_y,Id,by,wy,xy,Sy,Iy,$y,ky,$d,Dy,Ay,By,zy,Ty,Oy,Uy,Ny,Ey,dc,Ly,Py,Fy,Cy,jy,My,Ry=f(()=>{gd();Vo();Bg();Lm();pd();U();Tg();U();H=g("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=zg;let i=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&i.unshift(t);for(let n of i)for(let o of n._zod.onattach)o(t);if(i.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let n=(s,a,c)=>{let u=Jn(s),l;for(let d of a){if(d._zod.def.when){if(!d._zod.def.when(s))continue}else if(u)continue;let h=s.issues.length,m=d._zod.check(s);if(m instanceof Promise&&c?.async===!1)throw new yr;if(l||m instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await m,s.issues.length!==h&&(u||(u=Jn(s,h)))});else{if(s.issues.length===h)continue;u||(u=Jn(s,h))}}return l?l.then(()=>s):s},o=(s,a,c)=>{if(Jn(s))return s.aborted=!0,s;let u=n(a,i,c);if(u instanceof Promise){if(c.async===!1)throw new yr;return u.then(l=>t._zod.parse(l,c))}return t._zod.parse(u,c)};t._zod.run=(s,a)=>{if(a.skipChecks)return t._zod.parse(s,a);if(a.direction==="backward"){let u=t._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(l=>o(l,s,a)):o(u,s,a)}let c=t._zod.parse(s,a);if(c instanceof Promise){if(a.async===!1)throw new yr;return c.then(u=>n(u,i,a))}return n(c,i,a)}}ee(t,"~standard",()=>({validate:n=>{try{let o=Nm(t,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Em(t,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Ri=g("$ZodString",(t,e)=>{H.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??ng(t._zod.bag),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),ve=g("$ZodStringFormat",(t,e)=>{Xo.init(t,e),Ri.init(t,e)}),Ug=g("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Zm),ve.init(t,e)}),Ng=g("$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=Mi(i))}else e.pattern??(e.pattern=Mi());ve.init(t,e)}),Eg=g("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Wm),ve.init(t,e)}),Lg=g("$ZodURL",(t,e)=>{ve.init(t,e),t._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort})),e.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),Pg=g("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Jm()),ve.init(t,e)}),Fg=g("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Rm),ve.init(t,e)}),Cg=g("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Pm),ve.init(t,e)}),jg=g("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Fm),ve.init(t,e)}),Mg=g("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Cm),ve.init(t,e)}),Rg=g("$ZodXID",(t,e)=>{e.pattern??(e.pattern=jm),ve.init(t,e)}),Vg=g("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Mm),ve.init(t,e)}),Zg=g("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=rg(e)),ve.init(t,e)}),Wg=g("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=eg),ve.init(t,e)}),Jg=g("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=tg(e)),ve.init(t,e)}),Hg=g("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Vm),ve.init(t,e)}),Gg=g("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Hm),ve.init(t,e),t._zod.bag.format="ipv4"}),Kg=g("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Gm),ve.init(t,e),t._zod.bag.format="ipv6",t._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}}),Yg=g("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=Km(e.delimiter)),ve.init(t,e),t._zod.bag.format="mac"}),Xg=g("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Ym),ve.init(t,e)}),qg=g("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=Xm),ve.init(t,e),t._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,o]=i;if(!o)throw new Error;let s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}}});ey=g("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=qm),ve.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=r=>{Qg(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}});ty=g("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=dd),ve.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=r=>{l$(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),ry=g("$ZodE164",(t,e)=>{e.pattern??(e.pattern=Qm),ve.init(t,e)});ny=g("$ZodJWT",(t,e)=>{ve.init(t,e),t._zod.check=r=>{d$(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),iy=g("$ZodCustomStringFormat",(t,e)=>{ve.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})}}),xd=g("$ZodNumber",(t,e)=>{H.init(t,e),t._zod.pattern=t._zod.bag.pattern??fd,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...o?{received:o}:{}}),r}}),oy=g("$ZodNumberFormat",(t,e)=>{fg.init(t,e),xd.init(t,e)}),uc=g("$ZodBoolean",(t,e)=>{H.init(t,e),t._zod.pattern=sg,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}}),Sd=g("$ZodBigInt",(t,e)=>{H.init(t,e),t._zod.pattern=ig,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}}),sy=g("$ZodBigIntFormat",(t,e)=>{pg.init(t,e),Sd.init(t,e)}),ay=g("$ZodSymbol",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),cy=g("$ZodUndefined",(t,e)=>{H.init(t,e),t._zod.pattern=cg,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",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}}),uy=g("$ZodNull",(t,e)=>{H.init(t,e),t._zod.pattern=ag,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}}),ly=g("$ZodAny",(t,e)=>{H.init(t,e),t._zod.parse=r=>r}),dy=g("$ZodUnknown",(t,e)=>{H.init(t,e),t._zod.parse=r=>r}),fy=g("$ZodNever",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),py=g("$ZodVoid",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),hy=g("$ZodDate",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:t}),r}});my=g("$ZodArray",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=Array(n.length);let o=[];for(let s=0;s<n.length;s++){let a=n[s],c=e.element._zod.run({value:a,issues:[]},i);c instanceof Promise?o.push(c.then(u=>QI(u,r,s))):QI(c,r,s)}return o.length?Promise.all(o).then(()=>r):r}});h$=g("$ZodObject",(t,e)=>{if(H.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let a=e.shape;Object.defineProperty(e,"shape",{get:()=>{let c={...a};return Object.defineProperty(e,"shape",{value:c}),c}})}let i=Wo(()=>f$(e));ee(t._zod,"propValues",()=>{let a=e.shape,c={};for(let u in a){let l=a[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let d of l.values)c[u].add(d)}}return c});let n=ji,o=e.catchall,s;t._zod.parse=(a,c)=>{s??(s=i.value);let u=a.value;if(!n(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),a;a.value={};let l=[],d=s.shape;for(let h of s.keys){let m=d[h],v=m._zod.optout==="optional",x=m._zod.run({value:u[h],issues:[]},c);x instanceof Promise?l.push(x.then(O=>wd(O,a,h,u,v))):wd(x,a,h,u,v)}return o?p$(l,u,a,c,i.value,t):l.length?Promise.all(l).then(()=>a):a}}),gy=g("$ZodObjectJIT",(t,e)=>{h$.init(t,e);let r=t._zod.parse,i=Wo(()=>f$(e)),n=h=>{let m=new cc(["shape","payload","ctx"]),v=i.value,x=ne=>{let ce=Ql(ne);return`shape[${ce}]._zod.run({ value: input[${ce}], issues: [] }, ctx)`};m.write("const input = payload.value;");let O=Object.create(null),ae=0;for(let ne of v.keys)O[ne]=`key_${ae++}`;m.write("const newResult = {};");for(let ne of v.keys){let ce=O[ne],oe=Ql(ne),Fe=h[ne]?._zod?.optout==="optional";m.write(`const ${ce} = ${x(ne)};`),Fe?m.write(`
|
|
20
|
+
if (${ce}.issues.length) {
|
|
21
|
+
if (${oe} in input) {
|
|
22
|
+
payload.issues = payload.issues.concat(${ce}.issues.map(iss => ({
|
|
23
|
+
...iss,
|
|
24
|
+
path: iss.path ? [${oe}, ...iss.path] : [${oe}]
|
|
25
|
+
})));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (${ce}.value === undefined) {
|
|
30
|
+
if (${oe} in input) {
|
|
31
|
+
newResult[${oe}] = undefined;
|
|
32
|
+
}
|
|
33
|
+
} else {
|
|
34
|
+
newResult[${oe}] = ${ce}.value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
`):m.write(`
|
|
38
|
+
if (${ce}.issues.length) {
|
|
39
|
+
payload.issues = payload.issues.concat(${ce}.issues.map(iss => ({
|
|
40
|
+
...iss,
|
|
41
|
+
path: iss.path ? [${oe}, ...iss.path] : [${oe}]
|
|
42
|
+
})));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (${ce}.value === undefined) {
|
|
46
|
+
if (${oe} in input) {
|
|
47
|
+
newResult[${oe}] = undefined;
|
|
48
|
+
}
|
|
49
|
+
} else {
|
|
50
|
+
newResult[${oe}] = ${ce}.value;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");let le=m.compile();return(ne,ce)=>le(h,ne,ce)},o,s=ji,a=!Ya.jitless,u=a&&$m.value,l=e.catchall,d;t._zod.parse=(h,m)=>{d??(d=i.value);let v=h.value;return s(v)?a&&u&&m?.async===!1&&m.jitless!==!0?(o||(o=n(e.shape)),h=o(h,m),l?p$([],v,h,m,d,t):h):r(h,m):(h.issues.push({expected:"object",code:"invalid_type",input:v,inst:t}),h)}});lc=g("$ZodUnion",(t,e)=>{H.init(t,e),ee(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),ee(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ee(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),ee(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Qa(o.source)).join("|")})$`)}});let r=e.options.length===1,i=e.options[0]._zod.run;t._zod.parse=(n,o)=>{if(r)return i(n,o);let s=!1,a=[];for(let c of e.options){let u=c._zod.run({value:n.value,issues:[]},o);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(c=>e$(c,n,t,o)):e$(a,n,t,o)}});yy=g("$ZodXor",(t,e)=>{lc.init(t,e),e.inclusive=!1;let r=e.options.length===1,i=e.options[0]._zod.run;t._zod.parse=(n,o)=>{if(r)return i(n,o);let s=!1,a=[];for(let c of e.options){let u=c._zod.run({value:n.value,issues:[]},o);u instanceof Promise?(a.push(u),s=!0):a.push(u)}return s?Promise.all(a).then(c=>t$(c,n,t,o)):t$(a,n,t,o)}}),vy=g("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,lc.init(t,e);let r=t._zod.parse;ee(t._zod,"propValues",()=>{let n={};for(let o of e.options){let s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(let[a,c]of Object.entries(s)){n[a]||(n[a]=new Set);for(let u of c)n[a].add(u)}}return n});let i=Wo(()=>{let n=e.options,o=new Map;for(let s of n){let a=s._zod.propValues?.[e.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let c of a){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,s)}}return o});t._zod.parse=(n,o)=>{let s=n.value;if(!ji(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),n;let a=i.value.get(s?.[e.discriminator]);return a?a._zod.run(n,o):e.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),n)}}),_y=g("$ZodIntersection",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value,o=e.left._zod.run({value:n,issues:[]},i),s=e.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([c,u])=>r$(r,c,u)):r$(r,o,s)}});Id=g("$ZodTuple",(t,e)=>{H.init(t,e);let r=e.items;t._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:t,expected:"tuple",code:"invalid_type"}),i;i.value=[];let s=[],a=[...r].reverse().findIndex(l=>l._zod.optin!=="optional"),c=a===-1?0:r.length-a;if(!e.rest){let l=o.length>r.length,d=o.length<c-1;if(l||d)return i.issues.push({...l?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:t,origin:"array"}),i}let u=-1;for(let l of r){if(u++,u>=o.length&&u>=c)continue;let d=l._zod.run({value:o[u],issues:[]},n);d instanceof Promise?s.push(d.then(h=>yd(h,i,u))):yd(d,i,u)}if(e.rest){let l=o.slice(r.length);for(let d of l){u++;let h=e.rest._zod.run({value:d,issues:[]},n);h instanceof Promise?s.push(h.then(m=>yd(m,i,u))):yd(h,i,u)}}return s.length?Promise.all(s).then(()=>i):i}});by=g("$ZodRecord",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!Wn(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:t}),r;let o=[],s=e.keyType._zod.values;if(s){r.value={};let a=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);let l=e.valueType._zod.run({value:n[u],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&r.issues.push(...Mt(u,d.issues)),r.value[u]=d.value})):(l.issues.length&&r.issues.push(...Mt(u,l.issues)),r.value[u]=l.value)}let c;for(let u in n)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:t,keys:c})}else{r.value={};for(let a of Reflect.ownKeys(n)){if(a==="__proto__")continue;let c=e.keyType._zod.run({value:a,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&fd.test(a)&&c.issues.length){let d=e.keyType._zod.run({value:Number(a),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){e.mode==="loose"?r.value[a]=n[a]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>xt(d,i,Ee())),input:a,path:[a],inst:t});continue}let l=e.valueType._zod.run({value:n[a],issues:[]},i);l instanceof Promise?o.push(l.then(d=>{d.issues.length&&r.issues.push(...Mt(a,d.issues)),r.value[c.value]=d.value})):(l.issues.length&&r.issues.push(...Mt(a,l.issues)),r.value[c.value]=l.value)}}return o.length?Promise.all(o).then(()=>r):r}}),wy=g("$ZodMap",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:t}),r;let o=[];r.value=new Map;for(let[s,a]of n){let c=e.keyType._zod.run({value:s,issues:[]},i),u=e.valueType._zod.run({value:a,issues:[]},i);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([l,d])=>{n$(l,d,r,s,n,t,i)})):n$(c,u,r,s,n,t,i)}return o.length?Promise.all(o).then(()=>r):r}});xy=g("$ZodSet",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:t,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let s of n){let a=e.valueType._zod.run({value:s,issues:[]},i);a instanceof Promise?o.push(a.then(c=>i$(c,r))):i$(a,r)}return o.length?Promise.all(o).then(()=>r):r}});Sy=g("$ZodEnum",(t,e)=>{H.init(t,e);let r=qa(e.entries),i=new Set(r);t._zod.values=i,t._zod.pattern=new RegExp(`^(${r.filter(n=>ec.has(typeof n)).map(n=>typeof n=="string"?Qt(n):n.toString()).join("|")})$`),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}}),Iy=g("$ZodLiteral",(t,e)=>{if(H.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(e.values);t._zod.values=r,t._zod.pattern=new RegExp(`^(${e.values.map(i=>typeof i=="string"?Qt(i):i?Qt(i.toString()):String(i)).join("|")})$`),t._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),i}}),$y=g("$ZodFile",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),ky=g("$ZodTransform",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Rn(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 yr;return r.value=n,r}});$d=g("$ZodOptional",(t,e)=>{H.init(t,e),t._zod.optin="optional",t._zod.optout="optional",ee(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),ee(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Qa(r.source)})?$`):void 0}),t._zod.parse=(r,i)=>{if(e.innerType._zod.optin==="optional"){let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>o$(o,r.value)):o$(n,r.value)}return r.value===void 0?r:e.innerType._zod.run(r,i)}}),Dy=g("$ZodExactOptional",(t,e)=>{$d.init(t,e),ee(t._zod,"values",()=>e.innerType._zod.values),ee(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(r,i)=>e.innerType._zod.run(r,i)}),Ay=g("$ZodNullable",(t,e)=>{H.init(t,e),ee(t._zod,"optin",()=>e.innerType._zod.optin),ee(t._zod,"optout",()=>e.innerType._zod.optout),ee(t._zod,"pattern",()=>{let r=e.innerType._zod.pattern;return r?new RegExp(`^(${Qa(r.source)}|null)$`):void 0}),ee(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(r,i)=>r.value===null?r:e.innerType._zod.run(r,i)}),By=g("$ZodDefault",(t,e)=>{H.init(t,e),t._zod.optin="optional",ee(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>s$(o,e)):s$(n,e)}});zy=g("$ZodPrefault",(t,e)=>{H.init(t,e),t._zod.optin="optional",ee(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,i))}),Ty=g("$ZodNonOptional",(t,e)=>{H.init(t,e),ee(t._zod,"values",()=>{let r=e.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),t._zod.parse=(r,i)=>{let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>a$(o,t)):a$(n,t)}});Oy=g("$ZodSuccess",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Rn("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)}}),Uy=g("$ZodCatch",(t,e)=>{H.init(t,e),ee(t._zod,"optin",()=>e.innerType._zod.optin),ee(t._zod,"optout",()=>e.innerType._zod.optout),ee(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=e.catchValue({...r,error:{issues:o.issues.map(s=>xt(s,i,Ee()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=e.catchValue({...r,error:{issues:n.issues.map(o=>xt(o,i,Ee()))},input:r.value}),r.issues=[]),r)}}),Ny=g("$ZodNaN",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Ey=g("$ZodPipe",(t,e)=>{H.init(t,e),ee(t._zod,"values",()=>e.in._zod.values),ee(t._zod,"optin",()=>e.in._zod.optin),ee(t._zod,"optout",()=>e.out._zod.optout),ee(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(s=>vd(s,e.in,i)):vd(o,e.in,i)}let n=e.in._zod.run(r,i);return n instanceof Promise?n.then(o=>vd(o,e.out,i)):vd(n,e.out,i)}});dc=g("$ZodCodec",(t,e)=>{H.init(t,e),ee(t._zod,"values",()=>e.in._zod.values),ee(t._zod,"optin",()=>e.in._zod.optin),ee(t._zod,"optout",()=>e.out._zod.optout),ee(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=e.in._zod.run(r,i);return o instanceof Promise?o.then(s=>_d(s,e,i)):_d(o,e,i)}else{let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(s=>_d(s,e,i)):_d(o,e,i)}}});Ly=g("$ZodReadonly",(t,e)=>{H.init(t,e),ee(t._zod,"propValues",()=>e.innerType._zod.propValues),ee(t._zod,"values",()=>e.innerType._zod.values),ee(t._zod,"optin",()=>e.innerType?._zod?.optin),ee(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(c$):c$(n)}});Py=g("$ZodTemplateLiteral",(t,e)=>{H.init(t,e);let r=[];for(let i of e.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,s))}else if(i===null||Dm.has(typeof i))r.push(Qt(`${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)}),Fy=g("$ZodFunction",(t,e)=>(H.init(t,e),t._def=e,t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=t._def.input?td(t._def.input,i):i,o=Reflect.apply(r,this,n);return t._def.output?td(t._def.output,o):o}},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=t._def.input?await rd(t._def.input,i):i,o=await Reflect.apply(r,this,n);return t._def.output?await rd(t._def.output,o):o}},t._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let i=t.constructor;return Array.isArray(r[0])?new i({type:"function",input:new Id({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)),Cy=g("$ZodPromise",(t,e)=>{H.init(t,e),t._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},i))}),jy=g("$ZodLazy",(t,e)=>{H.init(t,e),ee(t._zod,"innerType",()=>e.getter()),ee(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),ee(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),ee(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),ee(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(r,i)=>t._zod.innerType._zod.run(r,i)}),My=g("$ZodCustom",(t,e)=>{$e.init(t,e),H.init(t,e),t._zod.parse=(r,i)=>r,t._zod.check=r=>{let i=r.value,n=e.fn(i);if(n instanceof Promise)return n.then(o=>u$(o,r,i,t));u$(n,r,i,t)}})});function m$(){return{localeError:r4()}}var r4,g$=f(()=>{U();r4=()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function e(n){return t[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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: ${y(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":""}: ${y(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 y$(){return{localeError:n4()}}var n4,v$=f(()=>{U();n4=()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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: ${y(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":""}: ${y(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 _$(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 b$(){return{localeError:i4()}}var i4,w$=f(()=>{U();i4=()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function e(n){return t[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);if(s){let a=Number(n.maximum),c=_$(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=_$(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"}: ${y(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 x$(){return{localeError:o4()}}var o4,S$=f(()=>{U();o4=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 I$(){return{localeError:s4()}}var s4,$$=f(()=>{U();s4=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 k$(){return{localeError:a4()}}var a4,D$=f(()=>{U();a4=()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function e(n){return t[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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: ${y(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 A$(){return{localeError:c4()}}var c4,B$=f(()=>{U();c4=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function e(n){return t[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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"}: ${y(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 z$(){return{localeError:u4()}}var u4,T$=f(()=>{U();u4=()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function e(n){return t[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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"}: ${y(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 kd(){return{localeError:l4()}}var l4,Vy=f(()=>{U();l4=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(n){return t[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(n.input),a=i[s]??s;return`Invalid input: expected ${o}, received ${a}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${_(n.values[0])}`:`Invalid option: expected one of ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}}});function O$(){return{localeError:d4()}}var d4,U$=f(()=>{U();d4=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function e(n){return t[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 N$(){return{localeError:f4()}}var f4,E$=f(()=>{U();f4=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 L$(){return{localeError:p4()}}var p4,P$=f(()=>{U();p4=()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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: ${y(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 F$(){return{localeError:h4()}}var h4,C$=f(()=>{U();h4=()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function e(n){return t[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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: ${y(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"}: ${y(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 j$(){return{localeError:m4()}}var m4,M$=f(()=>{U();m4=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${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 ${y(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${y(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 R$(){return{localeError:g4()}}var g4,V$=f(()=>{U();g4=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""} : ${y(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 Z$(){return{localeError:y4()}}var y4,W$=f(()=>{U();y4=()=>{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"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,d=c[l??""]??i(l),h=b(u.input),m=c[h]??t[h]?.label??h;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 ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}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(m=>_(m));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 v=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 ${v}`}if(u.origin==="array"||u.origin==="set"){let v=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",x=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} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let h=u.inclusive?"<=":"<",m=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${h}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${m} ${h}${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 v=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 ${v}`}if(u.origin==="array"||u.origin==="set"){let v=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let O=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${O}`}let x=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} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${x}`.trim()}let h=u.inclusive?">=":">",m=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${h}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${m} ${h}${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],h=d?.label??l.format,v=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${v}`}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"}: ${y(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 J$(){return{localeError:v4()}}var v4,H$=f(()=>{U();v4=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 G$(t,e,r){return Math.abs(t)===1?e:r}function qo(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 K$(){return{localeError:_4()}}var _4,Y$=f(()=>{U();_4=()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function e(n){return t[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);if(s){let a=Number(n.maximum),c=G$(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 ${qo(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 ${qo(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=G$(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 ${qo(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 ${qo(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":""}. ${y(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${qo(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 ${qo(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}}});function X$(){return{localeError:b4()}}var b4,q$=f(()=>{U();b4=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 Q$(){return{localeError:w4()}}var w4,e1=f(()=>{U();w4=()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function e(n){return t[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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"}: ${y(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 t1(){return{localeError:x4()}}var x4,r1=f(()=>{U();x4=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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}`:`Invalid ${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"}: ${y(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 n1(){return{localeError:S4()}}var S4,i1=f(()=>{U();S4=()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function e(n){return t[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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: ${y(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":""}: ${y(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 o1(){return{localeError:I4()}}var I4,s1=f(()=>{U();I4=()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function e(n){return t[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\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 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${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"}: ${y(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 Dd(){return{localeError:$4()}}var $4,Zy=f(()=>{U();$4=()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function e(n){return t[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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 ${y(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 a1(){return Dd()}var c1=f(()=>{Zy()});function u1(){return{localeError:k4()}}var k4,l1=f(()=>{U();k4=()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function e(n){return t[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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: ${y(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: ${y(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 d1(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 f1(){return{localeError:D4()}}var fc,D4,p1=f(()=>{U();fc=t=>t.charAt(0).toUpperCase()+t.slice(1);D4=()=>{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",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,s=e(n.origin,d1(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${fc(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`${fc(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,d1(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${fc(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`${fc(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"}: ${y(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`${fc(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}}});function h1(){return{localeError:A4()}}var A4,m1=f(()=>{U();A4=()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function e(n){return t[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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"}: ${y(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 g1(){return{localeError:B4()}}var B4,y1=f(()=>{U();B4=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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: ${y(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 v1(){return{localeError:z4()}}var z4,_1=f(()=>{U();z4=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function e(n){return t[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 b1(){return{localeError:T4()}}var T4,w1=f(()=>{U();T4=()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function e(n){return t[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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"}: ${y(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 x1(){return{localeError:O4()}}var O4,S1=f(()=>{U();O4=()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 I1(){return{localeError:U4()}}var U4,$1=f(()=>{U();U4=()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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"}: ${y(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 k1(){return{localeError:N4()}}var N4,D1=f(()=>{U();N4=()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function e(n){return t[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 A1(){return{localeError:E4()}}var E4,B1=f(()=>{U();E4=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function e(n){return t[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${a}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${a}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${_(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}}});function z1(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 T1(){return{localeError:L4()}}var L4,O1=f(()=>{U();L4=()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);if(s){let a=Number(n.maximum),c=z1(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=z1(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":""}: ${y(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 U1(){return{localeError:P4()}}var P4,N1=f(()=>{U();P4=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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"}: ${y(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 E1(){return{localeError:F4()}}var F4,L1=f(()=>{U();F4=()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function e(n){return t[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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"}: ${y(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 P1(){return{localeError:C4()}}var C4,F1=f(()=>{U();C4=()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function e(n){return t[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 C1(){return{localeError:j4()}}var j4,j1=f(()=>{U();j4=()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function e(n){return t[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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: ${y(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 M1(){return{localeError:M4()}}var M4,R1=f(()=>{U();M4=()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function e(n){return t[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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: ${y(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":""}: ${y(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 Ad(){return{localeError:R4()}}var R4,Wy=f(()=>{U();R4=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 V1(){return Ad()}var Z1=f(()=>{Wy()});function W1(){return{localeError:V4()}}var V4,J1=f(()=>{U();V4=()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function e(n){return t[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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: ${y(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":""}: ${y(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 H1(){return{localeError:Z4()}}var Z4,G1=f(()=>{U();Z4=()=>{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"}};function e(n){return t[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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":""}: ${y(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 K1(){return{localeError:W4()}}var W4,Y1=f(()=>{U();W4=()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function e(n){return t[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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: ${y(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 X1(){return{localeError:J4()}}var J4,q1=f(()=>{U();J4=()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function e(n){return t[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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): ${y(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 Q1(){return{localeError:H4()}}var H4,ek=f(()=>{U();H4=()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function e(n){return t[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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${y(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 tk(){return{localeError:G4()}}var G4,rk=f(()=>{U();G4=()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function e(n){return t[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=b(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 ${y(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: ${y(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 pc={};be(pc,{ar:()=>m$,az:()=>y$,be:()=>b$,bg:()=>x$,ca:()=>I$,cs:()=>k$,da:()=>A$,de:()=>z$,en:()=>kd,eo:()=>O$,es:()=>N$,fa:()=>L$,fi:()=>F$,fr:()=>j$,frCA:()=>R$,he:()=>Z$,hu:()=>J$,hy:()=>K$,id:()=>X$,is:()=>Q$,it:()=>t1,ja:()=>n1,ka:()=>o1,kh:()=>a1,km:()=>Dd,ko:()=>u1,lt:()=>f1,mk:()=>h1,ms:()=>g1,nl:()=>v1,no:()=>b1,ota:()=>x1,pl:()=>k1,ps:()=>I1,pt:()=>A1,ru:()=>T1,sl:()=>U1,sv:()=>E1,ta:()=>P1,th:()=>C1,tr:()=>M1,ua:()=>V1,uk:()=>Ad,ur:()=>W1,uz:()=>H1,vi:()=>K1,yo:()=>tk,zhCN:()=>X1,zhTW:()=>Q1});var Jy=f(()=>{g$();v$();w$();S$();$$();D$();B$();T$();Vy();U$();E$();P$();C$();M$();V$();W$();H$();Y$();q$();e1();r1();i1();s1();c1();Zy();l1();p1();m1();y1();_1();w1();S1();$1();D1();B1();O1();N1();L1();F1();j1();R1();Z1();Wy();J1();G1();Y1();q1();ek();rk()});function zd(){return new Bd}var nk,Hy,Gy,Bd,qe,hc=f(()=>{Hy=Symbol("ZodOutput"),Gy=Symbol("ZodInput"),Bd=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)}};(nk=globalThis).__zod_globalRegistry??(nk.__zod_globalRegistry=zd());qe=globalThis.__zod_globalRegistry});function Ky(t,e){return new t({type:"string",...S(e)})}function Yy(t,e){return new t({type:"string",coerce:!0,...S(e)})}function Td(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...S(e)})}function mc(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...S(e)})}function Od(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...S(e)})}function Ud(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...S(e)})}function Nd(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...S(e)})}function Ed(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...S(e)})}function gc(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...S(e)})}function Ld(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...S(e)})}function Pd(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...S(e)})}function Fd(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...S(e)})}function Cd(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...S(e)})}function jd(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...S(e)})}function Md(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...S(e)})}function Rd(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...S(e)})}function Vd(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...S(e)})}function Zd(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...S(e)})}function Xy(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...S(e)})}function Wd(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...S(e)})}function Jd(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...S(e)})}function Hd(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...S(e)})}function Gd(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...S(e)})}function Kd(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...S(e)})}function Yd(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...S(e)})}function Qy(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...S(e)})}function ev(t,e){return new t({type:"string",format:"date",check:"string_format",...S(e)})}function tv(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...S(e)})}function rv(t,e){return new t({type:"string",format:"duration",check:"string_format",...S(e)})}function nv(t,e){return new t({type:"number",checks:[],...S(e)})}function iv(t,e){return new t({type:"number",coerce:!0,checks:[],...S(e)})}function ov(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...S(e)})}function sv(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...S(e)})}function av(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...S(e)})}function cv(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...S(e)})}function uv(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...S(e)})}function lv(t,e){return new t({type:"boolean",...S(e)})}function dv(t,e){return new t({type:"boolean",coerce:!0,...S(e)})}function fv(t,e){return new t({type:"bigint",...S(e)})}function pv(t,e){return new t({type:"bigint",coerce:!0,...S(e)})}function hv(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...S(e)})}function mv(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...S(e)})}function gv(t,e){return new t({type:"symbol",...S(e)})}function yv(t,e){return new t({type:"undefined",...S(e)})}function vv(t,e){return new t({type:"null",...S(e)})}function _v(t){return new t({type:"any"})}function bv(t){return new t({type:"unknown"})}function wv(t,e){return new t({type:"never",...S(e)})}function xv(t,e){return new t({type:"void",...S(e)})}function Sv(t,e){return new t({type:"date",...S(e)})}function Iv(t,e){return new t({type:"date",coerce:!0,...S(e)})}function $v(t,e){return new t({type:"nan",...S(e)})}function Zr(t,e){return new hd({check:"less_than",...S(e),value:t,inclusive:!1})}function Rt(t,e){return new hd({check:"less_than",...S(e),value:t,inclusive:!0})}function Wr(t,e){return new md({check:"greater_than",...S(e),value:t,inclusive:!1})}function dt(t,e){return new md({check:"greater_than",...S(e),value:t,inclusive:!0})}function Xd(t){return Wr(0,t)}function qd(t){return Zr(0,t)}function Qd(t){return Rt(0,t)}function ef(t){return dt(0,t)}function Hn(t,e){return new dg({check:"multiple_of",...S(e),value:t})}function Gn(t,e){return new hg({check:"max_size",...S(e),maximum:t})}function Jr(t,e){return new mg({check:"min_size",...S(e),minimum:t})}function Vi(t,e){return new gg({check:"size_equals",...S(e),size:t})}function Zi(t,e){return new yg({check:"max_length",...S(e),maximum:t})}function bn(t,e){return new vg({check:"min_length",...S(e),minimum:t})}function Wi(t,e){return new _g({check:"length_equals",...S(e),length:t})}function Qo(t,e){return new bg({check:"string_format",format:"regex",...S(e),pattern:t})}function es(t){return new wg({check:"string_format",format:"lowercase",...S(t)})}function ts(t){return new xg({check:"string_format",format:"uppercase",...S(t)})}function rs(t,e){return new Sg({check:"string_format",format:"includes",...S(e),includes:t})}function ns(t,e){return new Ig({check:"string_format",format:"starts_with",...S(e),prefix:t})}function is(t,e){return new $g({check:"string_format",format:"ends_with",...S(e),suffix:t})}function tf(t,e,r){return new kg({check:"property",property:t,schema:e,...S(r)})}function os(t,e){return new Dg({check:"mime_type",mime:t,...S(e)})}function vr(t){return new Ag({check:"overwrite",tx:t})}function ss(t){return vr(e=>e.normalize(t))}function as(){return vr(t=>t.trim())}function cs(){return vr(t=>t.toLowerCase())}function us(){return vr(t=>t.toUpperCase())}function ls(){return vr(t=>Im(t))}function kv(t,e,r){return new t({type:"array",element:e,...S(r)})}function Y4(t,e,r){return new t({type:"union",options:e,...S(r)})}function X4(t,e,r){return new t({type:"union",options:e,inclusive:!1,...S(r)})}function q4(t,e,r,i){return new t({type:"union",options:r,discriminator:e,...S(i)})}function Q4(t,e,r){return new t({type:"intersection",left:e,right:r})}function eN(t,e,r,i){let n=r instanceof H,o=n?i:r,s=n?r:null;return new t({type:"tuple",items:e,rest:s,...S(o)})}function tN(t,e,r,i){return new t({type:"record",keyType:e,valueType:r,...S(i)})}function rN(t,e,r,i){return new t({type:"map",keyType:e,valueType:r,...S(i)})}function nN(t,e,r){return new t({type:"set",valueType:e,...S(r)})}function iN(t,e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:i,...S(r)})}function oN(t,e,r){return new t({type:"enum",entries:e,...S(r)})}function sN(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...S(r)})}function Dv(t,e){return new t({type:"file",...S(e)})}function aN(t,e){return new t({type:"transform",transform:e})}function cN(t,e){return new t({type:"optional",innerType:e})}function uN(t,e){return new t({type:"nullable",innerType:e})}function lN(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():km(r)}})}function dN(t,e,r){return new t({type:"nonoptional",innerType:e,...S(r)})}function fN(t,e){return new t({type:"success",innerType:e})}function pN(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}function hN(t,e,r){return new t({type:"pipe",in:e,out:r})}function mN(t,e){return new t({type:"readonly",innerType:e})}function gN(t,e,r){return new t({type:"template_literal",parts:e,...S(r)})}function yN(t,e){return new t({type:"lazy",getter:e})}function vN(t,e){return new t({type:"promise",innerType:e})}function Av(t,e,r){let i=S(r);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function Bv(t,e,r){return new t({type:"custom",check:"custom",fn:e,...S(r)})}function zv(t){let e=ik(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Jo(i,r.value,e._zod.def));else{let n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!e._zod.def.abort),r.issues.push(Jo(n))}},t(r.value,r)));return e}function ik(t,e){let r=new $e({check:"custom",...S(e)});return r._zod.check=t,r}function Tv(t){let e=new $e({check:"describe"});return e._zod.onattach=[r=>{let i=qe.get(r)??{};qe.add(r,{...i,description:t})}],e._zod.check=()=>{},e}function Ov(t){let e=new $e({check:"meta"});return e._zod.onattach=[r=>{let i=qe.get(r)??{};qe.add(r,{...i,...t})}],e._zod.check=()=>{},e}function Uv(t,e){let r=S(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(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));let o=new Set(i),s=new Set(n),a=t.Codec??dc,c=t.Boolean??uc,u=t.String??Ri,l=new u({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),h=new a({type:"pipe",in:l,out:d,transform:((m,v)=>{let x=m;return r.case!=="sensitive"&&(x=x.toLowerCase()),o.has(x)?!0:s.has(x)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:v.value,inst:h,continue:!1}),{})}),reverseTransform:((m,v)=>m===!0?i[0]||"true":n[0]||"false"),error:r.error});return h}function ds(t,e,r,i={}){let n=S(i),o={...S(i),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 qy,ok=f(()=>{gd();hc();Ry();U();qy={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function Kn(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??qe,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function me(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);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 h=s.schema,m=e.processors[n.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(t,e,h,l)}let d=t._zod.parent;d&&(s.ref||(s.ref=d),me(d,e,l),e.seen.get(d).isParent=!0)}let c=e.metadataRegistry.get(t);return c&&Object.assign(s.schema,c),e.io==="input"&&ft(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&s.schema._prefault&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function Yn(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let 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,h=t.external.uri??(v=>v);if(d)return{ref:h(d)};let m=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=m,{defId:m,ref:`${h("__shared")}#/${a}/${m}`}}if(s[1]===r)return{ref:"#"};let u=`#/${a}/`,l=s[1].schema.id??`__schema${t.counter++}`;return{defId:l,ref:u+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>
|
|
54
|
+
|
|
55
|
+
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}if(a.count>1&&t.reused==="ref"){o(s);continue}}}function Xn(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let a=t.seen.get(s);if(a.ref===null)return;let c=a.def??a.schema,u={...c},l=a.ref;if(a.ref=null,l){i(l);let h=t.seen.get(l),m=h.schema;if(m.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(m)):Object.assign(c,m),Object.assign(c,u),s._zod.parent===l)for(let x in c)x==="$ref"||x==="allOf"||x in u||delete c[x];if(m.$ref&&h.def)for(let x in c)x==="$ref"||x==="allOf"||x in h.def&&JSON.stringify(c[x])===JSON.stringify(h.def[x])&&delete c[x]}let d=s._zod.parent;if(d&&d!==l){i(d);let h=t.seen.get(d);if(h?.schema.$ref&&(c.$ref=h.schema.$ref,h.def))for(let m in c)m==="$ref"||m==="allOf"||m in h.def&&JSON.stringify(c[m])===JSON.stringify(h.def[m])&&delete c[m]}t.override({zodSchema:s,jsonSchema:c,path:a.path??[]})};for(let s of[...t.seen.entries()].reverse())i(s[0]);let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(e)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(s)}Object.assign(n,r.def??r.schema);let o=t.external?.defs??{};for(let s of t.seen.entries()){let a=s[1];a.def&&a.defId&&(o[a.defId]=a.def)}t.external||Object.keys(o).length>0&&(t.target==="draft-2020-12"?n.$defs=o:n.definitions=o);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...e["~standard"],jsonSchema:{input:fs(e,"input",t.processors),output:fs(e,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function ft(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 ft(i.element,r);if(i.type==="set")return ft(i.valueType,r);if(i.type==="lazy")return ft(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return ft(i.innerType,r);if(i.type==="intersection")return ft(i.left,r)||ft(i.right,r);if(i.type==="record"||i.type==="map")return ft(i.keyType,r)||ft(i.valueType,r);if(i.type==="pipe")return ft(i.in,r)||ft(i.out,r);if(i.type==="object"){for(let n in i.shape)if(ft(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(ft(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(ft(n,r))return!0;return!!(i.rest&&ft(i.rest,r))}return!1}var Nv,fs,yc=f(()=>{hc();Nv=(t,e={})=>r=>{let i=Kn({...r,processors:e});return me(t,i),Yn(i,t),Xn(i,t)},fs=(t,e,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},s=Kn({...n??{},target:o,io:e,processors:r});return me(t,s),Yn(s,t),Xn(s,t)}});function sf(t,e){if("_idmap"in t){let i=t,n=Kn({...e,processors:rf}),o={};for(let c of i._idmap.entries()){let[u,l]=c;me(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;Yn(n,l),s[u]=Xn(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=Kn({...e,processors:rf});return me(t,r),Yn(r,t),Xn(r,t)}var _N,Ev,Lv,Pv,Fv,Cv,jv,Mv,Rv,Vv,Zv,Wv,Jv,Hv,Gv,Kv,Yv,Xv,qv,Qv,e_,t_,r_,n_,i_,o_,nf,s_,a_,c_,u_,l_,d_,f_,p_,h_,m_,g_,of,y_,rf,vc=f(()=>{yc();U();_N={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ev=(t,e,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:s,format:a,patterns:c,contentEncoding:u}=t._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof s=="number"&&(n.maxLength=s),a&&(n.format=_N[a]??a,n.format===""&&delete n.format,a==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Lv=(t,e,r,i)=>{let n=r,{minimum:o,maximum:s,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=t._zod.bag;typeof a=="string"&&a.includes("int")?n.type="integer":n.type="number",typeof l=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l),typeof o=="number"&&(n.minimum=o,typeof l=="number"&&e.target!=="draft-04"&&(l>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u),typeof s=="number"&&(n.maximum=s,typeof u=="number"&&e.target!=="draft-04"&&(u<=s?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c)},Pv=(t,e,r,i)=>{r.type="boolean"},Fv=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Cv=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},jv=(t,e,r,i)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Mv=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Rv=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Vv=(t,e,r,i)=>{r.not={}},Zv=(t,e,r,i)=>{},Wv=(t,e,r,i)=>{},Jv=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Hv=(t,e,r,i)=>{let n=t._zod.def,o=qa(n.entries);o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},Gv=(t,e,r,i)=>{let n=t._zod.def,o=[];for(let s of n.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");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},Kv=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Yv=(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},Xv=(t,e,r,i)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:a,mime:c}=t._zod.bag;s!==void 0&&(o.minLength=s),a!==void 0&&(o.maxLength=a),c?c.length===1?(o.contentMediaType=c[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,o)},qv=(t,e,r,i)=>{r.type="boolean"},Qv=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},e_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},t_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},r_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},n_=(t,e,r,i)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},i_=(t,e,r,i)=>{let n=r,o=t._zod.def,{minimum:s,maximum:a}=t._zod.bag;typeof s=="number"&&(n.minItems=s),typeof a=="number"&&(n.maxItems=a),n.type="array",n.items=me(o.element,e,{...i,path:[...i.path,"items"]})},o_=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object",n.properties={};let s=o.shape;for(let u in s)n.properties[u]=me(s[u],e,{...i,path:[...i.path,"properties",u]});let a=new Set(Object.keys(s)),c=new Set([...a].filter(u=>{let l=o.shape[u]._zod;return e.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(n.required=Array.from(c)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=me(o.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},nf=(t,e,r,i)=>{let n=t._zod.def,o=n.inclusive===!1,s=n.options.map((a,c)=>me(a,e,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=s:r.anyOf=s},s_=(t,e,r,i)=>{let n=t._zod.def,o=me(n.left,e,{...i,path:[...i.path,"allOf",0]}),s=me(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},a_=(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((h,m)=>me(h,e,{...i,path:[...i.path,s,m]})),u=o.rest?me(o.rest,e,{...i,path:[...i.path,a,...e.target==="openapi-3.0"?[o.items.length]:[]]}):null;e.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):e.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));let{minimum:l,maximum:d}=t._zod.bag;typeof l=="number"&&(n.minItems=l),typeof d=="number"&&(n.maxItems=d)},c_=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object";let s=o.keyType,c=s._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let l=me(o.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)n.patternProperties[d.source]=l}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(n.propertyNames=me(o.keyType,e,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=me(o.valueType,e,{...i,path:[...i.path,"additionalProperties"]});let u=s._zod.values;if(u){let l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l)}},u_=(t,e,r,i)=>{let n=t._zod.def,o=me(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"}]},l_=(t,e,r,i)=>{let n=t._zod.def;me(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},d_=(t,e,r,i)=>{let n=t._zod.def;me(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},f_=(t,e,r,i)=>{let n=t._zod.def;me(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,e.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},p_=(t,e,r,i)=>{let n=t._zod.def;me(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=s},h_=(t,e,r,i)=>{let n=t._zod.def,o=e.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;me(o,e,i);let s=e.seen.get(t);s.ref=o},m_=(t,e,r,i)=>{let n=t._zod.def;me(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.readOnly=!0},g_=(t,e,r,i)=>{let n=t._zod.def;me(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},of=(t,e,r,i)=>{let n=t._zod.def;me(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},y_=(t,e,r,i)=>{let n=t._zod.innerType;me(n,e,i);let o=e.seen.get(t);o.ref=n},rf={string:Ev,number:Lv,boolean:Pv,bigint:Fv,symbol:Cv,null:jv,undefined:Mv,void:Rv,never:Vv,any:Zv,unknown:Wv,date:Jv,enum:Hv,literal:Gv,nan:Kv,template_literal:Yv,file:Xv,success:qv,custom:Qv,function:e_,transform:t_,map:r_,set:n_,array:i_,object:o_,union:nf,intersection:s_,tuple:a_,record:c_,nullable:u_,nonoptional:l_,default:d_,prefault:f_,catch:p_,pipe:h_,readonly:m_,promise:g_,optional:of,lazy:y_}});var af,sk=f(()=>{vc();yc();af=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=Kn({processors:rf,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 me(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)),Yn(this.ctx,e);let i=Xn(this.ctx,e),{"~standard":n,...o}=i;return o}}});var ak={};var ck=f(()=>{});var wn={};be(wn,{$ZodAny:()=>ly,$ZodArray:()=>my,$ZodAsyncError:()=>yr,$ZodBase64:()=>ey,$ZodBase64URL:()=>ty,$ZodBigInt:()=>Sd,$ZodBigIntFormat:()=>sy,$ZodBoolean:()=>uc,$ZodCIDRv4:()=>Xg,$ZodCIDRv6:()=>qg,$ZodCUID:()=>Cg,$ZodCUID2:()=>jg,$ZodCatch:()=>Uy,$ZodCheck:()=>$e,$ZodCheckBigIntFormat:()=>pg,$ZodCheckEndsWith:()=>$g,$ZodCheckGreaterThan:()=>md,$ZodCheckIncludes:()=>Sg,$ZodCheckLengthEquals:()=>_g,$ZodCheckLessThan:()=>hd,$ZodCheckLowerCase:()=>wg,$ZodCheckMaxLength:()=>yg,$ZodCheckMaxSize:()=>hg,$ZodCheckMimeType:()=>Dg,$ZodCheckMinLength:()=>vg,$ZodCheckMinSize:()=>mg,$ZodCheckMultipleOf:()=>dg,$ZodCheckNumberFormat:()=>fg,$ZodCheckOverwrite:()=>Ag,$ZodCheckProperty:()=>kg,$ZodCheckRegex:()=>bg,$ZodCheckSizeEquals:()=>gg,$ZodCheckStartsWith:()=>Ig,$ZodCheckStringFormat:()=>Xo,$ZodCheckUpperCase:()=>xg,$ZodCodec:()=>dc,$ZodCustom:()=>My,$ZodCustomStringFormat:()=>iy,$ZodDate:()=>hy,$ZodDefault:()=>By,$ZodDiscriminatedUnion:()=>vy,$ZodE164:()=>ry,$ZodEmail:()=>Eg,$ZodEmoji:()=>Pg,$ZodEncodeError:()=>Rn,$ZodEnum:()=>Sy,$ZodError:()=>nc,$ZodExactOptional:()=>Dy,$ZodFile:()=>$y,$ZodFunction:()=>Fy,$ZodGUID:()=>Ug,$ZodIPv4:()=>Gg,$ZodIPv6:()=>Kg,$ZodISODate:()=>Wg,$ZodISODateTime:()=>Zg,$ZodISODuration:()=>Hg,$ZodISOTime:()=>Jg,$ZodIntersection:()=>_y,$ZodJWT:()=>ny,$ZodKSUID:()=>Vg,$ZodLazy:()=>jy,$ZodLiteral:()=>Iy,$ZodMAC:()=>Yg,$ZodMap:()=>wy,$ZodNaN:()=>Ny,$ZodNanoID:()=>Fg,$ZodNever:()=>fy,$ZodNonOptional:()=>Ty,$ZodNull:()=>uy,$ZodNullable:()=>Ay,$ZodNumber:()=>xd,$ZodNumberFormat:()=>oy,$ZodObject:()=>h$,$ZodObjectJIT:()=>gy,$ZodOptional:()=>$d,$ZodPipe:()=>Ey,$ZodPrefault:()=>zy,$ZodPromise:()=>Cy,$ZodReadonly:()=>Ly,$ZodRealError:()=>St,$ZodRecord:()=>by,$ZodRegistry:()=>Bd,$ZodSet:()=>xy,$ZodString:()=>Ri,$ZodStringFormat:()=>ve,$ZodSuccess:()=>Oy,$ZodSymbol:()=>ay,$ZodTemplateLiteral:()=>Py,$ZodTransform:()=>ky,$ZodTuple:()=>Id,$ZodType:()=>H,$ZodULID:()=>Mg,$ZodURL:()=>Lg,$ZodUUID:()=>Ng,$ZodUndefined:()=>cy,$ZodUnion:()=>lc,$ZodUnknown:()=>dy,$ZodVoid:()=>py,$ZodXID:()=>Rg,$ZodXor:()=>yy,$brand:()=>ql,$constructor:()=>g,$input:()=>Gy,$output:()=>Hy,Doc:()=>cc,JSONSchema:()=>ak,JSONSchemaGenerator:()=>af,NEVER:()=>bm,TimePrecision:()=>qy,_any:()=>_v,_array:()=>kv,_base64:()=>Hd,_base64url:()=>Gd,_bigint:()=>fv,_boolean:()=>lv,_catch:()=>pN,_check:()=>ik,_cidrv4:()=>Wd,_cidrv6:()=>Jd,_coercedBigint:()=>pv,_coercedBoolean:()=>dv,_coercedDate:()=>Iv,_coercedNumber:()=>iv,_coercedString:()=>Yy,_cuid:()=>Fd,_cuid2:()=>Cd,_custom:()=>Av,_date:()=>Sv,_decode:()=>id,_decodeAsync:()=>sd,_default:()=>lN,_discriminatedUnion:()=>q4,_e164:()=>Kd,_email:()=>Td,_emoji:()=>Ld,_encode:()=>nd,_encodeAsync:()=>od,_endsWith:()=>is,_enum:()=>iN,_file:()=>Dv,_float32:()=>sv,_float64:()=>av,_gt:()=>Wr,_gte:()=>dt,_guid:()=>mc,_includes:()=>rs,_int:()=>ov,_int32:()=>cv,_int64:()=>hv,_intersection:()=>Q4,_ipv4:()=>Vd,_ipv6:()=>Zd,_isoDate:()=>ev,_isoDateTime:()=>Qy,_isoDuration:()=>rv,_isoTime:()=>tv,_jwt:()=>Yd,_ksuid:()=>Rd,_lazy:()=>yN,_length:()=>Wi,_literal:()=>sN,_lowercase:()=>es,_lt:()=>Zr,_lte:()=>Rt,_mac:()=>Xy,_map:()=>rN,_max:()=>Rt,_maxLength:()=>Zi,_maxSize:()=>Gn,_mime:()=>os,_min:()=>dt,_minLength:()=>bn,_minSize:()=>Jr,_multipleOf:()=>Hn,_nan:()=>$v,_nanoid:()=>Pd,_nativeEnum:()=>oN,_negative:()=>qd,_never:()=>wv,_nonnegative:()=>ef,_nonoptional:()=>dN,_nonpositive:()=>Qd,_normalize:()=>ss,_null:()=>vv,_nullable:()=>uN,_number:()=>nv,_optional:()=>cN,_overwrite:()=>vr,_parse:()=>Ho,_parseAsync:()=>Go,_pipe:()=>hN,_positive:()=>Xd,_promise:()=>vN,_property:()=>tf,_readonly:()=>mN,_record:()=>tN,_refine:()=>Bv,_regex:()=>Qo,_safeDecode:()=>cd,_safeDecodeAsync:()=>ld,_safeEncode:()=>ad,_safeEncodeAsync:()=>ud,_safeParse:()=>Ko,_safeParseAsync:()=>Yo,_set:()=>nN,_size:()=>Vi,_slugify:()=>ls,_startsWith:()=>ns,_string:()=>Ky,_stringFormat:()=>ds,_stringbool:()=>Uv,_success:()=>fN,_superRefine:()=>zv,_symbol:()=>gv,_templateLiteral:()=>gN,_toLowerCase:()=>cs,_toUpperCase:()=>us,_transform:()=>aN,_trim:()=>as,_tuple:()=>eN,_uint32:()=>uv,_uint64:()=>mv,_ulid:()=>jd,_undefined:()=>yv,_union:()=>Y4,_unknown:()=>bv,_uppercase:()=>ts,_url:()=>gc,_uuid:()=>Od,_uuidv4:()=>Ud,_uuidv6:()=>Nd,_uuidv7:()=>Ed,_void:()=>xv,_xid:()=>Md,_xor:()=>X4,clone:()=>lt,config:()=>Ee,createStandardJSONSchemaMethod:()=>fs,createToJSONSchemaMethod:()=>Nv,decode:()=>wU,decodeAsync:()=>SU,describe:()=>Tv,encode:()=>bU,encodeAsync:()=>xU,extractDefs:()=>Yn,finalize:()=>Xn,flattenError:()=>ic,formatError:()=>oc,globalConfig:()=>Ya,globalRegistry:()=>qe,initializeContext:()=>Kn,isValidBase64:()=>Qg,isValidBase64URL:()=>l$,isValidJWT:()=>d$,locales:()=>pc,meta:()=>Ov,parse:()=>td,parseAsync:()=>rd,prettifyError:()=>Om,process:()=>me,regexes:()=>er,registry:()=>zd,safeDecode:()=>$U,safeDecodeAsync:()=>DU,safeEncode:()=>IU,safeEncodeAsync:()=>kU,safeParse:()=>Nm,safeParseAsync:()=>Em,toDotPath:()=>JI,toJSONSchema:()=>sf,treeifyError:()=>Tm,util:()=>w,version:()=>zg});var It=f(()=>{Vo();Lm();Um();Ry();gd();Tg();U();pd();Jy();hc();Bg();ok();yc();vc();sk();ck()});var cf={};be(cf,{endsWith:()=>is,gt:()=>Wr,gte:()=>dt,includes:()=>rs,length:()=>Wi,lowercase:()=>es,lt:()=>Zr,lte:()=>Rt,maxLength:()=>Zi,maxSize:()=>Gn,mime:()=>os,minLength:()=>bn,minSize:()=>Jr,multipleOf:()=>Hn,negative:()=>qd,nonnegative:()=>ef,nonpositive:()=>Qd,normalize:()=>ss,overwrite:()=>vr,positive:()=>Xd,property:()=>tf,regex:()=>Qo,size:()=>Vi,slugify:()=>ls,startsWith:()=>ns,toLowerCase:()=>cs,toUpperCase:()=>us,trim:()=>as,uppercase:()=>ts});var uf=f(()=>{It()});var ps={};be(ps,{ZodISODate:()=>df,ZodISODateTime:()=>lf,ZodISODuration:()=>pf,ZodISOTime:()=>ff,date:()=>__,datetime:()=>v_,duration:()=>w_,time:()=>b_});function v_(t){return Qy(lf,t)}function __(t){return ev(df,t)}function b_(t){return tv(ff,t)}function w_(t){return rv(pf,t)}var lf,df,ff,pf,_c=f(()=>{It();wc();lf=g("ZodISODateTime",(t,e)=>{Zg.init(t,e),_e.init(t,e)});df=g("ZodISODate",(t,e)=>{Wg.init(t,e),_e.init(t,e)});ff=g("ZodISOTime",(t,e)=>{Jg.init(t,e),_e.init(t,e)});pf=g("ZodISODuration",(t,e)=>{Hg.init(t,e),_e.init(t,e)})});var uk,wN,$t,x_=f(()=>{It();It();U();uk=(t,e)=>{nc.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:r=>oc(t,r)},flatten:{value:r=>ic(t,r)},addIssue:{value:r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,Zo,2)}},addIssues:{value:r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,Zo,2)}},isEmpty:{get(){return t.issues.length===0}}})},wN=g("ZodError",uk),$t=g("ZodError",uk,{Parent:Error})});var S_,I_,$_,k_,D_,A_,B_,z_,T_,O_,U_,N_,E_=f(()=>{It();x_();S_=Ho($t),I_=Go($t),$_=Ko($t),k_=Yo($t),D_=nd($t),A_=id($t),B_=od($t),z_=sd($t),T_=ad($t),O_=cd($t),U_=ud($t),N_=ld($t)});var bc={};be(bc,{ZodAny:()=>V_,ZodArray:()=>H_,ZodBase64:()=>Bf,ZodBase64URL:()=>zf,ZodBigInt:()=>_s,ZodBigIntFormat:()=>Uf,ZodBoolean:()=>vs,ZodCIDRv4:()=>Df,ZodCIDRv6:()=>Af,ZodCUID:()=>bf,ZodCUID2:()=>wf,ZodCatch:()=>mb,ZodCodec:()=>Mf,ZodCustom:()=>Oc,ZodCustomStringFormat:()=>gs,ZodDate:()=>Dc,ZodDefault:()=>ub,ZodDiscriminatedUnion:()=>K_,ZodE164:()=>Tf,ZodEmail:()=>yf,ZodEmoji:()=>vf,ZodEnum:()=>hs,ZodExactOptional:()=>sb,ZodFile:()=>ib,ZodFunction:()=>Ib,ZodGUID:()=>xc,ZodIPv4:()=>$f,ZodIPv6:()=>kf,ZodIntersection:()=>Y_,ZodJWT:()=>Of,ZodKSUID:()=>If,ZodLazy:()=>wb,ZodLiteral:()=>nb,ZodMAC:()=>L_,ZodMap:()=>tb,ZodNaN:()=>yb,ZodNanoID:()=>_f,ZodNever:()=>W_,ZodNonOptional:()=>Cf,ZodNull:()=>M_,ZodNullable:()=>cb,ZodNumber:()=>ys,ZodNumberFormat:()=>Hi,ZodObject:()=>Bc,ZodOptional:()=>Ff,ZodPipe:()=>jf,ZodPrefault:()=>db,ZodPromise:()=>Sb,ZodReadonly:()=>vb,ZodRecord:()=>Tc,ZodSet:()=>rb,ZodString:()=>ms,ZodStringFormat:()=>_e,ZodSuccess:()=>hb,ZodSymbol:()=>C_,ZodTemplateLiteral:()=>bb,ZodTransform:()=>ob,ZodTuple:()=>q_,ZodType:()=>q,ZodULID:()=>xf,ZodURL:()=>kc,ZodUUID:()=>Hr,ZodUndefined:()=>j_,ZodUnion:()=>zc,ZodUnknown:()=>Z_,ZodVoid:()=>J_,ZodXID:()=>Sf,ZodXor:()=>G_,_ZodString:()=>gf,_default:()=>lb,_function:()=>mD,any:()=>Hk,array:()=>Ac,base64:()=>zk,base64url:()=>Tk,bigint:()=>Rk,boolean:()=>F_,catch:()=>gb,check:()=>gD,cidrv4:()=>Ak,cidrv6:()=>Bk,codec:()=>fD,cuid:()=>bk,cuid2:()=>wk,custom:()=>yD,date:()=>Kk,describe:()=>vD,discriminatedUnion:()=>tD,e164:()=>Ok,email:()=>lk,emoji:()=>vk,enum:()=>Lf,exactOptional:()=>ab,file:()=>cD,float32:()=>Fk,float64:()=>Ck,function:()=>mD,guid:()=>dk,hash:()=>Pk,hex:()=>Lk,hostname:()=>Ek,httpUrl:()=>yk,instanceof:()=>bD,int:()=>mf,int32:()=>jk,int64:()=>Vk,intersection:()=>X_,ipv4:()=>$k,ipv6:()=>Dk,json:()=>xD,jwt:()=>Uk,keyof:()=>Yk,ksuid:()=>Ik,lazy:()=>xb,literal:()=>aD,looseObject:()=>Qk,looseRecord:()=>nD,mac:()=>kk,map:()=>iD,meta:()=>_D,nan:()=>dD,nanoid:()=>_k,nativeEnum:()=>sD,never:()=>Nf,nonoptional:()=>pb,null:()=>R_,nullable:()=>Ic,nullish:()=>uD,number:()=>P_,object:()=>Xk,optional:()=>Sc,partialRecord:()=>rD,pipe:()=>$c,prefault:()=>fb,preprocess:()=>SD,promise:()=>hD,readonly:()=>_b,record:()=>eb,refine:()=>$b,set:()=>oD,strictObject:()=>qk,string:()=>hf,stringFormat:()=>Nk,stringbool:()=>wD,success:()=>lD,superRefine:()=>kb,symbol:()=>Wk,templateLiteral:()=>pD,transform:()=>Pf,tuple:()=>Q_,uint32:()=>Mk,uint64:()=>Zk,ulid:()=>xk,undefined:()=>Jk,union:()=>Ef,unknown:()=>Ji,url:()=>gk,uuid:()=>fk,uuidv4:()=>pk,uuidv6:()=>hk,uuidv7:()=>mk,void:()=>Gk,xid:()=>Sk,xor:()=>eD});function hf(t){return Ky(ms,t)}function lk(t){return Td(yf,t)}function dk(t){return mc(xc,t)}function fk(t){return Od(Hr,t)}function pk(t){return Ud(Hr,t)}function hk(t){return Nd(Hr,t)}function mk(t){return Ed(Hr,t)}function gk(t){return gc(kc,t)}function yk(t){return gc(kc,{protocol:/^https?$/,hostname:er.domain,...w.normalizeParams(t)})}function vk(t){return Ld(vf,t)}function _k(t){return Pd(_f,t)}function bk(t){return Fd(bf,t)}function wk(t){return Cd(wf,t)}function xk(t){return jd(xf,t)}function Sk(t){return Md(Sf,t)}function Ik(t){return Rd(If,t)}function $k(t){return Vd($f,t)}function kk(t){return Xy(L_,t)}function Dk(t){return Zd(kf,t)}function Ak(t){return Wd(Df,t)}function Bk(t){return Jd(Af,t)}function zk(t){return Hd(Bf,t)}function Tk(t){return Gd(zf,t)}function Ok(t){return Kd(Tf,t)}function Uk(t){return Yd(Of,t)}function Nk(t,e,r={}){return ds(gs,t,e,r)}function Ek(t){return ds(gs,"hostname",er.hostname,t)}function Lk(t){return ds(gs,"hex",er.hex,t)}function Pk(t,e){let r=e?.enc??"hex",i=`${t}_${r}`,n=er[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return ds(gs,i,n,e)}function P_(t){return nv(ys,t)}function mf(t){return ov(Hi,t)}function Fk(t){return sv(Hi,t)}function Ck(t){return av(Hi,t)}function jk(t){return cv(Hi,t)}function Mk(t){return uv(Hi,t)}function F_(t){return lv(vs,t)}function Rk(t){return fv(_s,t)}function Vk(t){return hv(Uf,t)}function Zk(t){return mv(Uf,t)}function Wk(t){return gv(C_,t)}function Jk(t){return yv(j_,t)}function R_(t){return vv(M_,t)}function Hk(){return _v(V_)}function Ji(){return bv(Z_)}function Nf(t){return wv(W_,t)}function Gk(t){return xv(J_,t)}function Kk(t){return Sv(Dc,t)}function Ac(t,e){return kv(H_,t,e)}function Yk(t){let e=t._zod.def.shape;return Lf(Object.keys(e))}function Xk(t,e){let r={type:"object",shape:t??{},...w.normalizeParams(e)};return new Bc(r)}function qk(t,e){return new Bc({type:"object",shape:t,catchall:Nf(),...w.normalizeParams(e)})}function Qk(t,e){return new Bc({type:"object",shape:t,catchall:Ji(),...w.normalizeParams(e)})}function Ef(t,e){return new zc({type:"union",options:t,...w.normalizeParams(e)})}function eD(t,e){return new G_({type:"union",options:t,inclusive:!1,...w.normalizeParams(e)})}function tD(t,e,r){return new K_({type:"union",options:e,discriminator:t,...w.normalizeParams(r)})}function X_(t,e){return new Y_({type:"intersection",left:t,right:e})}function Q_(t,e,r){let i=e instanceof H,n=i?r:e,o=i?e:null;return new q_({type:"tuple",items:t,rest:o,...w.normalizeParams(n)})}function eb(t,e,r){return new Tc({type:"record",keyType:t,valueType:e,...w.normalizeParams(r)})}function rD(t,e,r){let i=lt(t);return i._zod.values=void 0,new Tc({type:"record",keyType:i,valueType:e,...w.normalizeParams(r)})}function nD(t,e,r){return new Tc({type:"record",keyType:t,valueType:e,mode:"loose",...w.normalizeParams(r)})}function iD(t,e,r){return new tb({type:"map",keyType:t,valueType:e,...w.normalizeParams(r)})}function oD(t,e){return new rb({type:"set",valueType:t,...w.normalizeParams(e)})}function Lf(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new hs({type:"enum",entries:r,...w.normalizeParams(e)})}function sD(t,e){return new hs({type:"enum",entries:t,...w.normalizeParams(e)})}function aD(t,e){return new nb({type:"literal",values:Array.isArray(t)?t:[t],...w.normalizeParams(e)})}function cD(t){return Dv(ib,t)}function Pf(t){return new ob({type:"transform",transform:t})}function Sc(t){return new Ff({type:"optional",innerType:t})}function ab(t){return new sb({type:"optional",innerType:t})}function Ic(t){return new cb({type:"nullable",innerType:t})}function uD(t){return Sc(Ic(t))}function lb(t,e){return new ub({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():w.shallowClone(e)}})}function fb(t,e){return new db({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():w.shallowClone(e)}})}function pb(t,e){return new Cf({type:"nonoptional",innerType:t,...w.normalizeParams(e)})}function lD(t){return new hb({type:"success",innerType:t})}function gb(t,e){return new mb({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}function dD(t){return $v(yb,t)}function $c(t,e){return new jf({type:"pipe",in:t,out:e})}function fD(t,e,r){return new Mf({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}function _b(t){return new vb({type:"readonly",innerType:t})}function pD(t,e){return new bb({type:"template_literal",parts:t,...w.normalizeParams(e)})}function xb(t){return new wb({type:"lazy",getter:t})}function hD(t){return new Sb({type:"promise",innerType:t})}function mD(t){return new Ib({type:"function",input:Array.isArray(t?.input)?Q_(t?.input):t?.input??Ac(Ji()),output:t?.output??Ji()})}function gD(t){let e=new $e({check:"custom"});return e._zod.check=t,e}function yD(t,e){return Av(Oc,t??(()=>!0),e)}function $b(t,e={}){return Bv(Oc,t,e)}function kb(t){return zv(t)}function bD(t,e={}){let r=new Oc({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 xD(t){let e=xb(()=>Ef([hf(t),P_(),F_(),R_(),Ac(e),eb(hf(),e)]));return e}function SD(t,e){return $c(Pf(t),e)}var q,gf,ms,_e,yf,xc,Hr,kc,vf,_f,bf,wf,xf,Sf,If,$f,L_,kf,Df,Af,Bf,zf,Tf,Of,gs,ys,Hi,vs,_s,Uf,C_,j_,M_,V_,Z_,W_,J_,Dc,H_,Bc,zc,G_,K_,Y_,q_,Tc,tb,rb,hs,nb,ib,ob,Ff,sb,cb,ub,db,Cf,hb,mb,yb,jf,Mf,vb,bb,wb,Sb,Ib,Oc,vD,_D,wD,wc=f(()=>{It();It();vc();yc();uf();_c();E_();q=g("ZodType",(t,e)=>(H.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:fs(t,"input"),output:fs(t,"output")}}),t.toJSONSchema=Nv(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...r)=>t.clone(w.mergeDefs(e,{checks:[...e.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),t.with=t.check,t.clone=(r,i)=>lt(t,r,i),t.brand=()=>t,t.register=((r,i)=>(r.add(t,i),t)),t.parse=(r,i)=>S_(t,r,i,{callee:t.parse}),t.safeParse=(r,i)=>$_(t,r,i),t.parseAsync=async(r,i)=>I_(t,r,i,{callee:t.parseAsync}),t.safeParseAsync=async(r,i)=>k_(t,r,i),t.spa=t.safeParseAsync,t.encode=(r,i)=>D_(t,r,i),t.decode=(r,i)=>A_(t,r,i),t.encodeAsync=async(r,i)=>B_(t,r,i),t.decodeAsync=async(r,i)=>z_(t,r,i),t.safeEncode=(r,i)=>T_(t,r,i),t.safeDecode=(r,i)=>O_(t,r,i),t.safeEncodeAsync=async(r,i)=>U_(t,r,i),t.safeDecodeAsync=async(r,i)=>N_(t,r,i),t.refine=(r,i)=>t.check($b(r,i)),t.superRefine=r=>t.check(kb(r)),t.overwrite=r=>t.check(vr(r)),t.optional=()=>Sc(t),t.exactOptional=()=>ab(t),t.nullable=()=>Ic(t),t.nullish=()=>Sc(Ic(t)),t.nonoptional=r=>pb(t,r),t.array=()=>Ac(t),t.or=r=>Ef([t,r]),t.and=r=>X_(t,r),t.transform=r=>$c(t,Pf(r)),t.default=r=>lb(t,r),t.prefault=r=>fb(t,r),t.catch=r=>gb(t,r),t.pipe=r=>$c(t,r),t.readonly=()=>_b(t),t.describe=r=>{let i=t.clone();return qe.add(i,{description:r}),i},Object.defineProperty(t,"description",{get(){return qe.get(t)?.description},configurable:!0}),t.meta=(...r)=>{if(r.length===0)return qe.get(t);let i=t.clone();return qe.add(i,r[0]),i},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=r=>r(t),t)),gf=g("_ZodString",(t,e)=>{Ri.init(t,e),q.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Ev(t,i,n,o);let r=t._zod.bag;t.format=r.format??null,t.minLength=r.minimum??null,t.maxLength=r.maximum??null,t.regex=(...i)=>t.check(Qo(...i)),t.includes=(...i)=>t.check(rs(...i)),t.startsWith=(...i)=>t.check(ns(...i)),t.endsWith=(...i)=>t.check(is(...i)),t.min=(...i)=>t.check(bn(...i)),t.max=(...i)=>t.check(Zi(...i)),t.length=(...i)=>t.check(Wi(...i)),t.nonempty=(...i)=>t.check(bn(1,...i)),t.lowercase=i=>t.check(es(i)),t.uppercase=i=>t.check(ts(i)),t.trim=()=>t.check(as()),t.normalize=(...i)=>t.check(ss(...i)),t.toLowerCase=()=>t.check(cs()),t.toUpperCase=()=>t.check(us()),t.slugify=()=>t.check(ls())}),ms=g("ZodString",(t,e)=>{Ri.init(t,e),gf.init(t,e),t.email=r=>t.check(Td(yf,r)),t.url=r=>t.check(gc(kc,r)),t.jwt=r=>t.check(Yd(Of,r)),t.emoji=r=>t.check(Ld(vf,r)),t.guid=r=>t.check(mc(xc,r)),t.uuid=r=>t.check(Od(Hr,r)),t.uuidv4=r=>t.check(Ud(Hr,r)),t.uuidv6=r=>t.check(Nd(Hr,r)),t.uuidv7=r=>t.check(Ed(Hr,r)),t.nanoid=r=>t.check(Pd(_f,r)),t.guid=r=>t.check(mc(xc,r)),t.cuid=r=>t.check(Fd(bf,r)),t.cuid2=r=>t.check(Cd(wf,r)),t.ulid=r=>t.check(jd(xf,r)),t.base64=r=>t.check(Hd(Bf,r)),t.base64url=r=>t.check(Gd(zf,r)),t.xid=r=>t.check(Md(Sf,r)),t.ksuid=r=>t.check(Rd(If,r)),t.ipv4=r=>t.check(Vd($f,r)),t.ipv6=r=>t.check(Zd(kf,r)),t.cidrv4=r=>t.check(Wd(Df,r)),t.cidrv6=r=>t.check(Jd(Af,r)),t.e164=r=>t.check(Kd(Tf,r)),t.datetime=r=>t.check(v_(r)),t.date=r=>t.check(__(r)),t.time=r=>t.check(b_(r)),t.duration=r=>t.check(w_(r))});_e=g("ZodStringFormat",(t,e)=>{ve.init(t,e),gf.init(t,e)}),yf=g("ZodEmail",(t,e)=>{Eg.init(t,e),_e.init(t,e)});xc=g("ZodGUID",(t,e)=>{Ug.init(t,e),_e.init(t,e)});Hr=g("ZodUUID",(t,e)=>{Ng.init(t,e),_e.init(t,e)});kc=g("ZodURL",(t,e)=>{Lg.init(t,e),_e.init(t,e)});vf=g("ZodEmoji",(t,e)=>{Pg.init(t,e),_e.init(t,e)});_f=g("ZodNanoID",(t,e)=>{Fg.init(t,e),_e.init(t,e)});bf=g("ZodCUID",(t,e)=>{Cg.init(t,e),_e.init(t,e)});wf=g("ZodCUID2",(t,e)=>{jg.init(t,e),_e.init(t,e)});xf=g("ZodULID",(t,e)=>{Mg.init(t,e),_e.init(t,e)});Sf=g("ZodXID",(t,e)=>{Rg.init(t,e),_e.init(t,e)});If=g("ZodKSUID",(t,e)=>{Vg.init(t,e),_e.init(t,e)});$f=g("ZodIPv4",(t,e)=>{Gg.init(t,e),_e.init(t,e)});L_=g("ZodMAC",(t,e)=>{Yg.init(t,e),_e.init(t,e)});kf=g("ZodIPv6",(t,e)=>{Kg.init(t,e),_e.init(t,e)});Df=g("ZodCIDRv4",(t,e)=>{Xg.init(t,e),_e.init(t,e)});Af=g("ZodCIDRv6",(t,e)=>{qg.init(t,e),_e.init(t,e)});Bf=g("ZodBase64",(t,e)=>{ey.init(t,e),_e.init(t,e)});zf=g("ZodBase64URL",(t,e)=>{ty.init(t,e),_e.init(t,e)});Tf=g("ZodE164",(t,e)=>{ry.init(t,e),_e.init(t,e)});Of=g("ZodJWT",(t,e)=>{ny.init(t,e),_e.init(t,e)});gs=g("ZodCustomStringFormat",(t,e)=>{iy.init(t,e),_e.init(t,e)});ys=g("ZodNumber",(t,e)=>{xd.init(t,e),q.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Lv(t,i,n,o),t.gt=(i,n)=>t.check(Wr(i,n)),t.gte=(i,n)=>t.check(dt(i,n)),t.min=(i,n)=>t.check(dt(i,n)),t.lt=(i,n)=>t.check(Zr(i,n)),t.lte=(i,n)=>t.check(Rt(i,n)),t.max=(i,n)=>t.check(Rt(i,n)),t.int=i=>t.check(mf(i)),t.safe=i=>t.check(mf(i)),t.positive=i=>t.check(Wr(0,i)),t.nonnegative=i=>t.check(dt(0,i)),t.negative=i=>t.check(Zr(0,i)),t.nonpositive=i=>t.check(Rt(0,i)),t.multipleOf=(i,n)=>t.check(Hn(i,n)),t.step=(i,n)=>t.check(Hn(i,n)),t.finite=()=>t;let r=t._zod.bag;t.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),t.isFinite=!0,t.format=r.format??null});Hi=g("ZodNumberFormat",(t,e)=>{oy.init(t,e),ys.init(t,e)});vs=g("ZodBoolean",(t,e)=>{uc.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Pv(t,r,i,n)});_s=g("ZodBigInt",(t,e)=>{Sd.init(t,e),q.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Fv(t,i,n,o),t.gte=(i,n)=>t.check(dt(i,n)),t.min=(i,n)=>t.check(dt(i,n)),t.gt=(i,n)=>t.check(Wr(i,n)),t.gte=(i,n)=>t.check(dt(i,n)),t.min=(i,n)=>t.check(dt(i,n)),t.lt=(i,n)=>t.check(Zr(i,n)),t.lte=(i,n)=>t.check(Rt(i,n)),t.max=(i,n)=>t.check(Rt(i,n)),t.positive=i=>t.check(Wr(BigInt(0),i)),t.negative=i=>t.check(Zr(BigInt(0),i)),t.nonpositive=i=>t.check(Rt(BigInt(0),i)),t.nonnegative=i=>t.check(dt(BigInt(0),i)),t.multipleOf=(i,n)=>t.check(Hn(i,n));let r=t._zod.bag;t.minValue=r.minimum??null,t.maxValue=r.maximum??null,t.format=r.format??null});Uf=g("ZodBigIntFormat",(t,e)=>{sy.init(t,e),_s.init(t,e)});C_=g("ZodSymbol",(t,e)=>{ay.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Cv(t,r,i,n)});j_=g("ZodUndefined",(t,e)=>{cy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Mv(t,r,i,n)});M_=g("ZodNull",(t,e)=>{uy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>jv(t,r,i,n)});V_=g("ZodAny",(t,e)=>{ly.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Zv(t,r,i,n)});Z_=g("ZodUnknown",(t,e)=>{dy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Wv(t,r,i,n)});W_=g("ZodNever",(t,e)=>{fy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Vv(t,r,i,n)});J_=g("ZodVoid",(t,e)=>{py.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Rv(t,r,i,n)});Dc=g("ZodDate",(t,e)=>{hy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Jv(t,i,n,o),t.min=(i,n)=>t.check(dt(i,n)),t.max=(i,n)=>t.check(Rt(i,n));let r=t._zod.bag;t.minDate=r.minimum?new Date(r.minimum):null,t.maxDate=r.maximum?new Date(r.maximum):null});H_=g("ZodArray",(t,e)=>{my.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>i_(t,r,i,n),t.element=e.element,t.min=(r,i)=>t.check(bn(r,i)),t.nonempty=r=>t.check(bn(1,r)),t.max=(r,i)=>t.check(Zi(r,i)),t.length=(r,i)=>t.check(Wi(r,i)),t.unwrap=()=>t.element});Bc=g("ZodObject",(t,e)=>{gy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>o_(t,r,i,n),w.defineLazy(t,"shape",()=>e.shape),t.keyof=()=>Lf(Object.keys(t._zod.def.shape)),t.catchall=r=>t.clone({...t._zod.def,catchall:r}),t.passthrough=()=>t.clone({...t._zod.def,catchall:Ji()}),t.loose=()=>t.clone({...t._zod.def,catchall:Ji()}),t.strict=()=>t.clone({...t._zod.def,catchall:Nf()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=r=>w.extend(t,r),t.safeExtend=r=>w.safeExtend(t,r),t.merge=r=>w.merge(t,r),t.pick=r=>w.pick(t,r),t.omit=r=>w.omit(t,r),t.partial=(...r)=>w.partial(Ff,t,r[0]),t.required=(...r)=>w.required(Cf,t,r[0])});zc=g("ZodUnion",(t,e)=>{lc.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>nf(t,r,i,n),t.options=e.options});G_=g("ZodXor",(t,e)=>{zc.init(t,e),yy.init(t,e),t._zod.processJSONSchema=(r,i,n)=>nf(t,r,i,n),t.options=e.options});K_=g("ZodDiscriminatedUnion",(t,e)=>{zc.init(t,e),vy.init(t,e)});Y_=g("ZodIntersection",(t,e)=>{_y.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>s_(t,r,i,n)});q_=g("ZodTuple",(t,e)=>{Id.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>a_(t,r,i,n),t.rest=r=>t.clone({...t._zod.def,rest:r})});Tc=g("ZodRecord",(t,e)=>{by.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>c_(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType});tb=g("ZodMap",(t,e)=>{wy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>r_(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(Jr(...r)),t.nonempty=r=>t.check(Jr(1,r)),t.max=(...r)=>t.check(Gn(...r)),t.size=(...r)=>t.check(Vi(...r))});rb=g("ZodSet",(t,e)=>{xy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>n_(t,r,i,n),t.min=(...r)=>t.check(Jr(...r)),t.nonempty=r=>t.check(Jr(1,r)),t.max=(...r)=>t.check(Gn(...r)),t.size=(...r)=>t.check(Vi(...r))});hs=g("ZodEnum",(t,e)=>{Sy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(i,n,o)=>Hv(t,i,n,o),t.enum=e.entries,t.options=Object.values(e.entries);let r=new Set(Object.keys(e.entries));t.extract=(i,n)=>{let o={};for(let s of i)if(r.has(s))o[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new hs({...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 hs({...e,checks:[],...w.normalizeParams(n),entries:o})}});nb=g("ZodLiteral",(t,e)=>{Iy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Gv(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]}})});ib=g("ZodFile",(t,e)=>{$y.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Xv(t,r,i,n),t.min=(r,i)=>t.check(Jr(r,i)),t.max=(r,i)=>t.check(Gn(r,i)),t.mime=(r,i)=>t.check(os(Array.isArray(r)?r:[r],i))});ob=g("ZodTransform",(t,e)=>{ky.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>t_(t,r,i,n),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Rn(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"),s.input??(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)}});Ff=g("ZodOptional",(t,e)=>{$d.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>of(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});sb=g("ZodExactOptional",(t,e)=>{Dy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>of(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});cb=g("ZodNullable",(t,e)=>{Ay.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>u_(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});ub=g("ZodDefault",(t,e)=>{By.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>d_(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});db=g("ZodPrefault",(t,e)=>{zy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>f_(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});Cf=g("ZodNonOptional",(t,e)=>{Ty.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>l_(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});hb=g("ZodSuccess",(t,e)=>{Oy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>qv(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});mb=g("ZodCatch",(t,e)=>{Uy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>p_(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});yb=g("ZodNaN",(t,e)=>{Ny.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Kv(t,r,i,n)});jf=g("ZodPipe",(t,e)=>{Ey.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>h_(t,r,i,n),t.in=e.in,t.out=e.out});Mf=g("ZodCodec",(t,e)=>{jf.init(t,e),dc.init(t,e)});vb=g("ZodReadonly",(t,e)=>{Ly.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>m_(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});bb=g("ZodTemplateLiteral",(t,e)=>{Py.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Yv(t,r,i,n)});wb=g("ZodLazy",(t,e)=>{jy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>y_(t,r,i,n),t.unwrap=()=>t._zod.def.getter()});Sb=g("ZodPromise",(t,e)=>{Cy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>g_(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});Ib=g("ZodFunction",(t,e)=>{Fy.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>e_(t,r,i,n)});Oc=g("ZodCustom",(t,e)=>{My.init(t,e),q.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Qv(t,r,i,n)});vD=Tv,_D=Ov;wD=(...t)=>Uv({Codec:Mf,Boolean:vs,String:ms},...t)});function IN(t){Ee({customError:t})}function $N(){return Ee().customError}var SN,Db,ID=f(()=>{It();It();SN={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"};Db||(Db={})});function DN(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 AN(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let i=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}function $D(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return $.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 $.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=AN(n,e),s=ot(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 $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(s=>typeof s=="string"))return $.enum(n);let o=n.map(s=>$.literal(s));return o.length<2?o[0]:$.union([o[0],o[1],...o.slice(2)])}if(t.const!==void 0)return $.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(o=>{let s={...t,type:o};return $D(s,e)});return n.length===0?$.never():n.length===1?n[0]:$.union(n)}if(!r)return $.any();let i;switch(r){case"string":{let n=$.string();if(t.format){let o=t.format;o==="email"?n=n.check($.email()):o==="uri"||o==="uri-reference"?n=n.check($.url()):o==="uuid"||o==="guid"?n=n.check($.uuid()):o==="date-time"?n=n.check($.iso.datetime()):o==="date"?n=n.check($.iso.date()):o==="time"?n=n.check($.iso.time()):o==="duration"?n=n.check($.iso.duration()):o==="ipv4"?n=n.check($.ipv4()):o==="ipv6"?n=n.check($.ipv6()):o==="mac"?n=n.check($.mac()):o==="cidr"?n=n.check($.cidrv4()):o==="cidr-v6"?n=n.check($.cidrv6()):o==="base64"?n=n.check($.base64()):o==="base64url"?n=n.check($.base64url()):o==="e164"?n=n.check($.e164()):o==="jwt"?n=n.check($.jwt()):o==="emoji"?n=n.check($.emoji()):o==="nanoid"?n=n.check($.nanoid()):o==="cuid"?n=n.check($.cuid()):o==="cuid2"?n=n.check($.cuid2()):o==="ulid"?n=n.check($.ulid()):o==="xid"?n=n.check($.xid()):o==="ksuid"&&(n=n.check($.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"?$.number().int():$.number();typeof t.minimum=="number"&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),i=n;break}case"boolean":{i=$.boolean();break}case"null":{i=$.null();break}case"object":{let n={},o=t.properties||{},s=new Set(t.required||[]);for(let[c,u]of Object.entries(o)){let l=ot(u,e);n[c]=s.has(c)?l:l.optional()}if(t.propertyNames){let c=ot(t.propertyNames,e),u=t.additionalProperties&&typeof t.additionalProperties=="object"?ot(t.additionalProperties,e):$.any();if(Object.keys(n).length===0){i=$.record(c,u);break}let l=$.object(n).passthrough(),d=$.looseRecord(c,u);i=$.intersection(l,d);break}if(t.patternProperties){let c=t.patternProperties,u=Object.keys(c),l=[];for(let h of u){let m=ot(c[h],e),v=$.string().regex(new RegExp(h));l.push($.looseRecord(v,m))}let d=[];if(Object.keys(n).length>0&&d.push($.object(n).passthrough()),d.push(...l),d.length===0)i=$.object({}).passthrough();else if(d.length===1)i=d[0];else{let h=$.intersection(d[0],d[1]);for(let m=2;m<d.length;m++)h=$.intersection(h,d[m]);i=h}break}let a=$.object(n);t.additionalProperties===!1?i=a.strict():typeof t.additionalProperties=="object"?i=a.catchall(ot(t.additionalProperties,e)):i=a.passthrough();break}case"array":{let n=t.prefixItems,o=t.items;if(n&&Array.isArray(n)){let s=n.map(c=>ot(c,e)),a=o&&typeof o=="object"&&!Array.isArray(o)?ot(o,e):void 0;a?i=$.tuple(s).rest(a):i=$.tuple(s),typeof t.minItems=="number"&&(i=i.check($.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check($.maxLength(t.maxItems)))}else if(Array.isArray(o)){let s=o.map(c=>ot(c,e)),a=t.additionalItems&&typeof t.additionalItems=="object"?ot(t.additionalItems,e):void 0;a?i=$.tuple(s).rest(a):i=$.tuple(s),typeof t.minItems=="number"&&(i=i.check($.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check($.maxLength(t.maxItems)))}else if(o!==void 0){let s=ot(o,e),a=$.array(s);typeof t.minItems=="number"&&(a=a.min(t.minItems)),typeof t.maxItems=="number"&&(a=a.max(t.maxItems)),i=a}else i=$.array($.any());break}default:throw new Error(`Unsupported type: ${r}`)}return t.description&&(i=i.describe(t.description)),t.default!==void 0&&(i=i.default(t.default)),i}function ot(t,e){if(typeof t=="boolean")return t?$.any():$.never();let r=$D(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=>ot(u,e)),c=$.union(a);r=i?$.intersection(r,c):c}if(t.oneOf&&Array.isArray(t.oneOf)){let a=t.oneOf.map(u=>ot(u,e)),c=$.xor(a);r=i?$.intersection(r,c):c}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=i?r:$.any();else{let a=i?r:ot(t.allOf[0],e),c=i?0:1;for(let u=c;u<t.allOf.length;u++)a=$.intersection(a,ot(t.allOf[u],e));r=a}t.nullable===!0&&e.version==="openapi-3.0"&&(r=$.nullable(r)),t.readOnly===!0&&(r=$.readonly(r));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]);for(let a of Object.keys(t))kN.has(a)||(n[a]=t[a]);return Object.keys(n).length>0&&e.registry.add(r,n),r}function kD(t,e){if(typeof t=="boolean")return t?$.any():$.never();let r=DN(t,e?.defaultTarget),i=t.$defs||t.definitions||{},n={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:t,registry:e?.registry??qe};return ot(t,n)}var $,kN,DD=f(()=>{hc();uf();_c();wc();$={...bc,...cf,iso:ps},kN=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"])});var Ab={};be(Ab,{bigint:()=>ON,boolean:()=>TN,date:()=>UN,number:()=>zN,string:()=>BN});function BN(t){return Yy(ms,t)}function zN(t){return iv(ys,t)}function TN(t){return dv(vs,t)}function ON(t){return pv(_s,t)}function UN(t){return Iv(Dc,t)}var AD=f(()=>{It();wc()});var pe={};be(pe,{$brand:()=>ql,$input:()=>Gy,$output:()=>Hy,NEVER:()=>bm,TimePrecision:()=>qy,ZodAny:()=>V_,ZodArray:()=>H_,ZodBase64:()=>Bf,ZodBase64URL:()=>zf,ZodBigInt:()=>_s,ZodBigIntFormat:()=>Uf,ZodBoolean:()=>vs,ZodCIDRv4:()=>Df,ZodCIDRv6:()=>Af,ZodCUID:()=>bf,ZodCUID2:()=>wf,ZodCatch:()=>mb,ZodCodec:()=>Mf,ZodCustom:()=>Oc,ZodCustomStringFormat:()=>gs,ZodDate:()=>Dc,ZodDefault:()=>ub,ZodDiscriminatedUnion:()=>K_,ZodE164:()=>Tf,ZodEmail:()=>yf,ZodEmoji:()=>vf,ZodEnum:()=>hs,ZodError:()=>wN,ZodExactOptional:()=>sb,ZodFile:()=>ib,ZodFirstPartyTypeKind:()=>Db,ZodFunction:()=>Ib,ZodGUID:()=>xc,ZodIPv4:()=>$f,ZodIPv6:()=>kf,ZodISODate:()=>df,ZodISODateTime:()=>lf,ZodISODuration:()=>pf,ZodISOTime:()=>ff,ZodIntersection:()=>Y_,ZodIssueCode:()=>SN,ZodJWT:()=>Of,ZodKSUID:()=>If,ZodLazy:()=>wb,ZodLiteral:()=>nb,ZodMAC:()=>L_,ZodMap:()=>tb,ZodNaN:()=>yb,ZodNanoID:()=>_f,ZodNever:()=>W_,ZodNonOptional:()=>Cf,ZodNull:()=>M_,ZodNullable:()=>cb,ZodNumber:()=>ys,ZodNumberFormat:()=>Hi,ZodObject:()=>Bc,ZodOptional:()=>Ff,ZodPipe:()=>jf,ZodPrefault:()=>db,ZodPromise:()=>Sb,ZodReadonly:()=>vb,ZodRealError:()=>$t,ZodRecord:()=>Tc,ZodSet:()=>rb,ZodString:()=>ms,ZodStringFormat:()=>_e,ZodSuccess:()=>hb,ZodSymbol:()=>C_,ZodTemplateLiteral:()=>bb,ZodTransform:()=>ob,ZodTuple:()=>q_,ZodType:()=>q,ZodULID:()=>xf,ZodURL:()=>kc,ZodUUID:()=>Hr,ZodUndefined:()=>j_,ZodUnion:()=>zc,ZodUnknown:()=>Z_,ZodVoid:()=>J_,ZodXID:()=>Sf,ZodXor:()=>G_,_ZodString:()=>gf,_default:()=>lb,_function:()=>mD,any:()=>Hk,array:()=>Ac,base64:()=>zk,base64url:()=>Tk,bigint:()=>Rk,boolean:()=>F_,catch:()=>gb,check:()=>gD,cidrv4:()=>Ak,cidrv6:()=>Bk,clone:()=>lt,codec:()=>fD,coerce:()=>Ab,config:()=>Ee,core:()=>wn,cuid:()=>bk,cuid2:()=>wk,custom:()=>yD,date:()=>Kk,decode:()=>A_,decodeAsync:()=>z_,describe:()=>vD,discriminatedUnion:()=>tD,e164:()=>Ok,email:()=>lk,emoji:()=>vk,encode:()=>D_,encodeAsync:()=>B_,endsWith:()=>is,enum:()=>Lf,exactOptional:()=>ab,file:()=>cD,flattenError:()=>ic,float32:()=>Fk,float64:()=>Ck,formatError:()=>oc,fromJSONSchema:()=>kD,function:()=>mD,getErrorMap:()=>$N,globalRegistry:()=>qe,gt:()=>Wr,gte:()=>dt,guid:()=>dk,hash:()=>Pk,hex:()=>Lk,hostname:()=>Ek,httpUrl:()=>yk,includes:()=>rs,instanceof:()=>bD,int:()=>mf,int32:()=>jk,int64:()=>Vk,intersection:()=>X_,ipv4:()=>$k,ipv6:()=>Dk,iso:()=>ps,json:()=>xD,jwt:()=>Uk,keyof:()=>Yk,ksuid:()=>Ik,lazy:()=>xb,length:()=>Wi,literal:()=>aD,locales:()=>pc,looseObject:()=>Qk,looseRecord:()=>nD,lowercase:()=>es,lt:()=>Zr,lte:()=>Rt,mac:()=>kk,map:()=>iD,maxLength:()=>Zi,maxSize:()=>Gn,meta:()=>_D,mime:()=>os,minLength:()=>bn,minSize:()=>Jr,multipleOf:()=>Hn,nan:()=>dD,nanoid:()=>_k,nativeEnum:()=>sD,negative:()=>qd,never:()=>Nf,nonnegative:()=>ef,nonoptional:()=>pb,nonpositive:()=>Qd,normalize:()=>ss,null:()=>R_,nullable:()=>Ic,nullish:()=>uD,number:()=>P_,object:()=>Xk,optional:()=>Sc,overwrite:()=>vr,parse:()=>S_,parseAsync:()=>I_,partialRecord:()=>rD,pipe:()=>$c,positive:()=>Xd,prefault:()=>fb,preprocess:()=>SD,prettifyError:()=>Om,promise:()=>hD,property:()=>tf,readonly:()=>_b,record:()=>eb,refine:()=>$b,regex:()=>Qo,regexes:()=>er,registry:()=>zd,safeDecode:()=>O_,safeDecodeAsync:()=>N_,safeEncode:()=>T_,safeEncodeAsync:()=>U_,safeParse:()=>$_,safeParseAsync:()=>k_,set:()=>oD,setErrorMap:()=>IN,size:()=>Vi,slugify:()=>ls,startsWith:()=>ns,strictObject:()=>qk,string:()=>hf,stringFormat:()=>Nk,stringbool:()=>wD,success:()=>lD,superRefine:()=>kb,symbol:()=>Wk,templateLiteral:()=>pD,toJSONSchema:()=>sf,toLowerCase:()=>cs,toUpperCase:()=>us,transform:()=>Pf,treeifyError:()=>Tm,trim:()=>as,tuple:()=>Q_,uint32:()=>Mk,uint64:()=>Zk,ulid:()=>xk,undefined:()=>Jk,union:()=>Ef,unknown:()=>Ji,uppercase:()=>ts,url:()=>gk,util:()=>w,uuid:()=>fk,uuidv4:()=>pk,uuidv6:()=>hk,uuidv7:()=>mk,void:()=>Gk,xid:()=>Sk,xor:()=>eD});var Bb=f(()=>{It();wc();uf();x_();E_();ID();It();Vy();It();vc();DD();Jy();_c();_c();AD();Ee(kd())});var BD=f(()=>{Bb();Bb()});var pt,zD,NN,TD,EN,OD,UD=f(()=>{"use strict";BD();pt=pe.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),zD=pe.object({rgbMin:pe.number().finite().optional(),rgbMax:pe.number().finite().optional(),lnScaleMin:pe.number().finite().optional(),lnScaleMax:pe.number().finite().optional(),sh1Max:pe.number().finite().optional(),sh2Max:pe.number().finite().optional(),sh3Max:pe.number().finite().optional(),lodOpacity:pe.boolean().optional()}).passthrough(),NN=pe.object({offset:pt,bytes:pt,base:pt.optional(),count:pt.optional(),filename:pe.string().optional()}).passthrough(),TD=pe.object({version:pe.literal(1),type:pe.literal("gsplat"),count:pt,maxSh:pt.optional(),lodTree:pe.boolean().optional(),chunkSize:pt.optional(),allChunkBytes:pt.optional(),chunks:pe.array(NN),splatEncoding:zD.optional(),shCodeCount:pt.optional(),comment:pe.string().optional()}).passthrough(),EN=pe.object({offset:pt,bytes:pt,property:pe.string(),encoding:pe.string(),compression:pe.string().optional(),min:pe.number().finite().optional(),max:pe.number().finite().optional()}).passthrough(),OD=pe.object({version:pe.literal(1),base:pt,count:pt,payloadBytes:pt,maxSh:pt.optional(),lodTree:pe.boolean().optional(),splatEncoding:zD.optional(),properties:pe.array(EN)}).passthrough()});function Uc(t){let e=bs(t);if(!e)throw new Error("RADLoader: file must contain a complete RAD metadata header.");return e}function bs(t){let e=ED(t);if(e.byteLength<qn)return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0);if(i!==LN)throw new Error(`RADLoader: RAD0 magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=qn+n;if(e.byteLength<o)return null;let s=TD.parse(ND(e.subarray(qn,o),"RADLoader: failed to parse RAD metadata JSON."));return jN(s,n)}function ws(t){let e=ED(t);if(e.byteLength<qn)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!==PN)throw new Error(`RADLoader: RADC magic header not found, received 0x${i.toString(16)}.`);let n=r.getUint32(4,!0),o=qn+n,s=qn+Rf(n),a=s+FN;if(e.byteLength<a)throw new Error("RADLoader: RADC chunk must contain a complete metadata header.");let c=OD.parse(ND(e.subarray(qn,o),"RADLoader: failed to parse RADC metadata JSON.")),u=RN(r,s,"RADC payload byte length");return MN(c,n,a,u)}function Rf(t){return t+7&-8}function jN(t,e){return{...t,headerJsonByteLength:e,chunksByteOffset:qn+Rf(e)}}function MN(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 ND(t,e){try{return JSON.parse(CN.decode(t))}catch{throw new Error(e)}}function RN(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 ED(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var LN,PN,qn,FN,CN,Nc=f(()=>{"use strict";UD();LN=809779538,PN=1128546642,qn=8,FN=8,CN=new TextDecoder});async function*LD(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 PD=f(()=>{"use strict"});var Vf,FD=f(()=>{"use strict";pI();Mo();PD();Vf=class extends Vr{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?lI(r):fI(r)).slice().buffer}async*decompressBatches(e){let r=this.options.raw?new Ra:new dI;yield*LD(r,e)}}});var Ec,CD=f(()=>{"use strict";FD();Ro();Ec=class extends Vf{constructor(e={}){super(e)}async decompress(e){if(this.options.useNative!==!1){let r=this.options.raw?"deflate-raw":"deflate",i=await Mn(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=Fi(e,r);if(i){yield*i;return}}yield*super.decompressBatches(e)}}});function Zf(t,e){return Rr(Pc(t,e))}function Pc(t,e){let r=b6(t),i=m6(ws(r),e);if(r.byteLength<i.chunkByteLength)throw new Error("RADLoader: RADC chunk payload is incomplete.");let n=i.count,o=xs(r,i,h6(i,"center"),3),s=WN(r,i,n),a=HN(r,i,n),c=GN(r,i,n),u=KN(r,i,n),{colors:l,sphericalHarmonicDcs:d}=l6(a),h=e?.radChunk?.includeLoDTree??!0,m=h?XN(r,i,"child_count"):null,v=h?qN(r,i,"child_start"):null,O=e?.radChunk?.includeSphericalHarmonics??!1?YN(r,i):null;return{format:"rad",splatCount:n,positions:o,scales:c,rotations:u,colors:l,sphericalHarmonicDcs:d,opacities:s,sphericalHarmonics:O?.values,sphericalHarmonicsComponentCount:O?.componentCount,loaderData:{format:"rad",base:i.base,count:i.count,maxSh:i.maxSh??0,lodTree:i.lodTree??!1,splatEncoding:i.splatEncoding,childCounts:m??void 0,childStarts:v??void 0}}}function WN(t,e,r){let i=Gr(e,"alpha");if(!i)return new Float32Array(r).fill(1);let n=xs(t,e,i,1);for(let o=0;o<n.length;o++)n[o]=JN(n[o],e,i);return n}function JN(t,e,r){let i=Math.max(t,0);return!e.splatEncoding?.lodOpacity||r.encoding!=="r8"&&r.encoding!=="r8_delta"?i:i*2}function HN(t,e,r){let i=Gr(e,"rgb");return i?xs(t,e,i,3):new Float32Array(r*3).fill(1)}function GN(t,e,r){let i=Gr(e,"scales");return i?xs(t,e,i,3):new Float32Array(r*3).fill(1)}function KN(t,e,r){let i=Gr(e,"orientation");if(!i)return d6(r);let n=Wf(t,e,i);switch(i.encoding){case"oct88r8":return u6(n,r);case"f32":case"f16":{let o=xs(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],h=o[c+2],m=Math.sqrt(Math.max(0,1-l*l-d*d-h*h)),v=mn(m,l,d,h);s.set(v,u)}return s}default:throw new Error(`RADLoader: unsupported orientation encoding ${i.encoding}.`)}}function YN(t,e){let r=[{property:Gr(e,"sh1"),dimensions:9},{property:Gr(e,"sh2"),dimensions:15},{property:Gr(e,"sh3"),dimensions:21}].filter(s=>s.property!==void 0);if(r.length===0)return null;let i=r.map(s=>({values:xs(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 xs(t,e,r,i){let n=Wf(t,e,r);switch(r.encoding){case"f32":return e6(n,i,e.count);case"f16":return jD(n,i,e.count);case"f32_lebytes":return t6(n,i,e.count);case"f16_lebytes":return r6(n,i,e.count);case"r8":return n6(n,i,e.count,zb(e,r),Lc(e,r));case"r8_delta":return i6(n,i,e.count,zb(e,r),Lc(e,r));case"s8":return o6(n,i,e.count,Lc(e,r));case"s8_delta":return s6(n,i,e.count,Lc(e,r));case"ln_0r8":return a6(n,i,e.count,zb(e,r),Lc(e,r));case"ln_f16":return c6(n,i,e.count);default:throw new Error(`RADLoader: unsupported ${r.property} encoding ${r.encoding}.`)}}function XN(t,e,r){let i=Gr(e,r);if(!i)return null;if(i.encoding!=="u16")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=Wf(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 qN(t,e,r){let i=Gr(e,r);if(!i)return null;if(i.encoding!=="u32")throw new Error(`RADLoader: unsupported ${r} encoding ${i.encoding}.`);let n=Wf(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 Wf(t,e,r){let i=Rf(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 QN(s,r.property)}function QN(t,e){let r=_6(t);try{return new Uint8Array(VN.decompressSync(r))}catch{try{return new Uint8Array(ZN.decompressSync(r))}catch{throw new Error(`RADLoader: failed to decompress RADC property ${e}.`)}}}function e6(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 jD(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]=Fa(t[s]|t[s+1]<<8)}return i}function t6(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 r6(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]=Fa(t[a]|t[a+n]<<8)}return i}function n6(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 i6(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 o6(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 s6(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 a6(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]=f6(t[a*r+s],i,n);return o}function c6(t,e,r){let i=jD(t,e,r);for(let n=0;n<i.length;n++)i[n]=Math.exp(i[n]);return i}function u6(t,e){let r=new Float32Array(e*4);for(let i=0;i<e;i++){let n=i*3,[o,s,a,c]=p6(t[n],t[n+1],t[n+2]);r.set(mn(c,o,s,a),i*4)}return r}function l6(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]=v6(n),r[i]=(n-.5)/Vh}return{colors:e,sphericalHarmonicDcs:r}}function d6(t){let e=new Float32Array(t*4);for(let r=0;r<t;r++)e[r*4]=1;return e}function f6(t,e,r){if(t===0)return 0;let i=(r-e)/254;return Math.exp(e+(t-1)*i)}function p6(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,h=Math.sin(d);return[c*h,u*h,l*h,Math.cos(d)]}function h6(t,e){let r=Gr(t,e);if(!r)throw new Error(`RADLoader: RADC chunk is missing ${e} property.`);return r}function Gr(t,e){return t.properties.find(r=>r.property===e)}function m6(t,e){let r=e?.radChunk?.splatEncoding;return r?{...t,splatEncoding:{...r,...t.splatEncoding}}:t}function zb(t,e){if(e.min===void 0){let r=g6(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 Lc(t,e){if(e.max===void 0){let r=y6(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 g6(t,e){switch(e){case"rgb":return t?.rgbMin;case"scales":return t?.lnScaleMin;default:return}}function y6(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 v6(t){return Math.round(Math.min(Math.max(t,0),1)*255)}function _6(t){let e=new Uint8Array(t.byteLength);return e.set(t),e.buffer}function b6(t){return t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var VN,ZN,Tb=f(()=>{"use strict";CD();Nc();Eo();Uo();VN=new Ec({useNative:!1}),ZN=new Ec({raw:!0,useNative:!1})});var MD={};be(MD,{RADLoaderWithParser:()=>x6,parseRADChunk:()=>Zf,parseRADChunkHeader:()=>ws,parseRADChunkToGaussianSplats:()=>Pc,parseRADHeader:()=>Uc,tryParseRADHeader:()=>bs});var gJ,w6,x6,RD=f(()=>{"use strict";Nc();Ob();Nc();Tb();({preload:gJ,...w6}=Jf),x6={...w6,parse:async t=>Uc(t),parseSync:t=>Uc(t)}});async function I6(){let{RADLoaderWithParser:t}=await Promise.resolve().then(()=>(RD(),MD));return t}var S6,Jf,Ob=f(()=>{"use strict";Qn();S6="5.0.0-alpha.3";Jf={dataType:null,batchType:null,...qi,version:S6,options:{},preload:I6}});var Cc={};be(Cc,{KSPLATFormat:()=>Jc,KSPLATLoader:()=>Ol,RADFormat:()=>qi,RADLoader:()=>Jf,RADSource:()=>Fc,RADSourceLoader:()=>Ub,SPLATFormat:()=>Wc,SPLATLoader:()=>Bl,SPZFormat:()=>Hc,SPZLoader:()=>Xl,resolveRADChunkUrl:()=>Hf});Zc(Cc,YD(Eb(),1));Qn();Wh();Yh();_m();Ob();jo();Qn();Nc();Tb();Eo();var $6=[64*1024,256*1024,1024*1024],k6=4,D6="5.0.0-alpha.3",Ub={dataType:null,batchType:null,...qi,name:"RADSourceLoader",version:D6,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 Fc(t,e,r)},Fc=class extends ja{metadata;_metadataPromise=null;_chunkMetadataPromises=new Map;constructor(e,r,i){super(e,r,Ub.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?Hf(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(Hf(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=>ws(n)),this._chunkMetadataPromises.set(e,i)),await i}async getChunkSplats(e,r={}){let i=await this.getMetadata();return Pc(await this.getChunk(e,r),this._getChunkDecodeOptions(i,r))}async getChunkTable(e,r={}){let i=await this.getMetadata();return Zf(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=A6(r,i,n,o),u=await this._getChunkSplatsConcurrently(c,e),l=0;for(let d of u){s++,a+=d.splatCount;let h=z6(d);l=Math.max(l,h+d.splatCount)}for(let d of u)yield Rr(T6(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=B6(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:$6;if(typeof this.data!="string"){let r=Math.min(this.data.size,Math.max(...e)),i=bs(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=bs(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 A6(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 B6(t){return Number.isFinite(t)&&t>0?Math.floor(t):k6}function z6(t){return typeof t.loaderData?.base=="number"?t.loaderData.base:0}function T6(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:xn(t.positions,3,s),scales:xn(t.scales,3,s),rotations:xn(t.rotations,4,s),colors:xn(t.colors,3,s),sphericalHarmonicDcs:t.sphericalHarmonicDcs?xn(t.sphericalHarmonicDcs,3,s):void 0,opacities:xn(t.opacities,1,s),sphericalHarmonics:t.sphericalHarmonics&&a?xn(t.sphericalHarmonics,a,s):void 0,loaderData:{...t.loaderData,count:o,childCounts:xn(r,1,s),childStarts:xn(i,1,s)}}}function xn(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 Hf(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 XD(Cc);})();
|
|
17
56
|
return __exports__;
|
|
18
57
|
});
|