@duckdb/duckdb-wasm 0.0.41-dev191.0 → 0.0.41-dev223.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/duckdb-browser-async-next-coi.worker.js +1 -1
- package/dist/duckdb-browser-async-next-coi.worker.js.map +2 -2
- package/dist/duckdb-browser-async-next.worker.js +1 -1
- package/dist/duckdb-browser-async-next.worker.js.map +2 -2
- package/dist/duckdb-browser-async.js +1 -1
- package/dist/duckdb-browser-async.js.map +2 -2
- package/dist/duckdb-browser-async.worker.js +1 -1
- package/dist/duckdb-browser-async.worker.js.map +2 -2
- package/dist/duckdb-browser-sync-next.js +1 -1
- package/dist/duckdb-browser-sync-next.js.map +2 -2
- package/dist/duckdb-browser-sync.js +1 -1
- package/dist/duckdb-browser-sync.js.map +2 -2
- package/dist/duckdb-esm.js +1 -1
- package/dist/duckdb-esm.js.map +2 -2
- package/dist/duckdb-node-async-next.worker.js +1 -1
- package/dist/duckdb-node-async-next.worker.js.map +2 -2
- package/dist/duckdb-node-async.js +1 -1
- package/dist/duckdb-node-async.js.map +2 -2
- package/dist/duckdb-node-async.worker.js +1 -1
- package/dist/duckdb-node-async.worker.js.map +2 -2
- package/dist/duckdb-node-sync-next.js +1 -1
- package/dist/duckdb-node-sync-next.js.map +2 -2
- package/dist/duckdb-node-sync.js +1 -1
- package/dist/duckdb-node-sync.js.map +2 -2
- package/dist/tests-browser.js +7 -1
- package/dist/tests-browser.js.map +2 -2
- package/dist/tests-node.js +2 -2
- package/dist/tests-node.js.map +2 -2
- package/dist/types/src/bindings/bindings.d.ts +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,6 @@ return true;`)}Fo.createIsValidFunction=m1;function _1(r){return typeof r!="bigi
|
|
|
14
14
|
`:`,
|
|
15
15
|
`),this._write(`${nF(this._recordBatches[e])}`),this._recordBatchBlocks.push(new Cn.FileBlock(0,0,0));this._write(`
|
|
16
16
|
]`)}return this._schema&&this._write(`
|
|
17
|
-
}`),this._dictionaries=[],this._recordBatches=[],super.close()}};dr.RecordBatchJSONWriter=Ia;function yl(r,e){let t=e;e instanceof ll.Table&&(t=e.chunks,r.reset(void 0,e.schema));for(let i of t)r.write(i);return r.finish()}async function ml(r,e){for await(let t of e)r.write(t);return r.finish()}function Ob({name:r,type:e,nullable:t}){let i=new eF.JSONTypeAssembler;return{name:r,nullable:t,type:i.visit(e),children:(e.children||[]).map(Ob),dictionary:XA.DataType.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:i.visit(e.indices)}:void 0}}function iF(r,e,t=!1){let i=new QA.Field(`${e}`,r.type,r.nullCount>0),n=Db.JSONVectorAssembler.assemble(new ZA.Column(i,[r]));return JSON.stringify({id:e,isDelta:t,data:{count:r.length,columns:n}},null,2)}function nF(r){return JSON.stringify({count:r.length,columns:Db.JSONVectorAssembler.assemble(r)},null,2)}});var gl=V(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.distributeVectorsIntoRecordBatches=hi.distributeColumnsIntoRecordBatches=hi.ensureSameLengthData=void 0;var Ab=qt(),_l=Ke(),sF=ci(),oF=Fr(),bl=new Uint8Array(0),Fb=r=>[bl,bl,new Uint8Array(r),bl];function aF(r,e,t=e.reduce((i,n)=>Math.max(i,n.length),0)){let i,n,s=-1,c=e.length,v=[...r.fields],I=[],S=(t+63&~63)>>3;for(;++s<c;)(i=e[s])&&i.length===t?I[s]=i:((n=v[s]).nullable||(v[s]=v[s].clone({nullable:!0})),I[s]=i?i._changeLengthAndBackfillNullBitmap(t):Ab.Data.new(n.type,0,t,t,Fb(S)));return[new _l.Schema(v),t,I]}hi.ensureSameLengthData=aF;function uF(r){return Mb(new _l.Schema(r.map(({field:e})=>e)),r)}hi.distributeColumnsIntoRecordBatches=uF;function Mb(r,e){return cF(r,e.map(t=>t instanceof sF.Chunked?t.chunks.map(i=>i.data):[t.data]))}hi.distributeVectorsIntoRecordBatches=Mb;function cF(r,e){let t=[...r.fields],i=[],n={numBatches:e.reduce((G,me)=>Math.max(G,me.length),0)},s=0,c=0,v=-1,I=e.length,S,U=[];for(;n.numBatches-- >0;){for(c=Number.POSITIVE_INFINITY,v=-1;++v<I;)U[v]=S=e[v].shift(),c=Math.min(c,S?S.length:c);isFinite(c)&&(U=lF(t,c,U,e,n),c>0&&(i[s++]=[c,U.slice()]))}return[r=new _l.Schema(t,r.metadata),i.map(G=>new oF.RecordBatch(r,...G))]}function lF(r,e,t,i,n){let s,c,v=0,I=-1,S=i.length,U=(e+63&~63)>>3;for(;++I<S;)(s=t[I])&&(v=s.length)>=e?v===e?t[I]=s:(t[I]=s.slice(0,e),s=s.slice(e,v-e),n.numBatches=Math.max(n.numBatches,i[I].unshift(s))):((c=r[I]).nullable||(r[I]=c.clone({nullable:!0})),t[I]=s?s._changeLengthAndBackfillNullBitmap(e):Ab.Data.new(c.type,0,e,e,Fb(U)));return t}});var xe=V(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.BaseVector=void 0;var dF=Te(),fF=ci(),hF=bs(),vl=Re(),jl=class extends vl.AbstractVector{constructor(e,t){super();this._children=t,this.numChildren=e.childData.length,this._bindDataAccessors(this.data=e)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return`${dF.Type[this.typeId]}Vector`}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(e,t=this._children){return vl.Vector.new(e,t)}concat(...e){return fF.Chunked.concat(this,...e)}slice(e,t){return hF.clampRange(this,e,t,this._sliceInternal)}isValid(e){if(this.nullCount>0){let t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}getChildAt(e){return e<0||e>=this.numChildren?null:(this._children||(this._children=[]))[e]||(this._children[e]=vl.Vector.new(this.data.childData[e]))}toJSON(){return[...this]}_sliceInternal(e,t,i){return e.clone(e.data.slice(t,i-t),null)}_bindDataAccessors(e){}};Da.BaseVector=jl;jl.prototype[Symbol.isConcatSpreadable]=!0});var wl=V(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.BinaryVector=void 0;var pF=Re(),yF=xe(),mF=be(),Vb=class extends yF.BaseVector{asUtf8(){return pF.Vector.new(this.data.clone(new mF.Utf8))}};Oa.BinaryVector=Vb});var Bl=V(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.BoolVector=void 0;var _F=be(),bF=xe(),gF=fr(),Ub=class extends bF.BaseVector{static from(e){return gF.vectorFromValuesWithType(()=>new _F.Bool,e)}};Aa.BoolVector=Ub});var Il=V(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.DateMillisecondVector=pi.DateDayVector=pi.DateVector=void 0;var vF=Te(),jF=xe(),Cb=fr(),Tl=be(),Fa=class extends jF.BaseVector{static from(...e){return e.length===2?Cb.vectorFromValuesWithType(()=>e[1]===vF.DateUnit.DAY?new Tl.DateDay:new Tl.DateMillisecond,e[0]):Cb.vectorFromValuesWithType(()=>new Tl.DateMillisecond,e[0])}};pi.DateVector=Fa;var Pb=class extends Fa{};pi.DateDayVector=Pb;var kb=class extends Fa{};pi.DateMillisecondVector=kb});var Sl=V(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.DecimalVector=void 0;var wF=xe(),Rb=class extends wF.BaseVector{};Ma.DecimalVector=Rb});var Ua=V(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.DictionaryVector=void 0;var BF=qt(),Nb=Re(),TF=xe(),IF=fr(),SF=be(),Dl=class extends TF.BaseVector{constructor(e){super(e);this.indices=Nb.Vector.new(e.clone(this.type.indices))}static from(...e){if(e.length===3){let[t,i,n]=e,s=new SF.Dictionary(t.type,i,null,null);return Nb.Vector.new(BF.Data.Dictionary(s,0,n.length,0,null,n,t))}return IF.vectorFromValuesWithType(()=>e[0].type,e[0])}get dictionary(){return this.data.dictionary}reverseLookup(e){return this.dictionary.indexOf(e)}getKey(e){return this.indices.get(e)}getValue(e){return this.dictionary.get(e)}setKey(e,t){return this.indices.set(e,t)}setValue(e,t){return this.dictionary.set(e,t)}};Va.DictionaryVector=Dl;Dl.prototype.indices=null});var Ol=V(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.FixedSizeBinaryVector=void 0;var DF=xe(),xb=class extends DF.BaseVector{};Ca.FixedSizeBinaryVector=xb});var Al=V(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.FixedSizeListVector=void 0;var OF=xe(),Eb=class extends OF.BaseVector{};Pa.FixedSizeListVector=Eb});var Ul=V(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.Float64Vector=hr.Float32Vector=hr.Float16Vector=hr.FloatVector=void 0;var AF=qt(),FF=Re(),MF=xe(),VF=fr(),Wi=be(),Os=class extends MF.BaseVector{static from(e){let t=PF(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let i=CF(e.constructor)||t;if(t===null&&(t=i),t&&t===i){let n=new t,s=e.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!UF(t,e.constructor))return FF.Vector.new(AF.Data.Float(n,0,s,0,null,e))}}if(t)return VF.vectorFromValuesWithType(()=>new t,e);throw e instanceof DataView||e instanceof ArrayBuffer?new TypeError(`Cannot infer float type from instance of ${e.constructor.name}`):new TypeError("Unrecognized FloatVector input")}};hr.FloatVector=Os;var Fl=class extends Os{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}};hr.Float16Vector=Fl;var Ml=class extends Os{};hr.Float32Vector=Ml;var Vl=class extends Os{};hr.Float64Vector=Vl;var UF=(r,e)=>r===Wi.Float16&&e!==Uint16Array,CF=r=>{switch(r){case Uint16Array:return Wi.Float16;case Float32Array:return Wi.Float32;case Float64Array:return Wi.Float64;default:return null}},PF=r=>{switch(r){case Fl:return Wi.Float16;case Ml:return Wi.Float32;case Vl:return Wi.Float64;default:return null}}});var Cl=V(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.IntervalYearMonthVector=yi.IntervalDayTimeVector=yi.IntervalVector=void 0;var kF=xe(),ka=class extends kF.BaseVector{};yi.IntervalVector=ka;var Lb=class extends ka{};yi.IntervalDayTimeVector=Lb;var qb=class extends ka{};yi.IntervalYearMonthVector=qb});var Ra=V(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.Uint64Vector=ze.Uint32Vector=ze.Uint16Vector=ze.Uint8Vector=ze.Int64Vector=ze.Int32Vector=ze.Int16Vector=ze.Int8Vector=ze.IntVector=void 0;var RF=qt(),NF=Re(),xF=xe(),EF=fr(),zb=st(),Wb=Ye(),ke=be(),pr=class extends xF.BaseVector{static from(...e){let[t,i=!1]=e,n=zF(this,i);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let s=qF(t.constructor,i)||n;if(n===null&&(n=s),n&&n===s){let c=new n,v=t.byteLength/c.ArrayType.BYTES_PER_ELEMENT;return LF(n,t.constructor)&&(v*=.5),NF.Vector.new(RF.Data.Int(c,0,v,0,null,t))}}if(n)return EF.vectorFromValuesWithType(()=>new n,t);throw t instanceof DataView||t instanceof ArrayBuffer?new TypeError(`Cannot infer integer type from instance of ${t.constructor.name}`):new TypeError("Unrecognized IntVector input")}};ze.IntVector=pr;var Pl=class extends pr{};ze.Int8Vector=Pl;var kl=class extends pr{};ze.Int16Vector=kl;var Rl=class extends pr{};ze.Int32Vector=Rl;var Nl=class extends pr{toBigInt64Array(){return Wb.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}};ze.Int64Vector=Nl;var xl=class extends pr{};ze.Uint8Vector=xl;var El=class extends pr{};ze.Uint16Vector=El;var Ll=class extends pr{};ze.Uint32Vector=Ll;var ql=class extends pr{toBigUint64Array(){return Wb.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}};ze.Uint64Vector=ql;var LF=(r,e)=>(r===ke.Int64||r===ke.Uint64)&&(e===Int32Array||e===Uint32Array),qF=(r,e)=>{switch(r){case Int8Array:return ke.Int8;case Int16Array:return ke.Int16;case Int32Array:return e?ke.Int64:ke.Int32;case zb.BigInt64Array:return ke.Int64;case Uint8Array:return ke.Uint8;case Uint16Array:return ke.Uint16;case Uint32Array:return e?ke.Uint64:ke.Uint32;case zb.BigUint64Array:return ke.Uint64;default:return null}},zF=(r,e)=>{switch(r){case Pl:return ke.Int8;case kl:return ke.Int16;case Rl:return e?ke.Int64:ke.Int32;case Nl:return ke.Int64;case xl:return ke.Uint8;case El:return ke.Uint16;case Ll:return e?ke.Uint64:ke.Uint32;case ql:return ke.Uint64;default:return null}}});var zl=V(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.ListVector=void 0;var WF=xe(),Hb=class extends WF.BaseVector{};Na.ListVector=Hb});var Wl=V(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.MapVector=void 0;var HF=ms(),YF=Re(),$F=xe(),GF=be(),Yb=class extends $F.BaseVector{asList(){let e=this.type.children[0];return YF.Vector.new(this.data.clone(new GF.List(e)))}bind(e){let t=this.getChildAt(0),{[e]:i,[e+1]:n}=this.valueOffsets;return new HF.MapRow(t.slice(i,n))}};xa.MapVector=Yb});var Hl=V(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.NullVector=void 0;var JF=xe(),$b=class extends JF.BaseVector{};Ea.NullVector=$b});var Yl=V(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.StructVector=void 0;var KF=ms(),ZF=xe(),XF=Symbol.for("rowIndex"),Gb=class extends ZF.BaseVector{bind(e){let t=this._row||(this._row=new KF.StructRow(this)),i=Object.create(t);return i[XF]=e,i}};La.StructVector=Gb});var $l=V(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.TimestampNanosecondVector=Mt.TimestampMicrosecondVector=Mt.TimestampMillisecondVector=Mt.TimestampSecondVector=Mt.TimestampVector=void 0;var QF=xe(),Pn=class extends QF.BaseVector{};Mt.TimestampVector=Pn;var Jb=class extends Pn{};Mt.TimestampSecondVector=Jb;var Kb=class extends Pn{};Mt.TimestampMillisecondVector=Kb;var Zb=class extends Pn{};Mt.TimestampMicrosecondVector=Zb;var Xb=class extends Pn{};Mt.TimestampNanosecondVector=Xb});var Gl=V(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.TimeNanosecondVector=Vt.TimeMicrosecondVector=Vt.TimeMillisecondVector=Vt.TimeSecondVector=Vt.TimeVector=void 0;var eM=xe(),kn=class extends eM.BaseVector{};Vt.TimeVector=kn;var Qb=class extends kn{};Vt.TimeSecondVector=Qb;var eg=class extends kn{};Vt.TimeMillisecondVector=eg;var tg=class extends kn{};Vt.TimeMicrosecondVector=tg;var rg=class extends kn{};Vt.TimeNanosecondVector=rg});var Jl=V(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.SparseUnionVector=mi.DenseUnionVector=mi.UnionVector=void 0;var tM=xe(),qa=class extends tM.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}};mi.UnionVector=qa;var ig=class extends qa{get valueOffsets(){return this.data.valueOffsets}};mi.DenseUnionVector=ig;var ng=class extends qa{};mi.SparseUnionVector=ng});var Kl=V(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.Utf8Vector=void 0;var rM=Re(),iM=xe(),sg=be(),nM=fr(),og=class extends iM.BaseVector{static from(e){return nM.vectorFromValuesWithType(()=>new sg.Utf8,e)}asBinary(){return rM.Vector.new(this.data.clone(new sg.Binary))}};za.Utf8Vector=og});var ag=V(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.partial2=_i.partial1=_i.partial0=void 0;function sM(r){return function(){return r(this)}}_i.partial0=sM;function oM(r){return function(e){return r(this,e)}}_i.partial1=oM;function aM(r){return function(e,t){return r(this,e,t)}}_i.partial2=aM});var Ql=V(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.instance=Rn.GetVisitor=void 0;var Wa=ls(),uM=tt(),cM=Ti(),lM=os(),Ut=Te(),K=class extends uM.Visitor{};Rn.GetVisitor=K;var dM=(r,e)=>864e5*r[e],Zl=(r,e)=>4294967296*r[e+1]+(r[e]>>>0),fM=(r,e)=>4294967296*(r[e+1]/1e3)+(r[e]>>>0)/1e3,hM=(r,e)=>4294967296*(r[e+1]/1e6)+(r[e]>>>0)/1e6,ug=r=>new Date(r),pM=(r,e)=>ug(dM(r,e)),yM=(r,e)=>ug(Zl(r,e)),mM=(r,e)=>null,cg=(r,e,t)=>{let{[t]:i,[t+1]:n}=e;return i!=null&&n!=null?r.subarray(i,n):null},_M=({offset:r,values:e},t)=>{let i=r+t;return(e[i>>3]&1<<i%8)!=0},lg=({values:r},e)=>pM(r,e),dg=({values:r},e)=>yM(r,e*2),yr=({stride:r,values:e},t)=>e[r*t],fg=({stride:r,values:e},t)=>lM.uint16ToFloat64(e[r*t]),Xl=({stride:r,values:e,type:t},i)=>Wa.BN.new(e.subarray(r*i,r*(i+1)),t.isSigned),bM=({stride:r,values:e},t)=>e.subarray(r*t,r*(t+1)),gM=({values:r,valueOffsets:e},t)=>cg(r,e,t),vM=({values:r,valueOffsets:e},t)=>{let i=cg(r,e,t);return i!==null?cM.decodeUtf8(i):null},jM=(r,e)=>r.type.bitWidth<64?yr(r,e):Xl(r,e),wM=(r,e)=>r.type.precision!==Ut.Precision.HALF?yr(r,e):fg(r,e),BM=(r,e)=>r.type.unit===Ut.DateUnit.DAY?lg(r,e):dg(r,e),hg=({values:r},e)=>1e3*Zl(r,e*2),pg=({values:r},e)=>Zl(r,e*2),yg=({values:r},e)=>fM(r,e*2),mg=({values:r},e)=>hM(r,e*2),TM=(r,e)=>{switch(r.type.unit){case Ut.TimeUnit.SECOND:return hg(r,e);case Ut.TimeUnit.MILLISECOND:return pg(r,e);case Ut.TimeUnit.MICROSECOND:return yg(r,e);case Ut.TimeUnit.NANOSECOND:return mg(r,e)}},_g=({values:r,stride:e},t)=>r[e*t],bg=({values:r,stride:e},t)=>r[e*t],gg=({values:r},e)=>Wa.BN.signed(r.subarray(2*e,2*(e+1))),vg=({values:r},e)=>Wa.BN.signed(r.subarray(2*e,2*(e+1))),IM=(r,e)=>{switch(r.type.unit){case Ut.TimeUnit.SECOND:return _g(r,e);case Ut.TimeUnit.MILLISECOND:return bg(r,e);case Ut.TimeUnit.MICROSECOND:return gg(r,e);case Ut.TimeUnit.NANOSECOND:return vg(r,e)}},SM=({values:r},e)=>Wa.BN.decimal(r.subarray(4*e,4*(e+1))),DM=(r,e)=>{let t=r.getChildAt(0),{valueOffsets:i,stride:n}=r;return t.slice(i[e*n],i[e*n+1])},OM=(r,e)=>r.bind(e),AM=(r,e)=>r.bind(e),FM=(r,e)=>r.type.mode===Ut.UnionMode.Dense?jg(r,e):wg(r,e),jg=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(r.valueOffsets[e]):null},wg=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(e):null},MM=(r,e)=>r.getValue(r.getKey(e)),VM=(r,e)=>r.type.unit===Ut.IntervalUnit.DAY_TIME?Bg(r,e):Tg(r,e),Bg=({values:r},e)=>r.subarray(2*e,2*(e+1)),Tg=({values:r},e)=>{let t=r[e],i=new Int32Array(2);return i[0]=t/12|0,i[1]=t%12|0,i},UM=(r,e)=>{let t=r.getChildAt(0),{stride:i}=r;return t.slice(e*i,(e+1)*i)};K.prototype.visitNull=mM;K.prototype.visitBool=_M;K.prototype.visitInt=jM;K.prototype.visitInt8=yr;K.prototype.visitInt16=yr;K.prototype.visitInt32=yr;K.prototype.visitInt64=Xl;K.prototype.visitUint8=yr;K.prototype.visitUint16=yr;K.prototype.visitUint32=yr;K.prototype.visitUint64=Xl;K.prototype.visitFloat=wM;K.prototype.visitFloat16=fg;K.prototype.visitFloat32=yr;K.prototype.visitFloat64=yr;K.prototype.visitUtf8=vM;K.prototype.visitBinary=gM;K.prototype.visitFixedSizeBinary=bM;K.prototype.visitDate=BM;K.prototype.visitDateDay=lg;K.prototype.visitDateMillisecond=dg;K.prototype.visitTimestamp=TM;K.prototype.visitTimestampSecond=hg;K.prototype.visitTimestampMillisecond=pg;K.prototype.visitTimestampMicrosecond=yg;K.prototype.visitTimestampNanosecond=mg;K.prototype.visitTime=IM;K.prototype.visitTimeSecond=_g;K.prototype.visitTimeMillisecond=bg;K.prototype.visitTimeMicrosecond=gg;K.prototype.visitTimeNanosecond=vg;K.prototype.visitDecimal=SM;K.prototype.visitList=DM;K.prototype.visitStruct=AM;K.prototype.visitUnion=FM;K.prototype.visitDenseUnion=jg;K.prototype.visitSparseUnion=wg;K.prototype.visitDictionary=MM;K.prototype.visitInterval=VM;K.prototype.visitIntervalDayTime=Bg;K.prototype.visitIntervalYearMonth=Tg;K.prototype.visitFixedSizeList=UM;K.prototype.visitMap=OM;Rn.instance=new K});var Og=V(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.instance=Nn.IndexOfVisitor=void 0;var CM=tt(),Ig=tr(),Sg=bs(),Z=class extends CM.Visitor{};Nn.IndexOfVisitor=Z;function PM(r,e){return e===null&&r.length>0?0:-1}function kM(r,e){let{nullBitmap:t}=r.data;if(!t||r.nullCount<=0)return-1;let i=0;for(let n of new Ig.BitIterator(t,r.data.offset+(e||0),r.length,t,Ig.getBool)){if(!n)return i;++i}return-1}function ce(r,e,t){if(e===void 0)return-1;if(e===null)return kM(r,t);let i=Sg.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}function Dg(r,e,t){let i=Sg.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}Z.prototype.visitNull=PM;Z.prototype.visitBool=ce;Z.prototype.visitInt=ce;Z.prototype.visitInt8=ce;Z.prototype.visitInt16=ce;Z.prototype.visitInt32=ce;Z.prototype.visitInt64=ce;Z.prototype.visitUint8=ce;Z.prototype.visitUint16=ce;Z.prototype.visitUint32=ce;Z.prototype.visitUint64=ce;Z.prototype.visitFloat=ce;Z.prototype.visitFloat16=ce;Z.prototype.visitFloat32=ce;Z.prototype.visitFloat64=ce;Z.prototype.visitUtf8=ce;Z.prototype.visitBinary=ce;Z.prototype.visitFixedSizeBinary=ce;Z.prototype.visitDate=ce;Z.prototype.visitDateDay=ce;Z.prototype.visitDateMillisecond=ce;Z.prototype.visitTimestamp=ce;Z.prototype.visitTimestampSecond=ce;Z.prototype.visitTimestampMillisecond=ce;Z.prototype.visitTimestampMicrosecond=ce;Z.prototype.visitTimestampNanosecond=ce;Z.prototype.visitTime=ce;Z.prototype.visitTimeSecond=ce;Z.prototype.visitTimeMillisecond=ce;Z.prototype.visitTimeMicrosecond=ce;Z.prototype.visitTimeNanosecond=ce;Z.prototype.visitDecimal=ce;Z.prototype.visitList=ce;Z.prototype.visitStruct=ce;Z.prototype.visitUnion=ce;Z.prototype.visitDenseUnion=Dg;Z.prototype.visitSparseUnion=Dg;Z.prototype.visitDictionary=ce;Z.prototype.visitInterval=ce;Z.prototype.visitIntervalDayTime=ce;Z.prototype.visitIntervalYearMonth=ce;Z.prototype.visitFixedSizeList=ce;Z.prototype.visitMap=ce;Nn.instance=new Z});var ed=V(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.instance=xn.IteratorVisitor=void 0;var Ha=Te(),RM=tt(),NM=tr(),Ag=Ql(),X=class extends RM.Visitor{};xn.IteratorVisitor=X;function xM(r){let e=Ag.instance.getVisitFn(r);return new NM.BitIterator(r.data.nullBitmap,r.data.offset,r.length,r,(t,i,n,s)=>(n&1<<s)!=0?e(t,i):null)}var Fg=class{constructor(e,t){this.vector=e,this.getFn=t,this.index=0}next(){return this.index<this.vector.length?{value:this.getFn(this.vector,this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};function se(r){if(r.nullCount>0)return xM(r);let{type:e,typeId:t,length:i}=r;return r.stride===1&&(t===Ha.Type.Timestamp||t===Ha.Type.Int&&e.bitWidth!==64||t===Ha.Type.Time&&e.bitWidth!==64||t===Ha.Type.Float&&e.precision>0)?r.data.values.subarray(0,i)[Symbol.iterator]():new Fg(r,Ag.instance.getVisitFn(r))}X.prototype.visitNull=se;X.prototype.visitBool=se;X.prototype.visitInt=se;X.prototype.visitInt8=se;X.prototype.visitInt16=se;X.prototype.visitInt32=se;X.prototype.visitInt64=se;X.prototype.visitUint8=se;X.prototype.visitUint16=se;X.prototype.visitUint32=se;X.prototype.visitUint64=se;X.prototype.visitFloat=se;X.prototype.visitFloat16=se;X.prototype.visitFloat32=se;X.prototype.visitFloat64=se;X.prototype.visitUtf8=se;X.prototype.visitBinary=se;X.prototype.visitFixedSizeBinary=se;X.prototype.visitDate=se;X.prototype.visitDateDay=se;X.prototype.visitDateMillisecond=se;X.prototype.visitTimestamp=se;X.prototype.visitTimestampSecond=se;X.prototype.visitTimestampMillisecond=se;X.prototype.visitTimestampMicrosecond=se;X.prototype.visitTimestampNanosecond=se;X.prototype.visitTime=se;X.prototype.visitTimeSecond=se;X.prototype.visitTimeMillisecond=se;X.prototype.visitTimeMicrosecond=se;X.prototype.visitTimeNanosecond=se;X.prototype.visitDecimal=se;X.prototype.visitList=se;X.prototype.visitStruct=se;X.prototype.visitUnion=se;X.prototype.visitDenseUnion=se;X.prototype.visitSparseUnion=se;X.prototype.visitDictionary=se;X.prototype.visitInterval=se;X.prototype.visitIntervalDayTime=se;X.prototype.visitIntervalYearMonth=se;X.prototype.visitFixedSizeList=se;X.prototype.visitMap=se;xn.instance=new X});var Mg=V(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.instance=En.ToArrayVisitor=void 0;var As=Te(),EM=tt(),LM=ed(),Q=class extends EM.Visitor{};En.ToArrayVisitor=Q;function oe(r){let{type:e,length:t,stride:i}=r;switch(e.typeId){case As.Type.Int:case As.Type.Float:case As.Type.Decimal:case As.Type.Time:case As.Type.Timestamp:return r.data.values.subarray(0,t*i)}return[...LM.instance.visit(r)]}Q.prototype.visitNull=oe;Q.prototype.visitBool=oe;Q.prototype.visitInt=oe;Q.prototype.visitInt8=oe;Q.prototype.visitInt16=oe;Q.prototype.visitInt32=oe;Q.prototype.visitInt64=oe;Q.prototype.visitUint8=oe;Q.prototype.visitUint16=oe;Q.prototype.visitUint32=oe;Q.prototype.visitUint64=oe;Q.prototype.visitFloat=oe;Q.prototype.visitFloat16=oe;Q.prototype.visitFloat32=oe;Q.prototype.visitFloat64=oe;Q.prototype.visitUtf8=oe;Q.prototype.visitBinary=oe;Q.prototype.visitFixedSizeBinary=oe;Q.prototype.visitDate=oe;Q.prototype.visitDateDay=oe;Q.prototype.visitDateMillisecond=oe;Q.prototype.visitTimestamp=oe;Q.prototype.visitTimestampSecond=oe;Q.prototype.visitTimestampMillisecond=oe;Q.prototype.visitTimestampMicrosecond=oe;Q.prototype.visitTimestampNanosecond=oe;Q.prototype.visitTime=oe;Q.prototype.visitTimeSecond=oe;Q.prototype.visitTimeMillisecond=oe;Q.prototype.visitTimeMicrosecond=oe;Q.prototype.visitTimeNanosecond=oe;Q.prototype.visitDecimal=oe;Q.prototype.visitList=oe;Q.prototype.visitStruct=oe;Q.prototype.visitUnion=oe;Q.prototype.visitDenseUnion=oe;Q.prototype.visitSparseUnion=oe;Q.prototype.visitDictionary=oe;Q.prototype.visitInterval=oe;Q.prototype.visitIntervalDayTime=oe;Q.prototype.visitIntervalYearMonth=oe;Q.prototype.visitFixedSizeList=oe;Q.prototype.visitMap=oe;En.instance=new Q});var Vg=V(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.instance=Ln.ByteWidthVisitor=void 0;var qM=tt(),zM=Te(),Fs=(r,e)=>r+e,td=r=>`Cannot compute the byte width of variable-width column ${r}`,rd=class extends qM.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(td(e))}visitUtf8(e){throw new Error(td(e))}visitBool(e){return 1/8}visitDecimal(e){return 16}visitDate(e){return(e.unit+1)*4}visitTime(e){return e.bitWidth/8}visitTimestamp(e){return e.unit===zM.TimeUnit.SECOND?4:8}visitInterval(e){return(e.unit+1)*4}visitList(e){throw new Error(td(e))}visitStruct(e){return this.visitFields(e.children).reduce(Fs,0)}visitUnion(e){return this.visitFields(e.children).reduce(Fs,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(Fs,0)}visitMap(e){return this.visitFields(e.children).reduce(Fs,0)}visitDictionary(e){return this.visit(e.indices)}visitFields(e){return(e||[]).map(t=>this.visit(t.type))}visitSchema(e){return this.visitFields(e.fields).reduce(Fs,0)}};Ln.ByteWidthVisitor=rd;Ln.instance=new rd});var Ug=V(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.instance=qn.GetVectorConstructor=void 0;var WM=tt(),HM=wl(),YM=Bl(),id=Il(),$M=Sl(),GM=Ua(),JM=Ol(),KM=Al(),Ya=Ul(),nd=Cl(),Mr=Ra(),ZM=zl(),XM=Wl(),QM=Hl(),eV=Yl(),Ms=$l(),Vs=Gl(),sd=Jl(),tV=Kl(),od=class extends WM.Visitor{visitNull(){return QM.NullVector}visitBool(){return YM.BoolVector}visitInt(){return Mr.IntVector}visitInt8(){return Mr.Int8Vector}visitInt16(){return Mr.Int16Vector}visitInt32(){return Mr.Int32Vector}visitInt64(){return Mr.Int64Vector}visitUint8(){return Mr.Uint8Vector}visitUint16(){return Mr.Uint16Vector}visitUint32(){return Mr.Uint32Vector}visitUint64(){return Mr.Uint64Vector}visitFloat(){return Ya.FloatVector}visitFloat16(){return Ya.Float16Vector}visitFloat32(){return Ya.Float32Vector}visitFloat64(){return Ya.Float64Vector}visitUtf8(){return tV.Utf8Vector}visitBinary(){return HM.BinaryVector}visitFixedSizeBinary(){return JM.FixedSizeBinaryVector}visitDate(){return id.DateVector}visitDateDay(){return id.DateDayVector}visitDateMillisecond(){return id.DateMillisecondVector}visitTimestamp(){return Ms.TimestampVector}visitTimestampSecond(){return Ms.TimestampSecondVector}visitTimestampMillisecond(){return Ms.TimestampMillisecondVector}visitTimestampMicrosecond(){return Ms.TimestampMicrosecondVector}visitTimestampNanosecond(){return Ms.TimestampNanosecondVector}visitTime(){return Vs.TimeVector}visitTimeSecond(){return Vs.TimeSecondVector}visitTimeMillisecond(){return Vs.TimeMillisecondVector}visitTimeMicrosecond(){return Vs.TimeMicrosecondVector}visitTimeNanosecond(){return Vs.TimeNanosecondVector}visitDecimal(){return $M.DecimalVector}visitList(){return ZM.ListVector}visitStruct(){return eV.StructVector}visitUnion(){return sd.UnionVector}visitDenseUnion(){return sd.DenseUnionVector}visitSparseUnion(){return sd.SparseUnionVector}visitDictionary(){return GM.DictionaryVector}visitInterval(){return nd.IntervalVector}visitIntervalDayTime(){return nd.IntervalDayTimeVector}visitIntervalYearMonth(){return nd.IntervalYearMonthVector}visitFixedSizeList(){return KM.FixedSizeListVector}visitMap(){return XM.MapVector}};qn.GetVectorConstructor=od;qn.instance=new od});var fr=V(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.vectorFromValuesWithType=C.StructRow=C.MapRow=C.Utf8Vector=C.SparseUnionVector=C.DenseUnionVector=C.UnionVector=C.TimeNanosecondVector=C.TimeMicrosecondVector=C.TimeMillisecondVector=C.TimeSecondVector=C.TimeVector=C.TimestampNanosecondVector=C.TimestampMicrosecondVector=C.TimestampMillisecondVector=C.TimestampSecondVector=C.TimestampVector=C.StructVector=C.NullVector=C.MapVector=C.ListVector=C.Uint64Vector=C.Uint32Vector=C.Uint16Vector=C.Uint8Vector=C.Int64Vector=C.Int32Vector=C.Int16Vector=C.Int8Vector=C.IntVector=C.IntervalYearMonthVector=C.IntervalDayTimeVector=C.IntervalVector=C.Float64Vector=C.Float32Vector=C.Float16Vector=C.FloatVector=C.FixedSizeListVector=C.FixedSizeBinaryVector=C.DictionaryVector=C.DecimalVector=C.DateMillisecondVector=C.DateDayVector=C.DateVector=C.Chunked=C.BoolVector=C.BinaryVector=C.BaseVector=C.Vector=void 0;var rV=Re();Object.defineProperty(C,"Vector",{enumerable:!0,get:function(){return rV.Vector}});var iV=xe();Object.defineProperty(C,"BaseVector",{enumerable:!0,get:function(){return iV.BaseVector}});var nV=wl();Object.defineProperty(C,"BinaryVector",{enumerable:!0,get:function(){return nV.BinaryVector}});var sV=Bl();Object.defineProperty(C,"BoolVector",{enumerable:!0,get:function(){return sV.BoolVector}});var oV=ci();Object.defineProperty(C,"Chunked",{enumerable:!0,get:function(){return oV.Chunked}});var ad=Il();Object.defineProperty(C,"DateVector",{enumerable:!0,get:function(){return ad.DateVector}});Object.defineProperty(C,"DateDayVector",{enumerable:!0,get:function(){return ad.DateDayVector}});Object.defineProperty(C,"DateMillisecondVector",{enumerable:!0,get:function(){return ad.DateMillisecondVector}});var aV=Sl();Object.defineProperty(C,"DecimalVector",{enumerable:!0,get:function(){return aV.DecimalVector}});var uV=Ua();Object.defineProperty(C,"DictionaryVector",{enumerable:!0,get:function(){return uV.DictionaryVector}});var cV=Ol();Object.defineProperty(C,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return cV.FixedSizeBinaryVector}});var lV=Al();Object.defineProperty(C,"FixedSizeListVector",{enumerable:!0,get:function(){return lV.FixedSizeListVector}});var $a=Ul();Object.defineProperty(C,"FloatVector",{enumerable:!0,get:function(){return $a.FloatVector}});Object.defineProperty(C,"Float16Vector",{enumerable:!0,get:function(){return $a.Float16Vector}});Object.defineProperty(C,"Float32Vector",{enumerable:!0,get:function(){return $a.Float32Vector}});Object.defineProperty(C,"Float64Vector",{enumerable:!0,get:function(){return $a.Float64Vector}});var ud=Cl();Object.defineProperty(C,"IntervalVector",{enumerable:!0,get:function(){return ud.IntervalVector}});Object.defineProperty(C,"IntervalDayTimeVector",{enumerable:!0,get:function(){return ud.IntervalDayTimeVector}});Object.defineProperty(C,"IntervalYearMonthVector",{enumerable:!0,get:function(){return ud.IntervalYearMonthVector}});var Vr=Ra();Object.defineProperty(C,"IntVector",{enumerable:!0,get:function(){return Vr.IntVector}});Object.defineProperty(C,"Int8Vector",{enumerable:!0,get:function(){return Vr.Int8Vector}});Object.defineProperty(C,"Int16Vector",{enumerable:!0,get:function(){return Vr.Int16Vector}});Object.defineProperty(C,"Int32Vector",{enumerable:!0,get:function(){return Vr.Int32Vector}});Object.defineProperty(C,"Int64Vector",{enumerable:!0,get:function(){return Vr.Int64Vector}});Object.defineProperty(C,"Uint8Vector",{enumerable:!0,get:function(){return Vr.Uint8Vector}});Object.defineProperty(C,"Uint16Vector",{enumerable:!0,get:function(){return Vr.Uint16Vector}});Object.defineProperty(C,"Uint32Vector",{enumerable:!0,get:function(){return Vr.Uint32Vector}});Object.defineProperty(C,"Uint64Vector",{enumerable:!0,get:function(){return Vr.Uint64Vector}});var dV=zl();Object.defineProperty(C,"ListVector",{enumerable:!0,get:function(){return dV.ListVector}});var fV=Wl();Object.defineProperty(C,"MapVector",{enumerable:!0,get:function(){return fV.MapVector}});var hV=Hl();Object.defineProperty(C,"NullVector",{enumerable:!0,get:function(){return hV.NullVector}});var pV=Yl();Object.defineProperty(C,"StructVector",{enumerable:!0,get:function(){return pV.StructVector}});var Us=$l();Object.defineProperty(C,"TimestampVector",{enumerable:!0,get:function(){return Us.TimestampVector}});Object.defineProperty(C,"TimestampSecondVector",{enumerable:!0,get:function(){return Us.TimestampSecondVector}});Object.defineProperty(C,"TimestampMillisecondVector",{enumerable:!0,get:function(){return Us.TimestampMillisecondVector}});Object.defineProperty(C,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return Us.TimestampMicrosecondVector}});Object.defineProperty(C,"TimestampNanosecondVector",{enumerable:!0,get:function(){return Us.TimestampNanosecondVector}});var Cs=Gl();Object.defineProperty(C,"TimeVector",{enumerable:!0,get:function(){return Cs.TimeVector}});Object.defineProperty(C,"TimeSecondVector",{enumerable:!0,get:function(){return Cs.TimeSecondVector}});Object.defineProperty(C,"TimeMillisecondVector",{enumerable:!0,get:function(){return Cs.TimeMillisecondVector}});Object.defineProperty(C,"TimeMicrosecondVector",{enumerable:!0,get:function(){return Cs.TimeMicrosecondVector}});Object.defineProperty(C,"TimeNanosecondVector",{enumerable:!0,get:function(){return Cs.TimeNanosecondVector}});var cd=Jl();Object.defineProperty(C,"UnionVector",{enumerable:!0,get:function(){return cd.UnionVector}});Object.defineProperty(C,"DenseUnionVector",{enumerable:!0,get:function(){return cd.DenseUnionVector}});Object.defineProperty(C,"SparseUnionVector",{enumerable:!0,get:function(){return cd.SparseUnionVector}});var yV=Kl();Object.defineProperty(C,"Utf8Vector",{enumerable:!0,get:function(){return yV.Utf8Vector}});var Cg=ms();Object.defineProperty(C,"MapRow",{enumerable:!0,get:function(){return Cg.MapRow}});Object.defineProperty(C,"StructRow",{enumerable:!0,get:function(){return Cg.StructRow}});var Ps=ag(),ld=Te(),zn=Re(),Pg=ci(),Hi=xe(),mV=tr(),Ga=st(),kg=Ue(),Rg=Ql(),Ng=Sc(),xg=Og(),Eg=Mg(),Lg=ed(),qg=Vg(),zg=Ug();zn.Vector.new=_V;zn.Vector.from=gV;function _V(r,...e){return new(zg.instance.getVisitFn(r)())(r,...e)}function bV(r,e){if(Ga.isIterable(e))return zn.Vector.from({nullValues:[null,void 0],type:r(),values:e});if(Ga.isAsyncIterable(e))return zn.Vector.from({nullValues:[null,void 0],type:r(),values:e});let{values:t=[],type:i=r(),nullValues:n=[null,void 0]}={...e};return Ga.isIterable(t)?zn.Vector.from({nullValues:n,...e,type:i}):zn.Vector.from({nullValues:n,...e,type:i})}C.vectorFromValuesWithType=bV;function gV(r){let{values:e=[],...t}={nullValues:[null,void 0],...r};if(Ga.isIterable(e)){let i=[...kg.Builder.throughIterable(t)(e)];return i.length===1?i[0]:Pg.Chunked.concat(i)}return(async i=>{let n=kg.Builder.throughAsyncIterable(t);for await(let s of n(e))i.push(s);return i.length===1?i[0]:Pg.Chunked.concat(i)})([])}Hi.BaseVector.prototype.get=function(e){return Rg.instance.visit(this,e)};Hi.BaseVector.prototype.set=function(e,t){return Ng.instance.visit(this,e,t)};Hi.BaseVector.prototype.indexOf=function(e,t){return xg.instance.visit(this,e,t)};Hi.BaseVector.prototype.toArray=function(){return Eg.instance.visit(this)};Hi.BaseVector.prototype.getByteWidth=function(){return qg.instance.visit(this.type)};Hi.BaseVector.prototype[Symbol.iterator]=function(){return Lg.instance.visit(this)};Hi.BaseVector.prototype._bindDataAccessors=BV;Object.keys(ld.Type).map(r=>ld.Type[r]).filter(r=>typeof r=="number").filter(r=>r!==ld.Type.NONE).forEach(r=>{let e=zg.instance.visit(r);e.prototype.get=Ps.partial1(Rg.instance.getVisitFn(r)),e.prototype.set=Ps.partial2(Ng.instance.getVisitFn(r)),e.prototype.indexOf=Ps.partial2(xg.instance.getVisitFn(r)),e.prototype.toArray=Ps.partial0(Eg.instance.getVisitFn(r)),e.prototype.getByteWidth=vV(qg.instance.getVisitFn(r)),e.prototype[Symbol.iterator]=Ps.partial0(Lg.instance.getVisitFn(r))});function vV(r){return function(){return r(this.type)}}function jV(r){return function(e){return this.isValid(e)?r.call(this,e):null}}function wV(r){return function(e,t){mV.setBool(this.nullBitmap,this.offset+e,t!=null)&&r.call(this,e,t)}}function BV(){let r=this.nullBitmap;r&&r.byteLength>0&&(this.get=jV(this.get),this.set=wV(this.set))}});var Ds=V(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.Table=void 0;var TV=An(),Wg=Ke(),dd=Fr(),IV=ks(),fd=be(),Hg=On(),hd=st(),Yg=Sa(),$g=gl(),pd=fr(),Xe=class extends pd.Chunked{constructor(...e){let t=null;e[0]instanceof Wg.Schema&&(t=e.shift());let i=Hg.selectArgs(dd.RecordBatch,e);if(!t&&!(t=i[0]&&i[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");i[0]||(i[0]=new dd._InternalEmptyPlaceholderRecordBatch(t));super(new fd.Struct(t.fields),i);this._schema=t,this._chunks=i}static empty(e=new Wg.Schema([])){return new Xe(e,[])}static from(e){if(!e)return Xe.empty();if(typeof e=="object"){let i=hd.isIterable(e.values)?SV(e):hd.isAsyncIterable(e.values)?DV(e):null;if(i!==null)return i}let t=IV.RecordBatchReader.from(e);return hd.isPromise(t)?(async()=>await Xe.from(await t))():t.isSync()&&(t=t.open())?t.schema?new Xe(t.schema,[...t]):Xe.empty():(async i=>{let n=await i,s=n.schema,c=[];if(s){for await(let v of n)c.push(v);return new Xe(s,c)}return Xe.empty()})(t.open())}static async fromAsync(e){return await Xe.from(e)}static fromStruct(e){return Xe.new(e.data.childData,e.type.children)}static new(...e){return new Xe(...$g.distributeColumnsIntoRecordBatches(Hg.selectColumnArgs(e)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(e=this._chunks){return new Xe(this._schema,e)}getColumn(e){return this.getColumnAt(this.getColumnIndex(e))}getColumnAt(e){return this.getChildAt(e)}getColumnIndex(e){return this._schema.fields.findIndex(t=>t.name===e)}getChildAt(e){if(e<0||e>=this.numChildren)return null;let t,i,n=this._schema.fields,s=this._children||(this._children=[]);if(i=s[e])return i;if(t=n[e]){let c=this._chunks.map(v=>v.getChildAt(e)).filter(v=>v!=null);if(c.length>0)return s[e]=new TV.Column(t,c)}return null}serialize(e="binary",t=!0){return(t?Yg.RecordBatchStreamWriter:Yg.RecordBatchFileWriter).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...e){let t=this._schema.fields.reduce((i,n,s)=>i.set(n.name,s),new Map);return this.selectAt(...e.map(i=>t.get(i)).filter(i=>i>-1))}selectAt(...e){let t=this._schema.selectAt(...e);return new Xe(t,this._chunks.map(({length:i,data:{childData:n}})=>new dd.RecordBatch(t,i,e.map(s=>n[s]).filter(Boolean))))}assign(e){let t=this._schema.fields,[i,n]=e.schema.fields.reduce((v,I,S)=>{let[U,G]=v,me=t.findIndex(fe=>fe.name===I.name);return~me?G[me]=S:U.push(S),v},[[],[]]),s=this._schema.assign(e.schema),c=[...t.map((v,I,S,U=n[I])=>U===void 0?this.getColumnAt(I):e.getColumnAt(U)),...i.map(v=>e.getColumnAt(v))].filter(Boolean);return new Xe(...$g.distributeVectorsIntoRecordBatches(s,c))}};Ja.Table=Xe;function SV(r){let{type:e}=r;return e instanceof fd.Struct?Xe.fromStruct(pd.StructVector.from(r)):null}function DV(r){let{type:e}=r;return e instanceof fd.Struct?pd.StructVector.from(r).then(t=>Xe.fromStruct(t)):null}});var Fr=V(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn._InternalEmptyPlaceholderRecordBatch=Wn.RecordBatch=void 0;var yd=qt(),md=Ds(),OV=Re(),AV=tt(),FV=Ke(),MV=st(),VV=ci(),UV=On(),_d=be(),CV=gl(),PV=fr(),bi=class extends PV.StructVector{constructor(...e){let t,i=e[0],n;if(e[1]instanceof yd.Data)[,t,n]=e;else{let s=i.fields,[,c,v]=e;t=yd.Data.Struct(new _d.Struct(s),0,c,0,null,v)}super(t,n);this._schema=i}static from(e){return MV.isIterable(e.values),md.Table.from(e)}static new(...e){let[t,i]=UV.selectFieldArgs(e),n=i.filter(s=>s instanceof OV.Vector);return new bi(...CV.ensureSameLengthData(new FV.Schema(t),n.map(s=>s.data)))}clone(e,t=this._children){return new bi(this._schema,e,t)}concat(...e){let t=this._schema,i=VV.Chunked.flatten(this,...e);return new md.Table(t,i.map(({data:n})=>new bi(t,n)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=Ka.collect(this))}select(...e){let t=this._schema.fields.reduce((i,n,s)=>i.set(n.name,s),new Map);return this.selectAt(...e.map(i=>t.get(i)).filter(i=>i>-1))}selectAt(...e){let t=this._schema.selectAt(...e),i=e.map(n=>this.data.childData[n]).filter(Boolean);return new bi(t,this.length,i)}};Wn.RecordBatch=bi;var Gg=class extends bi{constructor(e){super(e,0,e.fields.map(t=>yd.Data.new(t.type,0,0,0)))}};Wn._InternalEmptyPlaceholderRecordBatch=Gg;var Ka=class extends AV.Visitor{constructor(){super(...arguments);this.dictionaries=new Map}static collect(e){return new Ka().visit(e.data,new _d.Struct(e.schema.fields)).dictionaries}visit(e,t){return _d.DataType.isDictionary(t)?this.visitDictionary(e,t):(e.childData.forEach((i,n)=>this.visit(i,t.children[n].type)),this)}visitDictionary(e,t){let i=e.dictionary;return i&&i.length>0&&this.dictionaries.set(t.id,i),this}}});var ks=V(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.AsyncRecordBatchFileReader=kt.RecordBatchFileReader=kt.AsyncRecordBatchStreamReader=kt.RecordBatchStreamReader=kt.RecordBatchReader=void 0;var Jg=Re(),Za=Te(),Kg=Rc(),Zg=ns(),Xg=si(),Rs=Ec(),Qg=M_(),bd=Fr(),Yi=rn(),Ct=ya(),Pt=st(),mr=class extends Yi.ReadableInterop{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 t=this._impl.open(e);return Pt.isPromise(t)?t.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 Zg.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Zg.default.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,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof mr?e:Pt.isArrowJSON(e)?kV(e):Pt.isFileHandle(e)?xV(e):Pt.isPromise(e)?(async()=>await mr.from(await e))():Pt.isFetchResponse(e)||Pt.isReadableDOMStream(e)||Pt.isReadableNodeStream(e)||Pt.isAsyncIterable(e)?NV(new Xg.AsyncByteStream(e)):RV(new Xg.ByteStream(e))}static readAll(e){return e instanceof mr?e.isSync()?iv(e):nv(e):Pt.isArrowJSON(e)||ArrayBuffer.isView(e)||Pt.isIterable(e)||Pt.isIteratorResult(e)?iv(e):nv(e)}};kt.RecordBatchReader=mr;var Hn=class extends mr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}async*[Symbol.asyncIterator](){yield*this[Symbol.iterator]()}};kt.RecordBatchStreamReader=Hn;var Yn=class extends mr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}};kt.AsyncRecordBatchStreamReader=Yn;var Xa=class extends Hn{constructor(e){super(e);this._impl=e}};kt.RecordBatchFileReader=Xa;var gd=class extends Yn{constructor(e){super(e);this._impl=e}};kt.AsyncRecordBatchFileReader=gd;var vd=class{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}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,t){return new bd.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){let{id:i,isDelta:n,data:s}=e,{dictionaries:c,schema:v}=this,I=c.get(i);if(n||!I){let S=v.dictionaries.get(i);return I&&n?I.concat(Jg.Vector.new(this._loadVectors(s,t,[S])[0])):Jg.Vector.new(this._loadVectors(s,t,[S])[0])}return I}_loadVectors(e,t,i){return new Qg.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}},Ns=class extends vd{constructor(e,t){super(t);this._reader=Pt.isArrowJSON(e)?new Ct.JSONMessageReader(this._handle=e):new Ct.MessageReader(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=rv(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):Yi.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Yi.ITERATOR_DONE}next(){if(this.closed)return Yi.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(i,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new bd._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},xs=class extends vd{constructor(e,t){super(t);this._reader=new Ct.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}async cancel(){!this.closed&&(this.closed=!0)&&(await this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}async open(e){return this.closed||(this.autoDestroy=rv(this,e),this.schema||(this.schema=await this._reader.readSchema())||await this.cancel()),this}async throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.throw(e):Yi.ITERATOR_DONE}async return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.return(e):Yi.ITERATOR_DONE}async next(){if(this.closed)return Yi.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=await this._readNextMessageAndValidate();)if(e.isSchema())await this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(i,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new bd._InternalEmptyPlaceholderRecordBatch(this.schema)}):await this.return()}async _readNextMessageAndValidate(e){return await this._reader.readMessage(e)}},jd=class extends Ns{constructor(e,t){super(e instanceof Rs.RandomAccessFile?e:new Rs.RandomAccessFile(e),t)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){if(this.closed)return null;this._footer||this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){let i=this._reader.readMessage(Za.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null}_readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){let i=this._reader.readMessage(Za.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,c)}}}_readFooter(){let{_handle:e}=this,t=e.size-Ct.magicAndPadding,i=e.readInt32(t),n=e.readAt(t-i,i);return Kg.Footer.decode(n)}_readNextMessageAndValidate(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}},ev=class extends xs{constructor(e,...t){let i=typeof t[0]!="number"?t.shift():void 0,n=t[0]instanceof Map?t.shift():void 0;super(e instanceof Rs.AsyncRandomAccessFile?e:new Rs.AsyncRandomAccessFile(e,i),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}async open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=await this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&await this._readDictionaryBatch(this._dictionaryIndex++)}return await super.open(e)}async readRecordBatch(e){if(this.closed)return null;this._footer||await this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Za.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),s=await this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null}async _readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Za.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),s=await this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,c)}}}async _readFooter(){let{_handle:e}=this;e._pending&&await e._pending;let t=e.size-Ct.magicAndPadding,i=await e.readInt32(t),n=await e.readAt(t-i,i);return Kg.Footer.decode(n)}async _readNextMessageAndValidate(e){if(this._footer||await this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&await this._handle.seek(t.offset))return await this._reader.readMessage(e)}return null}},tv=class extends Ns{constructor(e,t){super(e,t)}_loadVectors(e,t,i){return new Qg.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}};function rv(r,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:r.autoDestroy}function*iv(r){let e=mr.from(r);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}async function*nv(r){let e=await mr.from(r);try{if(!(await e.open({autoDestroy:!1})).closed)do yield e;while(!(await e.reset().open()).closed)}finally{await e.cancel()}}function kV(r){return new Hn(new tv(r))}function RV(r){let e=r.peek(Ct.magicLength+7&~7);return e&&e.byteLength>=4?Ct.checkForMagicArrowString(e)?new Xa(new jd(r.read())):new Hn(new Ns(r)):new Hn(new Ns(function*(){}()))}async function NV(r){let e=await r.peek(Ct.magicLength+7&~7);return e&&e.byteLength>=4?Ct.checkForMagicArrowString(e)?new Xa(new jd(await r.read())):new Yn(new xs(r)):new Yn(new xs(async function*(){}()))}async function xV(r){let{size:e}=await r.stat(),t=new Rs.AsyncRandomAccessFile(r,e);return e>=Ct.magicX2AndPadding&&Ct.checkForMagicArrowString(await t.readAt(0,Ct.magicLength+7&~7))?new gd(new ev(t)):new Yn(new xs(t))}});var av=V(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.toDOMStream=void 0;var sv=Ye(),ov=st();function EV(r,e){if(ov.isAsyncIterable(r))return qV(r,e);if(ov.isIterable(r))return LV(r,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}Qa.toDOMStream=EV;function LV(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,start(c){s(c,t||(t=r[Symbol.iterator]()))},pull(c){t?s(c,t):c.close()},cancel(){(t&&t.return&&t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});function s(c,v){let I,S=null,U=c.desiredSize||null;for(;!(S=v.next(i?U:null)).done;)if(ArrayBuffer.isView(S.value)&&(I=sv.toUint8Array(S.value))&&(U!=null&&i&&(U=U-I.byteLength+1),S.value=I),c.enqueue(S.value),U!=null&&--U<=0)return;c.close()}}function qV(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,async start(c){await s(c,t||(t=r[Symbol.asyncIterator]()))},async pull(c){t?await s(c,t):c.close()},async cancel(){(t&&t.return&&await t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});async function s(c,v){let I,S=null,U=c.desiredSize||null;for(;!(S=await v.next(i?U:null)).done;)if(ArrayBuffer.isView(S.value)&&(I=sv.toUint8Array(S.value))&&(U!=null&&i&&(U=U-I.byteLength+1),S.value=I),c.enqueue(S.value),U!=null&&--U<=0)return;c.close()}}});var lv=V($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.BuilderTransform=$n.builderThroughDOMStream=void 0;var zV=ta();function WV(r){return new wd(r)}$n.builderThroughDOMStream=WV;var wd=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:t,["writableStrategy"]:i,["queueingStrategy"]:n="count",...s}=e;this._controller=null,this._builder=zV.Builder.new(s),this._getSize=n!=="bytes"?uv:cv;let{["highWaterMark"]:c=n==="bytes"?2**14:1e3}={...t},{["highWaterMark"]:v=n==="bytes"?2**14:1e3}={...i};this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:I=>{this._maybeFlush(this._builder,this._controller=I)},start:I=>{this._maybeFlush(this._builder,this._controller=I)}},{highWaterMark:c,size:n!=="bytes"?uv:cv}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:v,size:I=>this._writeValueAndReturnChunkSize(I)})}_writeValueAndReturnChunkSize(e){let t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){t!==null&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,t===null?e.close():e.enqueue(t)}};$n.BuilderTransform=wd;var uv=r=>r.length,cv=r=>r.byteLength});var dv=V(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.recordBatchReaderThroughDOMStream=void 0;var HV=si(),YV=ks();function $V(r,e){let t=new HV.AsyncByteQueue,i=null,n=new ReadableStream({async cancel(){await t.close()},async start(v){await c(v,i||(i=await s()))},async pull(v){i?await c(v,i):v.close()}});return{writable:new WritableStream(t,{highWaterMark:2**14,...r}),readable:n};async function s(){return await(await YV.RecordBatchReader.from(t)).open(e)}async function c(v,I){let S=v.desiredSize,U=null;for(;!(U=await I.next()).done;)if(v.enqueue(U.value),S!=null&&--S<=0)return;v.close()}}eu.recordBatchReaderThroughDOMStream=$V});var fv=V(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.recordBatchWriterThroughDOMStream=void 0;var GV=si();function JV(r,e){let t=new this(r),i=new GV.AsyncByteStream(t),n=new ReadableStream({type:"bytes",async cancel(){await i.cancel()},async pull(c){await s(c)},async start(c){await s(c)}},{highWaterMark:2**14,...e});return{writable:new WritableStream(t,r),readable:n};async function s(c){let v=null,I=c.desiredSize;for(;v=await i.read(I||null);)if(c.enqueue(v),I!=null&&(I-=v.byteLength)<=0)return;c.close()}}tu.recordBatchWriterThroughDOMStream=JV});var Od=V(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.custom=le.or=le.and=le.col=le.lit=le.CustomPredicate=le.Not=le.GTeq=le.LTeq=le.Equals=le.Or=le.And=le.CombinationPredicate=le.ComparisonPredicate=le.Predicate=le.Col=le.Literal=le.Value=void 0;var KV=Ua(),gi=class{eq(e){return e instanceof gi||(e=new Ur(e)),new Td(this,e)}le(e){return e instanceof gi||(e=new Ur(e)),new Id(this,e)}ge(e){return e instanceof gi||(e=new Ur(e)),new Sd(this,e)}lt(e){return new Zn(this.ge(e))}gt(e){return new Zn(this.le(e))}ne(e){return new Zn(this.eq(e))}};le.Value=gi;var Ur=class extends gi{constructor(e){super();this.v=e}};le.Literal=Ur;var Bd=class extends gi{constructor(e){super();this.name=e}bind(e){if(!this.colidx){this.colidx=-1;let i=e.schema.fields;for(let n=-1;++n<i.length;)if(i[n].name===this.name){this.colidx=n;break}if(this.colidx<0)throw new Error(`Failed to bind Col "${this.name}"`)}let t=this.vector=e.getChildAt(this.colidx);return i=>t.get(i)}};le.Col=Bd;var Gn=class{and(...e){return new Jn(this,...e)}or(...e){return new Kn(this,...e)}not(){return new Zn(this)}};le.Predicate=Gn;var Es=class extends Gn{constructor(e,t){super();this.left=e,this.right=t}bind(e){return this.left instanceof Ur?this.right instanceof Ur?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Ur?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}};le.ComparisonPredicate=Es;var Ls=class extends Gn{constructor(...e){super();this.children=e}};le.CombinationPredicate=Ls;Ls.prototype.children=Object.freeze([]);var Jn=class extends Ls{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Jn?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.every(s=>s(i,n))}};le.And=Jn;var Kn=class extends Ls{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Kn?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.some(s=>s(i,n))}};le.Or=Kn;var Td=class extends Es{_bindLitLit(e,t,i){let n=t.v==i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)==s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);if(t.vector instanceof KV.DictionaryVector){let s,c=t.vector;return c.dictionary!==this.lastDictionary?(s=c.reverseLookup(i.v),this.lastDictionary=c.dictionary,this.lastKey=s):s=this.lastKey,s===-1?()=>!1:v=>c.getKey(v)===s}else return(s,c)=>n(s,c)==i.v}_bindLitCol(e,t,i){return this._bindColLit(e,i,t)}};le.Equals=Td;var Id=class extends Es{_bindLitLit(e,t,i){let n=t.v<=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)<=s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);return(s,c)=>n(s,c)<=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,c)=>t.v<=n(s,c)}};le.LTeq=Id;var Sd=class extends Es{_bindLitLit(e,t,i){let n=t.v>=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)>=s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);return(s,c)=>n(s,c)>=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,c)=>t.v>=n(s,c)}};le.GTeq=Sd;var Zn=class extends Gn{constructor(e){super();this.child=e}bind(e){let t=this.child.bind(e);return(i,n)=>!t(i,n)}};le.Not=Zn;var Dd=class extends Gn{constructor(e,t){super();this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}};le.CustomPredicate=Dd;function ZV(r){return new Ur(r)}le.lit=ZV;function XV(r){return new Bd(r)}le.col=XV;function QV(...r){return new Jn(...r)}le.and=QV;function eU(...r){return new Kn(...r)}le.or=eU;function tU(r,e){return new Dd(r,e)}le.custom=tU});var _v=V(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.FilteredDataFrame=vi.CountByResult=vi.DataFrame=void 0;var Xn=Ds(),hv=Ra(),Ad=Ke(),pv=Od(),rU=Fr(),yv=be();Xn.Table.prototype.countBy=function(r){return new $i(this.chunks).countBy(r)};Xn.Table.prototype.scan=function(r,e){return new $i(this.chunks).scan(r,e)};Xn.Table.prototype.scanReverse=function(r,e){return new $i(this.chunks).scanReverse(r,e)};Xn.Table.prototype.filter=function(r){return new $i(this.chunks).filter(r)};var $i=class extends Xn.Table{filter(e){return new qs(this.chunks,e)}scan(e,t){let i=this.chunks,n=i.length;for(let s=-1;++s<n;){let c=i[s];t&&t(c);for(let v=-1,I=c.length;++v<I;)e(v,c)}}scanReverse(e,t){let i=this.chunks,n=i.length;for(let s=n;--s>=0;){let c=i[s];t&&t(c);for(let v=c.length;--v>=0;)e(v,c)}}countBy(e){let t=this.chunks,i=t.length,n=typeof e=="string"?new pv.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!yv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(s.length)/Math.log(256)),v=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,I=new v(s.dictionary.length);for(let S=-1;++S<i;){let U=t[S];n.bind(U);let G=n.vector.indices;for(let me=-1,fe=U.length;++me<fe;){let Gt=G.get(me);Gt!==null&&I[Gt]++}}return new ru(s.dictionary,hv.IntVector.from(I))}};vi.DataFrame=$i;var ru=class extends Xn.Table{constructor(e,t){let i=new Ad.Schema([new Ad.Field("values",e.type),new Ad.Field("counts",t.type)]);super(new rU.RecordBatch(i,t.length,[e,t]))}toJSON(){let e=this.getColumnAt(0),t=this.getColumnAt(1),i={};for(let n=-1;++n<this.length;)i[e.get(n)]=t.get(n);return i}};vi.CountByResult=ru;var mv=class{constructor(e,t){this.batches=e,this.predicate=t,this.batchIndex=0,this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch)}next(){for(;this.batchIndex<this.batches.length;){for(;this.index<this.batch.length;){if(this.predicateFunc(this.index,this.batch))return{value:this.batch.get(this.index++)};this.index++}++this.batchIndex<this.batches.length&&(this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch))}return{done:!0,value:null}}[Symbol.iterator](){return this}},qs=class extends $i{constructor(e,t){super(e);this._predicate=t}scan(e,t){let i=this._chunks,n=i.length;for(let s=-1;++s<n;){let c=i[s],v=this._predicate.bind(c),I=!1;for(let S=-1,U=c.length;++S<U;)v(S,c)&&(t&&!I&&(t(c),I=!0),e(S,c))}}scanReverse(e,t){let i=this._chunks,n=i.length;for(let s=n;--s>=0;){let c=i[s],v=this._predicate.bind(c),I=!1;for(let S=c.length;--S>=0;)v(S,c)&&(t&&!I&&(t(c),I=!0),e(S,c))}}count(){let e=0,t=this._chunks,i=t.length;for(let n=-1;++n<i;){let s=t[n],c=this._predicate.bind(s);for(let v=-1,I=s.length;++v<I;)c(v,s)&&++e}return e}[Symbol.iterator](){return new mv(this._chunks,this._predicate)}filter(e){return new qs(this._chunks,this._predicate.and(e))}countBy(e){let t=this._chunks,i=t.length,n=typeof e=="string"?new pv.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!yv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(s.length)/Math.log(256)),v=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,I=new v(s.dictionary.length);for(let S=-1;++S<i;){let U=t[S],G=this._predicate.bind(U);n.bind(U);let me=n.vector.indices;for(let fe=-1,Gt=U.length;++fe<Gt;){let Cr=me.get(fe);Cr!==null&&G(fe,U)&&I[Cr]++}}return new ru(s.dictionary,hv.IntVector.from(I))}};vi.FilteredDataFrame=qs});var vv=V(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.util=_.predicate=_.CountByResult=_.FilteredDataFrame=_.DataFrame=_.RecordBatch=_.Message=_.JSONMessageReader=_.AsyncMessageReader=_.MessageReader=_.RecordBatchJSONWriter=_.RecordBatchStreamWriter=_.RecordBatchFileWriter=_.RecordBatchWriter=_.AsyncRecordBatchStreamReader=_.AsyncRecordBatchFileReader=_.RecordBatchStreamReader=_.RecordBatchFileReader=_.RecordBatchReader=_.AsyncByteQueue=_.AsyncByteStream=_.ByteStream=_.Utf8Builder=_.SparseUnionBuilder=_.DenseUnionBuilder=_.UnionBuilder=_.TimeNanosecondBuilder=_.TimeMicrosecondBuilder=_.TimeMillisecondBuilder=_.TimeSecondBuilder=_.TimeBuilder=_.TimestampNanosecondBuilder=_.TimestampMicrosecondBuilder=_.TimestampMillisecondBuilder=_.TimestampSecondBuilder=_.TimestampBuilder=_.StructBuilder=_.NullBuilder=_.MapBuilder=_.ListBuilder=_.Uint64Builder=_.Uint32Builder=_.Uint16Builder=_.Uint8Builder=_.Int64Builder=_.Int32Builder=_.Int16Builder=_.Int8Builder=_.IntBuilder=_.IntervalYearMonthBuilder=_.IntervalDayTimeBuilder=_.IntervalBuilder=_.Float64Builder=_.Float32Builder=_.Float16Builder=_.FloatBuilder=_.FixedSizeListBuilder=_.FixedSizeBinaryBuilder=_.DictionaryBuilder=_.DecimalBuilder=_.DateMillisecondBuilder=_.DateDayBuilder=_.DateBuilder=_.BoolBuilder=_.BinaryBuilder=_.Builder=_.Utf8Vector=_.SparseUnionVector=_.DenseUnionVector=_.UnionVector=_.TimeNanosecondVector=_.TimeMicrosecondVector=_.TimeMillisecondVector=_.TimeSecondVector=_.TimeVector=_.TimestampNanosecondVector=_.TimestampMicrosecondVector=_.TimestampMillisecondVector=_.TimestampSecondVector=_.TimestampVector=_.StructVector=_.NullVector=_.MapVector=_.ListVector=_.Uint64Vector=_.Uint32Vector=_.Uint16Vector=_.Uint8Vector=_.Int64Vector=_.Int32Vector=_.Int16Vector=_.Int8Vector=_.IntVector=_.IntervalYearMonthVector=_.IntervalDayTimeVector=_.IntervalVector=_.Float64Vector=_.Float32Vector=_.Float16Vector=_.FloatVector=_.FixedSizeListVector=_.FixedSizeBinaryVector=_.DictionaryVector=_.DecimalVector=_.DateMillisecondVector=_.DateDayVector=_.DateVector=_.Chunked=_.BoolVector=_.BinaryVector=_.BaseVector=_.Vector=_.Field=_.Schema=_.Visitor=_.Column=_.Table=_.Map_=_.FixedSizeList=_.IntervalYearMonth=_.IntervalDayTime=_.Interval=_.Dictionary=_.SparseUnion=_.DenseUnion=_.Union=_.Struct=_.List=_.Decimal=_.TimeNanosecond=_.TimeMicrosecond=_.TimeMillisecond=_.TimeSecond=_.Time=_.TimestampNanosecond=_.TimestampMicrosecond=_.TimestampMillisecond=_.TimestampSecond=_.Timestamp=_.DateMillisecond=_.DateDay=_.Date_=_.FixedSizeBinary=_.Binary=_.Utf8=_.Float64=_.Float32=_.Float16=_.Float=_.Uint64=_.Uint32=_.Uint16=_.Uint8=_.Int64=_.Int32=_.Int16=_.Int8=_.Int=_.Bool=_.Null=_.DataType=_.Data=_.BufferType=_.Type=_.MessageHeader=_.MetadataVersion=_.IntervalUnit=_.UnionMode=_.Precision=_.TimeUnit=_.DateUnit=void 0;var Qn=$r();Object.defineProperty(_,"DateUnit",{enumerable:!0,get:function(){return Qn.DateUnit}});Object.defineProperty(_,"TimeUnit",{enumerable:!0,get:function(){return Qn.TimeUnit}});Object.defineProperty(_,"Precision",{enumerable:!0,get:function(){return Qn.Precision}});Object.defineProperty(_,"UnionMode",{enumerable:!0,get:function(){return Qn.UnionMode}});Object.defineProperty(_,"IntervalUnit",{enumerable:!0,get:function(){return Qn.IntervalUnit}});Object.defineProperty(_,"MetadataVersion",{enumerable:!0,get:function(){return Qn.MetadataVersion}});var iU=yo();Object.defineProperty(_,"MessageHeader",{enumerable:!0,get:function(){return iU.MessageHeader}});var bv=Te();Object.defineProperty(_,"Type",{enumerable:!0,get:function(){return bv.Type}});Object.defineProperty(_,"BufferType",{enumerable:!0,get:function(){return bv.BufferType}});var nU=qt();Object.defineProperty(_,"Data",{enumerable:!0,get:function(){return nU.Data}});var ie=be();Object.defineProperty(_,"DataType",{enumerable:!0,get:function(){return ie.DataType}});Object.defineProperty(_,"Null",{enumerable:!0,get:function(){return ie.Null}});Object.defineProperty(_,"Bool",{enumerable:!0,get:function(){return ie.Bool}});Object.defineProperty(_,"Int",{enumerable:!0,get:function(){return ie.Int}});Object.defineProperty(_,"Int8",{enumerable:!0,get:function(){return ie.Int8}});Object.defineProperty(_,"Int16",{enumerable:!0,get:function(){return ie.Int16}});Object.defineProperty(_,"Int32",{enumerable:!0,get:function(){return ie.Int32}});Object.defineProperty(_,"Int64",{enumerable:!0,get:function(){return ie.Int64}});Object.defineProperty(_,"Uint8",{enumerable:!0,get:function(){return ie.Uint8}});Object.defineProperty(_,"Uint16",{enumerable:!0,get:function(){return ie.Uint16}});Object.defineProperty(_,"Uint32",{enumerable:!0,get:function(){return ie.Uint32}});Object.defineProperty(_,"Uint64",{enumerable:!0,get:function(){return ie.Uint64}});Object.defineProperty(_,"Float",{enumerable:!0,get:function(){return ie.Float}});Object.defineProperty(_,"Float16",{enumerable:!0,get:function(){return ie.Float16}});Object.defineProperty(_,"Float32",{enumerable:!0,get:function(){return ie.Float32}});Object.defineProperty(_,"Float64",{enumerable:!0,get:function(){return ie.Float64}});Object.defineProperty(_,"Utf8",{enumerable:!0,get:function(){return ie.Utf8}});Object.defineProperty(_,"Binary",{enumerable:!0,get:function(){return ie.Binary}});Object.defineProperty(_,"FixedSizeBinary",{enumerable:!0,get:function(){return ie.FixedSizeBinary}});Object.defineProperty(_,"Date_",{enumerable:!0,get:function(){return ie.Date_}});Object.defineProperty(_,"DateDay",{enumerable:!0,get:function(){return ie.DateDay}});Object.defineProperty(_,"DateMillisecond",{enumerable:!0,get:function(){return ie.DateMillisecond}});Object.defineProperty(_,"Timestamp",{enumerable:!0,get:function(){return ie.Timestamp}});Object.defineProperty(_,"TimestampSecond",{enumerable:!0,get:function(){return ie.TimestampSecond}});Object.defineProperty(_,"TimestampMillisecond",{enumerable:!0,get:function(){return ie.TimestampMillisecond}});Object.defineProperty(_,"TimestampMicrosecond",{enumerable:!0,get:function(){return ie.TimestampMicrosecond}});Object.defineProperty(_,"TimestampNanosecond",{enumerable:!0,get:function(){return ie.TimestampNanosecond}});Object.defineProperty(_,"Time",{enumerable:!0,get:function(){return ie.Time}});Object.defineProperty(_,"TimeSecond",{enumerable:!0,get:function(){return ie.TimeSecond}});Object.defineProperty(_,"TimeMillisecond",{enumerable:!0,get:function(){return ie.TimeMillisecond}});Object.defineProperty(_,"TimeMicrosecond",{enumerable:!0,get:function(){return ie.TimeMicrosecond}});Object.defineProperty(_,"TimeNanosecond",{enumerable:!0,get:function(){return ie.TimeNanosecond}});Object.defineProperty(_,"Decimal",{enumerable:!0,get:function(){return ie.Decimal}});Object.defineProperty(_,"List",{enumerable:!0,get:function(){return ie.List}});Object.defineProperty(_,"Struct",{enumerable:!0,get:function(){return ie.Struct}});Object.defineProperty(_,"Union",{enumerable:!0,get:function(){return ie.Union}});Object.defineProperty(_,"DenseUnion",{enumerable:!0,get:function(){return ie.DenseUnion}});Object.defineProperty(_,"SparseUnion",{enumerable:!0,get:function(){return ie.SparseUnion}});Object.defineProperty(_,"Dictionary",{enumerable:!0,get:function(){return ie.Dictionary}});Object.defineProperty(_,"Interval",{enumerable:!0,get:function(){return ie.Interval}});Object.defineProperty(_,"IntervalDayTime",{enumerable:!0,get:function(){return ie.IntervalDayTime}});Object.defineProperty(_,"IntervalYearMonth",{enumerable:!0,get:function(){return ie.IntervalYearMonth}});Object.defineProperty(_,"FixedSizeList",{enumerable:!0,get:function(){return ie.FixedSizeList}});Object.defineProperty(_,"Map_",{enumerable:!0,get:function(){return ie.Map_}});var sU=Ds();Object.defineProperty(_,"Table",{enumerable:!0,get:function(){return sU.Table}});var oU=An();Object.defineProperty(_,"Column",{enumerable:!0,get:function(){return oU.Column}});var aU=tt();Object.defineProperty(_,"Visitor",{enumerable:!0,get:function(){return aU.Visitor}});var gv=Ke();Object.defineProperty(_,"Schema",{enumerable:!0,get:function(){return gv.Schema}});Object.defineProperty(_,"Field",{enumerable:!0,get:function(){return gv.Field}});var ee=fr();Object.defineProperty(_,"Vector",{enumerable:!0,get:function(){return ee.Vector}});Object.defineProperty(_,"BaseVector",{enumerable:!0,get:function(){return ee.BaseVector}});Object.defineProperty(_,"BinaryVector",{enumerable:!0,get:function(){return ee.BinaryVector}});Object.defineProperty(_,"BoolVector",{enumerable:!0,get:function(){return ee.BoolVector}});Object.defineProperty(_,"Chunked",{enumerable:!0,get:function(){return ee.Chunked}});Object.defineProperty(_,"DateVector",{enumerable:!0,get:function(){return ee.DateVector}});Object.defineProperty(_,"DateDayVector",{enumerable:!0,get:function(){return ee.DateDayVector}});Object.defineProperty(_,"DateMillisecondVector",{enumerable:!0,get:function(){return ee.DateMillisecondVector}});Object.defineProperty(_,"DecimalVector",{enumerable:!0,get:function(){return ee.DecimalVector}});Object.defineProperty(_,"DictionaryVector",{enumerable:!0,get:function(){return ee.DictionaryVector}});Object.defineProperty(_,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return ee.FixedSizeBinaryVector}});Object.defineProperty(_,"FixedSizeListVector",{enumerable:!0,get:function(){return ee.FixedSizeListVector}});Object.defineProperty(_,"FloatVector",{enumerable:!0,get:function(){return ee.FloatVector}});Object.defineProperty(_,"Float16Vector",{enumerable:!0,get:function(){return ee.Float16Vector}});Object.defineProperty(_,"Float32Vector",{enumerable:!0,get:function(){return ee.Float32Vector}});Object.defineProperty(_,"Float64Vector",{enumerable:!0,get:function(){return ee.Float64Vector}});Object.defineProperty(_,"IntervalVector",{enumerable:!0,get:function(){return ee.IntervalVector}});Object.defineProperty(_,"IntervalDayTimeVector",{enumerable:!0,get:function(){return ee.IntervalDayTimeVector}});Object.defineProperty(_,"IntervalYearMonthVector",{enumerable:!0,get:function(){return ee.IntervalYearMonthVector}});Object.defineProperty(_,"IntVector",{enumerable:!0,get:function(){return ee.IntVector}});Object.defineProperty(_,"Int8Vector",{enumerable:!0,get:function(){return ee.Int8Vector}});Object.defineProperty(_,"Int16Vector",{enumerable:!0,get:function(){return ee.Int16Vector}});Object.defineProperty(_,"Int32Vector",{enumerable:!0,get:function(){return ee.Int32Vector}});Object.defineProperty(_,"Int64Vector",{enumerable:!0,get:function(){return ee.Int64Vector}});Object.defineProperty(_,"Uint8Vector",{enumerable:!0,get:function(){return ee.Uint8Vector}});Object.defineProperty(_,"Uint16Vector",{enumerable:!0,get:function(){return ee.Uint16Vector}});Object.defineProperty(_,"Uint32Vector",{enumerable:!0,get:function(){return ee.Uint32Vector}});Object.defineProperty(_,"Uint64Vector",{enumerable:!0,get:function(){return ee.Uint64Vector}});Object.defineProperty(_,"ListVector",{enumerable:!0,get:function(){return ee.ListVector}});Object.defineProperty(_,"MapVector",{enumerable:!0,get:function(){return ee.MapVector}});Object.defineProperty(_,"NullVector",{enumerable:!0,get:function(){return ee.NullVector}});Object.defineProperty(_,"StructVector",{enumerable:!0,get:function(){return ee.StructVector}});Object.defineProperty(_,"TimestampVector",{enumerable:!0,get:function(){return ee.TimestampVector}});Object.defineProperty(_,"TimestampSecondVector",{enumerable:!0,get:function(){return ee.TimestampSecondVector}});Object.defineProperty(_,"TimestampMillisecondVector",{enumerable:!0,get:function(){return ee.TimestampMillisecondVector}});Object.defineProperty(_,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return ee.TimestampMicrosecondVector}});Object.defineProperty(_,"TimestampNanosecondVector",{enumerable:!0,get:function(){return ee.TimestampNanosecondVector}});Object.defineProperty(_,"TimeVector",{enumerable:!0,get:function(){return ee.TimeVector}});Object.defineProperty(_,"TimeSecondVector",{enumerable:!0,get:function(){return ee.TimeSecondVector}});Object.defineProperty(_,"TimeMillisecondVector",{enumerable:!0,get:function(){return ee.TimeMillisecondVector}});Object.defineProperty(_,"TimeMicrosecondVector",{enumerable:!0,get:function(){return ee.TimeMicrosecondVector}});Object.defineProperty(_,"TimeNanosecondVector",{enumerable:!0,get:function(){return ee.TimeNanosecondVector}});Object.defineProperty(_,"UnionVector",{enumerable:!0,get:function(){return ee.UnionVector}});Object.defineProperty(_,"DenseUnionVector",{enumerable:!0,get:function(){return ee.DenseUnionVector}});Object.defineProperty(_,"SparseUnionVector",{enumerable:!0,get:function(){return ee.SparseUnionVector}});Object.defineProperty(_,"Utf8Vector",{enumerable:!0,get:function(){return ee.Utf8Vector}});var ne=ta();Object.defineProperty(_,"Builder",{enumerable:!0,get:function(){return ne.Builder}});Object.defineProperty(_,"BinaryBuilder",{enumerable:!0,get:function(){return ne.BinaryBuilder}});Object.defineProperty(_,"BoolBuilder",{enumerable:!0,get:function(){return ne.BoolBuilder}});Object.defineProperty(_,"DateBuilder",{enumerable:!0,get:function(){return ne.DateBuilder}});Object.defineProperty(_,"DateDayBuilder",{enumerable:!0,get:function(){return ne.DateDayBuilder}});Object.defineProperty(_,"DateMillisecondBuilder",{enumerable:!0,get:function(){return ne.DateMillisecondBuilder}});Object.defineProperty(_,"DecimalBuilder",{enumerable:!0,get:function(){return ne.DecimalBuilder}});Object.defineProperty(_,"DictionaryBuilder",{enumerable:!0,get:function(){return ne.DictionaryBuilder}});Object.defineProperty(_,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return ne.FixedSizeBinaryBuilder}});Object.defineProperty(_,"FixedSizeListBuilder",{enumerable:!0,get:function(){return ne.FixedSizeListBuilder}});Object.defineProperty(_,"FloatBuilder",{enumerable:!0,get:function(){return ne.FloatBuilder}});Object.defineProperty(_,"Float16Builder",{enumerable:!0,get:function(){return ne.Float16Builder}});Object.defineProperty(_,"Float32Builder",{enumerable:!0,get:function(){return ne.Float32Builder}});Object.defineProperty(_,"Float64Builder",{enumerable:!0,get:function(){return ne.Float64Builder}});Object.defineProperty(_,"IntervalBuilder",{enumerable:!0,get:function(){return ne.IntervalBuilder}});Object.defineProperty(_,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return ne.IntervalDayTimeBuilder}});Object.defineProperty(_,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return ne.IntervalYearMonthBuilder}});Object.defineProperty(_,"IntBuilder",{enumerable:!0,get:function(){return ne.IntBuilder}});Object.defineProperty(_,"Int8Builder",{enumerable:!0,get:function(){return ne.Int8Builder}});Object.defineProperty(_,"Int16Builder",{enumerable:!0,get:function(){return ne.Int16Builder}});Object.defineProperty(_,"Int32Builder",{enumerable:!0,get:function(){return ne.Int32Builder}});Object.defineProperty(_,"Int64Builder",{enumerable:!0,get:function(){return ne.Int64Builder}});Object.defineProperty(_,"Uint8Builder",{enumerable:!0,get:function(){return ne.Uint8Builder}});Object.defineProperty(_,"Uint16Builder",{enumerable:!0,get:function(){return ne.Uint16Builder}});Object.defineProperty(_,"Uint32Builder",{enumerable:!0,get:function(){return ne.Uint32Builder}});Object.defineProperty(_,"Uint64Builder",{enumerable:!0,get:function(){return ne.Uint64Builder}});Object.defineProperty(_,"ListBuilder",{enumerable:!0,get:function(){return ne.ListBuilder}});Object.defineProperty(_,"MapBuilder",{enumerable:!0,get:function(){return ne.MapBuilder}});Object.defineProperty(_,"NullBuilder",{enumerable:!0,get:function(){return ne.NullBuilder}});Object.defineProperty(_,"StructBuilder",{enumerable:!0,get:function(){return ne.StructBuilder}});Object.defineProperty(_,"TimestampBuilder",{enumerable:!0,get:function(){return ne.TimestampBuilder}});Object.defineProperty(_,"TimestampSecondBuilder",{enumerable:!0,get:function(){return ne.TimestampSecondBuilder}});Object.defineProperty(_,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return ne.TimestampMillisecondBuilder}});Object.defineProperty(_,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return ne.TimestampMicrosecondBuilder}});Object.defineProperty(_,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return ne.TimestampNanosecondBuilder}});Object.defineProperty(_,"TimeBuilder",{enumerable:!0,get:function(){return ne.TimeBuilder}});Object.defineProperty(_,"TimeSecondBuilder",{enumerable:!0,get:function(){return ne.TimeSecondBuilder}});Object.defineProperty(_,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return ne.TimeMillisecondBuilder}});Object.defineProperty(_,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return ne.TimeMicrosecondBuilder}});Object.defineProperty(_,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return ne.TimeNanosecondBuilder}});Object.defineProperty(_,"UnionBuilder",{enumerable:!0,get:function(){return ne.UnionBuilder}});Object.defineProperty(_,"DenseUnionBuilder",{enumerable:!0,get:function(){return ne.DenseUnionBuilder}});Object.defineProperty(_,"SparseUnionBuilder",{enumerable:!0,get:function(){return ne.SparseUnionBuilder}});Object.defineProperty(_,"Utf8Builder",{enumerable:!0,get:function(){return ne.Utf8Builder}});var Fd=si();Object.defineProperty(_,"ByteStream",{enumerable:!0,get:function(){return Fd.ByteStream}});Object.defineProperty(_,"AsyncByteStream",{enumerable:!0,get:function(){return Fd.AsyncByteStream}});Object.defineProperty(_,"AsyncByteQueue",{enumerable:!0,get:function(){return Fd.AsyncByteQueue}});var zs=ks();Object.defineProperty(_,"RecordBatchReader",{enumerable:!0,get:function(){return zs.RecordBatchReader}});Object.defineProperty(_,"RecordBatchFileReader",{enumerable:!0,get:function(){return zs.RecordBatchFileReader}});Object.defineProperty(_,"RecordBatchStreamReader",{enumerable:!0,get:function(){return zs.RecordBatchStreamReader}});Object.defineProperty(_,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return zs.AsyncRecordBatchFileReader}});Object.defineProperty(_,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return zs.AsyncRecordBatchStreamReader}});var iu=Sa();Object.defineProperty(_,"RecordBatchWriter",{enumerable:!0,get:function(){return iu.RecordBatchWriter}});Object.defineProperty(_,"RecordBatchFileWriter",{enumerable:!0,get:function(){return iu.RecordBatchFileWriter}});Object.defineProperty(_,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return iu.RecordBatchStreamWriter}});Object.defineProperty(_,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return iu.RecordBatchJSONWriter}});var Md=ya();Object.defineProperty(_,"MessageReader",{enumerable:!0,get:function(){return Md.MessageReader}});Object.defineProperty(_,"AsyncMessageReader",{enumerable:!0,get:function(){return Md.AsyncMessageReader}});Object.defineProperty(_,"JSONMessageReader",{enumerable:!0,get:function(){return Md.JSONMessageReader}});var uU=Ei();Object.defineProperty(_,"Message",{enumerable:!0,get:function(){return uU.Message}});var cU=Fr();Object.defineProperty(_,"RecordBatch",{enumerable:!0,get:function(){return cU.RecordBatch}});var Vd=_v();Object.defineProperty(_,"DataFrame",{enumerable:!0,get:function(){return Vd.DataFrame}});Object.defineProperty(_,"FilteredDataFrame",{enumerable:!0,get:function(){return Vd.FilteredDataFrame}});Object.defineProperty(_,"CountByResult",{enumerable:!0,get:function(){return Vd.CountByResult}});var lU=ls(),dU=qc(),fU=tr(),hU=os(),pU=Ye(),yU=bs(),mU=Od();_.predicate=mU;var Ud=nl();_.util={...lU,...dU,...fU,...hU,...pU,...yU,compareSchemas:Ud.compareSchemas,compareFields:Ud.compareFields,compareTypes:Ud.compareTypes}});var Nd=V(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.Utf8Builder=b.SparseUnionBuilder=b.DenseUnionBuilder=b.UnionBuilder=b.TimeNanosecondBuilder=b.TimeMicrosecondBuilder=b.TimeMillisecondBuilder=b.TimeSecondBuilder=b.TimeBuilder=b.TimestampNanosecondBuilder=b.TimestampMicrosecondBuilder=b.TimestampMillisecondBuilder=b.TimestampSecondBuilder=b.TimestampBuilder=b.StructBuilder=b.NullBuilder=b.MapBuilder=b.ListBuilder=b.Uint64Builder=b.Uint32Builder=b.Uint16Builder=b.Uint8Builder=b.Int64Builder=b.Int32Builder=b.Int16Builder=b.Int8Builder=b.IntBuilder=b.IntervalYearMonthBuilder=b.IntervalDayTimeBuilder=b.IntervalBuilder=b.Float64Builder=b.Float32Builder=b.Float16Builder=b.FloatBuilder=b.FixedSizeListBuilder=b.FixedSizeBinaryBuilder=b.DictionaryBuilder=b.DecimalBuilder=b.DateMillisecondBuilder=b.DateDayBuilder=b.DateBuilder=b.BoolBuilder=b.BinaryBuilder=b.Builder=b.util=b.predicate=b.CountByResult=b.FilteredDataFrame=b.DataFrame=b.RecordBatch=b.Message=b.JSONMessageReader=b.AsyncMessageReader=b.MessageReader=b.RecordBatchJSONWriter=b.RecordBatchStreamWriter=b.RecordBatchFileWriter=b.RecordBatchWriter=b.AsyncRecordBatchStreamReader=b.AsyncRecordBatchFileReader=b.RecordBatchStreamReader=b.RecordBatchFileReader=b.RecordBatchReader=b.AsyncByteQueue=b.AsyncByteStream=b.ByteStream=b.Utf8Vector=b.SparseUnionVector=b.DenseUnionVector=b.UnionVector=b.TimeNanosecondVector=b.TimeMicrosecondVector=b.TimeMillisecondVector=b.TimeSecondVector=b.TimeVector=b.TimestampNanosecondVector=b.TimestampMicrosecondVector=b.TimestampMillisecondVector=b.TimestampSecondVector=b.TimestampVector=b.StructVector=b.NullVector=b.MapVector=b.ListVector=b.Uint64Vector=b.Uint32Vector=b.Uint16Vector=b.Uint8Vector=b.Int64Vector=b.Int32Vector=b.Int16Vector=b.Int8Vector=b.IntVector=b.IntervalYearMonthVector=b.IntervalDayTimeVector=b.IntervalVector=b.Float64Vector=b.Float32Vector=b.Float16Vector=b.FloatVector=b.FixedSizeListVector=b.FixedSizeBinaryVector=b.DictionaryVector=b.DecimalVector=b.DateMillisecondVector=b.DateDayVector=b.DateVector=b.Chunked=b.BoolVector=b.BinaryVector=b.BaseVector=b.Vector=b.Visitor=b.Field=b.Schema=b.Column=b.Table=b.Map_=b.FixedSizeList=b.IntervalYearMonth=b.IntervalDayTime=b.Interval=b.Dictionary=b.SparseUnion=b.DenseUnion=b.Union=b.Struct=b.List=b.Decimal=b.TimeNanosecond=b.TimeMicrosecond=b.TimeMillisecond=b.TimeSecond=b.Time=b.TimestampNanosecond=b.TimestampMicrosecond=b.TimestampMillisecond=b.TimestampSecond=b.Timestamp=b.DateMillisecond=b.DateDay=b.Date_=b.FixedSizeBinary=b.Binary=b.Utf8=b.Float64=b.Float32=b.Float16=b.Float=b.Uint64=b.Uint32=b.Uint16=b.Uint8=b.Int64=b.Int32=b.Int16=b.Int8=b.Int=b.Bool=b.Null=b.DataType=b.Data=b.BufferType=b.UnionMode=b.Type=b.TimeUnit=b.Precision=b.MetadataVersion=b.MessageHeader=b.IntervalUnit=b.DateUnit=void 0;var _U=ns(),bU=ta(),Cd=ks(),Pd=Sa(),gU=av(),vU=lv(),kd=dv(),Rd=fv();_U.default.toDOMStream=gU.toDOMStream;bU.Builder.throughDOM=vU.builderThroughDOMStream;Cd.RecordBatchReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Cd.RecordBatchFileReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Cd.RecordBatchStreamReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Pd.RecordBatchWriter.throughDOM=Rd.recordBatchWriterThroughDOMStream;Pd.RecordBatchFileWriter.throughDOM=Rd.recordBatchWriterThroughDOMStream;Pd.RecordBatchStreamWriter.throughDOM=Rd.recordBatchWriterThroughDOMStream;var D=vv();Object.defineProperty(b,"DateUnit",{enumerable:!0,get:function(){return D.DateUnit}});Object.defineProperty(b,"IntervalUnit",{enumerable:!0,get:function(){return D.IntervalUnit}});Object.defineProperty(b,"MessageHeader",{enumerable:!0,get:function(){return D.MessageHeader}});Object.defineProperty(b,"MetadataVersion",{enumerable:!0,get:function(){return D.MetadataVersion}});Object.defineProperty(b,"Precision",{enumerable:!0,get:function(){return D.Precision}});Object.defineProperty(b,"TimeUnit",{enumerable:!0,get:function(){return D.TimeUnit}});Object.defineProperty(b,"Type",{enumerable:!0,get:function(){return D.Type}});Object.defineProperty(b,"UnionMode",{enumerable:!0,get:function(){return D.UnionMode}});Object.defineProperty(b,"BufferType",{enumerable:!0,get:function(){return D.BufferType}});Object.defineProperty(b,"Data",{enumerable:!0,get:function(){return D.Data}});Object.defineProperty(b,"DataType",{enumerable:!0,get:function(){return D.DataType}});Object.defineProperty(b,"Null",{enumerable:!0,get:function(){return D.Null}});Object.defineProperty(b,"Bool",{enumerable:!0,get:function(){return D.Bool}});Object.defineProperty(b,"Int",{enumerable:!0,get:function(){return D.Int}});Object.defineProperty(b,"Int8",{enumerable:!0,get:function(){return D.Int8}});Object.defineProperty(b,"Int16",{enumerable:!0,get:function(){return D.Int16}});Object.defineProperty(b,"Int32",{enumerable:!0,get:function(){return D.Int32}});Object.defineProperty(b,"Int64",{enumerable:!0,get:function(){return D.Int64}});Object.defineProperty(b,"Uint8",{enumerable:!0,get:function(){return D.Uint8}});Object.defineProperty(b,"Uint16",{enumerable:!0,get:function(){return D.Uint16}});Object.defineProperty(b,"Uint32",{enumerable:!0,get:function(){return D.Uint32}});Object.defineProperty(b,"Uint64",{enumerable:!0,get:function(){return D.Uint64}});Object.defineProperty(b,"Float",{enumerable:!0,get:function(){return D.Float}});Object.defineProperty(b,"Float16",{enumerable:!0,get:function(){return D.Float16}});Object.defineProperty(b,"Float32",{enumerable:!0,get:function(){return D.Float32}});Object.defineProperty(b,"Float64",{enumerable:!0,get:function(){return D.Float64}});Object.defineProperty(b,"Utf8",{enumerable:!0,get:function(){return D.Utf8}});Object.defineProperty(b,"Binary",{enumerable:!0,get:function(){return D.Binary}});Object.defineProperty(b,"FixedSizeBinary",{enumerable:!0,get:function(){return D.FixedSizeBinary}});Object.defineProperty(b,"Date_",{enumerable:!0,get:function(){return D.Date_}});Object.defineProperty(b,"DateDay",{enumerable:!0,get:function(){return D.DateDay}});Object.defineProperty(b,"DateMillisecond",{enumerable:!0,get:function(){return D.DateMillisecond}});Object.defineProperty(b,"Timestamp",{enumerable:!0,get:function(){return D.Timestamp}});Object.defineProperty(b,"TimestampSecond",{enumerable:!0,get:function(){return D.TimestampSecond}});Object.defineProperty(b,"TimestampMillisecond",{enumerable:!0,get:function(){return D.TimestampMillisecond}});Object.defineProperty(b,"TimestampMicrosecond",{enumerable:!0,get:function(){return D.TimestampMicrosecond}});Object.defineProperty(b,"TimestampNanosecond",{enumerable:!0,get:function(){return D.TimestampNanosecond}});Object.defineProperty(b,"Time",{enumerable:!0,get:function(){return D.Time}});Object.defineProperty(b,"TimeSecond",{enumerable:!0,get:function(){return D.TimeSecond}});Object.defineProperty(b,"TimeMillisecond",{enumerable:!0,get:function(){return D.TimeMillisecond}});Object.defineProperty(b,"TimeMicrosecond",{enumerable:!0,get:function(){return D.TimeMicrosecond}});Object.defineProperty(b,"TimeNanosecond",{enumerable:!0,get:function(){return D.TimeNanosecond}});Object.defineProperty(b,"Decimal",{enumerable:!0,get:function(){return D.Decimal}});Object.defineProperty(b,"List",{enumerable:!0,get:function(){return D.List}});Object.defineProperty(b,"Struct",{enumerable:!0,get:function(){return D.Struct}});Object.defineProperty(b,"Union",{enumerable:!0,get:function(){return D.Union}});Object.defineProperty(b,"DenseUnion",{enumerable:!0,get:function(){return D.DenseUnion}});Object.defineProperty(b,"SparseUnion",{enumerable:!0,get:function(){return D.SparseUnion}});Object.defineProperty(b,"Dictionary",{enumerable:!0,get:function(){return D.Dictionary}});Object.defineProperty(b,"Interval",{enumerable:!0,get:function(){return D.Interval}});Object.defineProperty(b,"IntervalDayTime",{enumerable:!0,get:function(){return D.IntervalDayTime}});Object.defineProperty(b,"IntervalYearMonth",{enumerable:!0,get:function(){return D.IntervalYearMonth}});Object.defineProperty(b,"FixedSizeList",{enumerable:!0,get:function(){return D.FixedSizeList}});Object.defineProperty(b,"Map_",{enumerable:!0,get:function(){return D.Map_}});Object.defineProperty(b,"Table",{enumerable:!0,get:function(){return D.Table}});Object.defineProperty(b,"Column",{enumerable:!0,get:function(){return D.Column}});Object.defineProperty(b,"Schema",{enumerable:!0,get:function(){return D.Schema}});Object.defineProperty(b,"Field",{enumerable:!0,get:function(){return D.Field}});Object.defineProperty(b,"Visitor",{enumerable:!0,get:function(){return D.Visitor}});Object.defineProperty(b,"Vector",{enumerable:!0,get:function(){return D.Vector}});Object.defineProperty(b,"BaseVector",{enumerable:!0,get:function(){return D.BaseVector}});Object.defineProperty(b,"BinaryVector",{enumerable:!0,get:function(){return D.BinaryVector}});Object.defineProperty(b,"BoolVector",{enumerable:!0,get:function(){return D.BoolVector}});Object.defineProperty(b,"Chunked",{enumerable:!0,get:function(){return D.Chunked}});Object.defineProperty(b,"DateVector",{enumerable:!0,get:function(){return D.DateVector}});Object.defineProperty(b,"DateDayVector",{enumerable:!0,get:function(){return D.DateDayVector}});Object.defineProperty(b,"DateMillisecondVector",{enumerable:!0,get:function(){return D.DateMillisecondVector}});Object.defineProperty(b,"DecimalVector",{enumerable:!0,get:function(){return D.DecimalVector}});Object.defineProperty(b,"DictionaryVector",{enumerable:!0,get:function(){return D.DictionaryVector}});Object.defineProperty(b,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return D.FixedSizeBinaryVector}});Object.defineProperty(b,"FixedSizeListVector",{enumerable:!0,get:function(){return D.FixedSizeListVector}});Object.defineProperty(b,"FloatVector",{enumerable:!0,get:function(){return D.FloatVector}});Object.defineProperty(b,"Float16Vector",{enumerable:!0,get:function(){return D.Float16Vector}});Object.defineProperty(b,"Float32Vector",{enumerable:!0,get:function(){return D.Float32Vector}});Object.defineProperty(b,"Float64Vector",{enumerable:!0,get:function(){return D.Float64Vector}});Object.defineProperty(b,"IntervalVector",{enumerable:!0,get:function(){return D.IntervalVector}});Object.defineProperty(b,"IntervalDayTimeVector",{enumerable:!0,get:function(){return D.IntervalDayTimeVector}});Object.defineProperty(b,"IntervalYearMonthVector",{enumerable:!0,get:function(){return D.IntervalYearMonthVector}});Object.defineProperty(b,"IntVector",{enumerable:!0,get:function(){return D.IntVector}});Object.defineProperty(b,"Int8Vector",{enumerable:!0,get:function(){return D.Int8Vector}});Object.defineProperty(b,"Int16Vector",{enumerable:!0,get:function(){return D.Int16Vector}});Object.defineProperty(b,"Int32Vector",{enumerable:!0,get:function(){return D.Int32Vector}});Object.defineProperty(b,"Int64Vector",{enumerable:!0,get:function(){return D.Int64Vector}});Object.defineProperty(b,"Uint8Vector",{enumerable:!0,get:function(){return D.Uint8Vector}});Object.defineProperty(b,"Uint16Vector",{enumerable:!0,get:function(){return D.Uint16Vector}});Object.defineProperty(b,"Uint32Vector",{enumerable:!0,get:function(){return D.Uint32Vector}});Object.defineProperty(b,"Uint64Vector",{enumerable:!0,get:function(){return D.Uint64Vector}});Object.defineProperty(b,"ListVector",{enumerable:!0,get:function(){return D.ListVector}});Object.defineProperty(b,"MapVector",{enumerable:!0,get:function(){return D.MapVector}});Object.defineProperty(b,"NullVector",{enumerable:!0,get:function(){return D.NullVector}});Object.defineProperty(b,"StructVector",{enumerable:!0,get:function(){return D.StructVector}});Object.defineProperty(b,"TimestampVector",{enumerable:!0,get:function(){return D.TimestampVector}});Object.defineProperty(b,"TimestampSecondVector",{enumerable:!0,get:function(){return D.TimestampSecondVector}});Object.defineProperty(b,"TimestampMillisecondVector",{enumerable:!0,get:function(){return D.TimestampMillisecondVector}});Object.defineProperty(b,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return D.TimestampMicrosecondVector}});Object.defineProperty(b,"TimestampNanosecondVector",{enumerable:!0,get:function(){return D.TimestampNanosecondVector}});Object.defineProperty(b,"TimeVector",{enumerable:!0,get:function(){return D.TimeVector}});Object.defineProperty(b,"TimeSecondVector",{enumerable:!0,get:function(){return D.TimeSecondVector}});Object.defineProperty(b,"TimeMillisecondVector",{enumerable:!0,get:function(){return D.TimeMillisecondVector}});Object.defineProperty(b,"TimeMicrosecondVector",{enumerable:!0,get:function(){return D.TimeMicrosecondVector}});Object.defineProperty(b,"TimeNanosecondVector",{enumerable:!0,get:function(){return D.TimeNanosecondVector}});Object.defineProperty(b,"UnionVector",{enumerable:!0,get:function(){return D.UnionVector}});Object.defineProperty(b,"DenseUnionVector",{enumerable:!0,get:function(){return D.DenseUnionVector}});Object.defineProperty(b,"SparseUnionVector",{enumerable:!0,get:function(){return D.SparseUnionVector}});Object.defineProperty(b,"Utf8Vector",{enumerable:!0,get:function(){return D.Utf8Vector}});Object.defineProperty(b,"ByteStream",{enumerable:!0,get:function(){return D.ByteStream}});Object.defineProperty(b,"AsyncByteStream",{enumerable:!0,get:function(){return D.AsyncByteStream}});Object.defineProperty(b,"AsyncByteQueue",{enumerable:!0,get:function(){return D.AsyncByteQueue}});Object.defineProperty(b,"RecordBatchReader",{enumerable:!0,get:function(){return D.RecordBatchReader}});Object.defineProperty(b,"RecordBatchFileReader",{enumerable:!0,get:function(){return D.RecordBatchFileReader}});Object.defineProperty(b,"RecordBatchStreamReader",{enumerable:!0,get:function(){return D.RecordBatchStreamReader}});Object.defineProperty(b,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return D.AsyncRecordBatchFileReader}});Object.defineProperty(b,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return D.AsyncRecordBatchStreamReader}});Object.defineProperty(b,"RecordBatchWriter",{enumerable:!0,get:function(){return D.RecordBatchWriter}});Object.defineProperty(b,"RecordBatchFileWriter",{enumerable:!0,get:function(){return D.RecordBatchFileWriter}});Object.defineProperty(b,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return D.RecordBatchStreamWriter}});Object.defineProperty(b,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return D.RecordBatchJSONWriter}});Object.defineProperty(b,"MessageReader",{enumerable:!0,get:function(){return D.MessageReader}});Object.defineProperty(b,"AsyncMessageReader",{enumerable:!0,get:function(){return D.AsyncMessageReader}});Object.defineProperty(b,"JSONMessageReader",{enumerable:!0,get:function(){return D.JSONMessageReader}});Object.defineProperty(b,"Message",{enumerable:!0,get:function(){return D.Message}});Object.defineProperty(b,"RecordBatch",{enumerable:!0,get:function(){return D.RecordBatch}});Object.defineProperty(b,"DataFrame",{enumerable:!0,get:function(){return D.DataFrame}});Object.defineProperty(b,"FilteredDataFrame",{enumerable:!0,get:function(){return D.FilteredDataFrame}});Object.defineProperty(b,"CountByResult",{enumerable:!0,get:function(){return D.CountByResult}});Object.defineProperty(b,"predicate",{enumerable:!0,get:function(){return D.predicate}});Object.defineProperty(b,"util",{enumerable:!0,get:function(){return D.util}});Object.defineProperty(b,"Builder",{enumerable:!0,get:function(){return D.Builder}});Object.defineProperty(b,"BinaryBuilder",{enumerable:!0,get:function(){return D.BinaryBuilder}});Object.defineProperty(b,"BoolBuilder",{enumerable:!0,get:function(){return D.BoolBuilder}});Object.defineProperty(b,"DateBuilder",{enumerable:!0,get:function(){return D.DateBuilder}});Object.defineProperty(b,"DateDayBuilder",{enumerable:!0,get:function(){return D.DateDayBuilder}});Object.defineProperty(b,"DateMillisecondBuilder",{enumerable:!0,get:function(){return D.DateMillisecondBuilder}});Object.defineProperty(b,"DecimalBuilder",{enumerable:!0,get:function(){return D.DecimalBuilder}});Object.defineProperty(b,"DictionaryBuilder",{enumerable:!0,get:function(){return D.DictionaryBuilder}});Object.defineProperty(b,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return D.FixedSizeBinaryBuilder}});Object.defineProperty(b,"FixedSizeListBuilder",{enumerable:!0,get:function(){return D.FixedSizeListBuilder}});Object.defineProperty(b,"FloatBuilder",{enumerable:!0,get:function(){return D.FloatBuilder}});Object.defineProperty(b,"Float16Builder",{enumerable:!0,get:function(){return D.Float16Builder}});Object.defineProperty(b,"Float32Builder",{enumerable:!0,get:function(){return D.Float32Builder}});Object.defineProperty(b,"Float64Builder",{enumerable:!0,get:function(){return D.Float64Builder}});Object.defineProperty(b,"IntervalBuilder",{enumerable:!0,get:function(){return D.IntervalBuilder}});Object.defineProperty(b,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return D.IntervalDayTimeBuilder}});Object.defineProperty(b,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return D.IntervalYearMonthBuilder}});Object.defineProperty(b,"IntBuilder",{enumerable:!0,get:function(){return D.IntBuilder}});Object.defineProperty(b,"Int8Builder",{enumerable:!0,get:function(){return D.Int8Builder}});Object.defineProperty(b,"Int16Builder",{enumerable:!0,get:function(){return D.Int16Builder}});Object.defineProperty(b,"Int32Builder",{enumerable:!0,get:function(){return D.Int32Builder}});Object.defineProperty(b,"Int64Builder",{enumerable:!0,get:function(){return D.Int64Builder}});Object.defineProperty(b,"Uint8Builder",{enumerable:!0,get:function(){return D.Uint8Builder}});Object.defineProperty(b,"Uint16Builder",{enumerable:!0,get:function(){return D.Uint16Builder}});Object.defineProperty(b,"Uint32Builder",{enumerable:!0,get:function(){return D.Uint32Builder}});Object.defineProperty(b,"Uint64Builder",{enumerable:!0,get:function(){return D.Uint64Builder}});Object.defineProperty(b,"ListBuilder",{enumerable:!0,get:function(){return D.ListBuilder}});Object.defineProperty(b,"MapBuilder",{enumerable:!0,get:function(){return D.MapBuilder}});Object.defineProperty(b,"NullBuilder",{enumerable:!0,get:function(){return D.NullBuilder}});Object.defineProperty(b,"StructBuilder",{enumerable:!0,get:function(){return D.StructBuilder}});Object.defineProperty(b,"TimestampBuilder",{enumerable:!0,get:function(){return D.TimestampBuilder}});Object.defineProperty(b,"TimestampSecondBuilder",{enumerable:!0,get:function(){return D.TimestampSecondBuilder}});Object.defineProperty(b,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return D.TimestampMillisecondBuilder}});Object.defineProperty(b,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return D.TimestampMicrosecondBuilder}});Object.defineProperty(b,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return D.TimestampNanosecondBuilder}});Object.defineProperty(b,"TimeBuilder",{enumerable:!0,get:function(){return D.TimeBuilder}});Object.defineProperty(b,"TimeSecondBuilder",{enumerable:!0,get:function(){return D.TimeSecondBuilder}});Object.defineProperty(b,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return D.TimeMillisecondBuilder}});Object.defineProperty(b,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return D.TimeMicrosecondBuilder}});Object.defineProperty(b,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return D.TimeNanosecondBuilder}});Object.defineProperty(b,"UnionBuilder",{enumerable:!0,get:function(){return D.UnionBuilder}});Object.defineProperty(b,"DenseUnionBuilder",{enumerable:!0,get:function(){return D.DenseUnionBuilder}});Object.defineProperty(b,"SparseUnionBuilder",{enumerable:!0,get:function(){return D.SparseUnionBuilder}});Object.defineProperty(b,"Utf8Builder",{enumerable:!0,get:function(){return D.Utf8Builder}})});var au=V(()=>{});var zd=V(()=>{});var Bv=V(()=>{});var BU={};SS(BU,{BROWSER_RUNTIME:()=>nt,ConsoleLogger:()=>Ay,DEFAULT_RUNTIME:()=>wv,DuckDB:()=>Sv,DuckDBBindings:()=>ou,DuckDBConnection:()=>nu,DuckDBDataProtocol:()=>Qe,DuckDBFeature:()=>Ed,FileStatistics:()=>su,InsertMode:()=>qd,JSONTableShape:()=>Ld,LogEvent:()=>br,LogLevel:()=>Nr,LogOrigin:()=>xr,LogTopic:()=>Bi,StatusCode:()=>je,VoidLogger:()=>Oy,callSRet:()=>Se,copyBuffer:()=>Gi,decodeText:()=>jv,dropResponseBuffers:()=>He,failWith:()=>We,getLogEventLabel:()=>AS,getLogLevelLabel:()=>OS,getLogOriginLabel:()=>MS,getLogTopicLabel:()=>FS,readString:()=>ve});var Nr;(function(s){s[s.NONE=0]="NONE",s[s.DEBUG=1]="DEBUG",s[s.INFO=2]="INFO",s[s.WARNING=3]="WARNING",s[s.ERROR=4]="ERROR"})(Nr||(Nr={}));var Bi;(function(s){s[s.NONE=0]="NONE",s[s.CONNECT=1]="CONNECT",s[s.DISCONNECT=2]="DISCONNECT",s[s.OPEN=3]="OPEN",s[s.QUERY=4]="QUERY"})(Bi||(Bi={}));var br;(function(c){c[c.NONE=0]="NONE",c[c.OK=1]="OK",c[c.ERROR=2]="ERROR",c[c.START=3]="START",c[c.RUN=4]="RUN",c[c.CAPTURE=5]="CAPTURE"})(br||(br={}));var xr;(function(s){s[s.NONE=0]="NONE",s[s.WEB_WORKER=1]="WEB_WORKER",s[s.NODE_WORKER=2]="NODE_WORKER",s[s.BINDINGS=3]="BINDINGS",s[s.ASYNC_DUCKDB=4]="ASYNC_DUCKDB"})(xr||(xr={}));var Oy=class{log(e){}},Ay=class{log(e){console.log(e)}};function OS(r){switch(r){case 0:return"NONE";case 1:return"DEBUG";case 2:return"INFO";case 3:return"WARNING";case 4:return"ERROR";default:return"?"}}function AS(r){switch(r){case 0:return"NONE";case 1:return"OK";case 2:return"ERROR";case 3:return"START";case 4:return"RUN";case 5:return"CAPTURE";default:return"?"}}function FS(r){switch(r){case 1:return"CONNECT";case 2:return"DISCONNECT";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function MS(r){switch(r){case 0:return"NONE";case 1:return"WEB WORKER";case 2:return"NODE WORKER";case 3:return"DUCKDB BINDINGS";case 4:return"DUCKDB";default:return"?"}}var je;(function(e){e[e.SUCCESS=0]="SUCCESS"})(je||(je={}));var Rt=Dy(Nd()),xd=class{constructor(e,t,i){this.bindings=e;this.conn=t;this.header=i;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=e.length==0,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},nu=class{constructor(e,t){this._bindings=e,this._conn=t}get handle(){return this._conn}close(){this._bindings.disconnect(this._conn)}runQuery(e){let t=this._bindings.runQuery(this._conn,e),i=Rt.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),Rt.Table.from(i)}sendQuery(e){let t=this._bindings.sendQuery(this._conn,e),i=new xd(this._bindings,this._conn,t),n=Rt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}createPreparedStatement(e){return this._bindings.createPreparedStatement(this._conn,e)}closePreparedStatement(e){this._bindings.closePreparedStatement(this._conn,e)}runPreparedStatement(e,t){let i=this._bindings.runPreparedStatement(this._conn,e,t),n=Rt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isFile()),Rt.Table.from(n)}sendPreparedStatement(e,t){let i=this._bindings.sendPreparedStatement(this._conn,e,t),n=new xd(this._bindings,this._conn,i),s=Rt.RecordBatchReader.from(n);return console.assert(s.isSync()),console.assert(s.isStream()),s}insertArrowTable(e,t){e.schema.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually"),this.insertArrowBatches(e.schema,e.chunks,t)}insertArrowBatches(e,t,i){e.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");let n=new Rt.AsyncByteQueue,s=new Rt.RecordBatchStreamWriter().reset(n,e);s.writeAll(t),s.close();let c=s.toUint8Array(!0);this._bindings.insertArrowFromIPCStream(this._conn,c,i)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}};function jU(){let r=new TextDecoder;return e=>(typeof SharedArrayBuffer!="undefined"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),r.decode(e))}var jv=jU();function We(r,e){console.error(e),r.ccall("duckdb_web_fail_with",null,["string"],[e])}function Gi(r,e,t){let i=r.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function ve(r,e,t){return jv(r.HEAPU8.subarray(e,e+t))}var Qe;(function(i){i[i.BUFFER=0]="BUFFER",i[i.NATIVE=1]="NATIVE",i[i.HTTP=3]="HTTP"})(Qe||(Qe={}));function Se(r,e,t,i){let n=r.stackSave(),s=r.stackAlloc(3*8);t.unshift("number"),i.unshift(s),r.ccall(e,null,t,i);let c=r.HEAPF64[(s>>3)+0],v=r.HEAPF64[(s>>3)+1],I=r.HEAPF64[(s>>3)+2];return r.stackRestore(n),[c,v,I]}function He(r){r.ccall("duckdb_web_clear_response",null,[],[])}var wv={testPlatformFeature:(r,e)=>!1,openFile:(r,e)=>{},syncFile:(r,e)=>{},closeFile:(r,e)=>{},getLastFileModificationTime:(r,e)=>0,getFileSize:(r,e)=>0,truncateFile:(r,e,t)=>{},readFile:(r,e,t,i,n)=>0,writeFile:(r,e,t,i,n)=>0,removeDirectory:(r,e,t)=>{},checkDirectory:(r,e,t)=>!1,createDirectory:(r,e,t)=>{},listDirectoryEntries:(r,e,t)=>!1,glob:(r,e,t)=>{},moveFile:(r,e,t,i,n)=>{},checkFile:(r,e,t)=>!1,removeFile:(r,e,t)=>{}};var su=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),i=new Uint8Array(new ArrayBuffer(e.byteLength));i.set(e.subarray(7*8)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=i}getBlockStats(e,t){return t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},t.file_writes=this.blockStats[e*3+0]&15,t.file_reads_cold=this.blockStats[e*3+0]>>4,t.file_reads_ahead=this.blockStats[e*3+1]&15,t.file_reads_cached=this.blockStats[e*3+1]>>4,t.page_accesses=this.blockStats[e*3+1]&15,t.page_loads=this.blockStats[e*3+1]>>4,t}};var de=Dy(Nd());function Ws(r,e){switch(e.typeId){case de.Type.Binary:return{name:r,type:"binary"};case de.Type.Bool:return{name:r,type:"bool"};case de.Type.Date:return{name:r,type:"date"};case de.Type.DateDay:return{name:r,type:"date32[d]"};case de.Type.DateMillisecond:return{name:r,type:"date64[ms]"};case de.Type.Decimal:{let t=e;return{name:r,type:"decimal",precision:t.precision,scale:t.scale}}case de.Type.Float:return{name:r,type:"float"};case de.Type.Float16:return{name:r,type:"float16"};case de.Type.Float32:return{name:r,type:"float32"};case de.Type.Float64:return{name:r,type:"float64"};case de.Type.Int:return{name:r,type:"int32"};case de.Type.Int16:return{name:r,type:"int16"};case de.Type.Int32:return{name:r,type:"int32"};case de.Type.Int64:return{name:r,type:"int64"};case de.Type.Uint16:return{name:r,type:"uint16"};case de.Type.Uint32:return{name:r,type:"uint32"};case de.Type.Uint64:return{name:r,type:"uint64"};case de.Type.Uint8:return{name:r,type:"uint8"};case de.Type.IntervalDayTime:return{name:r,type:"interval[dt]"};case de.Type.IntervalYearMonth:return{name:r,type:"interval[m]"};case de.Type.List:{let t=e;return{name:r,type:"list",children:[Ws(t.valueField.name,t.valueField.type)]}}case de.Type.FixedSizeBinary:return{name:r,type:"fixedsizebinary",byteWidth:e.byteWidth};case de.Type.Null:return{name:r,type:"null"};case de.Type.Utf8:return{name:r,type:"utf8"};case de.Type.Struct:return{name:r,type:"struct",children:e.children.map(i=>Ws(i.name,i.type))};case de.Type.Time:return{name:r,type:"time[s]"};case de.Type.TimeMicrosecond:return{name:r,type:"time[us]"};case de.Type.TimeMillisecond:return{name:r,type:"time[ms]"};case de.Type.TimeNanosecond:return{name:r,type:"time[ns]"};case de.Type.TimeSecond:return{name:r,type:"time[s]"};case de.Type.Timestamp:return{name:r,type:"timestamp",timezone:e.timezone||void 0};case de.Type.TimestampSecond:return{name:r,type:"timestamp[s]",timezone:e.timezone||void 0};case de.Type.TimestampMicrosecond:return{name:r,type:"timestamp[us]",timezone:e.timezone||void 0};case de.Type.TimestampNanosecond:return{name:r,type:"timestamp[ns]",timezone:e.timezone||void 0};case de.Type.TimestampMillisecond:return{name:r,type:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error(`unsupported arrow type: ${e.toString()}`)}var Ed;(function(s){s[s.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",s[s.WASM_THREADS=2]="WASM_THREADS",s[s.WASM_SIMD=4]="WASM_SIMD",s[s.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",s[s.EMIT_BIGINT=16]="EMIT_BIGINT"})(Ed||(Ed={}));var ou=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this._logger=e,this._runtime=t}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(){return this._instance!=null?this:(this._initPromise!=null&&await this._initPromise,this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this)}open(e){let[t,i,n]=Se(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));He(this.mod)}reset(){let[e,t,i]=Se(this.mod,"duckdb_web_reset",[],[]);if(e!==je.SUCCESS)throw new Error(ve(this.mod,t,i));He(this.mod)}getVersion(){let[e,t,i]=Se(this.mod,"duckdb_web_get_version",[],[]);if(e!==je.SUCCESS)throw new Error(ve(this.mod,t,i));let n=ve(this.mod,t,i);return He(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,i,n]=Se(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));let s=ve(this.mod,i,n);return He(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new nu(this,e)}disconnect(e){this.mod.ccall("duckdb_web_disconnect",null,["number"],[e])}runQuery(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));let c=Gi(this.mod,n,s);return He(this.mod),c}sendQuery(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));let c=Gi(this.mod,n,s);return He(this.mod),c}fetchQueryResults(e){let[t,i,n]=Se(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));let s=Gi(this.mod,i,n);return He(this.mod),s}createPreparedStatement(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_prepared_statement_create",["number","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));return He(this.mod),n}closePreparedStatement(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_prepared_statement_close",["number","number"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));He(this.mod)}runPreparedStatement(e,t,i){let[n,s,c]=Se(this.mod,"duckdb_web_prepared_statement_run",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==je.SUCCESS)throw new Error(ve(this.mod,s,c));let v=Gi(this.mod,s,c);return He(this.mod),v}sendPreparedStatement(e,t,i){let[n,s,c]=Se(this.mod,"duckdb_web_prepared_statement_send",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==je.SUCCESS)throw new Error(ve(this.mod,s,c));let v=Gi(this.mod,s,c);return He(this.mod),v}insertArrowFromIPCStream(e,t,i){let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let c=i?JSON.stringify(i):"",[v,I,S]=Se(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,c]);if(v!==je.SUCCESS)throw new Error(ve(this.mod,I,S))}insertCSVFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let S in i.columns)i.columnsFlat.push(Ws(S,i.columns[S]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[c,v,I]=Se(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,s]);if(c!==je.SUCCESS)throw new Error(ve(this.mod,v,I))}insertJSONFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let S in i.columns)i.columnsFlat.push(Ws(S,i.columns[S]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[c,v,I]=Se(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,s]);if(c!==je.SUCCESS)throw new Error(ve(this.mod,v,I))}finishInsert(e,t){}registerFileURL(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));He(this.mod)}registerFileBuffer(e,t){let i=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(i,i+t.length).set(t);let[s,c,v]=Se(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,i,t.length]);if(s!==je.SUCCESS)throw new Error(ve(this.mod,c,v));He(this.mod)}registerFileHandle(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,e]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));if(He(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let c of this.pthread.runningWorkers)c.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let c of this.pthread.unusedWorkers)c.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){return this.mod.ccall("duckdb_web_fs_drop_file","boolean",["string"],[e])}dropFiles(){this.mod.ccall("duckdb_web_fs_drop_files",null,[],[])}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));He(this.mod)}copyFileToBuffer(e){let[t,i,n]=Se(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));let s=this.mod.HEAPU8.subarray(i,i+n),c=new Uint8Array(s.length);return c.set(s),He(this.mod),c}collectFileStatistics(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s))}exportFileStatistics(e){let[t,i,n]=Se(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));return new su(this.mod.HEAPU8.subarray(i,i+n))}};var Ld;(function(t){t.ROW_ARRAY="row-array",t.COLUMN_OBJECT="column-object"})(Ld||(Ld={}));var qd;(function(t){t[t.APPEND=0]="APPEND",t[t.IMPORT=1]="IMPORT"})(qd||(qd={}));var Iv={},wU=function(){var r=Iv.url;return function(e){e=e||{};var t=typeof e!="undefined"?e:{},i,n;t.ready=new Promise(function(o,a){i=o,n=a});var s={},c;for(c in t)t.hasOwnProperty(c)&&(s[c]=t[c]);var v=[],I="./this.program",S=function(o,a){throw a},U=typeof window=="object",G=typeof importScripts=="function",me=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",fe="";function Gt(o){return t.locateFile?t.locateFile(o,fe):fe+o}var Cr,_r,Ji,Dv,Ki,Zi;me?(G?fe=au().dirname(fe)+"/":fe=__dirname+"/",Cr=function(a,u){return Ki||(Ki=zd()),Zi||(Zi=au()),a=Zi.normalize(a),Ki.readFileSync(a,u?null:"utf8")},Ji=function(a){var u=Cr(a,!0);return u.buffer||(u=new Uint8Array(u)),$d(u.buffer),u},_r=function(a,u,l){Ki||(Ki=zd()),Zi||(Zi=au()),a=Zi.normalize(a),Ki.readFile(a,function(d,f){d?l(d):u(f.buffer)})},process.argv.length>1&&(I=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(o){if(!(o instanceof mu))throw o}),process.on("unhandledRejection",Nt),S=function(o,a){if(nf())throw process.exitCode=o,a;process.exit(o)},t.inspect=function(){return"[Emscripten Module object]"}):(U||G)&&(G?fe=self.location.href:typeof document!="undefined"&&document.currentScript&&(fe=document.currentScript.src),r&&(fe=r),fe.indexOf("blob:")!==0?fe=fe.substr(0,fe.lastIndexOf("/")+1):fe="",Cr=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.send(null),a.responseText},G&&(Ji=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.responseType="arraybuffer",a.send(null),new Uint8Array(a.response)}),_r=function(o,a,u){var l=new XMLHttpRequest;l.open("GET",o,!0),l.responseType="arraybuffer",l.onload=function(){if(l.status==200||l.status==0&&l.response){a(l.response);return}u()},l.onerror=u,l.send(null)},Dv=function(o){document.title=o});var Ov=t.print||console.log.bind(console),Pr=t.printErr||console.warn.bind(console);for(c in s)s.hasOwnProperty(c)&&(t[c]=s[c]);s=null,t.arguments&&(v=t.arguments),t.thisProgram&&(I=t.thisProgram),t.quit&&(S=t.quit);var Hd=0,ht=function(o){Hd=o},Av=function(){return Hd},es;t.wasmBinary&&(es=t.wasmBinary);var Fv=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Nt("no native wasm support detected");var Hs,uu=!1,Yd;function $d(o,a){o||Nt("Assertion failed: "+a)}function Mv(o){var a=t["_"+o];return $d(a,"Cannot call unknown function "+o+", make sure it is exported"),a}function Vv(o,a,u,l,d){var f={string:function(M){var x=0;if(M!=null&&M!==0){var ue=(M.length<<2)+1;x=hu(ue),Uv(M,x,ue)}return x},array:function(M){var x=hu(M.length);return Zd(M,x),x}};function h(M){return a==="string"?Ys(M):a==="boolean"?Boolean(M):M}var p=Mv(o),y=[],m=0;if(l)for(var g=0;g<l.length;g++){var j=f[u[g]];j?(m===0&&(m=w()),y[g]=j(l[g])):y[g]=l[g]}var O=p.apply(null,y);return O=h(O),m!==0&&B(m),O}var Gd=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function Jd(o,a,u){for(var l=a+u,d=a;o[d]&&!(d>=l);)++d;if(d-a>16&&o.subarray&&Gd)return Gd.decode(o.subarray(a,d));for(var f="";a<d;){var h=o[a++];if(!(h&128)){f+=String.fromCharCode(h);continue}var p=o[a++]&63;if((h&224)==192){f+=String.fromCharCode((h&31)<<6|p);continue}var y=o[a++]&63;if((h&240)==224?h=(h&15)<<12|p<<6|y:h=(h&7)<<18|p<<12|y<<6|o[a++]&63,h<65536)f+=String.fromCharCode(h);else{var m=h-65536;f+=String.fromCharCode(55296|m>>10,56320|m&1023)}}return f}function Ys(o,a){return o?Jd(Xi,o,a):""}function Kd(o,a,u,l){if(!(l>0))return 0;for(var d=u,f=u+l-1,h=0;h<o.length;++h){var p=o.charCodeAt(h);if(p>=55296&&p<=57343){var y=o.charCodeAt(++h);p=65536+((p&1023)<<10)|y&1023}if(p<=127){if(u>=f)break;a[u++]=p}else if(p<=2047){if(u+1>=f)break;a[u++]=192|p>>6,a[u++]=128|p&63}else if(p<=65535){if(u+2>=f)break;a[u++]=224|p>>12,a[u++]=128|p>>6&63,a[u++]=128|p&63}else{if(u+3>=f)break;a[u++]=240|p>>18,a[u++]=128|p>>12&63,a[u++]=128|p>>6&63,a[u++]=128|p&63}}return a[u]=0,u-d}function Uv(o,a,u){return Kd(o,Xi,a,u)}function Cv(o){for(var a=0,u=0;u<o.length;++u){var l=o.charCodeAt(u);l>=55296&&l<=57343&&(l=65536+((l&1023)<<10)|o.charCodeAt(++u)&1023),l<=127?++a:l<=2047?a+=2:l<=65535?a+=3:a+=4}return a}function Zd(o,a){Jt.set(o,a)}function Pv(o,a,u){for(var l=0;l<o.length;++l)Jt[a++>>0]=o.charCodeAt(l);u||(Jt[a>>0]=0)}function kv(o,a){return o%a>0&&(o+=a-o%a),o}var Xd,Jt,Xi,Rv,Nv,ae,xv,Ev,Lv;function Qd(o){Xd=o,t.HEAP8=Jt=new Int8Array(o),t.HEAP16=Rv=new Int16Array(o),t.HEAP32=ae=new Int32Array(o),t.HEAPU8=Xi=new Uint8Array(o),t.HEAPU16=Nv=new Uint16Array(o),t.HEAPU32=xv=new Uint32Array(o),t.HEAPF32=Ev=new Float32Array(o),t.HEAPF64=Lv=new Float64Array(o)}var TU=t.INITIAL_MEMORY||16777216,H,ef=[],tf=[],qv=[],rf=[],zv=!1,Wv=!1,Hv=0;function nf(){return Fv||Hv>0}function Yv(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Zv(t.preRun.shift());$s(ef)}function $v(){zv=!0,$s(tf)}function Gv(){$s(qv)}function Jv(){Wv=!0}function Kv(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Qv(t.postRun.shift());$s(rf)}function Zv(o){ef.unshift(o)}function Xv(o){tf.unshift(o)}function Qv(o){rf.unshift(o)}var ji=0,cu=null,ts=null;function ej(o){ji++,t.monitorRunDependencies&&t.monitorRunDependencies(ji)}function tj(o){if(ji--,t.monitorRunDependencies&&t.monitorRunDependencies(ji),ji==0&&(cu!==null&&(clearInterval(cu),cu=null),ts)){var a=ts;ts=null,a()}}t.preloadedImages={},t.preloadedAudios={};function Nt(o){t.onAbort&&t.onAbort(o),o+="",Pr(o),uu=!0,Yd=1,o="abort("+o+"). Build with -s ASSERTIONS=1 for more info.";var a=new WebAssembly.RuntimeError(o);throw n(a),a}var rj="data:application/octet-stream;base64,";function sf(o){return o.startsWith(rj)}var _t;t.locateFile?(_t="duckdb_wasm.wasm",sf(_t)||(_t=Gt(_t))):_t=new URL("duckdb_wasm.wasm",Iv.url).toString();function of(o){try{if(o==_t&&es)return new Uint8Array(es);if(Ji)return Ji(o);throw"both async and sync fetching of the wasm failed"}catch(a){Nt(a)}}function ij(){return!es&&(U||G)&&typeof fetch=="function"?fetch(_t,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+_t+"'";return o.arrayBuffer()}).catch(function(){return of(_t)}):Promise.resolve().then(function(){return of(_t)})}function nj(){var o={a:B0};function a(h,p){var y=h.exports;t.asm=y,Hs=t.asm.xe,Qd(Hs.buffer),H=t.asm.Ae,Xv(t.asm.ye),tj("wasm-instantiate")}ej("wasm-instantiate");function u(h){a(h.instance)}function l(h){return ij().then(function(p){var y=WebAssembly.instantiate(p,o);return y}).then(h,function(p){Pr("failed to asynchronously prepare wasm: "+p),Nt(p)})}function d(){return!es&&typeof WebAssembly.instantiateStreaming=="function"&&!sf(_t)&&typeof fetch=="function"?fetch(_t,{credentials:"same-origin"}).then(function(h){var p=WebAssembly.instantiateStreaming(h,o);return p.then(u,function(y){return Pr("wasm streaming compile failed: "+y),Pr("falling back to ArrayBuffer instantiation"),l(u)})}):l(u)}if(t.instantiateWasm)try{var f=t.instantiateWasm(o,a);return f}catch(h){return Pr("Module.instantiateWasm callback failed with error: "+h),!1}return d().catch(n),{}}function $s(o){for(;o.length>0;){var a=o.shift();if(typeof a=="function"){a(t);continue}var u=a.func;typeof u=="number"?a.arg===void 0?H.get(u)():H.get(u)(a.arg):u(a.arg===void 0?null:a.arg)}}function sj(o){return pu(o+16)+16}function Qi(o){this.excPtr=o,this.ptr=o-16,this.set_type=function(a){ae[this.ptr+4>>2]=a},this.get_type=function(){return ae[this.ptr+4>>2]},this.set_destructor=function(a){ae[this.ptr+8>>2]=a},this.get_destructor=function(){return ae[this.ptr+8>>2]},this.set_refcount=function(a){ae[this.ptr>>2]=a},this.set_caught=function(a){a=a?1:0,Jt[this.ptr+12>>0]=a},this.get_caught=function(){return Jt[this.ptr+12>>0]!=0},this.set_rethrown=function(a){a=a?1:0,Jt[this.ptr+13>>0]=a},this.get_rethrown=function(){return Jt[this.ptr+13>>0]!=0},this.init=function(a,u){this.set_type(a),this.set_destructor(u),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var a=ae[this.ptr>>2];ae[this.ptr>>2]=a+1},this.release_ref=function(){var a=ae[this.ptr>>2];return ae[this.ptr>>2]=a-1,a===1}}function rs(o){this.free=function(){yu(this.ptr),this.ptr=0},this.set_base_ptr=function(a){ae[this.ptr>>2]=a},this.get_base_ptr=function(){return ae[this.ptr>>2]},this.set_adjusted_ptr=function(a){ae[this.ptr+4>>2]=a},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return ae[this.ptr+4>>2]},this.get_exception_ptr=function(){var a=cf(this.get_exception_info().get_type());if(a)return ae[this.get_base_ptr()>>2];var u=this.get_adjusted_ptr();return u!==0?u:this.get_base_ptr()},this.get_exception_info=function(){return new Qi(this.get_base_ptr())},o===void 0?(this.ptr=pu(8),this.set_adjusted_ptr(0)):this.ptr=o}var Gs=[];function oj(o){o.add_ref()}var Js=0;function aj(o){var a=new rs(o),u=a.get_exception_info();return u.get_caught()||(u.set_caught(!0),Js--),u.set_rethrown(!1),Gs.push(a),oj(u),a.get_exception_ptr()}var kr=0;function af(o){return yu(new Qi(o).ptr)}function uj(o){if(o.release_ref()&&!o.get_rethrown()){var a=o.get_destructor();a&&H.get(a)(o.excPtr),af(o.excPtr)}}function cj(){T(0);var o=Gs.pop();uj(o.get_exception_info()),o.free(),kr=0}function lj(o){var a=new rs(o),u=a.get_base_ptr();throw kr||(kr=u),a.free(),u}function dj(){var o=kr;if(!o)return ht(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return ht(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(to(h,u,l.get_adjusted_ptr_addr()))return ht(h),l.ptr|0}return ht(u),l.ptr|0}function fj(){var o=kr;if(!o)return ht(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return ht(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(to(h,u,l.get_adjusted_ptr_addr()))return ht(h),l.ptr|0}return ht(u),l.ptr|0}function hj(){var o=kr;if(!o)return ht(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return ht(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(to(h,u,l.get_adjusted_ptr_addr()))return ht(h),l.ptr|0}return ht(u),l.ptr|0}function pj(){var o=Gs.pop();o||Nt("no exception to throw");var a=o.get_exception_info(),u=o.get_base_ptr();throw a.get_rethrown()?o.free():(Gs.push(o),a.set_rethrown(!0),a.set_caught(!1),Js++),kr=u,u}function yj(o,a,u){var l=new Qi(o);throw l.init(a,u),kr=o,Js++,o}function mj(){return Js}var Je={mappings:{},buffers:[null,[],[]],printChar:function(o,a){var u=Je.buffers[o];a===0||a===10?((o===1?Ov:Pr)(Jd(u,0)),u.length=0):u.push(a)},varargs:void 0,get:function(){Je.varargs+=4;var o=ae[Je.varargs-4>>2];return o},getStr:function(o){var a=Ys(o);return a},get64:function(o,a){return o}};function _j(o,a){return o=Je.getStr(o),Je.doAccess(o,a)}function bj(o){return ae[uf()>>2]=o,o}function gj(o,a,u){return Je.varargs=u,0}function vj(o,a){}function jj(o,a,u,l){}function wj(o,a,u){}function Bj(){return 42}function Tj(o,a,u){return Je.varargs=u,0}var Ij=function(o,a,u){return Pr("warning: unsupported syscall: __sys_madvise1"),0};function Sj(o,a){return o=Je.getStr(o),Je.doMkdir(o,a)}function Dj(o,a,u){Je.varargs=u}function Oj(o,a){}function Aj(o){}function Fj(o,a){}function Mj(o){}function Vj(){Nt()}var lu;me?lu=function(){var o=process.hrtime();return o[0]*1e3+o[1]/1e6}:lu=function(){return performance.now()};var Uj=!0;function Cj(o,a){var u;if(o===0)u=Date.now();else if((o===1||o===4)&&Uj)u=lu();else return bj(28),-1;return ae[a>>2]=u/1e3|0,ae[a+4>>2]=u%1e3*1e3*1e3|0,0}function Pj(o,a){Nt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function kj(o,a){Nt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Rj(o,a){return globalThis.DUCKDB_RUNTIME.createDirectory(t,o,a)}function Nj(o,a){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,o,a)}function xj(o,a){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,o,a)}function Ej(o,a){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,o,a)}function Lj(o){return globalThis.DUCKDB_RUNTIME.closeFile(t,o)}function qj(o,a){return globalThis.DUCKDB_RUNTIME.checkFile(t,o,a)}function zj(o){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,o)}function Wj(o){return globalThis.DUCKDB_RUNTIME.getFileSize(t,o)}function Hj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.moveFile(t,o,a,u,l)}function Yj(o){return globalThis.DUCKDB_RUNTIME.openFile(t,o)}function $j(o,a,u,l){return globalThis.DUCKDB_RUNTIME.readFile(t,o,a,u,l)}function Gj(o,a){return globalThis.DUCKDB_RUNTIME.truncateFile(t,o,a)}function Jj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.writeFile(t,o,a,u,l)}function Kj(o,a){return globalThis.DUCKDB_RUNTIME.glob(t,o,a)}function Zj(o){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,o)}function Xj(){return 2147483648}function Qj(o,a,u){Xi.copyWithin(o,a,a+u)}function e0(o){try{return Hs.grow(o-Xd.byteLength+65535>>>16),Qd(Hs.buffer),1}catch(a){}}function t0(o){var a=Xi.length;o=o>>>0;var u=2147483648;if(o>u)return!1;for(var l=1;l<=4;l*=2){var d=a*(1+.2/l);d=Math.min(d,o+100663296);var f=Math.min(u,kv(Math.max(o,d),65536)),h=e0(f);if(h)return!0}return!1}var du={};function r0(){return I||"./this.program"}function is(){if(!is.strings){var o=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:o,_:r0()};for(var u in du)du[u]===void 0?delete a[u]:a[u]=du[u];var l=[];for(var u in a)l.push(u+"="+a[u]);is.strings=l}return is.strings}function i0(o,a){var u=0;return is().forEach(function(l,d){var f=a+u;ae[o+d*4>>2]=f,Pv(l,f),u+=l.length+1}),0}function n0(o,a){var u=is();ae[o>>2]=u.length;var l=0;return u.forEach(function(d){l+=d.length+1}),ae[a>>2]=l,0}function s0(o){return 0}function o0(o,a){var u=o==1||o==2?2:Nt();return Jt[a>>0]=u,0}function a0(o,a,u,l,d,f){var h=Je.getStreamFromFD(o),p=Je.doReadv(h,a,u,l);return ae[f>>2]=p,0}function u0(o,a,u,l,d,f){var h=Je.getStreamFromFD(o),p=Je.doWritev(h,a,u,l);return ae[f>>2]=p,0}function c0(o,a,u,l){var d=Je.getStreamFromFD(o),f=Je.doReadv(d,a,u);return ae[l>>2]=f,0}function l0(o,a,u,l,d){}function d0(o){var a=Je.getStreamFromFD(o);return a.stream_ops&&a.stream_ops.fsync?-a.stream_ops.fsync(a):0}function f0(o,a,u,l){for(var d=0,f=0;f<u;f++){for(var h=ae[a+f*8>>2],p=ae[a+(f*8+4)>>2],y=0;y<p;y++)Je.printChar(o,Xi[h+y]);d+=p}return ae[l>>2]=d,0}function h0(){return Av()}function p0(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var o=new Uint8Array(1);return function(){return crypto.getRandomValues(o),o[0]}}else if(me)try{var a=Bv();return function(){return a.randomBytes(1)[0]}}catch(u){}return function(){Nt("randomDevice")}}function Ks(o,a){Ks.randomDevice||(Ks.randomDevice=p0());for(var u=0;u<a;u++)Jt[o+u>>0]=Ks.randomDevice();return 0}function y0(o){return o}function m0(o){ht(o)}var _0=0;function b0(o,a,u){return o==14&&(_0=ae[a>>2]),0}function g0(o,a,u){return b0(o,a,u)}function Zs(o){return o%4==0&&(o%100!=0||o%400==0)}function fu(o,a){for(var u=0,l=0;l<=a;u+=o[l++]);return u}var Xs=[31,29,31,30,31,30,31,31,30,31,30,31],Qs=[31,28,31,30,31,30,31,31,30,31,30,31];function eo(o,a){for(var u=new Date(o.getTime());a>0;){var l=Zs(u.getFullYear()),d=u.getMonth(),f=(l?Xs:Qs)[d];if(a>f-u.getDate())a-=f-u.getDate()+1,u.setDate(1),d<11?u.setMonth(d+1):(u.setMonth(0),u.setFullYear(u.getFullYear()+1));else return u.setDate(u.getDate()+a),u}return u}function v0(o,a,u,l){var d=ae[l+40>>2],f={tm_sec:ae[l>>2],tm_min:ae[l+4>>2],tm_hour:ae[l+8>>2],tm_mday:ae[l+12>>2],tm_mon:ae[l+16>>2],tm_year:ae[l+20>>2],tm_wday:ae[l+24>>2],tm_yday:ae[l+28>>2],tm_isdst:ae[l+32>>2],tm_gmtoff:ae[l+36>>2],tm_zone:d?Ys(d):""},h=Ys(u),p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var y in p)h=h.replace(new RegExp(y,"g"),p[y]);var m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"];function j(P,$,Ae){for(var ye=typeof P=="number"?P.toString():P||"";ye.length<$;)ye=Ae[0]+ye;return ye}function O(P,$){return j(P,$,"0")}function M(P,$){function Ae(at){return at<0?-1:at>0?1:0}var ye;return(ye=Ae(P.getFullYear()-$.getFullYear()))===0&&(ye=Ae(P.getMonth()-$.getMonth()))===0&&(ye=Ae(P.getDate()-$.getDate())),ye}function x(P){switch(P.getDay()){case 0:return new Date(P.getFullYear()-1,11,29);case 1:return P;case 2:return new Date(P.getFullYear(),0,3);case 3:return new Date(P.getFullYear(),0,2);case 4:return new Date(P.getFullYear(),0,1);case 5:return new Date(P.getFullYear()-1,11,31);case 6:return new Date(P.getFullYear()-1,11,30)}}function ue(P){var $=eo(new Date(P.tm_year+1900,0,1),P.tm_yday),Ae=new Date($.getFullYear(),0,4),ye=new Date($.getFullYear()+1,0,4),at=x(Ae),Rr=x(ye);return M(at,$)<=0?M(Rr,$)<=0?$.getFullYear()+1:$.getFullYear():$.getFullYear()-1}var _e={"%a":function(P){return m[P.tm_wday].substring(0,3)},"%A":function(P){return m[P.tm_wday]},"%b":function(P){return g[P.tm_mon].substring(0,3)},"%B":function(P){return g[P.tm_mon]},"%C":function(P){var $=P.tm_year+1900;return O($/100|0,2)},"%d":function(P){return O(P.tm_mday,2)},"%e":function(P){return j(P.tm_mday,2," ")},"%g":function(P){return ue(P).toString().substring(2)},"%G":function(P){return ue(P)},"%H":function(P){return O(P.tm_hour,2)},"%I":function(P){var $=P.tm_hour;return $==0?$=12:$>12&&($-=12),O($,2)},"%j":function(P){return O(P.tm_mday+fu(Zs(P.tm_year+1900)?Xs:Qs,P.tm_mon-1),3)},"%m":function(P){return O(P.tm_mon+1,2)},"%M":function(P){return O(P.tm_min,2)},"%n":function(){return`
|
|
17
|
+
}`),this._dictionaries=[],this._recordBatches=[],super.close()}};dr.RecordBatchJSONWriter=Ia;function yl(r,e){let t=e;e instanceof ll.Table&&(t=e.chunks,r.reset(void 0,e.schema));for(let i of t)r.write(i);return r.finish()}async function ml(r,e){for await(let t of e)r.write(t);return r.finish()}function Ob({name:r,type:e,nullable:t}){let i=new eF.JSONTypeAssembler;return{name:r,nullable:t,type:i.visit(e),children:(e.children||[]).map(Ob),dictionary:XA.DataType.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:i.visit(e.indices)}:void 0}}function iF(r,e,t=!1){let i=new QA.Field(`${e}`,r.type,r.nullCount>0),n=Db.JSONVectorAssembler.assemble(new ZA.Column(i,[r]));return JSON.stringify({id:e,isDelta:t,data:{count:r.length,columns:n}},null,2)}function nF(r){return JSON.stringify({count:r.length,columns:Db.JSONVectorAssembler.assemble(r)},null,2)}});var gl=V(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.distributeVectorsIntoRecordBatches=hi.distributeColumnsIntoRecordBatches=hi.ensureSameLengthData=void 0;var Ab=qt(),_l=Ke(),sF=ci(),oF=Fr(),bl=new Uint8Array(0),Fb=r=>[bl,bl,new Uint8Array(r),bl];function aF(r,e,t=e.reduce((i,n)=>Math.max(i,n.length),0)){let i,n,s=-1,c=e.length,v=[...r.fields],I=[],S=(t+63&~63)>>3;for(;++s<c;)(i=e[s])&&i.length===t?I[s]=i:((n=v[s]).nullable||(v[s]=v[s].clone({nullable:!0})),I[s]=i?i._changeLengthAndBackfillNullBitmap(t):Ab.Data.new(n.type,0,t,t,Fb(S)));return[new _l.Schema(v),t,I]}hi.ensureSameLengthData=aF;function uF(r){return Mb(new _l.Schema(r.map(({field:e})=>e)),r)}hi.distributeColumnsIntoRecordBatches=uF;function Mb(r,e){return cF(r,e.map(t=>t instanceof sF.Chunked?t.chunks.map(i=>i.data):[t.data]))}hi.distributeVectorsIntoRecordBatches=Mb;function cF(r,e){let t=[...r.fields],i=[],n={numBatches:e.reduce((G,me)=>Math.max(G,me.length),0)},s=0,c=0,v=-1,I=e.length,S,U=[];for(;n.numBatches-- >0;){for(c=Number.POSITIVE_INFINITY,v=-1;++v<I;)U[v]=S=e[v].shift(),c=Math.min(c,S?S.length:c);isFinite(c)&&(U=lF(t,c,U,e,n),c>0&&(i[s++]=[c,U.slice()]))}return[r=new _l.Schema(t,r.metadata),i.map(G=>new oF.RecordBatch(r,...G))]}function lF(r,e,t,i,n){let s,c,v=0,I=-1,S=i.length,U=(e+63&~63)>>3;for(;++I<S;)(s=t[I])&&(v=s.length)>=e?v===e?t[I]=s:(t[I]=s.slice(0,e),s=s.slice(e,v-e),n.numBatches=Math.max(n.numBatches,i[I].unshift(s))):((c=r[I]).nullable||(r[I]=c.clone({nullable:!0})),t[I]=s?s._changeLengthAndBackfillNullBitmap(e):Ab.Data.new(c.type,0,e,e,Fb(U)));return t}});var xe=V(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.BaseVector=void 0;var dF=Te(),fF=ci(),hF=bs(),vl=Re(),jl=class extends vl.AbstractVector{constructor(e,t){super();this._children=t,this.numChildren=e.childData.length,this._bindDataAccessors(this.data=e)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return`${dF.Type[this.typeId]}Vector`}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(e,t=this._children){return vl.Vector.new(e,t)}concat(...e){return fF.Chunked.concat(this,...e)}slice(e,t){return hF.clampRange(this,e,t,this._sliceInternal)}isValid(e){if(this.nullCount>0){let t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}getChildAt(e){return e<0||e>=this.numChildren?null:(this._children||(this._children=[]))[e]||(this._children[e]=vl.Vector.new(this.data.childData[e]))}toJSON(){return[...this]}_sliceInternal(e,t,i){return e.clone(e.data.slice(t,i-t),null)}_bindDataAccessors(e){}};Da.BaseVector=jl;jl.prototype[Symbol.isConcatSpreadable]=!0});var wl=V(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.BinaryVector=void 0;var pF=Re(),yF=xe(),mF=be(),Vb=class extends yF.BaseVector{asUtf8(){return pF.Vector.new(this.data.clone(new mF.Utf8))}};Oa.BinaryVector=Vb});var Bl=V(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.BoolVector=void 0;var _F=be(),bF=xe(),gF=fr(),Ub=class extends bF.BaseVector{static from(e){return gF.vectorFromValuesWithType(()=>new _F.Bool,e)}};Aa.BoolVector=Ub});var Il=V(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.DateMillisecondVector=pi.DateDayVector=pi.DateVector=void 0;var vF=Te(),jF=xe(),Cb=fr(),Tl=be(),Fa=class extends jF.BaseVector{static from(...e){return e.length===2?Cb.vectorFromValuesWithType(()=>e[1]===vF.DateUnit.DAY?new Tl.DateDay:new Tl.DateMillisecond,e[0]):Cb.vectorFromValuesWithType(()=>new Tl.DateMillisecond,e[0])}};pi.DateVector=Fa;var Pb=class extends Fa{};pi.DateDayVector=Pb;var kb=class extends Fa{};pi.DateMillisecondVector=kb});var Sl=V(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.DecimalVector=void 0;var wF=xe(),Rb=class extends wF.BaseVector{};Ma.DecimalVector=Rb});var Ua=V(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.DictionaryVector=void 0;var BF=qt(),Nb=Re(),TF=xe(),IF=fr(),SF=be(),Dl=class extends TF.BaseVector{constructor(e){super(e);this.indices=Nb.Vector.new(e.clone(this.type.indices))}static from(...e){if(e.length===3){let[t,i,n]=e,s=new SF.Dictionary(t.type,i,null,null);return Nb.Vector.new(BF.Data.Dictionary(s,0,n.length,0,null,n,t))}return IF.vectorFromValuesWithType(()=>e[0].type,e[0])}get dictionary(){return this.data.dictionary}reverseLookup(e){return this.dictionary.indexOf(e)}getKey(e){return this.indices.get(e)}getValue(e){return this.dictionary.get(e)}setKey(e,t){return this.indices.set(e,t)}setValue(e,t){return this.dictionary.set(e,t)}};Va.DictionaryVector=Dl;Dl.prototype.indices=null});var Ol=V(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.FixedSizeBinaryVector=void 0;var DF=xe(),xb=class extends DF.BaseVector{};Ca.FixedSizeBinaryVector=xb});var Al=V(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.FixedSizeListVector=void 0;var OF=xe(),Eb=class extends OF.BaseVector{};Pa.FixedSizeListVector=Eb});var Ul=V(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.Float64Vector=hr.Float32Vector=hr.Float16Vector=hr.FloatVector=void 0;var AF=qt(),FF=Re(),MF=xe(),VF=fr(),Wi=be(),Os=class extends MF.BaseVector{static from(e){let t=PF(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let i=CF(e.constructor)||t;if(t===null&&(t=i),t&&t===i){let n=new t,s=e.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!UF(t,e.constructor))return FF.Vector.new(AF.Data.Float(n,0,s,0,null,e))}}if(t)return VF.vectorFromValuesWithType(()=>new t,e);throw e instanceof DataView||e instanceof ArrayBuffer?new TypeError(`Cannot infer float type from instance of ${e.constructor.name}`):new TypeError("Unrecognized FloatVector input")}};hr.FloatVector=Os;var Fl=class extends Os{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}};hr.Float16Vector=Fl;var Ml=class extends Os{};hr.Float32Vector=Ml;var Vl=class extends Os{};hr.Float64Vector=Vl;var UF=(r,e)=>r===Wi.Float16&&e!==Uint16Array,CF=r=>{switch(r){case Uint16Array:return Wi.Float16;case Float32Array:return Wi.Float32;case Float64Array:return Wi.Float64;default:return null}},PF=r=>{switch(r){case Fl:return Wi.Float16;case Ml:return Wi.Float32;case Vl:return Wi.Float64;default:return null}}});var Cl=V(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.IntervalYearMonthVector=yi.IntervalDayTimeVector=yi.IntervalVector=void 0;var kF=xe(),ka=class extends kF.BaseVector{};yi.IntervalVector=ka;var Lb=class extends ka{};yi.IntervalDayTimeVector=Lb;var qb=class extends ka{};yi.IntervalYearMonthVector=qb});var Ra=V(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.Uint64Vector=ze.Uint32Vector=ze.Uint16Vector=ze.Uint8Vector=ze.Int64Vector=ze.Int32Vector=ze.Int16Vector=ze.Int8Vector=ze.IntVector=void 0;var RF=qt(),NF=Re(),xF=xe(),EF=fr(),zb=st(),Wb=Ye(),ke=be(),pr=class extends xF.BaseVector{static from(...e){let[t,i=!1]=e,n=zF(this,i);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let s=qF(t.constructor,i)||n;if(n===null&&(n=s),n&&n===s){let c=new n,v=t.byteLength/c.ArrayType.BYTES_PER_ELEMENT;return LF(n,t.constructor)&&(v*=.5),NF.Vector.new(RF.Data.Int(c,0,v,0,null,t))}}if(n)return EF.vectorFromValuesWithType(()=>new n,t);throw t instanceof DataView||t instanceof ArrayBuffer?new TypeError(`Cannot infer integer type from instance of ${t.constructor.name}`):new TypeError("Unrecognized IntVector input")}};ze.IntVector=pr;var Pl=class extends pr{};ze.Int8Vector=Pl;var kl=class extends pr{};ze.Int16Vector=kl;var Rl=class extends pr{};ze.Int32Vector=Rl;var Nl=class extends pr{toBigInt64Array(){return Wb.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}};ze.Int64Vector=Nl;var xl=class extends pr{};ze.Uint8Vector=xl;var El=class extends pr{};ze.Uint16Vector=El;var Ll=class extends pr{};ze.Uint32Vector=Ll;var ql=class extends pr{toBigUint64Array(){return Wb.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}};ze.Uint64Vector=ql;var LF=(r,e)=>(r===ke.Int64||r===ke.Uint64)&&(e===Int32Array||e===Uint32Array),qF=(r,e)=>{switch(r){case Int8Array:return ke.Int8;case Int16Array:return ke.Int16;case Int32Array:return e?ke.Int64:ke.Int32;case zb.BigInt64Array:return ke.Int64;case Uint8Array:return ke.Uint8;case Uint16Array:return ke.Uint16;case Uint32Array:return e?ke.Uint64:ke.Uint32;case zb.BigUint64Array:return ke.Uint64;default:return null}},zF=(r,e)=>{switch(r){case Pl:return ke.Int8;case kl:return ke.Int16;case Rl:return e?ke.Int64:ke.Int32;case Nl:return ke.Int64;case xl:return ke.Uint8;case El:return ke.Uint16;case Ll:return e?ke.Uint64:ke.Uint32;case ql:return ke.Uint64;default:return null}}});var zl=V(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.ListVector=void 0;var WF=xe(),Hb=class extends WF.BaseVector{};Na.ListVector=Hb});var Wl=V(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.MapVector=void 0;var HF=ms(),YF=Re(),$F=xe(),GF=be(),Yb=class extends $F.BaseVector{asList(){let e=this.type.children[0];return YF.Vector.new(this.data.clone(new GF.List(e)))}bind(e){let t=this.getChildAt(0),{[e]:i,[e+1]:n}=this.valueOffsets;return new HF.MapRow(t.slice(i,n))}};xa.MapVector=Yb});var Hl=V(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.NullVector=void 0;var JF=xe(),$b=class extends JF.BaseVector{};Ea.NullVector=$b});var Yl=V(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.StructVector=void 0;var KF=ms(),ZF=xe(),XF=Symbol.for("rowIndex"),Gb=class extends ZF.BaseVector{bind(e){let t=this._row||(this._row=new KF.StructRow(this)),i=Object.create(t);return i[XF]=e,i}};La.StructVector=Gb});var $l=V(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.TimestampNanosecondVector=Mt.TimestampMicrosecondVector=Mt.TimestampMillisecondVector=Mt.TimestampSecondVector=Mt.TimestampVector=void 0;var QF=xe(),Pn=class extends QF.BaseVector{};Mt.TimestampVector=Pn;var Jb=class extends Pn{};Mt.TimestampSecondVector=Jb;var Kb=class extends Pn{};Mt.TimestampMillisecondVector=Kb;var Zb=class extends Pn{};Mt.TimestampMicrosecondVector=Zb;var Xb=class extends Pn{};Mt.TimestampNanosecondVector=Xb});var Gl=V(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.TimeNanosecondVector=Vt.TimeMicrosecondVector=Vt.TimeMillisecondVector=Vt.TimeSecondVector=Vt.TimeVector=void 0;var eM=xe(),kn=class extends eM.BaseVector{};Vt.TimeVector=kn;var Qb=class extends kn{};Vt.TimeSecondVector=Qb;var eg=class extends kn{};Vt.TimeMillisecondVector=eg;var tg=class extends kn{};Vt.TimeMicrosecondVector=tg;var rg=class extends kn{};Vt.TimeNanosecondVector=rg});var Jl=V(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.SparseUnionVector=mi.DenseUnionVector=mi.UnionVector=void 0;var tM=xe(),qa=class extends tM.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}};mi.UnionVector=qa;var ig=class extends qa{get valueOffsets(){return this.data.valueOffsets}};mi.DenseUnionVector=ig;var ng=class extends qa{};mi.SparseUnionVector=ng});var Kl=V(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.Utf8Vector=void 0;var rM=Re(),iM=xe(),sg=be(),nM=fr(),og=class extends iM.BaseVector{static from(e){return nM.vectorFromValuesWithType(()=>new sg.Utf8,e)}asBinary(){return rM.Vector.new(this.data.clone(new sg.Binary))}};za.Utf8Vector=og});var ag=V(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.partial2=_i.partial1=_i.partial0=void 0;function sM(r){return function(){return r(this)}}_i.partial0=sM;function oM(r){return function(e){return r(this,e)}}_i.partial1=oM;function aM(r){return function(e,t){return r(this,e,t)}}_i.partial2=aM});var Ql=V(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.instance=Rn.GetVisitor=void 0;var Wa=ls(),uM=tt(),cM=Ti(),lM=os(),Ut=Te(),K=class extends uM.Visitor{};Rn.GetVisitor=K;var dM=(r,e)=>864e5*r[e],Zl=(r,e)=>4294967296*r[e+1]+(r[e]>>>0),fM=(r,e)=>4294967296*(r[e+1]/1e3)+(r[e]>>>0)/1e3,hM=(r,e)=>4294967296*(r[e+1]/1e6)+(r[e]>>>0)/1e6,ug=r=>new Date(r),pM=(r,e)=>ug(dM(r,e)),yM=(r,e)=>ug(Zl(r,e)),mM=(r,e)=>null,cg=(r,e,t)=>{let{[t]:i,[t+1]:n}=e;return i!=null&&n!=null?r.subarray(i,n):null},_M=({offset:r,values:e},t)=>{let i=r+t;return(e[i>>3]&1<<i%8)!=0},lg=({values:r},e)=>pM(r,e),dg=({values:r},e)=>yM(r,e*2),yr=({stride:r,values:e},t)=>e[r*t],fg=({stride:r,values:e},t)=>lM.uint16ToFloat64(e[r*t]),Xl=({stride:r,values:e,type:t},i)=>Wa.BN.new(e.subarray(r*i,r*(i+1)),t.isSigned),bM=({stride:r,values:e},t)=>e.subarray(r*t,r*(t+1)),gM=({values:r,valueOffsets:e},t)=>cg(r,e,t),vM=({values:r,valueOffsets:e},t)=>{let i=cg(r,e,t);return i!==null?cM.decodeUtf8(i):null},jM=(r,e)=>r.type.bitWidth<64?yr(r,e):Xl(r,e),wM=(r,e)=>r.type.precision!==Ut.Precision.HALF?yr(r,e):fg(r,e),BM=(r,e)=>r.type.unit===Ut.DateUnit.DAY?lg(r,e):dg(r,e),hg=({values:r},e)=>1e3*Zl(r,e*2),pg=({values:r},e)=>Zl(r,e*2),yg=({values:r},e)=>fM(r,e*2),mg=({values:r},e)=>hM(r,e*2),TM=(r,e)=>{switch(r.type.unit){case Ut.TimeUnit.SECOND:return hg(r,e);case Ut.TimeUnit.MILLISECOND:return pg(r,e);case Ut.TimeUnit.MICROSECOND:return yg(r,e);case Ut.TimeUnit.NANOSECOND:return mg(r,e)}},_g=({values:r,stride:e},t)=>r[e*t],bg=({values:r,stride:e},t)=>r[e*t],gg=({values:r},e)=>Wa.BN.signed(r.subarray(2*e,2*(e+1))),vg=({values:r},e)=>Wa.BN.signed(r.subarray(2*e,2*(e+1))),IM=(r,e)=>{switch(r.type.unit){case Ut.TimeUnit.SECOND:return _g(r,e);case Ut.TimeUnit.MILLISECOND:return bg(r,e);case Ut.TimeUnit.MICROSECOND:return gg(r,e);case Ut.TimeUnit.NANOSECOND:return vg(r,e)}},SM=({values:r},e)=>Wa.BN.decimal(r.subarray(4*e,4*(e+1))),DM=(r,e)=>{let t=r.getChildAt(0),{valueOffsets:i,stride:n}=r;return t.slice(i[e*n],i[e*n+1])},OM=(r,e)=>r.bind(e),AM=(r,e)=>r.bind(e),FM=(r,e)=>r.type.mode===Ut.UnionMode.Dense?jg(r,e):wg(r,e),jg=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(r.valueOffsets[e]):null},wg=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(e):null},MM=(r,e)=>r.getValue(r.getKey(e)),VM=(r,e)=>r.type.unit===Ut.IntervalUnit.DAY_TIME?Bg(r,e):Tg(r,e),Bg=({values:r},e)=>r.subarray(2*e,2*(e+1)),Tg=({values:r},e)=>{let t=r[e],i=new Int32Array(2);return i[0]=t/12|0,i[1]=t%12|0,i},UM=(r,e)=>{let t=r.getChildAt(0),{stride:i}=r;return t.slice(e*i,(e+1)*i)};K.prototype.visitNull=mM;K.prototype.visitBool=_M;K.prototype.visitInt=jM;K.prototype.visitInt8=yr;K.prototype.visitInt16=yr;K.prototype.visitInt32=yr;K.prototype.visitInt64=Xl;K.prototype.visitUint8=yr;K.prototype.visitUint16=yr;K.prototype.visitUint32=yr;K.prototype.visitUint64=Xl;K.prototype.visitFloat=wM;K.prototype.visitFloat16=fg;K.prototype.visitFloat32=yr;K.prototype.visitFloat64=yr;K.prototype.visitUtf8=vM;K.prototype.visitBinary=gM;K.prototype.visitFixedSizeBinary=bM;K.prototype.visitDate=BM;K.prototype.visitDateDay=lg;K.prototype.visitDateMillisecond=dg;K.prototype.visitTimestamp=TM;K.prototype.visitTimestampSecond=hg;K.prototype.visitTimestampMillisecond=pg;K.prototype.visitTimestampMicrosecond=yg;K.prototype.visitTimestampNanosecond=mg;K.prototype.visitTime=IM;K.prototype.visitTimeSecond=_g;K.prototype.visitTimeMillisecond=bg;K.prototype.visitTimeMicrosecond=gg;K.prototype.visitTimeNanosecond=vg;K.prototype.visitDecimal=SM;K.prototype.visitList=DM;K.prototype.visitStruct=AM;K.prototype.visitUnion=FM;K.prototype.visitDenseUnion=jg;K.prototype.visitSparseUnion=wg;K.prototype.visitDictionary=MM;K.prototype.visitInterval=VM;K.prototype.visitIntervalDayTime=Bg;K.prototype.visitIntervalYearMonth=Tg;K.prototype.visitFixedSizeList=UM;K.prototype.visitMap=OM;Rn.instance=new K});var Og=V(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.instance=Nn.IndexOfVisitor=void 0;var CM=tt(),Ig=tr(),Sg=bs(),Z=class extends CM.Visitor{};Nn.IndexOfVisitor=Z;function PM(r,e){return e===null&&r.length>0?0:-1}function kM(r,e){let{nullBitmap:t}=r.data;if(!t||r.nullCount<=0)return-1;let i=0;for(let n of new Ig.BitIterator(t,r.data.offset+(e||0),r.length,t,Ig.getBool)){if(!n)return i;++i}return-1}function ce(r,e,t){if(e===void 0)return-1;if(e===null)return kM(r,t);let i=Sg.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}function Dg(r,e,t){let i=Sg.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}Z.prototype.visitNull=PM;Z.prototype.visitBool=ce;Z.prototype.visitInt=ce;Z.prototype.visitInt8=ce;Z.prototype.visitInt16=ce;Z.prototype.visitInt32=ce;Z.prototype.visitInt64=ce;Z.prototype.visitUint8=ce;Z.prototype.visitUint16=ce;Z.prototype.visitUint32=ce;Z.prototype.visitUint64=ce;Z.prototype.visitFloat=ce;Z.prototype.visitFloat16=ce;Z.prototype.visitFloat32=ce;Z.prototype.visitFloat64=ce;Z.prototype.visitUtf8=ce;Z.prototype.visitBinary=ce;Z.prototype.visitFixedSizeBinary=ce;Z.prototype.visitDate=ce;Z.prototype.visitDateDay=ce;Z.prototype.visitDateMillisecond=ce;Z.prototype.visitTimestamp=ce;Z.prototype.visitTimestampSecond=ce;Z.prototype.visitTimestampMillisecond=ce;Z.prototype.visitTimestampMicrosecond=ce;Z.prototype.visitTimestampNanosecond=ce;Z.prototype.visitTime=ce;Z.prototype.visitTimeSecond=ce;Z.prototype.visitTimeMillisecond=ce;Z.prototype.visitTimeMicrosecond=ce;Z.prototype.visitTimeNanosecond=ce;Z.prototype.visitDecimal=ce;Z.prototype.visitList=ce;Z.prototype.visitStruct=ce;Z.prototype.visitUnion=ce;Z.prototype.visitDenseUnion=Dg;Z.prototype.visitSparseUnion=Dg;Z.prototype.visitDictionary=ce;Z.prototype.visitInterval=ce;Z.prototype.visitIntervalDayTime=ce;Z.prototype.visitIntervalYearMonth=ce;Z.prototype.visitFixedSizeList=ce;Z.prototype.visitMap=ce;Nn.instance=new Z});var ed=V(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.instance=xn.IteratorVisitor=void 0;var Ha=Te(),RM=tt(),NM=tr(),Ag=Ql(),X=class extends RM.Visitor{};xn.IteratorVisitor=X;function xM(r){let e=Ag.instance.getVisitFn(r);return new NM.BitIterator(r.data.nullBitmap,r.data.offset,r.length,r,(t,i,n,s)=>(n&1<<s)!=0?e(t,i):null)}var Fg=class{constructor(e,t){this.vector=e,this.getFn=t,this.index=0}next(){return this.index<this.vector.length?{value:this.getFn(this.vector,this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};function se(r){if(r.nullCount>0)return xM(r);let{type:e,typeId:t,length:i}=r;return r.stride===1&&(t===Ha.Type.Timestamp||t===Ha.Type.Int&&e.bitWidth!==64||t===Ha.Type.Time&&e.bitWidth!==64||t===Ha.Type.Float&&e.precision>0)?r.data.values.subarray(0,i)[Symbol.iterator]():new Fg(r,Ag.instance.getVisitFn(r))}X.prototype.visitNull=se;X.prototype.visitBool=se;X.prototype.visitInt=se;X.prototype.visitInt8=se;X.prototype.visitInt16=se;X.prototype.visitInt32=se;X.prototype.visitInt64=se;X.prototype.visitUint8=se;X.prototype.visitUint16=se;X.prototype.visitUint32=se;X.prototype.visitUint64=se;X.prototype.visitFloat=se;X.prototype.visitFloat16=se;X.prototype.visitFloat32=se;X.prototype.visitFloat64=se;X.prototype.visitUtf8=se;X.prototype.visitBinary=se;X.prototype.visitFixedSizeBinary=se;X.prototype.visitDate=se;X.prototype.visitDateDay=se;X.prototype.visitDateMillisecond=se;X.prototype.visitTimestamp=se;X.prototype.visitTimestampSecond=se;X.prototype.visitTimestampMillisecond=se;X.prototype.visitTimestampMicrosecond=se;X.prototype.visitTimestampNanosecond=se;X.prototype.visitTime=se;X.prototype.visitTimeSecond=se;X.prototype.visitTimeMillisecond=se;X.prototype.visitTimeMicrosecond=se;X.prototype.visitTimeNanosecond=se;X.prototype.visitDecimal=se;X.prototype.visitList=se;X.prototype.visitStruct=se;X.prototype.visitUnion=se;X.prototype.visitDenseUnion=se;X.prototype.visitSparseUnion=se;X.prototype.visitDictionary=se;X.prototype.visitInterval=se;X.prototype.visitIntervalDayTime=se;X.prototype.visitIntervalYearMonth=se;X.prototype.visitFixedSizeList=se;X.prototype.visitMap=se;xn.instance=new X});var Mg=V(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.instance=En.ToArrayVisitor=void 0;var As=Te(),EM=tt(),LM=ed(),Q=class extends EM.Visitor{};En.ToArrayVisitor=Q;function oe(r){let{type:e,length:t,stride:i}=r;switch(e.typeId){case As.Type.Int:case As.Type.Float:case As.Type.Decimal:case As.Type.Time:case As.Type.Timestamp:return r.data.values.subarray(0,t*i)}return[...LM.instance.visit(r)]}Q.prototype.visitNull=oe;Q.prototype.visitBool=oe;Q.prototype.visitInt=oe;Q.prototype.visitInt8=oe;Q.prototype.visitInt16=oe;Q.prototype.visitInt32=oe;Q.prototype.visitInt64=oe;Q.prototype.visitUint8=oe;Q.prototype.visitUint16=oe;Q.prototype.visitUint32=oe;Q.prototype.visitUint64=oe;Q.prototype.visitFloat=oe;Q.prototype.visitFloat16=oe;Q.prototype.visitFloat32=oe;Q.prototype.visitFloat64=oe;Q.prototype.visitUtf8=oe;Q.prototype.visitBinary=oe;Q.prototype.visitFixedSizeBinary=oe;Q.prototype.visitDate=oe;Q.prototype.visitDateDay=oe;Q.prototype.visitDateMillisecond=oe;Q.prototype.visitTimestamp=oe;Q.prototype.visitTimestampSecond=oe;Q.prototype.visitTimestampMillisecond=oe;Q.prototype.visitTimestampMicrosecond=oe;Q.prototype.visitTimestampNanosecond=oe;Q.prototype.visitTime=oe;Q.prototype.visitTimeSecond=oe;Q.prototype.visitTimeMillisecond=oe;Q.prototype.visitTimeMicrosecond=oe;Q.prototype.visitTimeNanosecond=oe;Q.prototype.visitDecimal=oe;Q.prototype.visitList=oe;Q.prototype.visitStruct=oe;Q.prototype.visitUnion=oe;Q.prototype.visitDenseUnion=oe;Q.prototype.visitSparseUnion=oe;Q.prototype.visitDictionary=oe;Q.prototype.visitInterval=oe;Q.prototype.visitIntervalDayTime=oe;Q.prototype.visitIntervalYearMonth=oe;Q.prototype.visitFixedSizeList=oe;Q.prototype.visitMap=oe;En.instance=new Q});var Vg=V(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.instance=Ln.ByteWidthVisitor=void 0;var qM=tt(),zM=Te(),Fs=(r,e)=>r+e,td=r=>`Cannot compute the byte width of variable-width column ${r}`,rd=class extends qM.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(td(e))}visitUtf8(e){throw new Error(td(e))}visitBool(e){return 1/8}visitDecimal(e){return 16}visitDate(e){return(e.unit+1)*4}visitTime(e){return e.bitWidth/8}visitTimestamp(e){return e.unit===zM.TimeUnit.SECOND?4:8}visitInterval(e){return(e.unit+1)*4}visitList(e){throw new Error(td(e))}visitStruct(e){return this.visitFields(e.children).reduce(Fs,0)}visitUnion(e){return this.visitFields(e.children).reduce(Fs,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(Fs,0)}visitMap(e){return this.visitFields(e.children).reduce(Fs,0)}visitDictionary(e){return this.visit(e.indices)}visitFields(e){return(e||[]).map(t=>this.visit(t.type))}visitSchema(e){return this.visitFields(e.fields).reduce(Fs,0)}};Ln.ByteWidthVisitor=rd;Ln.instance=new rd});var Ug=V(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.instance=qn.GetVectorConstructor=void 0;var WM=tt(),HM=wl(),YM=Bl(),id=Il(),$M=Sl(),GM=Ua(),JM=Ol(),KM=Al(),Ya=Ul(),nd=Cl(),Mr=Ra(),ZM=zl(),XM=Wl(),QM=Hl(),eV=Yl(),Ms=$l(),Vs=Gl(),sd=Jl(),tV=Kl(),od=class extends WM.Visitor{visitNull(){return QM.NullVector}visitBool(){return YM.BoolVector}visitInt(){return Mr.IntVector}visitInt8(){return Mr.Int8Vector}visitInt16(){return Mr.Int16Vector}visitInt32(){return Mr.Int32Vector}visitInt64(){return Mr.Int64Vector}visitUint8(){return Mr.Uint8Vector}visitUint16(){return Mr.Uint16Vector}visitUint32(){return Mr.Uint32Vector}visitUint64(){return Mr.Uint64Vector}visitFloat(){return Ya.FloatVector}visitFloat16(){return Ya.Float16Vector}visitFloat32(){return Ya.Float32Vector}visitFloat64(){return Ya.Float64Vector}visitUtf8(){return tV.Utf8Vector}visitBinary(){return HM.BinaryVector}visitFixedSizeBinary(){return JM.FixedSizeBinaryVector}visitDate(){return id.DateVector}visitDateDay(){return id.DateDayVector}visitDateMillisecond(){return id.DateMillisecondVector}visitTimestamp(){return Ms.TimestampVector}visitTimestampSecond(){return Ms.TimestampSecondVector}visitTimestampMillisecond(){return Ms.TimestampMillisecondVector}visitTimestampMicrosecond(){return Ms.TimestampMicrosecondVector}visitTimestampNanosecond(){return Ms.TimestampNanosecondVector}visitTime(){return Vs.TimeVector}visitTimeSecond(){return Vs.TimeSecondVector}visitTimeMillisecond(){return Vs.TimeMillisecondVector}visitTimeMicrosecond(){return Vs.TimeMicrosecondVector}visitTimeNanosecond(){return Vs.TimeNanosecondVector}visitDecimal(){return $M.DecimalVector}visitList(){return ZM.ListVector}visitStruct(){return eV.StructVector}visitUnion(){return sd.UnionVector}visitDenseUnion(){return sd.DenseUnionVector}visitSparseUnion(){return sd.SparseUnionVector}visitDictionary(){return GM.DictionaryVector}visitInterval(){return nd.IntervalVector}visitIntervalDayTime(){return nd.IntervalDayTimeVector}visitIntervalYearMonth(){return nd.IntervalYearMonthVector}visitFixedSizeList(){return KM.FixedSizeListVector}visitMap(){return XM.MapVector}};qn.GetVectorConstructor=od;qn.instance=new od});var fr=V(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.vectorFromValuesWithType=C.StructRow=C.MapRow=C.Utf8Vector=C.SparseUnionVector=C.DenseUnionVector=C.UnionVector=C.TimeNanosecondVector=C.TimeMicrosecondVector=C.TimeMillisecondVector=C.TimeSecondVector=C.TimeVector=C.TimestampNanosecondVector=C.TimestampMicrosecondVector=C.TimestampMillisecondVector=C.TimestampSecondVector=C.TimestampVector=C.StructVector=C.NullVector=C.MapVector=C.ListVector=C.Uint64Vector=C.Uint32Vector=C.Uint16Vector=C.Uint8Vector=C.Int64Vector=C.Int32Vector=C.Int16Vector=C.Int8Vector=C.IntVector=C.IntervalYearMonthVector=C.IntervalDayTimeVector=C.IntervalVector=C.Float64Vector=C.Float32Vector=C.Float16Vector=C.FloatVector=C.FixedSizeListVector=C.FixedSizeBinaryVector=C.DictionaryVector=C.DecimalVector=C.DateMillisecondVector=C.DateDayVector=C.DateVector=C.Chunked=C.BoolVector=C.BinaryVector=C.BaseVector=C.Vector=void 0;var rV=Re();Object.defineProperty(C,"Vector",{enumerable:!0,get:function(){return rV.Vector}});var iV=xe();Object.defineProperty(C,"BaseVector",{enumerable:!0,get:function(){return iV.BaseVector}});var nV=wl();Object.defineProperty(C,"BinaryVector",{enumerable:!0,get:function(){return nV.BinaryVector}});var sV=Bl();Object.defineProperty(C,"BoolVector",{enumerable:!0,get:function(){return sV.BoolVector}});var oV=ci();Object.defineProperty(C,"Chunked",{enumerable:!0,get:function(){return oV.Chunked}});var ad=Il();Object.defineProperty(C,"DateVector",{enumerable:!0,get:function(){return ad.DateVector}});Object.defineProperty(C,"DateDayVector",{enumerable:!0,get:function(){return ad.DateDayVector}});Object.defineProperty(C,"DateMillisecondVector",{enumerable:!0,get:function(){return ad.DateMillisecondVector}});var aV=Sl();Object.defineProperty(C,"DecimalVector",{enumerable:!0,get:function(){return aV.DecimalVector}});var uV=Ua();Object.defineProperty(C,"DictionaryVector",{enumerable:!0,get:function(){return uV.DictionaryVector}});var cV=Ol();Object.defineProperty(C,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return cV.FixedSizeBinaryVector}});var lV=Al();Object.defineProperty(C,"FixedSizeListVector",{enumerable:!0,get:function(){return lV.FixedSizeListVector}});var $a=Ul();Object.defineProperty(C,"FloatVector",{enumerable:!0,get:function(){return $a.FloatVector}});Object.defineProperty(C,"Float16Vector",{enumerable:!0,get:function(){return $a.Float16Vector}});Object.defineProperty(C,"Float32Vector",{enumerable:!0,get:function(){return $a.Float32Vector}});Object.defineProperty(C,"Float64Vector",{enumerable:!0,get:function(){return $a.Float64Vector}});var ud=Cl();Object.defineProperty(C,"IntervalVector",{enumerable:!0,get:function(){return ud.IntervalVector}});Object.defineProperty(C,"IntervalDayTimeVector",{enumerable:!0,get:function(){return ud.IntervalDayTimeVector}});Object.defineProperty(C,"IntervalYearMonthVector",{enumerable:!0,get:function(){return ud.IntervalYearMonthVector}});var Vr=Ra();Object.defineProperty(C,"IntVector",{enumerable:!0,get:function(){return Vr.IntVector}});Object.defineProperty(C,"Int8Vector",{enumerable:!0,get:function(){return Vr.Int8Vector}});Object.defineProperty(C,"Int16Vector",{enumerable:!0,get:function(){return Vr.Int16Vector}});Object.defineProperty(C,"Int32Vector",{enumerable:!0,get:function(){return Vr.Int32Vector}});Object.defineProperty(C,"Int64Vector",{enumerable:!0,get:function(){return Vr.Int64Vector}});Object.defineProperty(C,"Uint8Vector",{enumerable:!0,get:function(){return Vr.Uint8Vector}});Object.defineProperty(C,"Uint16Vector",{enumerable:!0,get:function(){return Vr.Uint16Vector}});Object.defineProperty(C,"Uint32Vector",{enumerable:!0,get:function(){return Vr.Uint32Vector}});Object.defineProperty(C,"Uint64Vector",{enumerable:!0,get:function(){return Vr.Uint64Vector}});var dV=zl();Object.defineProperty(C,"ListVector",{enumerable:!0,get:function(){return dV.ListVector}});var fV=Wl();Object.defineProperty(C,"MapVector",{enumerable:!0,get:function(){return fV.MapVector}});var hV=Hl();Object.defineProperty(C,"NullVector",{enumerable:!0,get:function(){return hV.NullVector}});var pV=Yl();Object.defineProperty(C,"StructVector",{enumerable:!0,get:function(){return pV.StructVector}});var Us=$l();Object.defineProperty(C,"TimestampVector",{enumerable:!0,get:function(){return Us.TimestampVector}});Object.defineProperty(C,"TimestampSecondVector",{enumerable:!0,get:function(){return Us.TimestampSecondVector}});Object.defineProperty(C,"TimestampMillisecondVector",{enumerable:!0,get:function(){return Us.TimestampMillisecondVector}});Object.defineProperty(C,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return Us.TimestampMicrosecondVector}});Object.defineProperty(C,"TimestampNanosecondVector",{enumerable:!0,get:function(){return Us.TimestampNanosecondVector}});var Cs=Gl();Object.defineProperty(C,"TimeVector",{enumerable:!0,get:function(){return Cs.TimeVector}});Object.defineProperty(C,"TimeSecondVector",{enumerable:!0,get:function(){return Cs.TimeSecondVector}});Object.defineProperty(C,"TimeMillisecondVector",{enumerable:!0,get:function(){return Cs.TimeMillisecondVector}});Object.defineProperty(C,"TimeMicrosecondVector",{enumerable:!0,get:function(){return Cs.TimeMicrosecondVector}});Object.defineProperty(C,"TimeNanosecondVector",{enumerable:!0,get:function(){return Cs.TimeNanosecondVector}});var cd=Jl();Object.defineProperty(C,"UnionVector",{enumerable:!0,get:function(){return cd.UnionVector}});Object.defineProperty(C,"DenseUnionVector",{enumerable:!0,get:function(){return cd.DenseUnionVector}});Object.defineProperty(C,"SparseUnionVector",{enumerable:!0,get:function(){return cd.SparseUnionVector}});var yV=Kl();Object.defineProperty(C,"Utf8Vector",{enumerable:!0,get:function(){return yV.Utf8Vector}});var Cg=ms();Object.defineProperty(C,"MapRow",{enumerable:!0,get:function(){return Cg.MapRow}});Object.defineProperty(C,"StructRow",{enumerable:!0,get:function(){return Cg.StructRow}});var Ps=ag(),ld=Te(),zn=Re(),Pg=ci(),Hi=xe(),mV=tr(),Ga=st(),kg=Ue(),Rg=Ql(),Ng=Sc(),xg=Og(),Eg=Mg(),Lg=ed(),qg=Vg(),zg=Ug();zn.Vector.new=_V;zn.Vector.from=gV;function _V(r,...e){return new(zg.instance.getVisitFn(r)())(r,...e)}function bV(r,e){if(Ga.isIterable(e))return zn.Vector.from({nullValues:[null,void 0],type:r(),values:e});if(Ga.isAsyncIterable(e))return zn.Vector.from({nullValues:[null,void 0],type:r(),values:e});let{values:t=[],type:i=r(),nullValues:n=[null,void 0]}={...e};return Ga.isIterable(t)?zn.Vector.from({nullValues:n,...e,type:i}):zn.Vector.from({nullValues:n,...e,type:i})}C.vectorFromValuesWithType=bV;function gV(r){let{values:e=[],...t}={nullValues:[null,void 0],...r};if(Ga.isIterable(e)){let i=[...kg.Builder.throughIterable(t)(e)];return i.length===1?i[0]:Pg.Chunked.concat(i)}return(async i=>{let n=kg.Builder.throughAsyncIterable(t);for await(let s of n(e))i.push(s);return i.length===1?i[0]:Pg.Chunked.concat(i)})([])}Hi.BaseVector.prototype.get=function(e){return Rg.instance.visit(this,e)};Hi.BaseVector.prototype.set=function(e,t){return Ng.instance.visit(this,e,t)};Hi.BaseVector.prototype.indexOf=function(e,t){return xg.instance.visit(this,e,t)};Hi.BaseVector.prototype.toArray=function(){return Eg.instance.visit(this)};Hi.BaseVector.prototype.getByteWidth=function(){return qg.instance.visit(this.type)};Hi.BaseVector.prototype[Symbol.iterator]=function(){return Lg.instance.visit(this)};Hi.BaseVector.prototype._bindDataAccessors=BV;Object.keys(ld.Type).map(r=>ld.Type[r]).filter(r=>typeof r=="number").filter(r=>r!==ld.Type.NONE).forEach(r=>{let e=zg.instance.visit(r);e.prototype.get=Ps.partial1(Rg.instance.getVisitFn(r)),e.prototype.set=Ps.partial2(Ng.instance.getVisitFn(r)),e.prototype.indexOf=Ps.partial2(xg.instance.getVisitFn(r)),e.prototype.toArray=Ps.partial0(Eg.instance.getVisitFn(r)),e.prototype.getByteWidth=vV(qg.instance.getVisitFn(r)),e.prototype[Symbol.iterator]=Ps.partial0(Lg.instance.getVisitFn(r))});function vV(r){return function(){return r(this.type)}}function jV(r){return function(e){return this.isValid(e)?r.call(this,e):null}}function wV(r){return function(e,t){mV.setBool(this.nullBitmap,this.offset+e,t!=null)&&r.call(this,e,t)}}function BV(){let r=this.nullBitmap;r&&r.byteLength>0&&(this.get=jV(this.get),this.set=wV(this.set))}});var Ds=V(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.Table=void 0;var TV=An(),Wg=Ke(),dd=Fr(),IV=ks(),fd=be(),Hg=On(),hd=st(),Yg=Sa(),$g=gl(),pd=fr(),Xe=class extends pd.Chunked{constructor(...e){let t=null;e[0]instanceof Wg.Schema&&(t=e.shift());let i=Hg.selectArgs(dd.RecordBatch,e);if(!t&&!(t=i[0]&&i[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");i[0]||(i[0]=new dd._InternalEmptyPlaceholderRecordBatch(t));super(new fd.Struct(t.fields),i);this._schema=t,this._chunks=i}static empty(e=new Wg.Schema([])){return new Xe(e,[])}static from(e){if(!e)return Xe.empty();if(typeof e=="object"){let i=hd.isIterable(e.values)?SV(e):hd.isAsyncIterable(e.values)?DV(e):null;if(i!==null)return i}let t=IV.RecordBatchReader.from(e);return hd.isPromise(t)?(async()=>await Xe.from(await t))():t.isSync()&&(t=t.open())?t.schema?new Xe(t.schema,[...t]):Xe.empty():(async i=>{let n=await i,s=n.schema,c=[];if(s){for await(let v of n)c.push(v);return new Xe(s,c)}return Xe.empty()})(t.open())}static async fromAsync(e){return await Xe.from(e)}static fromStruct(e){return Xe.new(e.data.childData,e.type.children)}static new(...e){return new Xe(...$g.distributeColumnsIntoRecordBatches(Hg.selectColumnArgs(e)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(e=this._chunks){return new Xe(this._schema,e)}getColumn(e){return this.getColumnAt(this.getColumnIndex(e))}getColumnAt(e){return this.getChildAt(e)}getColumnIndex(e){return this._schema.fields.findIndex(t=>t.name===e)}getChildAt(e){if(e<0||e>=this.numChildren)return null;let t,i,n=this._schema.fields,s=this._children||(this._children=[]);if(i=s[e])return i;if(t=n[e]){let c=this._chunks.map(v=>v.getChildAt(e)).filter(v=>v!=null);if(c.length>0)return s[e]=new TV.Column(t,c)}return null}serialize(e="binary",t=!0){return(t?Yg.RecordBatchStreamWriter:Yg.RecordBatchFileWriter).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...e){let t=this._schema.fields.reduce((i,n,s)=>i.set(n.name,s),new Map);return this.selectAt(...e.map(i=>t.get(i)).filter(i=>i>-1))}selectAt(...e){let t=this._schema.selectAt(...e);return new Xe(t,this._chunks.map(({length:i,data:{childData:n}})=>new dd.RecordBatch(t,i,e.map(s=>n[s]).filter(Boolean))))}assign(e){let t=this._schema.fields,[i,n]=e.schema.fields.reduce((v,I,S)=>{let[U,G]=v,me=t.findIndex(fe=>fe.name===I.name);return~me?G[me]=S:U.push(S),v},[[],[]]),s=this._schema.assign(e.schema),c=[...t.map((v,I,S,U=n[I])=>U===void 0?this.getColumnAt(I):e.getColumnAt(U)),...i.map(v=>e.getColumnAt(v))].filter(Boolean);return new Xe(...$g.distributeVectorsIntoRecordBatches(s,c))}};Ja.Table=Xe;function SV(r){let{type:e}=r;return e instanceof fd.Struct?Xe.fromStruct(pd.StructVector.from(r)):null}function DV(r){let{type:e}=r;return e instanceof fd.Struct?pd.StructVector.from(r).then(t=>Xe.fromStruct(t)):null}});var Fr=V(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn._InternalEmptyPlaceholderRecordBatch=Wn.RecordBatch=void 0;var yd=qt(),md=Ds(),OV=Re(),AV=tt(),FV=Ke(),MV=st(),VV=ci(),UV=On(),_d=be(),CV=gl(),PV=fr(),bi=class extends PV.StructVector{constructor(...e){let t,i=e[0],n;if(e[1]instanceof yd.Data)[,t,n]=e;else{let s=i.fields,[,c,v]=e;t=yd.Data.Struct(new _d.Struct(s),0,c,0,null,v)}super(t,n);this._schema=i}static from(e){return MV.isIterable(e.values),md.Table.from(e)}static new(...e){let[t,i]=UV.selectFieldArgs(e),n=i.filter(s=>s instanceof OV.Vector);return new bi(...CV.ensureSameLengthData(new FV.Schema(t),n.map(s=>s.data)))}clone(e,t=this._children){return new bi(this._schema,e,t)}concat(...e){let t=this._schema,i=VV.Chunked.flatten(this,...e);return new md.Table(t,i.map(({data:n})=>new bi(t,n)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=Ka.collect(this))}select(...e){let t=this._schema.fields.reduce((i,n,s)=>i.set(n.name,s),new Map);return this.selectAt(...e.map(i=>t.get(i)).filter(i=>i>-1))}selectAt(...e){let t=this._schema.selectAt(...e),i=e.map(n=>this.data.childData[n]).filter(Boolean);return new bi(t,this.length,i)}};Wn.RecordBatch=bi;var Gg=class extends bi{constructor(e){super(e,0,e.fields.map(t=>yd.Data.new(t.type,0,0,0)))}};Wn._InternalEmptyPlaceholderRecordBatch=Gg;var Ka=class extends AV.Visitor{constructor(){super(...arguments);this.dictionaries=new Map}static collect(e){return new Ka().visit(e.data,new _d.Struct(e.schema.fields)).dictionaries}visit(e,t){return _d.DataType.isDictionary(t)?this.visitDictionary(e,t):(e.childData.forEach((i,n)=>this.visit(i,t.children[n].type)),this)}visitDictionary(e,t){let i=e.dictionary;return i&&i.length>0&&this.dictionaries.set(t.id,i),this}}});var ks=V(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.AsyncRecordBatchFileReader=kt.RecordBatchFileReader=kt.AsyncRecordBatchStreamReader=kt.RecordBatchStreamReader=kt.RecordBatchReader=void 0;var Jg=Re(),Za=Te(),Kg=Rc(),Zg=ns(),Xg=si(),Rs=Ec(),Qg=M_(),bd=Fr(),Yi=rn(),Ct=ya(),Pt=st(),mr=class extends Yi.ReadableInterop{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 t=this._impl.open(e);return Pt.isPromise(t)?t.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 Zg.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Zg.default.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,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof mr?e:Pt.isArrowJSON(e)?kV(e):Pt.isFileHandle(e)?xV(e):Pt.isPromise(e)?(async()=>await mr.from(await e))():Pt.isFetchResponse(e)||Pt.isReadableDOMStream(e)||Pt.isReadableNodeStream(e)||Pt.isAsyncIterable(e)?NV(new Xg.AsyncByteStream(e)):RV(new Xg.ByteStream(e))}static readAll(e){return e instanceof mr?e.isSync()?iv(e):nv(e):Pt.isArrowJSON(e)||ArrayBuffer.isView(e)||Pt.isIterable(e)||Pt.isIteratorResult(e)?iv(e):nv(e)}};kt.RecordBatchReader=mr;var Hn=class extends mr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}async*[Symbol.asyncIterator](){yield*this[Symbol.iterator]()}};kt.RecordBatchStreamReader=Hn;var Yn=class extends mr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}};kt.AsyncRecordBatchStreamReader=Yn;var Xa=class extends Hn{constructor(e){super(e);this._impl=e}};kt.RecordBatchFileReader=Xa;var gd=class extends Yn{constructor(e){super(e);this._impl=e}};kt.AsyncRecordBatchFileReader=gd;var vd=class{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}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,t){return new bd.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){let{id:i,isDelta:n,data:s}=e,{dictionaries:c,schema:v}=this,I=c.get(i);if(n||!I){let S=v.dictionaries.get(i);return I&&n?I.concat(Jg.Vector.new(this._loadVectors(s,t,[S])[0])):Jg.Vector.new(this._loadVectors(s,t,[S])[0])}return I}_loadVectors(e,t,i){return new Qg.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}},Ns=class extends vd{constructor(e,t){super(t);this._reader=Pt.isArrowJSON(e)?new Ct.JSONMessageReader(this._handle=e):new Ct.MessageReader(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=rv(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):Yi.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Yi.ITERATOR_DONE}next(){if(this.closed)return Yi.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(i,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new bd._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},xs=class extends vd{constructor(e,t){super(t);this._reader=new Ct.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}async cancel(){!this.closed&&(this.closed=!0)&&(await this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}async open(e){return this.closed||(this.autoDestroy=rv(this,e),this.schema||(this.schema=await this._reader.readSchema())||await this.cancel()),this}async throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.throw(e):Yi.ITERATOR_DONE}async return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.return(e):Yi.ITERATOR_DONE}async next(){if(this.closed)return Yi.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=await this._readNextMessageAndValidate();)if(e.isSchema())await this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(i,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new bd._InternalEmptyPlaceholderRecordBatch(this.schema)}):await this.return()}async _readNextMessageAndValidate(e){return await this._reader.readMessage(e)}},jd=class extends Ns{constructor(e,t){super(e instanceof Rs.RandomAccessFile?e:new Rs.RandomAccessFile(e),t)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){if(this.closed)return null;this._footer||this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){let i=this._reader.readMessage(Za.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null}_readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){let i=this._reader.readMessage(Za.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,c)}}}_readFooter(){let{_handle:e}=this,t=e.size-Ct.magicAndPadding,i=e.readInt32(t),n=e.readAt(t-i,i);return Kg.Footer.decode(n)}_readNextMessageAndValidate(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}},ev=class extends xs{constructor(e,...t){let i=typeof t[0]!="number"?t.shift():void 0,n=t[0]instanceof Map?t.shift():void 0;super(e instanceof Rs.AsyncRandomAccessFile?e:new Rs.AsyncRandomAccessFile(e,i),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}async open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=await this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&await this._readDictionaryBatch(this._dictionaryIndex++)}return await super.open(e)}async readRecordBatch(e){if(this.closed)return null;this._footer||await this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Za.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),s=await this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null}async _readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Za.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),s=await this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,c)}}}async _readFooter(){let{_handle:e}=this;e._pending&&await e._pending;let t=e.size-Ct.magicAndPadding,i=await e.readInt32(t),n=await e.readAt(t-i,i);return Kg.Footer.decode(n)}async _readNextMessageAndValidate(e){if(this._footer||await this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&await this._handle.seek(t.offset))return await this._reader.readMessage(e)}return null}},tv=class extends Ns{constructor(e,t){super(e,t)}_loadVectors(e,t,i){return new Qg.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}};function rv(r,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:r.autoDestroy}function*iv(r){let e=mr.from(r);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}async function*nv(r){let e=await mr.from(r);try{if(!(await e.open({autoDestroy:!1})).closed)do yield e;while(!(await e.reset().open()).closed)}finally{await e.cancel()}}function kV(r){return new Hn(new tv(r))}function RV(r){let e=r.peek(Ct.magicLength+7&~7);return e&&e.byteLength>=4?Ct.checkForMagicArrowString(e)?new Xa(new jd(r.read())):new Hn(new Ns(r)):new Hn(new Ns(function*(){}()))}async function NV(r){let e=await r.peek(Ct.magicLength+7&~7);return e&&e.byteLength>=4?Ct.checkForMagicArrowString(e)?new Xa(new jd(await r.read())):new Yn(new xs(r)):new Yn(new xs(async function*(){}()))}async function xV(r){let{size:e}=await r.stat(),t=new Rs.AsyncRandomAccessFile(r,e);return e>=Ct.magicX2AndPadding&&Ct.checkForMagicArrowString(await t.readAt(0,Ct.magicLength+7&~7))?new gd(new ev(t)):new Yn(new xs(t))}});var av=V(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.toDOMStream=void 0;var sv=Ye(),ov=st();function EV(r,e){if(ov.isAsyncIterable(r))return qV(r,e);if(ov.isIterable(r))return LV(r,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}Qa.toDOMStream=EV;function LV(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,start(c){s(c,t||(t=r[Symbol.iterator]()))},pull(c){t?s(c,t):c.close()},cancel(){(t&&t.return&&t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});function s(c,v){let I,S=null,U=c.desiredSize||null;for(;!(S=v.next(i?U:null)).done;)if(ArrayBuffer.isView(S.value)&&(I=sv.toUint8Array(S.value))&&(U!=null&&i&&(U=U-I.byteLength+1),S.value=I),c.enqueue(S.value),U!=null&&--U<=0)return;c.close()}}function qV(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,async start(c){await s(c,t||(t=r[Symbol.asyncIterator]()))},async pull(c){t?await s(c,t):c.close()},async cancel(){(t&&t.return&&await t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});async function s(c,v){let I,S=null,U=c.desiredSize||null;for(;!(S=await v.next(i?U:null)).done;)if(ArrayBuffer.isView(S.value)&&(I=sv.toUint8Array(S.value))&&(U!=null&&i&&(U=U-I.byteLength+1),S.value=I),c.enqueue(S.value),U!=null&&--U<=0)return;c.close()}}});var lv=V($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.BuilderTransform=$n.builderThroughDOMStream=void 0;var zV=ta();function WV(r){return new wd(r)}$n.builderThroughDOMStream=WV;var wd=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:t,["writableStrategy"]:i,["queueingStrategy"]:n="count",...s}=e;this._controller=null,this._builder=zV.Builder.new(s),this._getSize=n!=="bytes"?uv:cv;let{["highWaterMark"]:c=n==="bytes"?2**14:1e3}={...t},{["highWaterMark"]:v=n==="bytes"?2**14:1e3}={...i};this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:I=>{this._maybeFlush(this._builder,this._controller=I)},start:I=>{this._maybeFlush(this._builder,this._controller=I)}},{highWaterMark:c,size:n!=="bytes"?uv:cv}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:v,size:I=>this._writeValueAndReturnChunkSize(I)})}_writeValueAndReturnChunkSize(e){let t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){t!==null&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,t===null?e.close():e.enqueue(t)}};$n.BuilderTransform=wd;var uv=r=>r.length,cv=r=>r.byteLength});var dv=V(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.recordBatchReaderThroughDOMStream=void 0;var HV=si(),YV=ks();function $V(r,e){let t=new HV.AsyncByteQueue,i=null,n=new ReadableStream({async cancel(){await t.close()},async start(v){await c(v,i||(i=await s()))},async pull(v){i?await c(v,i):v.close()}});return{writable:new WritableStream(t,{highWaterMark:2**14,...r}),readable:n};async function s(){return await(await YV.RecordBatchReader.from(t)).open(e)}async function c(v,I){let S=v.desiredSize,U=null;for(;!(U=await I.next()).done;)if(v.enqueue(U.value),S!=null&&--S<=0)return;v.close()}}eu.recordBatchReaderThroughDOMStream=$V});var fv=V(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.recordBatchWriterThroughDOMStream=void 0;var GV=si();function JV(r,e){let t=new this(r),i=new GV.AsyncByteStream(t),n=new ReadableStream({type:"bytes",async cancel(){await i.cancel()},async pull(c){await s(c)},async start(c){await s(c)}},{highWaterMark:2**14,...e});return{writable:new WritableStream(t,r),readable:n};async function s(c){let v=null,I=c.desiredSize;for(;v=await i.read(I||null);)if(c.enqueue(v),I!=null&&(I-=v.byteLength)<=0)return;c.close()}}tu.recordBatchWriterThroughDOMStream=JV});var Od=V(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.custom=le.or=le.and=le.col=le.lit=le.CustomPredicate=le.Not=le.GTeq=le.LTeq=le.Equals=le.Or=le.And=le.CombinationPredicate=le.ComparisonPredicate=le.Predicate=le.Col=le.Literal=le.Value=void 0;var KV=Ua(),gi=class{eq(e){return e instanceof gi||(e=new Ur(e)),new Td(this,e)}le(e){return e instanceof gi||(e=new Ur(e)),new Id(this,e)}ge(e){return e instanceof gi||(e=new Ur(e)),new Sd(this,e)}lt(e){return new Zn(this.ge(e))}gt(e){return new Zn(this.le(e))}ne(e){return new Zn(this.eq(e))}};le.Value=gi;var Ur=class extends gi{constructor(e){super();this.v=e}};le.Literal=Ur;var Bd=class extends gi{constructor(e){super();this.name=e}bind(e){if(!this.colidx){this.colidx=-1;let i=e.schema.fields;for(let n=-1;++n<i.length;)if(i[n].name===this.name){this.colidx=n;break}if(this.colidx<0)throw new Error(`Failed to bind Col "${this.name}"`)}let t=this.vector=e.getChildAt(this.colidx);return i=>t.get(i)}};le.Col=Bd;var Gn=class{and(...e){return new Jn(this,...e)}or(...e){return new Kn(this,...e)}not(){return new Zn(this)}};le.Predicate=Gn;var Es=class extends Gn{constructor(e,t){super();this.left=e,this.right=t}bind(e){return this.left instanceof Ur?this.right instanceof Ur?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Ur?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}};le.ComparisonPredicate=Es;var Ls=class extends Gn{constructor(...e){super();this.children=e}};le.CombinationPredicate=Ls;Ls.prototype.children=Object.freeze([]);var Jn=class extends Ls{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Jn?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.every(s=>s(i,n))}};le.And=Jn;var Kn=class extends Ls{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Kn?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.some(s=>s(i,n))}};le.Or=Kn;var Td=class extends Es{_bindLitLit(e,t,i){let n=t.v==i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)==s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);if(t.vector instanceof KV.DictionaryVector){let s,c=t.vector;return c.dictionary!==this.lastDictionary?(s=c.reverseLookup(i.v),this.lastDictionary=c.dictionary,this.lastKey=s):s=this.lastKey,s===-1?()=>!1:v=>c.getKey(v)===s}else return(s,c)=>n(s,c)==i.v}_bindLitCol(e,t,i){return this._bindColLit(e,i,t)}};le.Equals=Td;var Id=class extends Es{_bindLitLit(e,t,i){let n=t.v<=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)<=s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);return(s,c)=>n(s,c)<=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,c)=>t.v<=n(s,c)}};le.LTeq=Id;var Sd=class extends Es{_bindLitLit(e,t,i){let n=t.v>=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),s=i.bind(e);return(c,v)=>n(c,v)>=s(c,v)}_bindColLit(e,t,i){let n=t.bind(e);return(s,c)=>n(s,c)>=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,c)=>t.v>=n(s,c)}};le.GTeq=Sd;var Zn=class extends Gn{constructor(e){super();this.child=e}bind(e){let t=this.child.bind(e);return(i,n)=>!t(i,n)}};le.Not=Zn;var Dd=class extends Gn{constructor(e,t){super();this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}};le.CustomPredicate=Dd;function ZV(r){return new Ur(r)}le.lit=ZV;function XV(r){return new Bd(r)}le.col=XV;function QV(...r){return new Jn(...r)}le.and=QV;function eU(...r){return new Kn(...r)}le.or=eU;function tU(r,e){return new Dd(r,e)}le.custom=tU});var _v=V(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.FilteredDataFrame=vi.CountByResult=vi.DataFrame=void 0;var Xn=Ds(),hv=Ra(),Ad=Ke(),pv=Od(),rU=Fr(),yv=be();Xn.Table.prototype.countBy=function(r){return new $i(this.chunks).countBy(r)};Xn.Table.prototype.scan=function(r,e){return new $i(this.chunks).scan(r,e)};Xn.Table.prototype.scanReverse=function(r,e){return new $i(this.chunks).scanReverse(r,e)};Xn.Table.prototype.filter=function(r){return new $i(this.chunks).filter(r)};var $i=class extends Xn.Table{filter(e){return new qs(this.chunks,e)}scan(e,t){let i=this.chunks,n=i.length;for(let s=-1;++s<n;){let c=i[s];t&&t(c);for(let v=-1,I=c.length;++v<I;)e(v,c)}}scanReverse(e,t){let i=this.chunks,n=i.length;for(let s=n;--s>=0;){let c=i[s];t&&t(c);for(let v=c.length;--v>=0;)e(v,c)}}countBy(e){let t=this.chunks,i=t.length,n=typeof e=="string"?new pv.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!yv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(s.length)/Math.log(256)),v=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,I=new v(s.dictionary.length);for(let S=-1;++S<i;){let U=t[S];n.bind(U);let G=n.vector.indices;for(let me=-1,fe=U.length;++me<fe;){let Gt=G.get(me);Gt!==null&&I[Gt]++}}return new ru(s.dictionary,hv.IntVector.from(I))}};vi.DataFrame=$i;var ru=class extends Xn.Table{constructor(e,t){let i=new Ad.Schema([new Ad.Field("values",e.type),new Ad.Field("counts",t.type)]);super(new rU.RecordBatch(i,t.length,[e,t]))}toJSON(){let e=this.getColumnAt(0),t=this.getColumnAt(1),i={};for(let n=-1;++n<this.length;)i[e.get(n)]=t.get(n);return i}};vi.CountByResult=ru;var mv=class{constructor(e,t){this.batches=e,this.predicate=t,this.batchIndex=0,this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch)}next(){for(;this.batchIndex<this.batches.length;){for(;this.index<this.batch.length;){if(this.predicateFunc(this.index,this.batch))return{value:this.batch.get(this.index++)};this.index++}++this.batchIndex<this.batches.length&&(this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch))}return{done:!0,value:null}}[Symbol.iterator](){return this}},qs=class extends $i{constructor(e,t){super(e);this._predicate=t}scan(e,t){let i=this._chunks,n=i.length;for(let s=-1;++s<n;){let c=i[s],v=this._predicate.bind(c),I=!1;for(let S=-1,U=c.length;++S<U;)v(S,c)&&(t&&!I&&(t(c),I=!0),e(S,c))}}scanReverse(e,t){let i=this._chunks,n=i.length;for(let s=n;--s>=0;){let c=i[s],v=this._predicate.bind(c),I=!1;for(let S=c.length;--S>=0;)v(S,c)&&(t&&!I&&(t(c),I=!0),e(S,c))}}count(){let e=0,t=this._chunks,i=t.length;for(let n=-1;++n<i;){let s=t[n],c=this._predicate.bind(s);for(let v=-1,I=s.length;++v<I;)c(v,s)&&++e}return e}[Symbol.iterator](){return new mv(this._chunks,this._predicate)}filter(e){return new qs(this._chunks,this._predicate.and(e))}countBy(e){let t=this._chunks,i=t.length,n=typeof e=="string"?new pv.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!yv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(s.length)/Math.log(256)),v=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,I=new v(s.dictionary.length);for(let S=-1;++S<i;){let U=t[S],G=this._predicate.bind(U);n.bind(U);let me=n.vector.indices;for(let fe=-1,Gt=U.length;++fe<Gt;){let Cr=me.get(fe);Cr!==null&&G(fe,U)&&I[Cr]++}}return new ru(s.dictionary,hv.IntVector.from(I))}};vi.FilteredDataFrame=qs});var vv=V(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.util=_.predicate=_.CountByResult=_.FilteredDataFrame=_.DataFrame=_.RecordBatch=_.Message=_.JSONMessageReader=_.AsyncMessageReader=_.MessageReader=_.RecordBatchJSONWriter=_.RecordBatchStreamWriter=_.RecordBatchFileWriter=_.RecordBatchWriter=_.AsyncRecordBatchStreamReader=_.AsyncRecordBatchFileReader=_.RecordBatchStreamReader=_.RecordBatchFileReader=_.RecordBatchReader=_.AsyncByteQueue=_.AsyncByteStream=_.ByteStream=_.Utf8Builder=_.SparseUnionBuilder=_.DenseUnionBuilder=_.UnionBuilder=_.TimeNanosecondBuilder=_.TimeMicrosecondBuilder=_.TimeMillisecondBuilder=_.TimeSecondBuilder=_.TimeBuilder=_.TimestampNanosecondBuilder=_.TimestampMicrosecondBuilder=_.TimestampMillisecondBuilder=_.TimestampSecondBuilder=_.TimestampBuilder=_.StructBuilder=_.NullBuilder=_.MapBuilder=_.ListBuilder=_.Uint64Builder=_.Uint32Builder=_.Uint16Builder=_.Uint8Builder=_.Int64Builder=_.Int32Builder=_.Int16Builder=_.Int8Builder=_.IntBuilder=_.IntervalYearMonthBuilder=_.IntervalDayTimeBuilder=_.IntervalBuilder=_.Float64Builder=_.Float32Builder=_.Float16Builder=_.FloatBuilder=_.FixedSizeListBuilder=_.FixedSizeBinaryBuilder=_.DictionaryBuilder=_.DecimalBuilder=_.DateMillisecondBuilder=_.DateDayBuilder=_.DateBuilder=_.BoolBuilder=_.BinaryBuilder=_.Builder=_.Utf8Vector=_.SparseUnionVector=_.DenseUnionVector=_.UnionVector=_.TimeNanosecondVector=_.TimeMicrosecondVector=_.TimeMillisecondVector=_.TimeSecondVector=_.TimeVector=_.TimestampNanosecondVector=_.TimestampMicrosecondVector=_.TimestampMillisecondVector=_.TimestampSecondVector=_.TimestampVector=_.StructVector=_.NullVector=_.MapVector=_.ListVector=_.Uint64Vector=_.Uint32Vector=_.Uint16Vector=_.Uint8Vector=_.Int64Vector=_.Int32Vector=_.Int16Vector=_.Int8Vector=_.IntVector=_.IntervalYearMonthVector=_.IntervalDayTimeVector=_.IntervalVector=_.Float64Vector=_.Float32Vector=_.Float16Vector=_.FloatVector=_.FixedSizeListVector=_.FixedSizeBinaryVector=_.DictionaryVector=_.DecimalVector=_.DateMillisecondVector=_.DateDayVector=_.DateVector=_.Chunked=_.BoolVector=_.BinaryVector=_.BaseVector=_.Vector=_.Field=_.Schema=_.Visitor=_.Column=_.Table=_.Map_=_.FixedSizeList=_.IntervalYearMonth=_.IntervalDayTime=_.Interval=_.Dictionary=_.SparseUnion=_.DenseUnion=_.Union=_.Struct=_.List=_.Decimal=_.TimeNanosecond=_.TimeMicrosecond=_.TimeMillisecond=_.TimeSecond=_.Time=_.TimestampNanosecond=_.TimestampMicrosecond=_.TimestampMillisecond=_.TimestampSecond=_.Timestamp=_.DateMillisecond=_.DateDay=_.Date_=_.FixedSizeBinary=_.Binary=_.Utf8=_.Float64=_.Float32=_.Float16=_.Float=_.Uint64=_.Uint32=_.Uint16=_.Uint8=_.Int64=_.Int32=_.Int16=_.Int8=_.Int=_.Bool=_.Null=_.DataType=_.Data=_.BufferType=_.Type=_.MessageHeader=_.MetadataVersion=_.IntervalUnit=_.UnionMode=_.Precision=_.TimeUnit=_.DateUnit=void 0;var Qn=$r();Object.defineProperty(_,"DateUnit",{enumerable:!0,get:function(){return Qn.DateUnit}});Object.defineProperty(_,"TimeUnit",{enumerable:!0,get:function(){return Qn.TimeUnit}});Object.defineProperty(_,"Precision",{enumerable:!0,get:function(){return Qn.Precision}});Object.defineProperty(_,"UnionMode",{enumerable:!0,get:function(){return Qn.UnionMode}});Object.defineProperty(_,"IntervalUnit",{enumerable:!0,get:function(){return Qn.IntervalUnit}});Object.defineProperty(_,"MetadataVersion",{enumerable:!0,get:function(){return Qn.MetadataVersion}});var iU=yo();Object.defineProperty(_,"MessageHeader",{enumerable:!0,get:function(){return iU.MessageHeader}});var bv=Te();Object.defineProperty(_,"Type",{enumerable:!0,get:function(){return bv.Type}});Object.defineProperty(_,"BufferType",{enumerable:!0,get:function(){return bv.BufferType}});var nU=qt();Object.defineProperty(_,"Data",{enumerable:!0,get:function(){return nU.Data}});var ie=be();Object.defineProperty(_,"DataType",{enumerable:!0,get:function(){return ie.DataType}});Object.defineProperty(_,"Null",{enumerable:!0,get:function(){return ie.Null}});Object.defineProperty(_,"Bool",{enumerable:!0,get:function(){return ie.Bool}});Object.defineProperty(_,"Int",{enumerable:!0,get:function(){return ie.Int}});Object.defineProperty(_,"Int8",{enumerable:!0,get:function(){return ie.Int8}});Object.defineProperty(_,"Int16",{enumerable:!0,get:function(){return ie.Int16}});Object.defineProperty(_,"Int32",{enumerable:!0,get:function(){return ie.Int32}});Object.defineProperty(_,"Int64",{enumerable:!0,get:function(){return ie.Int64}});Object.defineProperty(_,"Uint8",{enumerable:!0,get:function(){return ie.Uint8}});Object.defineProperty(_,"Uint16",{enumerable:!0,get:function(){return ie.Uint16}});Object.defineProperty(_,"Uint32",{enumerable:!0,get:function(){return ie.Uint32}});Object.defineProperty(_,"Uint64",{enumerable:!0,get:function(){return ie.Uint64}});Object.defineProperty(_,"Float",{enumerable:!0,get:function(){return ie.Float}});Object.defineProperty(_,"Float16",{enumerable:!0,get:function(){return ie.Float16}});Object.defineProperty(_,"Float32",{enumerable:!0,get:function(){return ie.Float32}});Object.defineProperty(_,"Float64",{enumerable:!0,get:function(){return ie.Float64}});Object.defineProperty(_,"Utf8",{enumerable:!0,get:function(){return ie.Utf8}});Object.defineProperty(_,"Binary",{enumerable:!0,get:function(){return ie.Binary}});Object.defineProperty(_,"FixedSizeBinary",{enumerable:!0,get:function(){return ie.FixedSizeBinary}});Object.defineProperty(_,"Date_",{enumerable:!0,get:function(){return ie.Date_}});Object.defineProperty(_,"DateDay",{enumerable:!0,get:function(){return ie.DateDay}});Object.defineProperty(_,"DateMillisecond",{enumerable:!0,get:function(){return ie.DateMillisecond}});Object.defineProperty(_,"Timestamp",{enumerable:!0,get:function(){return ie.Timestamp}});Object.defineProperty(_,"TimestampSecond",{enumerable:!0,get:function(){return ie.TimestampSecond}});Object.defineProperty(_,"TimestampMillisecond",{enumerable:!0,get:function(){return ie.TimestampMillisecond}});Object.defineProperty(_,"TimestampMicrosecond",{enumerable:!0,get:function(){return ie.TimestampMicrosecond}});Object.defineProperty(_,"TimestampNanosecond",{enumerable:!0,get:function(){return ie.TimestampNanosecond}});Object.defineProperty(_,"Time",{enumerable:!0,get:function(){return ie.Time}});Object.defineProperty(_,"TimeSecond",{enumerable:!0,get:function(){return ie.TimeSecond}});Object.defineProperty(_,"TimeMillisecond",{enumerable:!0,get:function(){return ie.TimeMillisecond}});Object.defineProperty(_,"TimeMicrosecond",{enumerable:!0,get:function(){return ie.TimeMicrosecond}});Object.defineProperty(_,"TimeNanosecond",{enumerable:!0,get:function(){return ie.TimeNanosecond}});Object.defineProperty(_,"Decimal",{enumerable:!0,get:function(){return ie.Decimal}});Object.defineProperty(_,"List",{enumerable:!0,get:function(){return ie.List}});Object.defineProperty(_,"Struct",{enumerable:!0,get:function(){return ie.Struct}});Object.defineProperty(_,"Union",{enumerable:!0,get:function(){return ie.Union}});Object.defineProperty(_,"DenseUnion",{enumerable:!0,get:function(){return ie.DenseUnion}});Object.defineProperty(_,"SparseUnion",{enumerable:!0,get:function(){return ie.SparseUnion}});Object.defineProperty(_,"Dictionary",{enumerable:!0,get:function(){return ie.Dictionary}});Object.defineProperty(_,"Interval",{enumerable:!0,get:function(){return ie.Interval}});Object.defineProperty(_,"IntervalDayTime",{enumerable:!0,get:function(){return ie.IntervalDayTime}});Object.defineProperty(_,"IntervalYearMonth",{enumerable:!0,get:function(){return ie.IntervalYearMonth}});Object.defineProperty(_,"FixedSizeList",{enumerable:!0,get:function(){return ie.FixedSizeList}});Object.defineProperty(_,"Map_",{enumerable:!0,get:function(){return ie.Map_}});var sU=Ds();Object.defineProperty(_,"Table",{enumerable:!0,get:function(){return sU.Table}});var oU=An();Object.defineProperty(_,"Column",{enumerable:!0,get:function(){return oU.Column}});var aU=tt();Object.defineProperty(_,"Visitor",{enumerable:!0,get:function(){return aU.Visitor}});var gv=Ke();Object.defineProperty(_,"Schema",{enumerable:!0,get:function(){return gv.Schema}});Object.defineProperty(_,"Field",{enumerable:!0,get:function(){return gv.Field}});var ee=fr();Object.defineProperty(_,"Vector",{enumerable:!0,get:function(){return ee.Vector}});Object.defineProperty(_,"BaseVector",{enumerable:!0,get:function(){return ee.BaseVector}});Object.defineProperty(_,"BinaryVector",{enumerable:!0,get:function(){return ee.BinaryVector}});Object.defineProperty(_,"BoolVector",{enumerable:!0,get:function(){return ee.BoolVector}});Object.defineProperty(_,"Chunked",{enumerable:!0,get:function(){return ee.Chunked}});Object.defineProperty(_,"DateVector",{enumerable:!0,get:function(){return ee.DateVector}});Object.defineProperty(_,"DateDayVector",{enumerable:!0,get:function(){return ee.DateDayVector}});Object.defineProperty(_,"DateMillisecondVector",{enumerable:!0,get:function(){return ee.DateMillisecondVector}});Object.defineProperty(_,"DecimalVector",{enumerable:!0,get:function(){return ee.DecimalVector}});Object.defineProperty(_,"DictionaryVector",{enumerable:!0,get:function(){return ee.DictionaryVector}});Object.defineProperty(_,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return ee.FixedSizeBinaryVector}});Object.defineProperty(_,"FixedSizeListVector",{enumerable:!0,get:function(){return ee.FixedSizeListVector}});Object.defineProperty(_,"FloatVector",{enumerable:!0,get:function(){return ee.FloatVector}});Object.defineProperty(_,"Float16Vector",{enumerable:!0,get:function(){return ee.Float16Vector}});Object.defineProperty(_,"Float32Vector",{enumerable:!0,get:function(){return ee.Float32Vector}});Object.defineProperty(_,"Float64Vector",{enumerable:!0,get:function(){return ee.Float64Vector}});Object.defineProperty(_,"IntervalVector",{enumerable:!0,get:function(){return ee.IntervalVector}});Object.defineProperty(_,"IntervalDayTimeVector",{enumerable:!0,get:function(){return ee.IntervalDayTimeVector}});Object.defineProperty(_,"IntervalYearMonthVector",{enumerable:!0,get:function(){return ee.IntervalYearMonthVector}});Object.defineProperty(_,"IntVector",{enumerable:!0,get:function(){return ee.IntVector}});Object.defineProperty(_,"Int8Vector",{enumerable:!0,get:function(){return ee.Int8Vector}});Object.defineProperty(_,"Int16Vector",{enumerable:!0,get:function(){return ee.Int16Vector}});Object.defineProperty(_,"Int32Vector",{enumerable:!0,get:function(){return ee.Int32Vector}});Object.defineProperty(_,"Int64Vector",{enumerable:!0,get:function(){return ee.Int64Vector}});Object.defineProperty(_,"Uint8Vector",{enumerable:!0,get:function(){return ee.Uint8Vector}});Object.defineProperty(_,"Uint16Vector",{enumerable:!0,get:function(){return ee.Uint16Vector}});Object.defineProperty(_,"Uint32Vector",{enumerable:!0,get:function(){return ee.Uint32Vector}});Object.defineProperty(_,"Uint64Vector",{enumerable:!0,get:function(){return ee.Uint64Vector}});Object.defineProperty(_,"ListVector",{enumerable:!0,get:function(){return ee.ListVector}});Object.defineProperty(_,"MapVector",{enumerable:!0,get:function(){return ee.MapVector}});Object.defineProperty(_,"NullVector",{enumerable:!0,get:function(){return ee.NullVector}});Object.defineProperty(_,"StructVector",{enumerable:!0,get:function(){return ee.StructVector}});Object.defineProperty(_,"TimestampVector",{enumerable:!0,get:function(){return ee.TimestampVector}});Object.defineProperty(_,"TimestampSecondVector",{enumerable:!0,get:function(){return ee.TimestampSecondVector}});Object.defineProperty(_,"TimestampMillisecondVector",{enumerable:!0,get:function(){return ee.TimestampMillisecondVector}});Object.defineProperty(_,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return ee.TimestampMicrosecondVector}});Object.defineProperty(_,"TimestampNanosecondVector",{enumerable:!0,get:function(){return ee.TimestampNanosecondVector}});Object.defineProperty(_,"TimeVector",{enumerable:!0,get:function(){return ee.TimeVector}});Object.defineProperty(_,"TimeSecondVector",{enumerable:!0,get:function(){return ee.TimeSecondVector}});Object.defineProperty(_,"TimeMillisecondVector",{enumerable:!0,get:function(){return ee.TimeMillisecondVector}});Object.defineProperty(_,"TimeMicrosecondVector",{enumerable:!0,get:function(){return ee.TimeMicrosecondVector}});Object.defineProperty(_,"TimeNanosecondVector",{enumerable:!0,get:function(){return ee.TimeNanosecondVector}});Object.defineProperty(_,"UnionVector",{enumerable:!0,get:function(){return ee.UnionVector}});Object.defineProperty(_,"DenseUnionVector",{enumerable:!0,get:function(){return ee.DenseUnionVector}});Object.defineProperty(_,"SparseUnionVector",{enumerable:!0,get:function(){return ee.SparseUnionVector}});Object.defineProperty(_,"Utf8Vector",{enumerable:!0,get:function(){return ee.Utf8Vector}});var ne=ta();Object.defineProperty(_,"Builder",{enumerable:!0,get:function(){return ne.Builder}});Object.defineProperty(_,"BinaryBuilder",{enumerable:!0,get:function(){return ne.BinaryBuilder}});Object.defineProperty(_,"BoolBuilder",{enumerable:!0,get:function(){return ne.BoolBuilder}});Object.defineProperty(_,"DateBuilder",{enumerable:!0,get:function(){return ne.DateBuilder}});Object.defineProperty(_,"DateDayBuilder",{enumerable:!0,get:function(){return ne.DateDayBuilder}});Object.defineProperty(_,"DateMillisecondBuilder",{enumerable:!0,get:function(){return ne.DateMillisecondBuilder}});Object.defineProperty(_,"DecimalBuilder",{enumerable:!0,get:function(){return ne.DecimalBuilder}});Object.defineProperty(_,"DictionaryBuilder",{enumerable:!0,get:function(){return ne.DictionaryBuilder}});Object.defineProperty(_,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return ne.FixedSizeBinaryBuilder}});Object.defineProperty(_,"FixedSizeListBuilder",{enumerable:!0,get:function(){return ne.FixedSizeListBuilder}});Object.defineProperty(_,"FloatBuilder",{enumerable:!0,get:function(){return ne.FloatBuilder}});Object.defineProperty(_,"Float16Builder",{enumerable:!0,get:function(){return ne.Float16Builder}});Object.defineProperty(_,"Float32Builder",{enumerable:!0,get:function(){return ne.Float32Builder}});Object.defineProperty(_,"Float64Builder",{enumerable:!0,get:function(){return ne.Float64Builder}});Object.defineProperty(_,"IntervalBuilder",{enumerable:!0,get:function(){return ne.IntervalBuilder}});Object.defineProperty(_,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return ne.IntervalDayTimeBuilder}});Object.defineProperty(_,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return ne.IntervalYearMonthBuilder}});Object.defineProperty(_,"IntBuilder",{enumerable:!0,get:function(){return ne.IntBuilder}});Object.defineProperty(_,"Int8Builder",{enumerable:!0,get:function(){return ne.Int8Builder}});Object.defineProperty(_,"Int16Builder",{enumerable:!0,get:function(){return ne.Int16Builder}});Object.defineProperty(_,"Int32Builder",{enumerable:!0,get:function(){return ne.Int32Builder}});Object.defineProperty(_,"Int64Builder",{enumerable:!0,get:function(){return ne.Int64Builder}});Object.defineProperty(_,"Uint8Builder",{enumerable:!0,get:function(){return ne.Uint8Builder}});Object.defineProperty(_,"Uint16Builder",{enumerable:!0,get:function(){return ne.Uint16Builder}});Object.defineProperty(_,"Uint32Builder",{enumerable:!0,get:function(){return ne.Uint32Builder}});Object.defineProperty(_,"Uint64Builder",{enumerable:!0,get:function(){return ne.Uint64Builder}});Object.defineProperty(_,"ListBuilder",{enumerable:!0,get:function(){return ne.ListBuilder}});Object.defineProperty(_,"MapBuilder",{enumerable:!0,get:function(){return ne.MapBuilder}});Object.defineProperty(_,"NullBuilder",{enumerable:!0,get:function(){return ne.NullBuilder}});Object.defineProperty(_,"StructBuilder",{enumerable:!0,get:function(){return ne.StructBuilder}});Object.defineProperty(_,"TimestampBuilder",{enumerable:!0,get:function(){return ne.TimestampBuilder}});Object.defineProperty(_,"TimestampSecondBuilder",{enumerable:!0,get:function(){return ne.TimestampSecondBuilder}});Object.defineProperty(_,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return ne.TimestampMillisecondBuilder}});Object.defineProperty(_,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return ne.TimestampMicrosecondBuilder}});Object.defineProperty(_,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return ne.TimestampNanosecondBuilder}});Object.defineProperty(_,"TimeBuilder",{enumerable:!0,get:function(){return ne.TimeBuilder}});Object.defineProperty(_,"TimeSecondBuilder",{enumerable:!0,get:function(){return ne.TimeSecondBuilder}});Object.defineProperty(_,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return ne.TimeMillisecondBuilder}});Object.defineProperty(_,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return ne.TimeMicrosecondBuilder}});Object.defineProperty(_,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return ne.TimeNanosecondBuilder}});Object.defineProperty(_,"UnionBuilder",{enumerable:!0,get:function(){return ne.UnionBuilder}});Object.defineProperty(_,"DenseUnionBuilder",{enumerable:!0,get:function(){return ne.DenseUnionBuilder}});Object.defineProperty(_,"SparseUnionBuilder",{enumerable:!0,get:function(){return ne.SparseUnionBuilder}});Object.defineProperty(_,"Utf8Builder",{enumerable:!0,get:function(){return ne.Utf8Builder}});var Fd=si();Object.defineProperty(_,"ByteStream",{enumerable:!0,get:function(){return Fd.ByteStream}});Object.defineProperty(_,"AsyncByteStream",{enumerable:!0,get:function(){return Fd.AsyncByteStream}});Object.defineProperty(_,"AsyncByteQueue",{enumerable:!0,get:function(){return Fd.AsyncByteQueue}});var zs=ks();Object.defineProperty(_,"RecordBatchReader",{enumerable:!0,get:function(){return zs.RecordBatchReader}});Object.defineProperty(_,"RecordBatchFileReader",{enumerable:!0,get:function(){return zs.RecordBatchFileReader}});Object.defineProperty(_,"RecordBatchStreamReader",{enumerable:!0,get:function(){return zs.RecordBatchStreamReader}});Object.defineProperty(_,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return zs.AsyncRecordBatchFileReader}});Object.defineProperty(_,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return zs.AsyncRecordBatchStreamReader}});var iu=Sa();Object.defineProperty(_,"RecordBatchWriter",{enumerable:!0,get:function(){return iu.RecordBatchWriter}});Object.defineProperty(_,"RecordBatchFileWriter",{enumerable:!0,get:function(){return iu.RecordBatchFileWriter}});Object.defineProperty(_,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return iu.RecordBatchStreamWriter}});Object.defineProperty(_,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return iu.RecordBatchJSONWriter}});var Md=ya();Object.defineProperty(_,"MessageReader",{enumerable:!0,get:function(){return Md.MessageReader}});Object.defineProperty(_,"AsyncMessageReader",{enumerable:!0,get:function(){return Md.AsyncMessageReader}});Object.defineProperty(_,"JSONMessageReader",{enumerable:!0,get:function(){return Md.JSONMessageReader}});var uU=Ei();Object.defineProperty(_,"Message",{enumerable:!0,get:function(){return uU.Message}});var cU=Fr();Object.defineProperty(_,"RecordBatch",{enumerable:!0,get:function(){return cU.RecordBatch}});var Vd=_v();Object.defineProperty(_,"DataFrame",{enumerable:!0,get:function(){return Vd.DataFrame}});Object.defineProperty(_,"FilteredDataFrame",{enumerable:!0,get:function(){return Vd.FilteredDataFrame}});Object.defineProperty(_,"CountByResult",{enumerable:!0,get:function(){return Vd.CountByResult}});var lU=ls(),dU=qc(),fU=tr(),hU=os(),pU=Ye(),yU=bs(),mU=Od();_.predicate=mU;var Ud=nl();_.util={...lU,...dU,...fU,...hU,...pU,...yU,compareSchemas:Ud.compareSchemas,compareFields:Ud.compareFields,compareTypes:Ud.compareTypes}});var Nd=V(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.Utf8Builder=b.SparseUnionBuilder=b.DenseUnionBuilder=b.UnionBuilder=b.TimeNanosecondBuilder=b.TimeMicrosecondBuilder=b.TimeMillisecondBuilder=b.TimeSecondBuilder=b.TimeBuilder=b.TimestampNanosecondBuilder=b.TimestampMicrosecondBuilder=b.TimestampMillisecondBuilder=b.TimestampSecondBuilder=b.TimestampBuilder=b.StructBuilder=b.NullBuilder=b.MapBuilder=b.ListBuilder=b.Uint64Builder=b.Uint32Builder=b.Uint16Builder=b.Uint8Builder=b.Int64Builder=b.Int32Builder=b.Int16Builder=b.Int8Builder=b.IntBuilder=b.IntervalYearMonthBuilder=b.IntervalDayTimeBuilder=b.IntervalBuilder=b.Float64Builder=b.Float32Builder=b.Float16Builder=b.FloatBuilder=b.FixedSizeListBuilder=b.FixedSizeBinaryBuilder=b.DictionaryBuilder=b.DecimalBuilder=b.DateMillisecondBuilder=b.DateDayBuilder=b.DateBuilder=b.BoolBuilder=b.BinaryBuilder=b.Builder=b.util=b.predicate=b.CountByResult=b.FilteredDataFrame=b.DataFrame=b.RecordBatch=b.Message=b.JSONMessageReader=b.AsyncMessageReader=b.MessageReader=b.RecordBatchJSONWriter=b.RecordBatchStreamWriter=b.RecordBatchFileWriter=b.RecordBatchWriter=b.AsyncRecordBatchStreamReader=b.AsyncRecordBatchFileReader=b.RecordBatchStreamReader=b.RecordBatchFileReader=b.RecordBatchReader=b.AsyncByteQueue=b.AsyncByteStream=b.ByteStream=b.Utf8Vector=b.SparseUnionVector=b.DenseUnionVector=b.UnionVector=b.TimeNanosecondVector=b.TimeMicrosecondVector=b.TimeMillisecondVector=b.TimeSecondVector=b.TimeVector=b.TimestampNanosecondVector=b.TimestampMicrosecondVector=b.TimestampMillisecondVector=b.TimestampSecondVector=b.TimestampVector=b.StructVector=b.NullVector=b.MapVector=b.ListVector=b.Uint64Vector=b.Uint32Vector=b.Uint16Vector=b.Uint8Vector=b.Int64Vector=b.Int32Vector=b.Int16Vector=b.Int8Vector=b.IntVector=b.IntervalYearMonthVector=b.IntervalDayTimeVector=b.IntervalVector=b.Float64Vector=b.Float32Vector=b.Float16Vector=b.FloatVector=b.FixedSizeListVector=b.FixedSizeBinaryVector=b.DictionaryVector=b.DecimalVector=b.DateMillisecondVector=b.DateDayVector=b.DateVector=b.Chunked=b.BoolVector=b.BinaryVector=b.BaseVector=b.Vector=b.Visitor=b.Field=b.Schema=b.Column=b.Table=b.Map_=b.FixedSizeList=b.IntervalYearMonth=b.IntervalDayTime=b.Interval=b.Dictionary=b.SparseUnion=b.DenseUnion=b.Union=b.Struct=b.List=b.Decimal=b.TimeNanosecond=b.TimeMicrosecond=b.TimeMillisecond=b.TimeSecond=b.Time=b.TimestampNanosecond=b.TimestampMicrosecond=b.TimestampMillisecond=b.TimestampSecond=b.Timestamp=b.DateMillisecond=b.DateDay=b.Date_=b.FixedSizeBinary=b.Binary=b.Utf8=b.Float64=b.Float32=b.Float16=b.Float=b.Uint64=b.Uint32=b.Uint16=b.Uint8=b.Int64=b.Int32=b.Int16=b.Int8=b.Int=b.Bool=b.Null=b.DataType=b.Data=b.BufferType=b.UnionMode=b.Type=b.TimeUnit=b.Precision=b.MetadataVersion=b.MessageHeader=b.IntervalUnit=b.DateUnit=void 0;var _U=ns(),bU=ta(),Cd=ks(),Pd=Sa(),gU=av(),vU=lv(),kd=dv(),Rd=fv();_U.default.toDOMStream=gU.toDOMStream;bU.Builder.throughDOM=vU.builderThroughDOMStream;Cd.RecordBatchReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Cd.RecordBatchFileReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Cd.RecordBatchStreamReader.throughDOM=kd.recordBatchReaderThroughDOMStream;Pd.RecordBatchWriter.throughDOM=Rd.recordBatchWriterThroughDOMStream;Pd.RecordBatchFileWriter.throughDOM=Rd.recordBatchWriterThroughDOMStream;Pd.RecordBatchStreamWriter.throughDOM=Rd.recordBatchWriterThroughDOMStream;var D=vv();Object.defineProperty(b,"DateUnit",{enumerable:!0,get:function(){return D.DateUnit}});Object.defineProperty(b,"IntervalUnit",{enumerable:!0,get:function(){return D.IntervalUnit}});Object.defineProperty(b,"MessageHeader",{enumerable:!0,get:function(){return D.MessageHeader}});Object.defineProperty(b,"MetadataVersion",{enumerable:!0,get:function(){return D.MetadataVersion}});Object.defineProperty(b,"Precision",{enumerable:!0,get:function(){return D.Precision}});Object.defineProperty(b,"TimeUnit",{enumerable:!0,get:function(){return D.TimeUnit}});Object.defineProperty(b,"Type",{enumerable:!0,get:function(){return D.Type}});Object.defineProperty(b,"UnionMode",{enumerable:!0,get:function(){return D.UnionMode}});Object.defineProperty(b,"BufferType",{enumerable:!0,get:function(){return D.BufferType}});Object.defineProperty(b,"Data",{enumerable:!0,get:function(){return D.Data}});Object.defineProperty(b,"DataType",{enumerable:!0,get:function(){return D.DataType}});Object.defineProperty(b,"Null",{enumerable:!0,get:function(){return D.Null}});Object.defineProperty(b,"Bool",{enumerable:!0,get:function(){return D.Bool}});Object.defineProperty(b,"Int",{enumerable:!0,get:function(){return D.Int}});Object.defineProperty(b,"Int8",{enumerable:!0,get:function(){return D.Int8}});Object.defineProperty(b,"Int16",{enumerable:!0,get:function(){return D.Int16}});Object.defineProperty(b,"Int32",{enumerable:!0,get:function(){return D.Int32}});Object.defineProperty(b,"Int64",{enumerable:!0,get:function(){return D.Int64}});Object.defineProperty(b,"Uint8",{enumerable:!0,get:function(){return D.Uint8}});Object.defineProperty(b,"Uint16",{enumerable:!0,get:function(){return D.Uint16}});Object.defineProperty(b,"Uint32",{enumerable:!0,get:function(){return D.Uint32}});Object.defineProperty(b,"Uint64",{enumerable:!0,get:function(){return D.Uint64}});Object.defineProperty(b,"Float",{enumerable:!0,get:function(){return D.Float}});Object.defineProperty(b,"Float16",{enumerable:!0,get:function(){return D.Float16}});Object.defineProperty(b,"Float32",{enumerable:!0,get:function(){return D.Float32}});Object.defineProperty(b,"Float64",{enumerable:!0,get:function(){return D.Float64}});Object.defineProperty(b,"Utf8",{enumerable:!0,get:function(){return D.Utf8}});Object.defineProperty(b,"Binary",{enumerable:!0,get:function(){return D.Binary}});Object.defineProperty(b,"FixedSizeBinary",{enumerable:!0,get:function(){return D.FixedSizeBinary}});Object.defineProperty(b,"Date_",{enumerable:!0,get:function(){return D.Date_}});Object.defineProperty(b,"DateDay",{enumerable:!0,get:function(){return D.DateDay}});Object.defineProperty(b,"DateMillisecond",{enumerable:!0,get:function(){return D.DateMillisecond}});Object.defineProperty(b,"Timestamp",{enumerable:!0,get:function(){return D.Timestamp}});Object.defineProperty(b,"TimestampSecond",{enumerable:!0,get:function(){return D.TimestampSecond}});Object.defineProperty(b,"TimestampMillisecond",{enumerable:!0,get:function(){return D.TimestampMillisecond}});Object.defineProperty(b,"TimestampMicrosecond",{enumerable:!0,get:function(){return D.TimestampMicrosecond}});Object.defineProperty(b,"TimestampNanosecond",{enumerable:!0,get:function(){return D.TimestampNanosecond}});Object.defineProperty(b,"Time",{enumerable:!0,get:function(){return D.Time}});Object.defineProperty(b,"TimeSecond",{enumerable:!0,get:function(){return D.TimeSecond}});Object.defineProperty(b,"TimeMillisecond",{enumerable:!0,get:function(){return D.TimeMillisecond}});Object.defineProperty(b,"TimeMicrosecond",{enumerable:!0,get:function(){return D.TimeMicrosecond}});Object.defineProperty(b,"TimeNanosecond",{enumerable:!0,get:function(){return D.TimeNanosecond}});Object.defineProperty(b,"Decimal",{enumerable:!0,get:function(){return D.Decimal}});Object.defineProperty(b,"List",{enumerable:!0,get:function(){return D.List}});Object.defineProperty(b,"Struct",{enumerable:!0,get:function(){return D.Struct}});Object.defineProperty(b,"Union",{enumerable:!0,get:function(){return D.Union}});Object.defineProperty(b,"DenseUnion",{enumerable:!0,get:function(){return D.DenseUnion}});Object.defineProperty(b,"SparseUnion",{enumerable:!0,get:function(){return D.SparseUnion}});Object.defineProperty(b,"Dictionary",{enumerable:!0,get:function(){return D.Dictionary}});Object.defineProperty(b,"Interval",{enumerable:!0,get:function(){return D.Interval}});Object.defineProperty(b,"IntervalDayTime",{enumerable:!0,get:function(){return D.IntervalDayTime}});Object.defineProperty(b,"IntervalYearMonth",{enumerable:!0,get:function(){return D.IntervalYearMonth}});Object.defineProperty(b,"FixedSizeList",{enumerable:!0,get:function(){return D.FixedSizeList}});Object.defineProperty(b,"Map_",{enumerable:!0,get:function(){return D.Map_}});Object.defineProperty(b,"Table",{enumerable:!0,get:function(){return D.Table}});Object.defineProperty(b,"Column",{enumerable:!0,get:function(){return D.Column}});Object.defineProperty(b,"Schema",{enumerable:!0,get:function(){return D.Schema}});Object.defineProperty(b,"Field",{enumerable:!0,get:function(){return D.Field}});Object.defineProperty(b,"Visitor",{enumerable:!0,get:function(){return D.Visitor}});Object.defineProperty(b,"Vector",{enumerable:!0,get:function(){return D.Vector}});Object.defineProperty(b,"BaseVector",{enumerable:!0,get:function(){return D.BaseVector}});Object.defineProperty(b,"BinaryVector",{enumerable:!0,get:function(){return D.BinaryVector}});Object.defineProperty(b,"BoolVector",{enumerable:!0,get:function(){return D.BoolVector}});Object.defineProperty(b,"Chunked",{enumerable:!0,get:function(){return D.Chunked}});Object.defineProperty(b,"DateVector",{enumerable:!0,get:function(){return D.DateVector}});Object.defineProperty(b,"DateDayVector",{enumerable:!0,get:function(){return D.DateDayVector}});Object.defineProperty(b,"DateMillisecondVector",{enumerable:!0,get:function(){return D.DateMillisecondVector}});Object.defineProperty(b,"DecimalVector",{enumerable:!0,get:function(){return D.DecimalVector}});Object.defineProperty(b,"DictionaryVector",{enumerable:!0,get:function(){return D.DictionaryVector}});Object.defineProperty(b,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return D.FixedSizeBinaryVector}});Object.defineProperty(b,"FixedSizeListVector",{enumerable:!0,get:function(){return D.FixedSizeListVector}});Object.defineProperty(b,"FloatVector",{enumerable:!0,get:function(){return D.FloatVector}});Object.defineProperty(b,"Float16Vector",{enumerable:!0,get:function(){return D.Float16Vector}});Object.defineProperty(b,"Float32Vector",{enumerable:!0,get:function(){return D.Float32Vector}});Object.defineProperty(b,"Float64Vector",{enumerable:!0,get:function(){return D.Float64Vector}});Object.defineProperty(b,"IntervalVector",{enumerable:!0,get:function(){return D.IntervalVector}});Object.defineProperty(b,"IntervalDayTimeVector",{enumerable:!0,get:function(){return D.IntervalDayTimeVector}});Object.defineProperty(b,"IntervalYearMonthVector",{enumerable:!0,get:function(){return D.IntervalYearMonthVector}});Object.defineProperty(b,"IntVector",{enumerable:!0,get:function(){return D.IntVector}});Object.defineProperty(b,"Int8Vector",{enumerable:!0,get:function(){return D.Int8Vector}});Object.defineProperty(b,"Int16Vector",{enumerable:!0,get:function(){return D.Int16Vector}});Object.defineProperty(b,"Int32Vector",{enumerable:!0,get:function(){return D.Int32Vector}});Object.defineProperty(b,"Int64Vector",{enumerable:!0,get:function(){return D.Int64Vector}});Object.defineProperty(b,"Uint8Vector",{enumerable:!0,get:function(){return D.Uint8Vector}});Object.defineProperty(b,"Uint16Vector",{enumerable:!0,get:function(){return D.Uint16Vector}});Object.defineProperty(b,"Uint32Vector",{enumerable:!0,get:function(){return D.Uint32Vector}});Object.defineProperty(b,"Uint64Vector",{enumerable:!0,get:function(){return D.Uint64Vector}});Object.defineProperty(b,"ListVector",{enumerable:!0,get:function(){return D.ListVector}});Object.defineProperty(b,"MapVector",{enumerable:!0,get:function(){return D.MapVector}});Object.defineProperty(b,"NullVector",{enumerable:!0,get:function(){return D.NullVector}});Object.defineProperty(b,"StructVector",{enumerable:!0,get:function(){return D.StructVector}});Object.defineProperty(b,"TimestampVector",{enumerable:!0,get:function(){return D.TimestampVector}});Object.defineProperty(b,"TimestampSecondVector",{enumerable:!0,get:function(){return D.TimestampSecondVector}});Object.defineProperty(b,"TimestampMillisecondVector",{enumerable:!0,get:function(){return D.TimestampMillisecondVector}});Object.defineProperty(b,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return D.TimestampMicrosecondVector}});Object.defineProperty(b,"TimestampNanosecondVector",{enumerable:!0,get:function(){return D.TimestampNanosecondVector}});Object.defineProperty(b,"TimeVector",{enumerable:!0,get:function(){return D.TimeVector}});Object.defineProperty(b,"TimeSecondVector",{enumerable:!0,get:function(){return D.TimeSecondVector}});Object.defineProperty(b,"TimeMillisecondVector",{enumerable:!0,get:function(){return D.TimeMillisecondVector}});Object.defineProperty(b,"TimeMicrosecondVector",{enumerable:!0,get:function(){return D.TimeMicrosecondVector}});Object.defineProperty(b,"TimeNanosecondVector",{enumerable:!0,get:function(){return D.TimeNanosecondVector}});Object.defineProperty(b,"UnionVector",{enumerable:!0,get:function(){return D.UnionVector}});Object.defineProperty(b,"DenseUnionVector",{enumerable:!0,get:function(){return D.DenseUnionVector}});Object.defineProperty(b,"SparseUnionVector",{enumerable:!0,get:function(){return D.SparseUnionVector}});Object.defineProperty(b,"Utf8Vector",{enumerable:!0,get:function(){return D.Utf8Vector}});Object.defineProperty(b,"ByteStream",{enumerable:!0,get:function(){return D.ByteStream}});Object.defineProperty(b,"AsyncByteStream",{enumerable:!0,get:function(){return D.AsyncByteStream}});Object.defineProperty(b,"AsyncByteQueue",{enumerable:!0,get:function(){return D.AsyncByteQueue}});Object.defineProperty(b,"RecordBatchReader",{enumerable:!0,get:function(){return D.RecordBatchReader}});Object.defineProperty(b,"RecordBatchFileReader",{enumerable:!0,get:function(){return D.RecordBatchFileReader}});Object.defineProperty(b,"RecordBatchStreamReader",{enumerable:!0,get:function(){return D.RecordBatchStreamReader}});Object.defineProperty(b,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return D.AsyncRecordBatchFileReader}});Object.defineProperty(b,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return D.AsyncRecordBatchStreamReader}});Object.defineProperty(b,"RecordBatchWriter",{enumerable:!0,get:function(){return D.RecordBatchWriter}});Object.defineProperty(b,"RecordBatchFileWriter",{enumerable:!0,get:function(){return D.RecordBatchFileWriter}});Object.defineProperty(b,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return D.RecordBatchStreamWriter}});Object.defineProperty(b,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return D.RecordBatchJSONWriter}});Object.defineProperty(b,"MessageReader",{enumerable:!0,get:function(){return D.MessageReader}});Object.defineProperty(b,"AsyncMessageReader",{enumerable:!0,get:function(){return D.AsyncMessageReader}});Object.defineProperty(b,"JSONMessageReader",{enumerable:!0,get:function(){return D.JSONMessageReader}});Object.defineProperty(b,"Message",{enumerable:!0,get:function(){return D.Message}});Object.defineProperty(b,"RecordBatch",{enumerable:!0,get:function(){return D.RecordBatch}});Object.defineProperty(b,"DataFrame",{enumerable:!0,get:function(){return D.DataFrame}});Object.defineProperty(b,"FilteredDataFrame",{enumerable:!0,get:function(){return D.FilteredDataFrame}});Object.defineProperty(b,"CountByResult",{enumerable:!0,get:function(){return D.CountByResult}});Object.defineProperty(b,"predicate",{enumerable:!0,get:function(){return D.predicate}});Object.defineProperty(b,"util",{enumerable:!0,get:function(){return D.util}});Object.defineProperty(b,"Builder",{enumerable:!0,get:function(){return D.Builder}});Object.defineProperty(b,"BinaryBuilder",{enumerable:!0,get:function(){return D.BinaryBuilder}});Object.defineProperty(b,"BoolBuilder",{enumerable:!0,get:function(){return D.BoolBuilder}});Object.defineProperty(b,"DateBuilder",{enumerable:!0,get:function(){return D.DateBuilder}});Object.defineProperty(b,"DateDayBuilder",{enumerable:!0,get:function(){return D.DateDayBuilder}});Object.defineProperty(b,"DateMillisecondBuilder",{enumerable:!0,get:function(){return D.DateMillisecondBuilder}});Object.defineProperty(b,"DecimalBuilder",{enumerable:!0,get:function(){return D.DecimalBuilder}});Object.defineProperty(b,"DictionaryBuilder",{enumerable:!0,get:function(){return D.DictionaryBuilder}});Object.defineProperty(b,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return D.FixedSizeBinaryBuilder}});Object.defineProperty(b,"FixedSizeListBuilder",{enumerable:!0,get:function(){return D.FixedSizeListBuilder}});Object.defineProperty(b,"FloatBuilder",{enumerable:!0,get:function(){return D.FloatBuilder}});Object.defineProperty(b,"Float16Builder",{enumerable:!0,get:function(){return D.Float16Builder}});Object.defineProperty(b,"Float32Builder",{enumerable:!0,get:function(){return D.Float32Builder}});Object.defineProperty(b,"Float64Builder",{enumerable:!0,get:function(){return D.Float64Builder}});Object.defineProperty(b,"IntervalBuilder",{enumerable:!0,get:function(){return D.IntervalBuilder}});Object.defineProperty(b,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return D.IntervalDayTimeBuilder}});Object.defineProperty(b,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return D.IntervalYearMonthBuilder}});Object.defineProperty(b,"IntBuilder",{enumerable:!0,get:function(){return D.IntBuilder}});Object.defineProperty(b,"Int8Builder",{enumerable:!0,get:function(){return D.Int8Builder}});Object.defineProperty(b,"Int16Builder",{enumerable:!0,get:function(){return D.Int16Builder}});Object.defineProperty(b,"Int32Builder",{enumerable:!0,get:function(){return D.Int32Builder}});Object.defineProperty(b,"Int64Builder",{enumerable:!0,get:function(){return D.Int64Builder}});Object.defineProperty(b,"Uint8Builder",{enumerable:!0,get:function(){return D.Uint8Builder}});Object.defineProperty(b,"Uint16Builder",{enumerable:!0,get:function(){return D.Uint16Builder}});Object.defineProperty(b,"Uint32Builder",{enumerable:!0,get:function(){return D.Uint32Builder}});Object.defineProperty(b,"Uint64Builder",{enumerable:!0,get:function(){return D.Uint64Builder}});Object.defineProperty(b,"ListBuilder",{enumerable:!0,get:function(){return D.ListBuilder}});Object.defineProperty(b,"MapBuilder",{enumerable:!0,get:function(){return D.MapBuilder}});Object.defineProperty(b,"NullBuilder",{enumerable:!0,get:function(){return D.NullBuilder}});Object.defineProperty(b,"StructBuilder",{enumerable:!0,get:function(){return D.StructBuilder}});Object.defineProperty(b,"TimestampBuilder",{enumerable:!0,get:function(){return D.TimestampBuilder}});Object.defineProperty(b,"TimestampSecondBuilder",{enumerable:!0,get:function(){return D.TimestampSecondBuilder}});Object.defineProperty(b,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return D.TimestampMillisecondBuilder}});Object.defineProperty(b,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return D.TimestampMicrosecondBuilder}});Object.defineProperty(b,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return D.TimestampNanosecondBuilder}});Object.defineProperty(b,"TimeBuilder",{enumerable:!0,get:function(){return D.TimeBuilder}});Object.defineProperty(b,"TimeSecondBuilder",{enumerable:!0,get:function(){return D.TimeSecondBuilder}});Object.defineProperty(b,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return D.TimeMillisecondBuilder}});Object.defineProperty(b,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return D.TimeMicrosecondBuilder}});Object.defineProperty(b,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return D.TimeNanosecondBuilder}});Object.defineProperty(b,"UnionBuilder",{enumerable:!0,get:function(){return D.UnionBuilder}});Object.defineProperty(b,"DenseUnionBuilder",{enumerable:!0,get:function(){return D.DenseUnionBuilder}});Object.defineProperty(b,"SparseUnionBuilder",{enumerable:!0,get:function(){return D.SparseUnionBuilder}});Object.defineProperty(b,"Utf8Builder",{enumerable:!0,get:function(){return D.Utf8Builder}})});var au=V(()=>{});var zd=V(()=>{});var Bv=V(()=>{});var BU={};SS(BU,{BROWSER_RUNTIME:()=>nt,ConsoleLogger:()=>Ay,DEFAULT_RUNTIME:()=>wv,DuckDB:()=>Sv,DuckDBBindings:()=>ou,DuckDBConnection:()=>nu,DuckDBDataProtocol:()=>Qe,DuckDBFeature:()=>Ed,FileStatistics:()=>su,InsertMode:()=>qd,JSONTableShape:()=>Ld,LogEvent:()=>br,LogLevel:()=>Nr,LogOrigin:()=>xr,LogTopic:()=>Bi,StatusCode:()=>je,VoidLogger:()=>Oy,callSRet:()=>Se,copyBuffer:()=>Gi,decodeText:()=>jv,dropResponseBuffers:()=>He,failWith:()=>We,getLogEventLabel:()=>AS,getLogLevelLabel:()=>OS,getLogOriginLabel:()=>MS,getLogTopicLabel:()=>FS,readString:()=>ve});var Nr;(function(s){s[s.NONE=0]="NONE",s[s.DEBUG=1]="DEBUG",s[s.INFO=2]="INFO",s[s.WARNING=3]="WARNING",s[s.ERROR=4]="ERROR"})(Nr||(Nr={}));var Bi;(function(s){s[s.NONE=0]="NONE",s[s.CONNECT=1]="CONNECT",s[s.DISCONNECT=2]="DISCONNECT",s[s.OPEN=3]="OPEN",s[s.QUERY=4]="QUERY"})(Bi||(Bi={}));var br;(function(c){c[c.NONE=0]="NONE",c[c.OK=1]="OK",c[c.ERROR=2]="ERROR",c[c.START=3]="START",c[c.RUN=4]="RUN",c[c.CAPTURE=5]="CAPTURE"})(br||(br={}));var xr;(function(s){s[s.NONE=0]="NONE",s[s.WEB_WORKER=1]="WEB_WORKER",s[s.NODE_WORKER=2]="NODE_WORKER",s[s.BINDINGS=3]="BINDINGS",s[s.ASYNC_DUCKDB=4]="ASYNC_DUCKDB"})(xr||(xr={}));var Oy=class{log(e){}},Ay=class{log(e){console.log(e)}};function OS(r){switch(r){case 0:return"NONE";case 1:return"DEBUG";case 2:return"INFO";case 3:return"WARNING";case 4:return"ERROR";default:return"?"}}function AS(r){switch(r){case 0:return"NONE";case 1:return"OK";case 2:return"ERROR";case 3:return"START";case 4:return"RUN";case 5:return"CAPTURE";default:return"?"}}function FS(r){switch(r){case 1:return"CONNECT";case 2:return"DISCONNECT";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function MS(r){switch(r){case 0:return"NONE";case 1:return"WEB WORKER";case 2:return"NODE WORKER";case 3:return"DUCKDB BINDINGS";case 4:return"DUCKDB";default:return"?"}}var je;(function(e){e[e.SUCCESS=0]="SUCCESS"})(je||(je={}));var Rt=Dy(Nd()),xd=class{constructor(e,t,i){this.bindings=e;this.conn=t;this.header=i;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=e.length==0,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},nu=class{constructor(e,t){this._bindings=e,this._conn=t}get handle(){return this._conn}close(){this._bindings.disconnect(this._conn)}runQuery(e){let t=this._bindings.runQuery(this._conn,e),i=Rt.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),Rt.Table.from(i)}sendQuery(e){let t=this._bindings.sendQuery(this._conn,e),i=new xd(this._bindings,this._conn,t),n=Rt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}createPreparedStatement(e){return this._bindings.createPreparedStatement(this._conn,e)}closePreparedStatement(e){this._bindings.closePreparedStatement(this._conn,e)}runPreparedStatement(e,t){let i=this._bindings.runPreparedStatement(this._conn,e,t),n=Rt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isFile()),Rt.Table.from(n)}sendPreparedStatement(e,t){let i=this._bindings.sendPreparedStatement(this._conn,e,t),n=new xd(this._bindings,this._conn,i),s=Rt.RecordBatchReader.from(n);return console.assert(s.isSync()),console.assert(s.isStream()),s}insertArrowTable(e,t){e.schema.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually"),this.insertArrowBatches(e.schema,e.chunks,t)}insertArrowBatches(e,t,i){e.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");let n=new Rt.AsyncByteQueue,s=new Rt.RecordBatchStreamWriter().reset(n,e);s.writeAll(t),s.close();let c=s.toUint8Array(!0);this._bindings.insertArrowFromIPCStream(this._conn,c,i)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}};function jU(){let r=new TextDecoder;return e=>(typeof SharedArrayBuffer!="undefined"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),r.decode(e))}var jv=jU();function We(r,e){console.error(e),r.ccall("duckdb_web_fail_with",null,["string"],[e])}function Gi(r,e,t){let i=r.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function ve(r,e,t){return jv(r.HEAPU8.subarray(e,e+t))}var Qe;(function(i){i[i.BUFFER=0]="BUFFER",i[i.NATIVE=1]="NATIVE",i[i.HTTP=3]="HTTP"})(Qe||(Qe={}));function Se(r,e,t,i){let n=r.stackSave(),s=r.stackAlloc(3*8);t.unshift("number"),i.unshift(s),r.ccall(e,null,t,i);let c=r.HEAPF64[(s>>3)+0],v=r.HEAPF64[(s>>3)+1],I=r.HEAPF64[(s>>3)+2];return r.stackRestore(n),[c,v,I]}function He(r){r.ccall("duckdb_web_clear_response",null,[],[])}var wv={testPlatformFeature:(r,e)=>!1,openFile:(r,e)=>{},syncFile:(r,e)=>{},closeFile:(r,e)=>{},getLastFileModificationTime:(r,e)=>0,getFileSize:(r,e)=>0,truncateFile:(r,e,t)=>{},readFile:(r,e,t,i,n)=>0,writeFile:(r,e,t,i,n)=>0,removeDirectory:(r,e,t)=>{},checkDirectory:(r,e,t)=>!1,createDirectory:(r,e,t)=>{},listDirectoryEntries:(r,e,t)=>!1,glob:(r,e,t)=>{},moveFile:(r,e,t,i,n)=>{},checkFile:(r,e,t)=>!1,removeFile:(r,e,t)=>{}};var su=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),i=new Uint8Array(new ArrayBuffer(e.byteLength));i.set(e.subarray(7*8)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=i}getBlockStats(e,t){return t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},t.file_writes=this.blockStats[e*3+0]&15,t.file_reads_cold=this.blockStats[e*3+0]>>4,t.file_reads_ahead=this.blockStats[e*3+1]&15,t.file_reads_cached=this.blockStats[e*3+1]>>4,t.page_accesses=this.blockStats[e*3+1]&15,t.page_loads=this.blockStats[e*3+1]>>4,t}};var de=Dy(Nd());function Ws(r,e){switch(e.typeId){case de.Type.Binary:return{name:r,type:"binary"};case de.Type.Bool:return{name:r,type:"bool"};case de.Type.Date:return{name:r,type:"date"};case de.Type.DateDay:return{name:r,type:"date32[d]"};case de.Type.DateMillisecond:return{name:r,type:"date64[ms]"};case de.Type.Decimal:{let t=e;return{name:r,type:"decimal",precision:t.precision,scale:t.scale}}case de.Type.Float:return{name:r,type:"float"};case de.Type.Float16:return{name:r,type:"float16"};case de.Type.Float32:return{name:r,type:"float32"};case de.Type.Float64:return{name:r,type:"float64"};case de.Type.Int:return{name:r,type:"int32"};case de.Type.Int16:return{name:r,type:"int16"};case de.Type.Int32:return{name:r,type:"int32"};case de.Type.Int64:return{name:r,type:"int64"};case de.Type.Uint16:return{name:r,type:"uint16"};case de.Type.Uint32:return{name:r,type:"uint32"};case de.Type.Uint64:return{name:r,type:"uint64"};case de.Type.Uint8:return{name:r,type:"uint8"};case de.Type.IntervalDayTime:return{name:r,type:"interval[dt]"};case de.Type.IntervalYearMonth:return{name:r,type:"interval[m]"};case de.Type.List:{let t=e;return{name:r,type:"list",children:[Ws(t.valueField.name,t.valueField.type)]}}case de.Type.FixedSizeBinary:return{name:r,type:"fixedsizebinary",byteWidth:e.byteWidth};case de.Type.Null:return{name:r,type:"null"};case de.Type.Utf8:return{name:r,type:"utf8"};case de.Type.Struct:return{name:r,type:"struct",children:e.children.map(i=>Ws(i.name,i.type))};case de.Type.Time:return{name:r,type:"time[s]"};case de.Type.TimeMicrosecond:return{name:r,type:"time[us]"};case de.Type.TimeMillisecond:return{name:r,type:"time[ms]"};case de.Type.TimeNanosecond:return{name:r,type:"time[ns]"};case de.Type.TimeSecond:return{name:r,type:"time[s]"};case de.Type.Timestamp:return{name:r,type:"timestamp",timezone:e.timezone||void 0};case de.Type.TimestampSecond:return{name:r,type:"timestamp[s]",timezone:e.timezone||void 0};case de.Type.TimestampMicrosecond:return{name:r,type:"timestamp[us]",timezone:e.timezone||void 0};case de.Type.TimestampNanosecond:return{name:r,type:"timestamp[ns]",timezone:e.timezone||void 0};case de.Type.TimestampMillisecond:return{name:r,type:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error(`unsupported arrow type: ${e.toString()}`)}var Ed;(function(s){s[s.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",s[s.WASM_THREADS=2]="WASM_THREADS",s[s.WASM_SIMD=4]="WASM_SIMD",s[s.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",s[s.EMIT_BIGINT=16]="EMIT_BIGINT"})(Ed||(Ed={}));var ou=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this._logger=e,this._runtime=t}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(){return this._instance!=null?this:(this._initPromise!=null&&await this._initPromise,this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this)}open(e){let[t,i,n]=Se(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));He(this.mod)}reset(){let[e,t,i]=Se(this.mod,"duckdb_web_reset",[],[]);if(e!==je.SUCCESS)throw new Error(ve(this.mod,t,i));He(this.mod)}getVersion(){let[e,t,i]=Se(this.mod,"duckdb_web_get_version",[],[]);if(e!==je.SUCCESS)throw new Error(ve(this.mod,t,i));let n=ve(this.mod,t,i);return He(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,i,n]=Se(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));let s=ve(this.mod,i,n);return He(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new nu(this,e)}disconnect(e){this.mod.ccall("duckdb_web_disconnect",null,["number"],[e])}runQuery(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));let c=Gi(this.mod,n,s);return He(this.mod),c}sendQuery(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));let c=Gi(this.mod,n,s);return He(this.mod),c}fetchQueryResults(e){let[t,i,n]=Se(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));let s=Gi(this.mod,i,n);return He(this.mod),s}createPreparedStatement(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_prepared_statement_create",["number","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));return He(this.mod),n}closePreparedStatement(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_prepared_statement_close",["number","number"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));He(this.mod)}runPreparedStatement(e,t,i){let[n,s,c]=Se(this.mod,"duckdb_web_prepared_statement_run",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==je.SUCCESS)throw new Error(ve(this.mod,s,c));let v=Gi(this.mod,s,c);return He(this.mod),v}sendPreparedStatement(e,t,i){let[n,s,c]=Se(this.mod,"duckdb_web_prepared_statement_send",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==je.SUCCESS)throw new Error(ve(this.mod,s,c));let v=Gi(this.mod,s,c);return He(this.mod),v}insertArrowFromIPCStream(e,t,i){let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let c=i?JSON.stringify(i):"",[v,I,S]=Se(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,c]);if(v!==je.SUCCESS)throw new Error(ve(this.mod,I,S))}insertCSVFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let S in i.columns)i.columnsFlat.push(Ws(S,i.columns[S]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[c,v,I]=Se(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,s]);if(c!==je.SUCCESS)throw new Error(ve(this.mod,v,I))}insertJSONFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let S in i.columns)i.columnsFlat.push(Ws(S,i.columns[S]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[c,v,I]=Se(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,s]);if(c!==je.SUCCESS)throw new Error(ve(this.mod,v,I))}finishInsert(e,t){}registerFileURL(e,t){t===void 0&&(t=e);let[i,n,s]=Se(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));He(this.mod)}registerFileBuffer(e,t){let i=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(i,i+t.length).set(t);let[s,c,v]=Se(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,i,t.length]);if(s!==je.SUCCESS)throw new Error(ve(this.mod,c,v));He(this.mod)}registerFileHandle(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,e]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));if(He(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let c of this.pthread.runningWorkers)c.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let c of this.pthread.unusedWorkers)c.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){return this.mod.ccall("duckdb_web_fs_drop_file","boolean",["string"],[e])}dropFiles(){this.mod.ccall("duckdb_web_fs_drop_files",null,[],[])}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s));He(this.mod)}copyFileToBuffer(e){let[t,i,n]=Se(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));let s=this.mod.HEAPU8.subarray(i,i+n),c=new Uint8Array(s.length);return c.set(s),He(this.mod),c}collectFileStatistics(e,t){let[i,n,s]=Se(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(i!==je.SUCCESS)throw new Error(ve(this.mod,n,s))}exportFileStatistics(e){let[t,i,n]=Se(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==je.SUCCESS)throw new Error(ve(this.mod,i,n));return new su(this.mod.HEAPU8.subarray(i,i+n))}};var Ld;(function(t){t.ROW_ARRAY="row-array",t.COLUMN_OBJECT="column-object"})(Ld||(Ld={}));var qd;(function(t){t[t.APPEND=0]="APPEND",t[t.IMPORT=1]="IMPORT"})(qd||(qd={}));var Iv={},wU=function(){var r=Iv.url;return function(e){e=e||{};var t=typeof e!="undefined"?e:{},i,n;t.ready=new Promise(function(o,a){i=o,n=a});var s={},c;for(c in t)t.hasOwnProperty(c)&&(s[c]=t[c]);var v=[],I="./this.program",S=function(o,a){throw a},U=typeof window=="object",G=typeof importScripts=="function",me=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",fe="";function Gt(o){return t.locateFile?t.locateFile(o,fe):fe+o}var Cr,_r,Ji,Dv,Ki,Zi;me?(G?fe=au().dirname(fe)+"/":fe=__dirname+"/",Cr=function(a,u){return Ki||(Ki=zd()),Zi||(Zi=au()),a=Zi.normalize(a),Ki.readFileSync(a,u?null:"utf8")},Ji=function(a){var u=Cr(a,!0);return u.buffer||(u=new Uint8Array(u)),$d(u.buffer),u},_r=function(a,u,l){Ki||(Ki=zd()),Zi||(Zi=au()),a=Zi.normalize(a),Ki.readFile(a,function(d,f){d?l(d):u(f.buffer)})},process.argv.length>1&&(I=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(o){if(!(o instanceof mu))throw o}),process.on("unhandledRejection",Nt),S=function(o,a){if(nf())throw process.exitCode=o,a;process.exit(o)},t.inspect=function(){return"[Emscripten Module object]"}):(U||G)&&(G?fe=self.location.href:typeof document!="undefined"&&document.currentScript&&(fe=document.currentScript.src),r&&(fe=r),fe.indexOf("blob:")!==0?fe=fe.substr(0,fe.lastIndexOf("/")+1):fe="",Cr=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.send(null),a.responseText},G&&(Ji=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.responseType="arraybuffer",a.send(null),new Uint8Array(a.response)}),_r=function(o,a,u){var l=new XMLHttpRequest;l.open("GET",o,!0),l.responseType="arraybuffer",l.onload=function(){if(l.status==200||l.status==0&&l.response){a(l.response);return}u()},l.onerror=u,l.send(null)},Dv=function(o){document.title=o});var Ov=t.print||console.log.bind(console),Pr=t.printErr||console.warn.bind(console);for(c in s)s.hasOwnProperty(c)&&(t[c]=s[c]);s=null,t.arguments&&(v=t.arguments),t.thisProgram&&(I=t.thisProgram),t.quit&&(S=t.quit);var Hd=0,ht=function(o){Hd=o},Av=function(){return Hd},es;t.wasmBinary&&(es=t.wasmBinary);var Fv=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Nt("no native wasm support detected");var Hs,uu=!1,Yd;function $d(o,a){o||Nt("Assertion failed: "+a)}function Mv(o){var a=t["_"+o];return $d(a,"Cannot call unknown function "+o+", make sure it is exported"),a}function Vv(o,a,u,l,d){var f={string:function(M){var x=0;if(M!=null&&M!==0){var ue=(M.length<<2)+1;x=hu(ue),Uv(M,x,ue)}return x},array:function(M){var x=hu(M.length);return Zd(M,x),x}};function h(M){return a==="string"?Ys(M):a==="boolean"?Boolean(M):M}var p=Mv(o),y=[],m=0;if(l)for(var g=0;g<l.length;g++){var j=f[u[g]];j?(m===0&&(m=w()),y[g]=j(l[g])):y[g]=l[g]}var O=p.apply(null,y);return O=h(O),m!==0&&B(m),O}var Gd=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function Jd(o,a,u){for(var l=a+u,d=a;o[d]&&!(d>=l);)++d;if(d-a>16&&o.subarray&&Gd)return Gd.decode(o.subarray(a,d));for(var f="";a<d;){var h=o[a++];if(!(h&128)){f+=String.fromCharCode(h);continue}var p=o[a++]&63;if((h&224)==192){f+=String.fromCharCode((h&31)<<6|p);continue}var y=o[a++]&63;if((h&240)==224?h=(h&15)<<12|p<<6|y:h=(h&7)<<18|p<<12|y<<6|o[a++]&63,h<65536)f+=String.fromCharCode(h);else{var m=h-65536;f+=String.fromCharCode(55296|m>>10,56320|m&1023)}}return f}function Ys(o,a){return o?Jd(Xi,o,a):""}function Kd(o,a,u,l){if(!(l>0))return 0;for(var d=u,f=u+l-1,h=0;h<o.length;++h){var p=o.charCodeAt(h);if(p>=55296&&p<=57343){var y=o.charCodeAt(++h);p=65536+((p&1023)<<10)|y&1023}if(p<=127){if(u>=f)break;a[u++]=p}else if(p<=2047){if(u+1>=f)break;a[u++]=192|p>>6,a[u++]=128|p&63}else if(p<=65535){if(u+2>=f)break;a[u++]=224|p>>12,a[u++]=128|p>>6&63,a[u++]=128|p&63}else{if(u+3>=f)break;a[u++]=240|p>>18,a[u++]=128|p>>12&63,a[u++]=128|p>>6&63,a[u++]=128|p&63}}return a[u]=0,u-d}function Uv(o,a,u){return Kd(o,Xi,a,u)}function Cv(o){for(var a=0,u=0;u<o.length;++u){var l=o.charCodeAt(u);l>=55296&&l<=57343&&(l=65536+((l&1023)<<10)|o.charCodeAt(++u)&1023),l<=127?++a:l<=2047?a+=2:l<=65535?a+=3:a+=4}return a}function Zd(o,a){Jt.set(o,a)}function Pv(o,a,u){for(var l=0;l<o.length;++l)Jt[a++>>0]=o.charCodeAt(l);u||(Jt[a>>0]=0)}function kv(o,a){return o%a>0&&(o+=a-o%a),o}var Xd,Jt,Xi,Rv,Nv,ae,xv,Ev,Lv;function Qd(o){Xd=o,t.HEAP8=Jt=new Int8Array(o),t.HEAP16=Rv=new Int16Array(o),t.HEAP32=ae=new Int32Array(o),t.HEAPU8=Xi=new Uint8Array(o),t.HEAPU16=Nv=new Uint16Array(o),t.HEAPU32=xv=new Uint32Array(o),t.HEAPF32=Ev=new Float32Array(o),t.HEAPF64=Lv=new Float64Array(o)}var TU=t.INITIAL_MEMORY||16777216,H,ef=[],tf=[],qv=[],rf=[],zv=!1,Wv=!1,Hv=0;function nf(){return Fv||Hv>0}function Yv(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Zv(t.preRun.shift());$s(ef)}function $v(){zv=!0,$s(tf)}function Gv(){$s(qv)}function Jv(){Wv=!0}function Kv(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Qv(t.postRun.shift());$s(rf)}function Zv(o){ef.unshift(o)}function Xv(o){tf.unshift(o)}function Qv(o){rf.unshift(o)}var ji=0,cu=null,ts=null;function ej(o){ji++,t.monitorRunDependencies&&t.monitorRunDependencies(ji)}function tj(o){if(ji--,t.monitorRunDependencies&&t.monitorRunDependencies(ji),ji==0&&(cu!==null&&(clearInterval(cu),cu=null),ts)){var a=ts;ts=null,a()}}t.preloadedImages={},t.preloadedAudios={};function Nt(o){t.onAbort&&t.onAbort(o),o+="",Pr(o),uu=!0,Yd=1,o="abort("+o+"). Build with -s ASSERTIONS=1 for more info.";var a=new WebAssembly.RuntimeError(o);throw n(a),a}var rj="data:application/octet-stream;base64,";function sf(o){return o.startsWith(rj)}var _t;t.locateFile?(_t="duckdb_wasm.wasm",sf(_t)||(_t=Gt(_t))):_t=new URL("duckdb_wasm.wasm",Iv.url).toString();function of(o){try{if(o==_t&&es)return new Uint8Array(es);if(Ji)return Ji(o);throw"both async and sync fetching of the wasm failed"}catch(a){Nt(a)}}function ij(){return!es&&(U||G)&&typeof fetch=="function"?fetch(_t,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+_t+"'";return o.arrayBuffer()}).catch(function(){return of(_t)}):Promise.resolve().then(function(){return of(_t)})}function nj(){var o={a:B0};function a(h,p){var y=h.exports;t.asm=y,Hs=t.asm.xe,Qd(Hs.buffer),H=t.asm.Ae,Xv(t.asm.ye),tj("wasm-instantiate")}ej("wasm-instantiate");function u(h){a(h.instance)}function l(h){return ij().then(function(p){var y=WebAssembly.instantiate(p,o);return y}).then(h,function(p){Pr("failed to asynchronously prepare wasm: "+p),Nt(p)})}function d(){return!es&&typeof WebAssembly.instantiateStreaming=="function"&&!sf(_t)&&typeof fetch=="function"?fetch(_t,{credentials:"same-origin"}).then(function(h){var p=WebAssembly.instantiateStreaming(h,o);return p.then(u,function(y){return Pr("wasm streaming compile failed: "+y),Pr("falling back to ArrayBuffer instantiation"),l(u)})}):l(u)}if(t.instantiateWasm)try{var f=t.instantiateWasm(o,a);return f}catch(h){return Pr("Module.instantiateWasm callback failed with error: "+h),!1}return d().catch(n),{}}function $s(o){for(;o.length>0;){var a=o.shift();if(typeof a=="function"){a(t);continue}var u=a.func;typeof u=="number"?a.arg===void 0?H.get(u)():H.get(u)(a.arg):u(a.arg===void 0?null:a.arg)}}function sj(o){return pu(o+16)+16}function Qi(o){this.excPtr=o,this.ptr=o-16,this.set_type=function(a){ae[this.ptr+4>>2]=a},this.get_type=function(){return ae[this.ptr+4>>2]},this.set_destructor=function(a){ae[this.ptr+8>>2]=a},this.get_destructor=function(){return ae[this.ptr+8>>2]},this.set_refcount=function(a){ae[this.ptr>>2]=a},this.set_caught=function(a){a=a?1:0,Jt[this.ptr+12>>0]=a},this.get_caught=function(){return Jt[this.ptr+12>>0]!=0},this.set_rethrown=function(a){a=a?1:0,Jt[this.ptr+13>>0]=a},this.get_rethrown=function(){return Jt[this.ptr+13>>0]!=0},this.init=function(a,u){this.set_type(a),this.set_destructor(u),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var a=ae[this.ptr>>2];ae[this.ptr>>2]=a+1},this.release_ref=function(){var a=ae[this.ptr>>2];return ae[this.ptr>>2]=a-1,a===1}}function rs(o){this.free=function(){yu(this.ptr),this.ptr=0},this.set_base_ptr=function(a){ae[this.ptr>>2]=a},this.get_base_ptr=function(){return ae[this.ptr>>2]},this.set_adjusted_ptr=function(a){ae[this.ptr+4>>2]=a},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return ae[this.ptr+4>>2]},this.get_exception_ptr=function(){var a=cf(this.get_exception_info().get_type());if(a)return ae[this.get_base_ptr()>>2];var u=this.get_adjusted_ptr();return u!==0?u:this.get_base_ptr()},this.get_exception_info=function(){return new Qi(this.get_base_ptr())},o===void 0?(this.ptr=pu(8),this.set_adjusted_ptr(0)):this.ptr=o}var Gs=[];function oj(o){o.add_ref()}var Js=0;function aj(o){var a=new rs(o),u=a.get_exception_info();return u.get_caught()||(u.set_caught(!0),Js--),u.set_rethrown(!1),Gs.push(a),oj(u),a.get_exception_ptr()}var kr=0;function af(o){return yu(new Qi(o).ptr)}function uj(o){if(o.release_ref()&&!o.get_rethrown()){var a=o.get_destructor();a&&H.get(a)(o.excPtr),af(o.excPtr)}}function cj(){T(0);var o=Gs.pop();uj(o.get_exception_info()),o.free(),kr=0}function lj(o){var a=new rs(o),u=a.get_base_ptr();throw kr||(kr=u),a.free(),u}function dj(){var o=kr;if(!o)return ht(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return ht(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(to(h,u,l.get_adjusted_ptr_addr()))return ht(h),l.ptr|0}return ht(u),l.ptr|0}function fj(){var o=kr;if(!o)return ht(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return ht(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(to(h,u,l.get_adjusted_ptr_addr()))return ht(h),l.ptr|0}return ht(u),l.ptr|0}function hj(){var o=kr;if(!o)return ht(0),0|0;var a=new Qi(o),u=a.get_type(),l=new rs;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!u)return ht(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===u)break;if(to(h,u,l.get_adjusted_ptr_addr()))return ht(h),l.ptr|0}return ht(u),l.ptr|0}function pj(){var o=Gs.pop();o||Nt("no exception to throw");var a=o.get_exception_info(),u=o.get_base_ptr();throw a.get_rethrown()?o.free():(Gs.push(o),a.set_rethrown(!0),a.set_caught(!1),Js++),kr=u,u}function yj(o,a,u){var l=new Qi(o);throw l.init(a,u),kr=o,Js++,o}function mj(){return Js}var Je={mappings:{},buffers:[null,[],[]],printChar:function(o,a){var u=Je.buffers[o];a===0||a===10?((o===1?Ov:Pr)(Jd(u,0)),u.length=0):u.push(a)},varargs:void 0,get:function(){Je.varargs+=4;var o=ae[Je.varargs-4>>2];return o},getStr:function(o){var a=Ys(o);return a},get64:function(o,a){return o}};function _j(o,a){return o=Je.getStr(o),Je.doAccess(o,a)}function bj(o){return ae[uf()>>2]=o,o}function gj(o,a,u){return Je.varargs=u,0}function vj(o,a){}function jj(o,a,u,l){}function wj(o,a,u){}function Bj(){return 42}function Tj(o,a,u){return Je.varargs=u,0}var Ij=function(o,a,u){return Pr("warning: unsupported syscall: __sys_madvise1"),0};function Sj(o,a){return o=Je.getStr(o),Je.doMkdir(o,a)}function Dj(o,a,u){Je.varargs=u}function Oj(o,a){}function Aj(o){}function Fj(o,a){}function Mj(o){}function Vj(){Nt()}var lu;me?lu=function(){var o=process.hrtime();return o[0]*1e3+o[1]/1e6}:lu=function(){return performance.now()};var Uj=!0;function Cj(o,a){var u;if(o===0)u=Date.now();else if((o===1||o===4)&&Uj)u=lu();else return bj(28),-1;return ae[a>>2]=u/1e3|0,ae[a+4>>2]=u%1e3*1e3*1e3|0,0}function Pj(o,a){Nt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function kj(o,a){Nt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Rj(o,a){return globalThis.DUCKDB_RUNTIME.createDirectory(t,o,a)}function Nj(o,a){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,o,a)}function xj(o,a){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,o,a)}function Ej(o,a){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,o,a)}function Lj(o){return globalThis.DUCKDB_RUNTIME.closeFile(t,o)}function qj(o,a){return globalThis.DUCKDB_RUNTIME.checkFile(t,o,a)}function zj(o){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,o)}function Wj(o){return globalThis.DUCKDB_RUNTIME.getFileSize(t,o)}function Hj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.moveFile(t,o,a,u,l)}function Yj(o){return globalThis.DUCKDB_RUNTIME.openFile(t,o)}function $j(o,a,u,l){return globalThis.DUCKDB_RUNTIME.readFile(t,o,a,u,l)}function Gj(o,a){return globalThis.DUCKDB_RUNTIME.truncateFile(t,o,a)}function Jj(o,a,u,l){return globalThis.DUCKDB_RUNTIME.writeFile(t,o,a,u,l)}function Kj(o,a){return globalThis.DUCKDB_RUNTIME.glob(t,o,a)}function Zj(o){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,o)}function Xj(){return 2147483648}function Qj(o,a,u){Xi.copyWithin(o,a,a+u)}function e0(o){try{return Hs.grow(o-Xd.byteLength+65535>>>16),Qd(Hs.buffer),1}catch(a){}}function t0(o){var a=Xi.length;o=o>>>0;var u=2147483648;if(o>u)return!1;for(var l=1;l<=4;l*=2){var d=a*(1+.2/l);d=Math.min(d,o+100663296);var f=Math.min(u,kv(Math.max(o,d),65536)),h=e0(f);if(h)return!0}return!1}var du={};function r0(){return I||"./this.program"}function is(){if(!is.strings){var o=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:o,_:r0()};for(var u in du)du[u]===void 0?delete a[u]:a[u]=du[u];var l=[];for(var u in a)l.push(u+"="+a[u]);is.strings=l}return is.strings}function i0(o,a){var u=0;return is().forEach(function(l,d){var f=a+u;ae[o+d*4>>2]=f,Pv(l,f),u+=l.length+1}),0}function n0(o,a){var u=is();ae[o>>2]=u.length;var l=0;return u.forEach(function(d){l+=d.length+1}),ae[a>>2]=l,0}function s0(o){return 0}function o0(o,a){var u=o==1||o==2?2:Nt();return Jt[a>>0]=u,0}function a0(o,a,u,l,d,f){var h=Je.getStreamFromFD(o),p=Je.doReadv(h,a,u,l);return ae[f>>2]=p,0}function u0(o,a,u,l,d,f){var h=Je.getStreamFromFD(o),p=Je.doWritev(h,a,u,l);return ae[f>>2]=p,0}function c0(o,a,u,l){var d=Je.getStreamFromFD(o),f=Je.doReadv(d,a,u);return ae[l>>2]=f,0}function l0(o,a,u,l,d){}function d0(o){var a=Je.getStreamFromFD(o);return a.stream_ops&&a.stream_ops.fsync?-a.stream_ops.fsync(a):0}function f0(o,a,u,l){for(var d=0,f=0;f<u;f++){for(var h=ae[a+f*8>>2],p=ae[a+(f*8+4)>>2],y=0;y<p;y++)Je.printChar(o,Xi[h+y]);d+=p}return ae[l>>2]=d,0}function h0(){return Av()}function p0(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var o=new Uint8Array(1);return function(){return crypto.getRandomValues(o),o[0]}}else if(me)try{var a=Bv();return function(){return a.randomBytes(1)[0]}}catch(u){}return function(){Nt("randomDevice")}}function Ks(o,a){Ks.randomDevice||(Ks.randomDevice=p0());for(var u=0;u<a;u++)Jt[o+u>>0]=Ks.randomDevice();return 0}function y0(o){return o}function m0(o){ht(o)}var _0=0;function b0(o,a,u){return o==14&&(_0=ae[a>>2]),0}function g0(o,a,u){return b0(o,a,u)}function Zs(o){return o%4==0&&(o%100!=0||o%400==0)}function fu(o,a){for(var u=0,l=0;l<=a;u+=o[l++]);return u}var Xs=[31,29,31,30,31,30,31,31,30,31,30,31],Qs=[31,28,31,30,31,30,31,31,30,31,30,31];function eo(o,a){for(var u=new Date(o.getTime());a>0;){var l=Zs(u.getFullYear()),d=u.getMonth(),f=(l?Xs:Qs)[d];if(a>f-u.getDate())a-=f-u.getDate()+1,u.setDate(1),d<11?u.setMonth(d+1):(u.setMonth(0),u.setFullYear(u.getFullYear()+1));else return u.setDate(u.getDate()+a),u}return u}function v0(o,a,u,l){var d=ae[l+40>>2],f={tm_sec:ae[l>>2],tm_min:ae[l+4>>2],tm_hour:ae[l+8>>2],tm_mday:ae[l+12>>2],tm_mon:ae[l+16>>2],tm_year:ae[l+20>>2],tm_wday:ae[l+24>>2],tm_yday:ae[l+28>>2],tm_isdst:ae[l+32>>2],tm_gmtoff:ae[l+36>>2],tm_zone:d?Ys(d):""},h=Ys(u),p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var y in p)h=h.replace(new RegExp(y,"g"),p[y]);var m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"];function j(P,$,Ae){for(var ye=typeof P=="number"?P.toString():P||"";ye.length<$;)ye=Ae[0]+ye;return ye}function O(P,$){return j(P,$,"0")}function M(P,$){function Ae(at){return at<0?-1:at>0?1:0}var ye;return(ye=Ae(P.getFullYear()-$.getFullYear()))===0&&(ye=Ae(P.getMonth()-$.getMonth()))===0&&(ye=Ae(P.getDate()-$.getDate())),ye}function x(P){switch(P.getDay()){case 0:return new Date(P.getFullYear()-1,11,29);case 1:return P;case 2:return new Date(P.getFullYear(),0,3);case 3:return new Date(P.getFullYear(),0,2);case 4:return new Date(P.getFullYear(),0,1);case 5:return new Date(P.getFullYear()-1,11,31);case 6:return new Date(P.getFullYear()-1,11,30)}}function ue(P){var $=eo(new Date(P.tm_year+1900,0,1),P.tm_yday),Ae=new Date($.getFullYear(),0,4),ye=new Date($.getFullYear()+1,0,4),at=x(Ae),Rr=x(ye);return M(at,$)<=0?M(Rr,$)<=0?$.getFullYear()+1:$.getFullYear():$.getFullYear()-1}var _e={"%a":function(P){return m[P.tm_wday].substring(0,3)},"%A":function(P){return m[P.tm_wday]},"%b":function(P){return g[P.tm_mon].substring(0,3)},"%B":function(P){return g[P.tm_mon]},"%C":function(P){var $=P.tm_year+1900;return O($/100|0,2)},"%d":function(P){return O(P.tm_mday,2)},"%e":function(P){return j(P.tm_mday,2," ")},"%g":function(P){return ue(P).toString().substring(2)},"%G":function(P){return ue(P)},"%H":function(P){return O(P.tm_hour,2)},"%I":function(P){var $=P.tm_hour;return $==0?$=12:$>12&&($-=12),O($,2)},"%j":function(P){return O(P.tm_mday+fu(Zs(P.tm_year+1900)?Xs:Qs,P.tm_mon-1),3)},"%m":function(P){return O(P.tm_mon+1,2)},"%M":function(P){return O(P.tm_min,2)},"%n":function(){return`
|
|
18
18
|
`},"%p":function(P){return P.tm_hour>=0&&P.tm_hour<12?"AM":"PM"},"%S":function(P){return O(P.tm_sec,2)},"%t":function(){return" "},"%u":function(P){return P.tm_wday||7},"%U":function(P){var $=new Date(P.tm_year+1900,0,1),Ae=$.getDay()===0?$:eo($,7-$.getDay()),ye=new Date(P.tm_year+1900,P.tm_mon,P.tm_mday);if(M(Ae,ye)<0){var at=fu(Zs(ye.getFullYear())?Xs:Qs,ye.getMonth()-1)-31,Rr=31-Ae.getDate(),wi=Rr+at+ye.getDate();return O(Math.ceil(wi/7),2)}return M(Ae,$)===0?"01":"00"},"%V":function(P){var $=new Date(P.tm_year+1900,0,4),Ae=new Date(P.tm_year+1901,0,4),ye=x($),at=x(Ae),Rr=eo(new Date(P.tm_year+1900,0,1),P.tm_yday);if(M(Rr,ye)<0)return"53";if(M(at,Rr)<=0)return"01";var wi;return ye.getFullYear()<P.tm_year+1900?wi=P.tm_yday+32-ye.getDate():wi=P.tm_yday+1-ye.getDate(),O(Math.ceil(wi/7),2)},"%w":function(P){return P.tm_wday},"%W":function(P){var $=new Date(P.tm_year,0,1),Ae=$.getDay()===1?$:eo($,$.getDay()===0?1:7-$.getDay()+1),ye=new Date(P.tm_year+1900,P.tm_mon,P.tm_mday);if(M(Ae,ye)<0){var at=fu(Zs(ye.getFullYear())?Xs:Qs,ye.getMonth()-1)-31,Rr=31-Ae.getDate(),wi=Rr+at+ye.getDate();return O(Math.ceil(wi/7),2)}return M(Ae,$)===0?"01":"00"},"%y":function(P){return(P.tm_year+1900).toString().substring(2)},"%Y":function(P){return P.tm_year+1900},"%z":function(P){var $=P.tm_gmtoff,Ae=$>=0;return $=Math.abs($)/60,$=$/60*100+$%60,(Ae?"+":"-")+String("0000"+$).slice(-4)},"%Z":function(P){return P.tm_zone},"%%":function(){return"%"}};for(var y in _e)h.includes(y)&&(h=h.replace(new RegExp(y,"g"),_e[y](f)));var Be=w0(h,!1);return Be.length>a?0:(Zd(Be,o),Be.length-1)}function j0(o,a,u,l){return v0(o,a,u,l)}function w0(o,a,u){var l=u>0?u:Cv(o)+1,d=new Array(l),f=Kd(o,d,0,d.length);return a&&(d.length=f),d}var B0={i:sj,A:aj,G:cj,b:dj,n:fj,I:hj,j:af,ra:pj,t:yj,E:mj,c:lj,se:_j,ea:gj,La:vj,Ka:jj,Ma:wj,la:Bj,Oa:Tj,Ja:Ij,Na:Sj,oa:Dj,qe:Oj,ka:Aj,na:Fj,ma:Mj,fa:Vj,ja:Cj,ua:Pj,we:kj,Aa:Rj,Ba:Nj,ya:xj,za:Ej,Ta:Lj,wa:qj,Da:zj,Fa:Wj,xa:Hj,Ga:Yj,da:$j,Ca:Gj,Ea:Jj,va:Kj,oe:Zj,qb:Xj,Ua:Qj,Ic:t0,Qa:i0,Ra:n0,_:s0,Sa:o0,ce:a0,ob:u0,qa:c0,je:l0,re:d0,ga:f0,a:h0,Ha:Ks,W:Gw,K:Aw,R:pw,wb:WI,X:$w,M:Ww,sa:hw,xb:zI,u:bw,U:rB,ue:Zw,Y:Ew,V:tB,ve:Kw,e:ow,aa:Lw,B:Rw,Lb:AI,d:aw,$:Jw,ta:Xw,h:cw,Ib:VI,l:fw,pa:Dw,o:lw,z:ww,w:gw,Q:zw,x:vw,v:Bw,p:kw,L:Mw,J:Vw,Mb:OI,Pb:II,Rb:BI,Nb:DI,Jb:MI,Qb:TI,qc:ZT,he:uB,jd:sT,cd:fT,ge:cB,Ac:LT,xd:HB,Xa:yS,Wa:mS,Wd:vB,id:oT,Qc:ST,Qd:SB,Vb:gI,Bc:ET,Va:_S,Xd:gB,Ud:wB,Dc:NT,dd:dT,Id:CB,ad:pT,kb:eS,Vd:jB,$d:yB,Sd:TB,wd:YB,fb:sS,Ya:pS,kd:nT,fe:lB,Yc:bT,cb:uS,vb:HI,ed:lT,gb:nS,tc:GT,Td:BB,Zc:_T,vd:$B,$c:yT,_c:mT,Uc:wT,oc:QT,Mc:FT,Pc:DT,Oc:OT,Tb:jI,Nc:AT,de:fB,Bb:xI,Cb:NI,le:sB,ke:oB,hd:aT,ne:iB,Xb:_I,Ub:vI,Ob:SI,Wb:bI,Fb:PI,wc:HT,ub:YI,Hb:UI,Gb:CI,Fd:RB,Kb:FI,Eb:kI,_b:pI,zd:zB,Kc:VT,Bd:LB,qd:XB,Ab:EI,zb:LI,jc:nI,yb:qI,Gd:kB,rc:KT,od:eT,Za:hS,bc:dI,mb:XI,md:rT,Lc:MT,Gc:PT,s:nw,k:uw,C:Uw,ba:Pw,rb:JI,D:Nw,ca:Cw,sb:GI,f:sw,T:mw,O:Hw,dc:yw,g:_w,m:dw,te:Qw,q:Fw,r:Sw,ia:qw,y:jw,P:Ow,N:xw,S:Tw,pe:eB,ha:Yw,Z:Iw,Xc:gT,pb:KI,yd:WB,Ec:RT,Nd:AB,pc:XT,uc:$T,jb:tS,Dd:xB,zc:qT,db:aS,Sc:TT,Tc:BT,Hc:CT,Od:OB,xc:WT,vc:YT,kc:iI,Rd:IB,Rc:IT,Wc:vT,Yb:mI,gc:aI,Jd:UB,Kd:VB,hb:iS,Pd:DB,Ld:MB,yc:zT,ec:cI,nc:eI,Vc:jT,eb:oS,be:hB,ee:dB,ie:aB,bd:hT,Zb:yI,Md:FB,ic:sI,hc:oI,pd:QB,ib:rS,Ad:qB,ud:GB,_a:fS,fc:uI,lb:QI,me:nB,_d:mB,sd:KB,lc:rI,$b:hI,Sb:wI,Zd:_B,Yd:bB,td:JB,gd:uT,fd:cT,nd:tT,tb:$I,ld:iT,cc:lI,Db:RI,bb:cS,mc:tI,nb:ZI,rd:ZB,Cc:xT,$a:dS,ab:lS,ac:fI,ae:pB,Ed:NB,Fc:kT,Jc:UT,sc:JT,Hd:PB,Cd:EB,H:y0,F:m0,Ia:g0,Pa:j0},IU=nj(),T0=t.___wasm_call_ctors=function(){return(T0=t.___wasm_call_ctors=t.asm.ye).apply(null,arguments)},I0=t._main=function(){return(I0=t._main=t.asm.ze).apply(null,arguments)},S0=t._duckdb_web_fs_glob_add_path=function(){return(S0=t._duckdb_web_fs_glob_add_path=t.asm.Be).apply(null,arguments)},D0=t._duckdb_web_clear_response=function(){return(D0=t._duckdb_web_clear_response=t.asm.Ce).apply(null,arguments)},O0=t._duckdb_web_fail_with=function(){return(O0=t._duckdb_web_fail_with=t.asm.De).apply(null,arguments)},A0=t._duckdb_web_reset=function(){return(A0=t._duckdb_web_reset=t.asm.Ee).apply(null,arguments)},F0=t._duckdb_web_connect=function(){return(F0=t._duckdb_web_connect=t.asm.Fe).apply(null,arguments)},M0=t._duckdb_web_disconnect=function(){return(M0=t._duckdb_web_disconnect=t.asm.Ge).apply(null,arguments)},V0=t._duckdb_web_flush_files=function(){return(V0=t._duckdb_web_flush_files=t.asm.He).apply(null,arguments)},U0=t._duckdb_web_flush_file=function(){return(U0=t._duckdb_web_flush_file=t.asm.Ie).apply(null,arguments)},C0=t._duckdb_web_open=function(){return(C0=t._duckdb_web_open=t.asm.Je).apply(null,arguments)},P0=t._duckdb_web_collect_file_stats=function(){return(P0=t._duckdb_web_collect_file_stats=t.asm.Ke).apply(null,arguments)},k0=t._duckdb_web_export_file_stats=function(){return(k0=t._duckdb_web_export_file_stats=t.asm.Le).apply(null,arguments)},R0=t._duckdb_web_fs_drop_file=function(){return(R0=t._duckdb_web_fs_drop_file=t.asm.Me).apply(null,arguments)},N0=t._duckdb_web_fs_drop_files=function(){return(N0=t._duckdb_web_fs_drop_files=t.asm.Ne).apply(null,arguments)},x0=t._duckdb_web_fs_get_file_info=function(){return(x0=t._duckdb_web_fs_get_file_info=t.asm.Oe).apply(null,arguments)},E0=t._duckdb_web_fs_set_file_descriptor=function(){return(E0=t._duckdb_web_fs_set_file_descriptor=t.asm.Pe).apply(null,arguments)},L0=t._duckdb_web_fs_register_file_url=function(){return(L0=t._duckdb_web_fs_register_file_url=t.asm.Qe).apply(null,arguments)},q0=t._duckdb_web_fs_register_file_buffer=function(){return(q0=t._duckdb_web_fs_register_file_buffer=t.asm.Re).apply(null,arguments)},z0=t._duckdb_web_copy_file_to_buffer=function(){return(z0=t._duckdb_web_copy_file_to_buffer=t.asm.Se).apply(null,arguments)},W0=t._duckdb_web_copy_file_to_path=function(){return(W0=t._duckdb_web_copy_file_to_path=t.asm.Te).apply(null,arguments)},H0=t._duckdb_web_get_version=function(){return(H0=t._duckdb_web_get_version=t.asm.Ue).apply(null,arguments)},Y0=t._duckdb_web_get_feature_flags=function(){return(Y0=t._duckdb_web_get_feature_flags=t.asm.Ve).apply(null,arguments)},$0=t._duckdb_web_tokenize=function(){return($0=t._duckdb_web_tokenize=t.asm.We).apply(null,arguments)},G0=t._duckdb_web_prepared_statement_create=function(){return(G0=t._duckdb_web_prepared_statement_create=t.asm.Xe).apply(null,arguments)},J0=t._duckdb_web_prepared_statement_close=function(){return(J0=t._duckdb_web_prepared_statement_close=t.asm.Ye).apply(null,arguments)},K0=t._duckdb_web_prepared_statement_run=function(){return(K0=t._duckdb_web_prepared_statement_run=t.asm.Ze).apply(null,arguments)},Z0=t._duckdb_web_prepared_statement_send=function(){return(Z0=t._duckdb_web_prepared_statement_send=t.asm._e).apply(null,arguments)},X0=t._duckdb_web_query_run=function(){return(X0=t._duckdb_web_query_run=t.asm.$e).apply(null,arguments)},Q0=t._duckdb_web_query_send=function(){return(Q0=t._duckdb_web_query_send=t.asm.af).apply(null,arguments)},ew=t._duckdb_web_query_fetch_results=function(){return(ew=t._duckdb_web_query_fetch_results=t.asm.bf).apply(null,arguments)},tw=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(tw=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.cf).apply(null,arguments)},rw=t._duckdb_web_insert_csv_from_path=function(){return(rw=t._duckdb_web_insert_csv_from_path=t.asm.df).apply(null,arguments)},iw=t._duckdb_web_insert_json_from_path=function(){return(iw=t._duckdb_web_insert_json_from_path=t.asm.ef).apply(null,arguments)},uf=t.___errno_location=function(){return(uf=t.___errno_location=t.asm.ff).apply(null,arguments)},w=t.stackSave=function(){return(w=t.stackSave=t.asm.gf).apply(null,arguments)},B=t.stackRestore=function(){return(B=t.stackRestore=t.asm.hf).apply(null,arguments)},hu=t.stackAlloc=function(){return(hu=t.stackAlloc=t.asm.jf).apply(null,arguments)},T=t._setThrew=function(){return(T=t._setThrew=t.asm.kf).apply(null,arguments)},to=t.___cxa_can_catch=function(){return(to=t.___cxa_can_catch=t.asm.lf).apply(null,arguments)},cf=t.___cxa_is_pointer_type=function(){return(cf=t.___cxa_is_pointer_type=t.asm.mf).apply(null,arguments)},pu=t._malloc=function(){return(pu=t._malloc=t.asm.nf).apply(null,arguments)},yu=t._free=function(){return(yu=t._free=t.asm.of).apply(null,arguments)},lf=t.dynCall_jiji=function(){return(lf=t.dynCall_jiji=t.asm.pf).apply(null,arguments)},df=t.dynCall_jiiii=function(){return(df=t.dynCall_jiiii=t.asm.qf).apply(null,arguments)},ff=t.dynCall_iiiiij=function(){return(ff=t.dynCall_iiiiij=t.asm.rf).apply(null,arguments)},hf=t.dynCall_iiiiijj=function(){return(hf=t.dynCall_iiiiijj=t.asm.sf).apply(null,arguments)},pf=t.dynCall_viijii=function(){return(pf=t.dynCall_viijii=t.asm.tf).apply(null,arguments)},yf=t.dynCall_j=function(){return(yf=t.dynCall_j=t.asm.uf).apply(null,arguments)},mf=t.dynCall_ji=function(){return(mf=t.dynCall_ji=t.asm.vf).apply(null,arguments)},_f=t.dynCall_iij=function(){return(_f=t.dynCall_iij=t.asm.wf).apply(null,arguments)},bf=t.dynCall_viij=function(){return(bf=t.dynCall_viij=t.asm.xf).apply(null,arguments)},gf=t.dynCall_viijji=function(){return(gf=t.dynCall_viijji=t.asm.yf).apply(null,arguments)},vf=t.dynCall_viijj=function(){return(vf=t.dynCall_viijj=t.asm.zf).apply(null,arguments)},jf=t.dynCall_viiijj=function(){return(jf=t.dynCall_viiijj=t.asm.Af).apply(null,arguments)},wf=t.dynCall_viiji=function(){return(wf=t.dynCall_viiji=t.asm.Bf).apply(null,arguments)},Bf=t.dynCall_vijjj=function(){return(Bf=t.dynCall_vijjj=t.asm.Cf).apply(null,arguments)},Tf=t.dynCall_iiijj=function(){return(Tf=t.dynCall_iiijj=t.asm.Df).apply(null,arguments)},If=t.dynCall_viiij=function(){return(If=t.dynCall_viiij=t.asm.Ef).apply(null,arguments)},Sf=t.dynCall_viijij=function(){return(Sf=t.dynCall_viijij=t.asm.Ff).apply(null,arguments)},Df=t.dynCall_viji=function(){return(Df=t.dynCall_viji=t.asm.Gf).apply(null,arguments)},Of=t.dynCall_iiiijj=function(){return(Of=t.dynCall_iiiijj=t.asm.Hf).apply(null,arguments)},Af=t.dynCall_viijiiiii=function(){return(Af=t.dynCall_viijiiiii=t.asm.If).apply(null,arguments)},Ff=t.dynCall_viiiiijiiii=function(){return(Ff=t.dynCall_viiiiijiiii=t.asm.Jf).apply(null,arguments)},Mf=t.dynCall_viiiijj=function(){return(Mf=t.dynCall_viiiijj=t.asm.Kf).apply(null,arguments)},Vf=t.dynCall_iiijiiii=function(){return(Vf=t.dynCall_iiijiiii=t.asm.Lf).apply(null,arguments)},Uf=t.dynCall_vij=function(){return(Uf=t.dynCall_vij=t.asm.Mf).apply(null,arguments)},Cf=t.dynCall_jij=function(){return(Cf=t.dynCall_jij=t.asm.Nf).apply(null,arguments)},Pf=t.dynCall_jiiij=function(){return(Pf=t.dynCall_jiiij=t.asm.Of).apply(null,arguments)},kf=t.dynCall_iiij=function(){return(kf=t.dynCall_iiij=t.asm.Pf).apply(null,arguments)},Rf=t.dynCall_iiiiijjiijj=function(){return(Rf=t.dynCall_iiiiijjiijj=t.asm.Qf).apply(null,arguments)},Nf=t.dynCall_viijiijji=function(){return(Nf=t.dynCall_viijiijji=t.asm.Rf).apply(null,arguments)},xf=t.dynCall_vjjijij=function(){return(xf=t.dynCall_vjjijij=t.asm.Sf).apply(null,arguments)},Ef=t.dynCall_vijjji=function(){return(Ef=t.dynCall_vijjji=t.asm.Tf).apply(null,arguments)},Lf=t.dynCall_vjjii=function(){return(Lf=t.dynCall_vjjii=t.asm.Uf).apply(null,arguments)},qf=t.dynCall_viiiiiji=function(){return(qf=t.dynCall_viiiiiji=t.asm.Vf).apply(null,arguments)},zf=t.dynCall_jiiijji=function(){return(zf=t.dynCall_jiiijji=t.asm.Wf).apply(null,arguments)},Wf=t.dynCall_iijj=function(){return(Wf=t.dynCall_iijj=t.asm.Xf).apply(null,arguments)},Hf=t.dynCall_iiijjii=function(){return(Hf=t.dynCall_iiijjii=t.asm.Yf).apply(null,arguments)},Yf=t.dynCall_iijjii=function(){return(Yf=t.dynCall_iijjii=t.asm.Zf).apply(null,arguments)},$f=t.dynCall_viiiij=function(){return($f=t.dynCall_viiiij=t.asm._f).apply(null,arguments)},Gf=t.dynCall_vijii=function(){return(Gf=t.dynCall_vijii=t.asm.$f).apply(null,arguments)},Jf=t.dynCall_viijjii=function(){return(Jf=t.dynCall_viijjii=t.asm.ag).apply(null,arguments)},Kf=t.dynCall_vijj=function(){return(Kf=t.dynCall_vijj=t.asm.bg).apply(null,arguments)},Zf=t.dynCall_jijjij=function(){return(Zf=t.dynCall_jijjij=t.asm.cg).apply(null,arguments)},Xf=t.dynCall_jiijii=function(){return(Xf=t.dynCall_jiijii=t.asm.dg).apply(null,arguments)},Qf=t.dynCall_jijiii=function(){return(Qf=t.dynCall_jijiii=t.asm.eg).apply(null,arguments)},eh=t.dynCall_viijiiij=function(){return(eh=t.dynCall_viijiiij=t.asm.fg).apply(null,arguments)},th=t.dynCall_vijiiiji=function(){return(th=t.dynCall_vijiiiji=t.asm.gg).apply(null,arguments)},rh=t.dynCall_jiiji=function(){return(rh=t.dynCall_jiiji=t.asm.hg).apply(null,arguments)},ih=t.dynCall_viiijij=function(){return(ih=t.dynCall_viiijij=t.asm.ig).apply(null,arguments)},nh=t.dynCall_viijiijj=function(){return(nh=t.dynCall_viijiijj=t.asm.jg).apply(null,arguments)},sh=t.dynCall_viiiiijj=function(){return(sh=t.dynCall_viiiiijj=t.asm.kg).apply(null,arguments)},oh=t.dynCall_viiijji=function(){return(oh=t.dynCall_viiijji=t.asm.lg).apply(null,arguments)},ah=t.dynCall_iiiij=function(){return(ah=t.dynCall_iiiij=t.asm.mg).apply(null,arguments)},uh=t.dynCall_iiiiiji=function(){return(uh=t.dynCall_iiiiiji=t.asm.ng).apply(null,arguments)},ch=t.dynCall_iiiji=function(){return(ch=t.dynCall_iiiji=t.asm.og).apply(null,arguments)},lh=t.dynCall_iiiiji=function(){return(lh=t.dynCall_iiiiji=t.asm.pg).apply(null,arguments)},dh=t.dynCall_jii=function(){return(dh=t.dynCall_jii=t.asm.qg).apply(null,arguments)},fh=t.dynCall_jiii=function(){return(fh=t.dynCall_jiii=t.asm.rg).apply(null,arguments)},hh=t.dynCall_iijjijj=function(){return(hh=t.dynCall_iijjijj=t.asm.sg).apply(null,arguments)},ph=t.dynCall_viiiijiiiii=function(){return(ph=t.dynCall_viiiijiiiii=t.asm.tg).apply(null,arguments)},yh=t.dynCall_viiiijiiii=function(){return(yh=t.dynCall_viiiijiiii=t.asm.ug).apply(null,arguments)},mh=t.dynCall_viiijii=function(){return(mh=t.dynCall_viiijii=t.asm.vg).apply(null,arguments)},_h=t.dynCall_viiiiiij=function(){return(_h=t.dynCall_viiiiiij=t.asm.wg).apply(null,arguments)},bh=t.dynCall_viiijjj=function(){return(bh=t.dynCall_viiijjj=t.asm.xg).apply(null,arguments)},gh=t.dynCall_iiijiii=function(){return(gh=t.dynCall_iiijiii=t.asm.yg).apply(null,arguments)},vh=t.dynCall_iiiiijii=function(){return(vh=t.dynCall_iiiiijii=t.asm.zg).apply(null,arguments)},jh=t.dynCall_viijiii=function(){return(jh=t.dynCall_viijiii=t.asm.Ag).apply(null,arguments)},wh=t.dynCall_iiijiij=function(){return(wh=t.dynCall_iiijiij=t.asm.Bg).apply(null,arguments)},Bh=t.dynCall_vijiii=function(){return(Bh=t.dynCall_vijiii=t.asm.Cg).apply(null,arguments)},Th=t.dynCall_iijjiii=function(){return(Th=t.dynCall_iijjiii=t.asm.Dg).apply(null,arguments)},Ih=t.dynCall_iijjiiii=function(){return(Ih=t.dynCall_iijjiiii=t.asm.Eg).apply(null,arguments)},Sh=t.dynCall_iiji=function(){return(Sh=t.dynCall_iiji=t.asm.Fg).apply(null,arguments)},Dh=t.dynCall_iijji=function(){return(Dh=t.dynCall_iijji=t.asm.Gg).apply(null,arguments)},Oh=t.dynCall_vijiiii=function(){return(Oh=t.dynCall_vijiiii=t.asm.Hg).apply(null,arguments)},Ah=t.dynCall_iijiiii=function(){return(Ah=t.dynCall_iijiiii=t.asm.Ig).apply(null,arguments)},Fh=t.dynCall_viiiji=function(){return(Fh=t.dynCall_viiiji=t.asm.Jg).apply(null,arguments)},Mh=t.dynCall_iiiijiii=function(){return(Mh=t.dynCall_iiiijiii=t.asm.Kg).apply(null,arguments)},Vh=t.dynCall_vijij=function(){return(Vh=t.dynCall_vijij=t.asm.Lg).apply(null,arguments)},Uh=t.dynCall_iiijjjj=function(){return(Uh=t.dynCall_iiijjjj=t.asm.Mg).apply(null,arguments)},Ch=t.dynCall_jijj=function(){return(Ch=t.dynCall_jijj=t.asm.Ng).apply(null,arguments)},Ph=t.dynCall_viiiijiiiiiiii=function(){return(Ph=t.dynCall_viiiijiiiiiiii=t.asm.Og).apply(null,arguments)},kh=t.dynCall_ij=function(){return(kh=t.dynCall_ij=t.asm.Pg).apply(null,arguments)},Rh=t.dynCall_jj=function(){return(Rh=t.dynCall_jj=t.asm.Qg).apply(null,arguments)},Nh=t.dynCall_jjj=function(){return(Nh=t.dynCall_jjj=t.asm.Rg).apply(null,arguments)},xh=t.dynCall_iji=function(){return(xh=t.dynCall_iji=t.asm.Sg).apply(null,arguments)},Eh=t.dynCall_vjii=function(){return(Eh=t.dynCall_vjii=t.asm.Tg).apply(null,arguments)},Lh=t.dynCall_vjiiii=function(){return(Lh=t.dynCall_vjiiii=t.asm.Ug).apply(null,arguments)},qh=t.dynCall_viiiiijiii=function(){return(qh=t.dynCall_viiiiijiii=t.asm.Vg).apply(null,arguments)},zh=t.dynCall_vijji=function(){return(zh=t.dynCall_vijji=t.asm.Wg).apply(null,arguments)},Wh=t.dynCall_iiijii=function(){return(Wh=t.dynCall_iiijii=t.asm.Xg).apply(null,arguments)},Hh=t.dynCall_jiij=function(){return(Hh=t.dynCall_jiij=t.asm.Yg).apply(null,arguments)},Yh=t.dynCall_iiiijjii=function(){return(Yh=t.dynCall_iiiijjii=t.asm.Zg).apply(null,arguments)},$h=t.dynCall_iiiiijji=function(){return($h=t.dynCall_iiiiijji=t.asm._g).apply(null,arguments)},Gh=t.dynCall_viiiiji=function(){return(Gh=t.dynCall_viiiiji=t.asm.$g).apply(null,arguments)},Jh=t.dynCall_viiijjii=function(){return(Jh=t.dynCall_viiijjii=t.asm.ah).apply(null,arguments)},Kh=t.dynCall_viiiijji=function(){return(Kh=t.dynCall_viiiijji=t.asm.bh).apply(null,arguments)},Zh=t.dynCall_viiiijjii=function(){return(Zh=t.dynCall_viiiijjii=t.asm.ch).apply(null,arguments)},Xh=t.dynCall_viiiiijji=function(){return(Xh=t.dynCall_viiiiijji=t.asm.dh).apply(null,arguments)},Qh=t.dynCall_jiiiij=function(){return(Qh=t.dynCall_jiiiij=t.asm.eh).apply(null,arguments)},ep=t.dynCall_iijiji=function(){return(ep=t.dynCall_iijiji=t.asm.fh).apply(null,arguments)},tp=t.dynCall_viiijijiji=function(){return(tp=t.dynCall_viiijijiji=t.asm.gh).apply(null,arguments)},rp=t.dynCall_vjiiiji=function(){return(rp=t.dynCall_vjiiiji=t.asm.hh).apply(null,arguments)},ip=t.dynCall_viiijjij=function(){return(ip=t.dynCall_viiijjij=t.asm.ih).apply(null,arguments)},np=t.dynCall_vijijjiij=function(){return(np=t.dynCall_vijijjiij=t.asm.jh).apply(null,arguments)},sp=t.dynCall_viijjij=function(){return(sp=t.dynCall_viijjij=t.asm.kh).apply(null,arguments)},op=t.dynCall_viiijjiij=function(){return(op=t.dynCall_viiijjiij=t.asm.lh).apply(null,arguments)},ap=t.dynCall_viiiijjjj=function(){return(ap=t.dynCall_viiiijjjj=t.asm.mh).apply(null,arguments)},up=t.dynCall_jiijijii=function(){return(up=t.dynCall_jiijijii=t.asm.nh).apply(null,arguments)},cp=t.dynCall_viijiiiiij=function(){return(cp=t.dynCall_viijiiiiij=t.asm.oh).apply(null,arguments)},lp=t.dynCall_viijiiiijj=function(){return(lp=t.dynCall_viijiiiijj=t.asm.ph).apply(null,arguments)},dp=t.dynCall_viiijiiiijjj=function(){return(dp=t.dynCall_viiijiiiijjj=t.asm.qh).apply(null,arguments)},fp=t.dynCall_viijijiiiijjj=function(){return(fp=t.dynCall_viijijiiiijjj=t.asm.rh).apply(null,arguments)},hp=t.dynCall_iijjjj=function(){return(hp=t.dynCall_iijjjj=t.asm.sh).apply(null,arguments)},pp=t.dynCall_iiijji=function(){return(pp=t.dynCall_iiijji=t.asm.th).apply(null,arguments)},yp=t.dynCall_vijijiiiijjj=function(){return(yp=t.dynCall_vijijiiiijjj=t.asm.uh).apply(null,arguments)},mp=t.dynCall_iiiiiiji=function(){return(mp=t.dynCall_iiiiiiji=t.asm.vh).apply(null,arguments)},_p=t.dynCall_jijijjij=function(){return(_p=t.dynCall_jijijjij=t.asm.wh).apply(null,arguments)},bp=t.dynCall_vijjij=function(){return(bp=t.dynCall_vijjij=t.asm.xh).apply(null,arguments)},gp=t.dynCall_viijjj=function(){return(gp=t.dynCall_viijjj=t.asm.yh).apply(null,arguments)},vp=t.dynCall_jiiijj=function(){return(vp=t.dynCall_jiiijj=t.asm.zh).apply(null,arguments)},jp=t.dynCall_viijiiii=function(){return(jp=t.dynCall_viijiiii=t.asm.Ah).apply(null,arguments)},wp=t.dynCall_iiijij=function(){return(wp=t.dynCall_iiijij=t.asm.Bh).apply(null,arguments)},Bp=t.dynCall_viiijiii=function(){return(Bp=t.dynCall_viiijiii=t.asm.Ch).apply(null,arguments)},Tp=t.dynCall_viijjji=function(){return(Tp=t.dynCall_viijjji=t.asm.Dh).apply(null,arguments)},Ip=t.dynCall_iiiiiij=function(){return(Ip=t.dynCall_iiiiiij=t.asm.Eh).apply(null,arguments)},Sp=t.dynCall_iiiiiiiiiiji=function(){return(Sp=t.dynCall_iiiiiiiiiiji=t.asm.Fh).apply(null,arguments)},Dp=t.dynCall_jiiiiiii=function(){return(Dp=t.dynCall_jiiiiiii=t.asm.Gh).apply(null,arguments)},Op=t.dynCall_iidj=function(){return(Op=t.dynCall_iidj=t.asm.Hh).apply(null,arguments)},Ap=t.dynCall_jiiijii=function(){return(Ap=t.dynCall_jiiijii=t.asm.Ih).apply(null,arguments)},Fp=t.dynCall_ijji=function(){return(Fp=t.dynCall_ijji=t.asm.Jh).apply(null,arguments)},Mp=t.dynCall_iiiiiiiij=function(){return(Mp=t.dynCall_iiiiiiiij=t.asm.Kh).apply(null,arguments)},Vp=t.dynCall_iiiiiiij=function(){return(Vp=t.dynCall_iiiiiiij=t.asm.Lh).apply(null,arguments)},Up=t.dynCall_iiiiiiiiiiiij=function(){return(Up=t.dynCall_iiiiiiiiiiiij=t.asm.Mh).apply(null,arguments)},Cp=t.dynCall_iiiiiiiji=function(){return(Cp=t.dynCall_iiiiiiiji=t.asm.Nh).apply(null,arguments)},Pp=t.dynCall_iiiidjj=function(){return(Pp=t.dynCall_iiiidjj=t.asm.Oh).apply(null,arguments)},kp=t.dynCall_jiiiii=function(){return(kp=t.dynCall_jiiiii=t.asm.Ph).apply(null,arguments)},Rp=t.dynCall_jiiiiiijii=function(){return(Rp=t.dynCall_jiiiiiijii=t.asm.Qh).apply(null,arguments)},Np=t.dynCall_iiiijji=function(){return(Np=t.dynCall_iiiijji=t.asm.Rh).apply(null,arguments)},xp=t.dynCall_jiiiiii=function(){return(xp=t.dynCall_jiiiiii=t.asm.Sh).apply(null,arguments)},Ep=t.dynCall_jiiiijii=function(){return(Ep=t.dynCall_jiiiijii=t.asm.Th).apply(null,arguments)},Lp=t.dynCall_jiiiijiiiiiiii=function(){return(Lp=t.dynCall_jiiiijiiiiiiii=t.asm.Uh).apply(null,arguments)},qp=t.dynCall_jiiiiijiiii=function(){return(qp=t.dynCall_jiiiiijiiii=t.asm.Vh).apply(null,arguments)},zp=t.dynCall_jiiijiii=function(){return(zp=t.dynCall_jiiijiii=t.asm.Wh).apply(null,arguments)},Wp=t.dynCall_fiijii=function(){return(Wp=t.dynCall_fiijii=t.asm.Xh).apply(null,arguments)},Hp=t.dynCall_diijii=function(){return(Hp=t.dynCall_diijii=t.asm.Yh).apply(null,arguments)},Yp=t.dynCall_vijijj=function(){return(Yp=t.dynCall_vijijj=t.asm.Zh).apply(null,arguments)},$p=t.dynCall_jf=function(){return($p=t.dynCall_jf=t.asm._h).apply(null,arguments)},Gp=t.dynCall_jd=function(){return(Gp=t.dynCall_jd=t.asm.$h).apply(null,arguments)},Jp=t.dynCall_jiijiiiii=function(){return(Jp=t.dynCall_jiijiiiii=t.asm.ai).apply(null,arguments)},Kp=t.dynCall_jiijiijiii=function(){return(Kp=t.dynCall_jiijiijiii=t.asm.bi).apply(null,arguments)},Zp=t.dynCall_jiijjiii=function(){return(Zp=t.dynCall_jiijjiii=t.asm.ci).apply(null,arguments)},Xp=t.dynCall_iijiii=function(){return(Xp=t.dynCall_iijiii=t.asm.di).apply(null,arguments)},Qp=t.dynCall_jiiiiji=function(){return(Qp=t.dynCall_jiiiiji=t.asm.ei).apply(null,arguments)},ey=t.dynCall_vijiijj=function(){return(ey=t.dynCall_vijiijj=t.asm.fi).apply(null,arguments)},ty=t.dynCall_vifiijj=function(){return(ty=t.dynCall_vifiijj=t.asm.gi).apply(null,arguments)},ry=t.dynCall_vidiijj=function(){return(ry=t.dynCall_vidiijj=t.asm.hi).apply(null,arguments)},iy=t.dynCall_viiiiij=function(){return(iy=t.dynCall_viiiiij=t.asm.ii).apply(null,arguments)},ny=t.dynCall_ijj=function(){return(ny=t.dynCall_ijj=t.asm.ji).apply(null,arguments)},sy=t.dynCall_ijjiii=function(){return(sy=t.dynCall_ijjiii=t.asm.ki).apply(null,arguments)},oy=t.dynCall_vijijjji=function(){return(oy=t.dynCall_vijijjji=t.asm.li).apply(null,arguments)},ay=t.dynCall_viiiiijjji=function(){return(ay=t.dynCall_viiiiijjji=t.asm.mi).apply(null,arguments)},uy=t.dynCall_viijijj=function(){return(uy=t.dynCall_viijijj=t.asm.ni).apply(null,arguments)},cy=t.dynCall_iiijiijj=function(){return(cy=t.dynCall_iiijiijj=t.asm.oi).apply(null,arguments)},ly=t.dynCall_viiijijjj=function(){return(ly=t.dynCall_viiijijjj=t.asm.pi).apply(null,arguments)},dy=t.dynCall_iijiijj=function(){return(dy=t.dynCall_iijiijj=t.asm.qi).apply(null,arguments)},fy=t.dynCall_viiijjjji=function(){return(fy=t.dynCall_viiijjjji=t.asm.ri).apply(null,arguments)},hy=t.dynCall_viiiijiii=function(){return(hy=t.dynCall_viiiijiii=t.asm.si).apply(null,arguments)},py=t.dynCall_iijii=function(){return(py=t.dynCall_iijii=t.asm.ti).apply(null,arguments)},yy=t.dynCall_vijjiiii=function(){return(yy=t.dynCall_vijjiiii=t.asm.ui).apply(null,arguments)},my=t.dynCall_vijijjiiiii=function(){return(my=t.dynCall_vijijjiiiii=t.asm.vi).apply(null,arguments)},_y=t.dynCall_vijjiiiii=function(){return(_y=t.dynCall_vijjiiiii=t.asm.wi).apply(null,arguments)},by=t.dynCall_iiijjji=function(){return(by=t.dynCall_iiijjji=t.asm.xi).apply(null,arguments)},gy=t.dynCall_iiiiijjj=function(){return(gy=t.dynCall_iiiiijjj=t.asm.yi).apply(null,arguments)},vy=t.dynCall_jijiiii=function(){return(vy=t.dynCall_jijiiii=t.asm.zi).apply(null,arguments)},jy=t.dynCall_iiijjjii=function(){return(jy=t.dynCall_iiijjjii=t.asm.Ai).apply(null,arguments)},wy=t.dynCall_iiiiijjji=function(){return(wy=t.dynCall_iiiiijjji=t.asm.Bi).apply(null,arguments)},By=t.dynCall_iiiijjj=function(){return(By=t.dynCall_iiiijjj=t.asm.Ci).apply(null,arguments)},Ty=t.dynCall_viijiji=function(){return(Ty=t.dynCall_viijiji=t.asm.Di).apply(null,arguments)};function nw(o){var a=w();try{H.get(o)()}catch(u){if(B(a),u!==u+0&&u!=="longjmp")throw u;T(1,0)}}function sw(o,a,u){var l=w();try{H.get(o)(a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function ow(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(B(u),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function aw(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function uw(o,a){var u=w();try{H.get(o)(a)}catch(l){if(B(u),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function cw(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function lw(o,a,u,l,d,f){var h=w();try{return H.get(o)(a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function dw(o,a,u,l,d){var f=w();try{H.get(o)(a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function fw(o,a,u,l,d){var f=w();try{return H.get(o)(a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function hw(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function pw(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function yw(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function mw(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function _w(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function bw(o){var a=w();try{return H.get(o)()}catch(u){if(B(a),u!==u+0&&u!=="longjmp")throw u;T(1,0)}}function gw(o,a,u,l,d,f,h,p){var y=w();try{return H.get(o)(a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function vw(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function jw(o,a,u,l,d,f,h,p){var y=w();try{H.get(o)(a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function ww(o,a,u,l,d,f,h){var p=w();try{return H.get(o)(a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function Bw(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function Tw(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function Iw(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue){var _e=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue)}catch(Be){if(B(_e),Be!==Be+0&&Be!=="longjmp")throw Be;T(1,0)}}function Sw(o,a,u,l,d,f,h){var p=w();try{H.get(o)(a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function Dw(o,a,u,l,d,f){var h=w();try{return H.get(o)(a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function Ow(o,a,u,l,d,f,h,p,y){var m=w();try{H.get(o)(a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function Aw(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(B(u),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function Fw(o,a,u,l,d,f){var h=w();try{H.get(o)(a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function Mw(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue,_e,Be,P,$){var Ae=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue,_e,Be,P,$)}catch(ye){if(B(Ae),ye!==ye+0&&ye!=="longjmp")throw ye;T(1,0)}}function Vw(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue,_e,Be,P,$,Ae){var ye=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue,_e,Be,P,$,Ae)}catch(at){if(B(ye),at!==at+0&&at!=="longjmp")throw at;T(1,0)}}function Uw(o,a,u){var l=w();try{H.get(o)(a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function Cw(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function Pw(o,a,u,l){var d=w();try{H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function kw(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue){var _e=w();try{return H.get(o)(a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue)}catch(Be){if(B(_e),Be!==Be+0&&Be!=="longjmp")throw Be;T(1,0)}}function Rw(o,a,u,l,d){var f=w();try{return H.get(o)(a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function Nw(o,a,u){var l=w();try{H.get(o)(a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function xw(o,a,u,l,d,f,h,p,y,m){var g=w();try{H.get(o)(a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function Ew(o,a,u,l,d){var f=w();try{return H.get(o)(a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function Lw(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function qw(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function zw(o,a,u,l,d,f,h,p,y){var m=w();try{return H.get(o)(a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function Ww(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(B(u),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function Hw(o,a,u,l,d,f){var h=w();try{H.get(o)(a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function Yw(o,a,u,l,d,f,h,p,y,m,g,j,O,M){var x=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g,j,O,M)}catch(ue){if(B(x),ue!==ue+0&&ue!=="longjmp")throw ue;T(1,0)}}function $w(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function Gw(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function Jw(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function Kw(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function Zw(o,a,u){var l=w();try{return H.get(o)(a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function Xw(o,a,u,l){var d=w();try{return H.get(o)(a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function Qw(o,a,u,l,d,f,h,p,y,m){var g=w();try{H.get(o)(a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function eB(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{H.get(o)(a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function tB(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(B(u),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function rB(o,a){var u=w();try{return H.get(o)(a)}catch(l){if(B(u),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function iB(o,a,u,l,d){var f=w();try{return df(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function nB(o,a,u,l,d,f,h){var p=w();try{vf(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function sB(o,a){var u=w();try{return mf(o,a)}catch(l){if(B(u),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function oB(o,a,u){var l=w();try{return dh(o,a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function aB(o,a,u,l,d,f,h){var p=w();try{pf(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function uB(o,a,u,l,d,f,h){var p=w();try{return ff(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function cB(o,a,u,l,d,f,h,p,y){var m=w();try{return hf(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function lB(o,a,u,l){var d=w();try{return _f(o,a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function dB(o,a,u,l,d,f){var h=w();try{wf(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function fB(o){var a=w();try{return yf(o)}catch(u){if(B(a),u!==u+0&&u!=="longjmp")throw u;T(1,0)}}function hB(o,a,u,l,d){var f=w();try{bf(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function pB(o,a,u,l,d,f,h,p){var y=w();try{Bf(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function yB(o,a,u,l,d,f,h){var p=w();try{return Tf(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function mB(o,a,u,l,d,f,h,p){var y=w();try{gf(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function _B(o,a,u,l){var d=w();try{Uf(o,a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function bB(o,a,u,l,d){var f=w();try{Df(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function gB(o,a,u,l,d){var f=w();try{return kf(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function vB(o,a,u,l,d,f){var h=w();try{return ah(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function jB(o,a,u,l,d,f,h,p){var y=w();try{return wp(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function wB(o,a,u,l,d,f){var h=w();try{return ch(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function BB(o,a,u,l,d,f){var h=w();try{return Wf(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function TB(o,a,u,l,d,f,h,p){var y=w();try{return pp(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function IB(o,a,u,l,d,f){var h=w();try{If(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function SB(o,a,u,l,d,f,h,p){var y=w();try{return Of(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function DB(o,a,u,l,d,f,h,p){var y=w();try{jf(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function OB(o,a,u,l,d,f,h,p,y){var m=w();try{Mf(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function AB(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{Ff(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function FB(o,a,u,l,d,f,h,p,y,m){var g=w();try{Af(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function MB(o,a,u,l,d,f,h,p,y){var m=w();try{oh(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function VB(o,a,u,l,d,f,h,p,y,m,g,j,O){var M=w();try{tp(o,a,u,l,d,f,h,p,y,m,g,j,O)}catch(x){if(B(M),x!==x+0&&x!=="longjmp")throw x;T(1,0)}}function UB(o,a,u,l,d,f,h,p,y){var m=w();try{ih(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function CB(o,a,u,l,d,f,h,p,y){var m=w();try{return Vf(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function PB(o,a,u,l,d,f,h){var p=w();try{Lf(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function kB(o,a,u,l){var d=w();try{return Cf(o,a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function RB(o,a,u,l,d,f){var h=w();try{return Pf(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function NB(o,a,u,l,d,f,h,p,y){var m=w();try{Ef(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function xB(o,a,u,l,d,f,h){var p=w();try{$f(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function EB(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{xf(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function LB(o,a,u,l,d,f){var h=w();try{return rh(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function qB(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{Nf(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function zB(o,a,u,l,d,f,h,p,y){var m=w();try{return zf(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function WB(o,a,u,l,d,f,h,p,y){var m=w();try{qf(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function HB(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x){var ue=w();try{return Rf(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x)}catch(_e){if(B(ue),_e!==_e+0&&_e!=="longjmp")throw _e;T(1,0)}}function YB(o,a,u,l,d,f,h,p,y){var m=w();try{return Hf(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function $B(o,a,u,l,d,f,h,p){var y=w();try{return Yf(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function GB(o,a,u,l,d,f,h,p){var y=w();try{Sf(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function JB(o,a,u,l,d,f){var h=w();try{Gf(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function KB(o,a,u,l,d,f,h,p,y){var m=w();try{Jf(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function ZB(o,a,u,l,d,f){var h=w();try{Kf(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function XB(o,a,u,l,d,f,h){var p=w();try{return Xf(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function QB(o,a,u,l,d,f,h,p,y,m){var g=w();try{eh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function eT(o,a,u,l,d,f,h){var p=w();try{return Qf(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function tT(o,a,u,l,d,f,h,p,y,m){var g=w();try{th(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function rT(o,a,u,l,d,f,h,p,y){var m=w();try{return Zf(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function iT(o,a,u,l,d,f,h){var p=w();try{Vh(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function nT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return Uh(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function sT(o,a,u,l,d,f,h,p){var y=w();try{return uh(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function oT(o,a,u,l,d,f,h){var p=w();try{return lh(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function aT(o,a,u,l){var d=w();try{return fh(o,a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function uT(o,a,u,l,d,f,h){var p=w();try{Bh(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function cT(o,a,u,l,d,f,h,p){var y=w();try{Oh(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function lT(o,a,u,l,d,f,h,p){var y=w();try{return Ah(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function dT(o,a,u,l,d,f,h,p){var y=w();try{return gh(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function fT(o,a,u,l,d,f,h,p,y){var m=w();try{return vh(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function hT(o,a,u,l,d,f,h,p){var y=w();try{jh(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function pT(o,a,u,l,d,f,h,p,y){var m=w();try{return wh(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function yT(o,a,u,l,d,f,h,p,y){var m=w();try{return Th(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function mT(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Ih(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function _T(o,a,u,l,d,f,h){var p=w();try{return Dh(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function bT(o,a,u,l,d){var f=w();try{return Sh(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function gT(o,a,u,l,d,f,h,p,y){var m=w();try{_h(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function vT(o,a,u,l,d,f,h,p){var y=w();try{mh(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function jT(o,a,u,l,d,f,h,p,y,m){var g=w();try{bh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function wT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return hh(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function BT(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{ph(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function TT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{yh(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function IT(o,a,u,l,d,f,h){var p=w();try{Fh(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function ST(o,a,u,l,d,f,h,p,y){var m=w();try{return Mh(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function DT(o,a,u,l){var d=w();try{return xh(o,a,u,l)}catch(f){if(B(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function OT(o,a,u,l,d){var f=w();try{return ny(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function AT(o,a,u,l,d,f,h,p){var y=w();try{return sy(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function FT(o,a,u){var l=w();try{return kh(o,a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function MT(o,a,u){var l=w();try{return Rh(o,a,u)}catch(d){if(B(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function VT(o,a,u,l,d){var f=w();try{return Hh(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function UT(o,a,u,l,d,f,h){var p=w();try{Lh(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function CT(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x){var ue=w();try{Ph(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x)}catch(_e){if(B(ue),_e!==_e+0&&_e!=="longjmp")throw _e;T(1,0)}}function PT(o,a,u,l,d){var f=w();try{return Nh(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function kT(o,a,u,l,d){var f=w();try{Eh(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function RT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{qh(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function NT(o,a,u,l,d,f,h){var p=w();try{return Wh(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function xT(o,a,u,l,d,f,h){var p=w();try{zh(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function ET(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Yh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function LT(o,a,u,l,d,f,h,p,y,m){var g=w();try{return $h(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function qT(o,a,u,l,d,f,h,p){var y=w();try{Gh(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function zT(o,a,u,l,d,f,h,p,y,m){var g=w();try{Jh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function WT(o,a,u,l,d,f,h,p,y,m){var g=w();try{Kh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function HT(o,a,u,l,d,f,h){var p=w();try{return Qh(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function YT(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{Zh(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function $T(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{Xh(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function GT(o,a,u,l,d,f,h,p){var y=w();try{return ep(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function JT(o,a,u,l,d,f,h,p,y){var m=w();try{rp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function KT(o,a,u,l,d){var f=w();try{return lf(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function ZT(o,a,u,l,d,f,h,p,y){var m=w();try{return mp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function XT(o,a,u,l,d,f,h,p,y,m){var g=w();try{sh(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function QT(o,a,u,l,d,f,h,p,y,m){var g=w();try{return hp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function eI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{ip(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function tI(o,a,u,l,d,f,h,p,y,m,g,j,O){var M=w();try{np(o,a,u,l,d,f,h,p,y,m,g,j,O)}catch(x){if(B(M),x!==x+0&&x!=="longjmp")throw x;T(1,0)}}function rI(o,a,u,l,d,f,h,p,y,m){var g=w();try{sp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function iI(o,a,u,l,d,f,h,p,y,m,g,j,O){var M=w();try{ap(o,a,u,l,d,f,h,p,y,m,g,j,O)}catch(x){if(B(M),x!==x+0&&x!=="longjmp")throw x;T(1,0)}}function nI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return up(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function sI(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{cp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function oI(o,a,u,l,d,f,h,p,y,m,g,j,O){var M=w();try{lp(o,a,u,l,d,f,h,p,y,m,g,j,O)}catch(x){if(B(M),x!==x+0&&x!=="longjmp")throw x;T(1,0)}}function aI(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue){var _e=w();try{dp(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue)}catch(Be){if(B(_e),Be!==Be+0&&Be!=="longjmp")throw Be;T(1,0)}}function uI(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue,_e,Be){var P=w();try{fp(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue,_e,Be)}catch($){if(B(P),$!==$+0&&$!=="longjmp")throw $;T(1,0)}}function cI(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{op(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function lI(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue,_e){var Be=w();try{yp(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x,ue,_e)}catch(P){if(B(Be),P!==P+0&&P!=="longjmp")throw P;T(1,0)}}function dI(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{return _p(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function fI(o,a,u,l,d,f,h,p,y){var m=w();try{bp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function hI(o,a,u,l,d,f,h,p,y){var m=w();try{gp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function pI(o,a,u,l,d,f,h,p){var y=w();try{return vp(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function yI(o,a,u,l,d,f,h,p,y){var m=w();try{jp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function mI(o,a,u,l,d,f,h,p,y){var m=w();try{Bp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function _I(o,a,u,l,d,f){var h=w();try{return kp(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function bI(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return Rp(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function gI(o,a,u,l,d,f,h,p,y){var m=w();try{return Np(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function vI(o,a,u,l,d,f,h){var p=w();try{return xp(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function jI(o,a,u,l,d,f){var h=w();try{return Fp(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function wI(o,a,u,l,d,f,h,p,y,m){var g=w();try{Tp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function BI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Mp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function TI(o,a,u,l,d,f,h,p){var y=w();try{return Ip(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function II(o,a,u,l,d,f,h,p,y,m,g,j,O){var M=w();try{return Sp(o,a,u,l,d,f,h,p,y,m,g,j,O)}catch(x){if(B(M),x!==x+0&&x!=="longjmp")throw x;T(1,0)}}function SI(o,a,u,l,d,f,h,p){var y=w();try{return Dp(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function DI(o,a,u,l,d,f,h,p,y){var m=w();try{return Vp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function OI(o,a,u,l,d,f,h,p,y,m,g,j,O,M){var x=w();try{return Up(o,a,u,l,d,f,h,p,y,m,g,j,O,M)}catch(ue){if(B(x),ue!==ue+0&&ue!=="longjmp")throw ue;T(1,0)}}function AI(o,a,u,l,d){var f=w();try{return Op(o,a,u,l,d)}catch(h){if(B(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function FI(o,a,u,l,d,f,h,p){var y=w();try{return Ap(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function MI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Cp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function VI(o,a,u,l,d,f,h,p,y){var m=w();try{return Pp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function UI(o,a,u,l,d,f,h,p,y){var m=w();try{return Ep(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function CI(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x){var ue=w();try{return Lp(o,a,u,l,d,f,h,p,y,m,g,j,O,M,x)}catch(_e){if(B(ue),_e!==_e+0&&_e!=="longjmp")throw _e;T(1,0)}}function PI(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{return qp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function kI(o,a,u,l,d,f,h,p,y){var m=w();try{return zp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function RI(o,a,u,l,d,f,h,p,y){var m=w();try{Yp(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function NI(o,a){var u=w();try{return $p(o,a)}catch(l){if(B(u),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function xI(o,a){var u=w();try{return Gp(o,a)}catch(l){if(B(u),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function EI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Jp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function LI(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{return Kp(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function qI(o,a,u,l,d,f,h,p,y,m){var g=w();try{return Zp(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function zI(o,a,u,l,d,f,h){var p=w();try{return Wp(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function WI(o,a,u,l,d,f,h){var p=w();try{return Hp(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function HI(o,a,u,l,d,f,h){var p=w();try{return Xp(o,a,u,l,d,f,h)}catch(y){if(B(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function YI(o,a,u,l,d,f,h,p){var y=w();try{return Qp(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function $I(o,a,u,l,d,f,h,p,y,m){var g=w();try{ey(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function GI(o,a,u,l,d,f,h,p,y){var m=w();try{ty(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function JI(o,a,u,l,d,f,h,p,y){var m=w();try{ry(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function KI(o,a,u,l,d,f,h,p){var y=w();try{iy(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function ZI(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{oy(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function XI(o,a,u,l,d,f){var h=w();try{return Ch(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function QI(o,a,u,l,d,f,h,p,y,m){var g=w();try{uy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function eS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return cy(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function tS(o,a,u,l,d,f,h,p,y,m,g,j,O){var M=w();try{ay(o,a,u,l,d,f,h,p,y,m,g,j,O)}catch(x){if(B(M),x!==x+0&&x!=="longjmp")throw x;T(1,0)}}function rS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{nh(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function iS(o,a,u,l,d,f,h,p,y,m,g,j,O){var M=w();try{ly(o,a,u,l,d,f,h,p,y,m,g,j,O)}catch(x){if(B(M),x!==x+0&&x!=="longjmp")throw x;T(1,0)}}function nS(o,a,u,l,d,f,h,p,y,m){var g=w();try{return dy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function sS(o,a,u,l,d,f,h,p,y,m){var g=w();try{return by(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function oS(o,a,u,l,d,f,h,p,y,m,g,j,O){var M=w();try{fy(o,a,u,l,d,f,h,p,y,m,g,j,O)}catch(x){if(B(M),x!==x+0&&x!=="longjmp")throw x;T(1,0)}}function aS(o,a,u,l,d,f,h,p,y,m){var g=w();try{hy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function uS(o,a,u,l,d,f){var h=w();try{return py(o,a,u,l,d,f)}catch(p){if(B(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function cS(o,a,u,l,d,f,h,p,y,m,g,j,O,M){var x=w();try{my(o,a,u,l,d,f,h,p,y,m,g,j,O,M)}catch(ue){if(B(x),ue!==ue+0&&ue!=="longjmp")throw ue;T(1,0)}}function lS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{_y(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function dS(o,a,u,l,d,f,h,p,y,m){var g=w();try{yy(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}function fS(o,a,u,l,d,f,h,p,y){var m=w();try{Ty(o,a,u,l,d,f,h,p,y)}catch(g){if(B(m),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function hS(o,a,u,l,d,f,h,p){var y=w();try{return vy(o,a,u,l,d,f,h,p)}catch(m){if(B(y),m!==m+0&&m!=="longjmp")throw m;T(1,0)}}function pS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return jy(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function yS(o,a,u,l,d,f,h,p,y,m,g){var j=w();try{return gy(o,a,u,l,d,f,h,p,y,m,g)}catch(O){if(B(j),O!==O+0&&O!=="longjmp")throw O;T(1,0)}}function mS(o,a,u,l,d,f,h,p,y,m,g,j){var O=w();try{return wy(o,a,u,l,d,f,h,p,y,m,g,j)}catch(M){if(B(O),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function _S(o,a,u,l,d,f,h,p,y,m){var g=w();try{return By(o,a,u,l,d,f,h,p,y,m)}catch(j){if(B(g),j!==j+0&&j!=="longjmp")throw j;T(1,0)}}t.ccall=Vv;var ro;function mu(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var bS=!1;ts=function o(){ro||_u(),ro||(ts=o)};function gS(o){var a=t._main,u=0,l=0;try{var d=a(u,l);vS(d,!0)}catch(h){if(h instanceof mu||h=="unwind")return;var f=h;h&&typeof h=="object"&&h.stack&&(f=[h,h.stack]),Pr("exception thrown: "+f),S(1,h)}finally{bS=!0}}function _u(o){if(o=o||v,ji>0||(Yv(),ji>0))return;function a(){ro||(ro=!0,t.calledRun=!0,!uu&&($v(),Gv(),i(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),Iy&&gS(o),Kv()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),a()},1)):a()}t.run=_u;function vS(o,a){Yd=o,nf()||(Jv(),t.onExit&&t.onExit(o),uu=!0),S(o,new mu(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var Iy=!0;return t.noInitialRun&&(Iy=!1),_u(),e.ready}}(),Tv=wU;var Wd=class extends ou{constructor(e,t,i,n){super(e,t);this.mainModuleURL=i,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${t} path=${e}`)}instantiateWasm(e,t){return globalThis.DUCKDB_RUNTIME=this._runtime,WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(fetch(this.mainModuleURL),e).then(i=>{t(i.instance,i.module)}):fetch(this.mainModuleURL).then(i=>i.arrayBuffer()).then(i=>WebAssembly.instantiate(i,e).then(n=>{t(n.instance,n.module)})).catch(i=>{console.error("Failed to instantiate WASM:",i)}),[]}};var Sv=class extends Wd{constructor(e,t,i,n=null){super(e,t,i,n)}instantiateImpl(e){return Tv({...e,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var nt={fileInfoCache:new Map,getFileInfo(r,e){try{let t=nt.fileInfoCache.get(e);if(t)return t;let[i,n,s]=Se(r,"duckdb_web_fs_get_file_info",["number"],[e]);if(i!==je.SUCCESS)throw new Error(ve(r,n,s));let c=ve(r,n,s);He(r);let v=JSON.parse(c);if(v==null)return null;let I={...v,blob:null};return nt.fileInfoCache.set(e,I),I}catch(t){return We(r,t.toString()),null}},testPlatformFeature:(r,e)=>{switch(e){case 1:return typeof BigInt64Array!="undefined";default:return console.warn(`test for unknown feature: ${e}`),!1}},openFile:(r,e)=>{try{nt.fileInfoCache.delete(e);let t=nt.getFileInfo(r,e);switch(t?.data_protocol){case Qe.HTTP:{let i=new XMLHttpRequest;i.open("HEAD",t.data_url,!1),i.setRequestHeader("Range","bytes=0-"),i.send(null);let n=!1;if(i.status==206?n=!0:i.status==200&&(n=i.getResponseHeader("Accept-Ranges")==="bytes"),!n)return We(r,`File does not support range requests: ${t.file_name}`),0;break}case Qe.NATIVE:{if(!nt._files?.get(t.file_name))return We(r,`No handle available for file: ${t.file_name}`),0;break}}}catch(t){We(r,t.toString())}return 0},glob:(r,e,t)=>{try{let i=ve(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let s=!1;if(n.status==206)s=!0;else if(n.status==200)s=n.getResponseHeader("Accept-Ranges")==="bytes";else{We(r,`HEAD request failed: ${i}`);return}if(!s){We(r,`File does not support range requests: ${i}`);return}r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(i){return We(r,i.toString()),0}},checkFile:(r,e,t)=>{try{let i=ve(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let s=!1;if(n.status==206)s=!0;else if(n.status==200)s=n.getResponseHeader("Accept-Ranges")==="bytes";else return!1;return!!s}}catch(i){return!1}return!1},syncFile:(r,e)=>{},closeFile:(r,e)=>{let t=nt.getFileInfo(r,e);switch(nt.fileInfoCache.delete(e),t?.data_protocol){case Qe.HTTP:break;case Qe.NATIVE:return}},truncateFile:(r,e,t)=>{switch(nt.getFileInfo(r,e)?.data_protocol){case Qe.HTTP:We(r,"Cannot truncate a http file");return;case Qe.NATIVE:We(r,"truncateFile not implemented");return}return 0},readFile(r,e,t,i,n){try{let s=nt.getFileInfo(r,e);switch(s?.data_protocol){case Qe.HTTP:{if(!s.data_url)return We(r,`Missing data URL for file ${e}`),0;let c=new XMLHttpRequest;if(c.open("GET",s.data_url,!1),c.responseType="arraybuffer",c.setRequestHeader("Range",`bytes=${n}-${n+i-1}`),c.send(null),c.status==206||c.status==200&&i==c.response.byteLength&&n==0){let v=new Uint8Array(c.response,0,Math.min(c.response.byteLength,i));return r.HEAPU8.set(v,t),v.byteLength}else return c.status==200?(We(r,`Range request for ${s.data_url} did not return a partial response: ${c.status} "${c.statusText}"`),0):(We(r,`Range request for ${s.data_url} did returned non-success status: ${c.status} "${c.statusText}"`),0)}case Qe.NATIVE:{let c=nt._files?.get(s.file_name);if(!c)return We(r,`No handle available for file: ${s.file_name}`),0;let v=c.slice(n,n+i),I=new Uint8Array(new FileReaderSync().readAsArrayBuffer(v));return r.HEAPU8.set(I,t),I.byteLength}}return 0}catch(s){return We(r,s.toString()),0}},writeFile:(r,e,t,i,n)=>{switch(nt.getFileInfo(r,e)?.data_protocol){case Qe.HTTP:return We(r,"Cannot write to HTTP file"),0;case Qe.NATIVE:return We(r,"writefile not implemented"),0}return 0},getFileSize:(r,e)=>{try{let t=nt.getFileInfo(r,e);switch(t?.data_protocol){case Qe.NATIVE:{let i=nt._files?.get(t.file_name);return i?i.size:(We(r,`No handle available for file: ${t.file_name}`),0)}case Qe.HTTP:{if(!t.data_url)throw new Error(`Missing data URL for file ${e}`);let i=new XMLHttpRequest;if(i.open("HEAD",t.data_url,!1),i.send(null),i.status==200){let n=i.getResponseHeader("Content-Length");if(n)return parseInt(n);throw Error(`HEAD ${t.data_url} does not contain the HTTP header: Content-Length`)}else throw Error(`HEAD ${t.data_url} returned non-success status: ${i.status} "${i.statusText}"`)}}return 0}catch(t){return We(r,t.toString()),0}},getLastFileModificationTime:(r,e)=>{let t=nt.getFileInfo(r,e);switch(t?.data_protocol){case Qe.NATIVE:{if(!nt._files?.get(t.file_name))throw Error(`No handle available for file: ${t.file_name}`);return 0}case Qe.HTTP:return new Date().getTime()}return 0},checkDirectory:(r,e,t)=>!1,createDirectory:(r,e,t)=>{},removeDirectory:(r,e,t)=>{},listDirectoryEntries:(r,e,t)=>!1,moveFile:(r,e,t,i,n)=>{},removeFile:(r,e,t)=>{}};return BU;})();
|
|
19
19
|
//# sourceMappingURL=duckdb-browser-sync.js.map
|