@duckdb/duckdb-wasm 1.13.1-dev161.0 → 1.13.1-dev166.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-blocking.cjs +2 -2
- package/dist/duckdb-browser-blocking.cjs.map +1 -1
- package/dist/duckdb-browser-blocking.mjs +2 -2
- package/dist/duckdb-browser-blocking.mjs.map +1 -1
- package/dist/duckdb-browser-coi.pthread.worker.js +1 -1
- package/dist/duckdb-browser-coi.pthread.worker.js.map +2 -2
- package/dist/duckdb-browser-coi.worker.js +1 -1
- package/dist/duckdb-browser-coi.worker.js.map +2 -2
- package/dist/duckdb-browser-mvp.worker.js +1 -1
- package/dist/duckdb-browser-mvp.worker.js.map +1 -1
- package/dist/duckdb-browser.cjs +1 -1
- package/dist/duckdb-browser.mjs +1 -1
- package/dist/duckdb-coi.wasm +0 -0
- package/dist/duckdb-eh.wasm +0 -0
- package/dist/duckdb-mvp.wasm +0 -0
- package/dist/duckdb-node-blocking.cjs +2 -2
- package/dist/duckdb-node-blocking.cjs.map +1 -1
- package/dist/duckdb-node-eh.worker.cjs +1 -1
- package/dist/duckdb-node-eh.worker.cjs.map +1 -1
- package/dist/duckdb-node-mvp.worker.cjs +1 -1
- package/dist/duckdb-node-mvp.worker.cjs.map +1 -1
- package/dist/duckdb-node.cjs +1 -1
- package/dist/tests-browser.js +1 -1
- package/dist/tests-browser.js.map +1 -1
- package/dist/tests-node.cjs +25 -1
- package/dist/tests-node.cjs.map +3 -3
- package/package.json +3 -3
|
@@ -14,7 +14,7 @@ return true;`)}Nu.createIsValidFunction=ID;function AD(r){return typeof r!="bigi
|
|
|
14
14
|
`:`,
|
|
15
15
|
`),this._write(`${_k(this._recordBatches[e])}`),this._recordBatchBlocks.push(new uo.FileBlock(0,0,0));this._write(`
|
|
16
16
|
]`)}return this._schema&&this._write(`
|
|
17
|
-
}`),this._dictionaries=[],this._recordBatches=[],super.close()}};ui.RecordBatchJSONWriter=Uc;function pp(r,e){let t=e;e instanceof fp.Table&&(t=e.chunks,r.reset(void 0,e.schema));for(let i of t)r.write(i);return r.finish()}function _p(r,e){var t,i,n,s;return Vw.__awaiter(this,void 0,void 0,function*(){try{for(t=Vw.__asyncValues(e);i=yield t.next(),!i.done;){let u=i.value;r.write(u)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(s=t.return)&&(yield s.call(t))}finally{if(n)throw n.error}}return r.finish()})}function qw({name:r,type:e,nullable:t}){let i=new dk.JSONTypeAssembler;return{name:r,nullable:t,type:i.visit(e),children:(e.children||[]).map(qw),dictionary:ck.DataType.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:i.visit(e.indices)}:void 0}}function pk(r,e,t=!1){let i=new lk.Field(`${e}`,r.type,r.nullCount>0),n=Lw.JSONVectorAssembler.assemble(new uk.Column(i,[r]));return JSON.stringify({id:e,isDelta:t,data:{count:r.length,columns:n}},null,2)}function _k(r){return JSON.stringify({count:r.length,columns:Lw.JSONVectorAssembler.assemble(r)},null,2)}});var bp=V(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.distributeVectorsIntoRecordBatches=ln.distributeColumnsIntoRecordBatches=ln.ensureSameLengthData=void 0;var Hw=Mr(),mp=St(),yk=sn(),mk=Ai(),yp=new Uint8Array(0),zw=r=>[yp,yp,new Uint8Array(r),yp];function bk(r,e,t=e.reduce((i,n)=>Math.max(i,n.length),0)){let i,n,s=-1,u=e.length,p=[...r.fields],m=[],B=(t+63&-64)>>3;for(;++s<u;)(i=e[s])&&i.length===t?m[s]=i:((n=p[s]).nullable||(p[s]=p[s].clone({nullable:!0})),m[s]=i?i._changeLengthAndBackfillNullBitmap(t):Hw.Data.new(n.type,0,t,t,zw(B)));return[new mp.Schema(p),t,m]}ln.ensureSameLengthData=bk;function gk(r){return Ww(new mp.Schema(r.map(({field:e})=>e)),r)}ln.distributeColumnsIntoRecordBatches=gk;function Ww(r,e){return vk(r,e.map(t=>t instanceof yk.Chunked?t.chunks.map(i=>i.data):[t.data]))}ln.distributeVectorsIntoRecordBatches=Ww;function vk(r,e){let t=[...r.fields],i=[],n={numBatches:e.reduce((R,W)=>Math.max(R,W.length),0)},s=0,u=0,p=-1,m=e.length,B,O=[];for(;n.numBatches-- >0;){for(u=Number.POSITIVE_INFINITY,p=-1;++p<m;)O[p]=B=e[p].shift(),u=Math.min(u,B?B.length:u);isFinite(u)&&(O=wk(t,u,O,e,n),u>0&&(i[s++]=[u,O.slice()]))}return[r=new mp.Schema(t,r.metadata),i.map(R=>new mk.RecordBatch(r,...R))]}function wk(r,e,t,i,n){let s,u,p=0,m=-1,B=i.length,O=(e+63&-64)>>3;for(;++m<B;)(s=t[m])&&(p=s.length)>=e?p===e?t[m]=s:(t[m]=s.slice(0,e),s=s.slice(e,p-e),n.numBatches=Math.max(n.numBatches,i[m].unshift(s))):((u=r[m]).nullable||(r[m]=u.clone({nullable:!0})),t[m]=s?s._changeLengthAndBackfillNullBitmap(e):Hw.Data.new(u.type,0,e,e,zw(O)));return t}});var ht=V(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.BaseVector=void 0;var jk=$e(),Bk=sn(),Tk=ya(),gp=dt(),vp=class extends gp.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`${jk.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 gp.Vector.new(e,t)}concat(...e){return Bk.Chunked.concat(this,...e)}slice(e,t){return Tk.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]=gp.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){}};Rc.BaseVector=vp;vp.prototype[Symbol.isConcatSpreadable]=!0});var wp=V(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.BinaryVector=void 0;var Sk=dt(),Ik=ht(),Ak=Pe(),Yw=class extends Ik.BaseVector{asUtf8(){return Sk.Vector.new(this.data.clone(new Ak.Utf8))}};xc.BinaryVector=Yw});var jp=V(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.BoolVector=void 0;var Dk=Pe(),Fk=ht(),Ok=ci(),Gw=class extends Fk.BaseVector{static from(e){return Ok.vectorFromValuesWithType(()=>new Dk.Bool,e)}};Vc.BoolVector=Gw});var Tp=V(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.DateMillisecondVector=dn.DateDayVector=dn.DateVector=void 0;var kk=$e(),Ck=ht(),$w=ci(),Bp=Pe(),Nc=class extends Ck.BaseVector{static from(...e){return e.length===2?$w.vectorFromValuesWithType(()=>e[1]===kk.DateUnit.DAY?new Bp.DateDay:new Bp.DateMillisecond,e[0]):$w.vectorFromValuesWithType(()=>new Bp.DateMillisecond,e[0])}};dn.DateVector=Nc;var Kw=class extends Nc{};dn.DateDayVector=Kw;var Jw=class extends Nc{};dn.DateMillisecondVector=Jw});var Sp=V(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.DecimalVector=void 0;var Mk=ht(),Xw=class extends Mk.BaseVector{};Pc.DecimalVector=Xw});var qc=V(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.DictionaryVector=void 0;var Uk=Mr(),Zw=dt(),Ek=ht(),Rk=ci(),xk=Pe(),Ip=class extends Ek.BaseVector{constructor(e){super(e);this.indices=Zw.Vector.new(e.clone(this.type.indices))}static from(...e){if(e.length===3){let[t,i,n]=e,s=new xk.Dictionary(t.type,i,null,null);return Zw.Vector.new(Uk.Data.Dictionary(s,0,n.length,0,null,n,t))}return Rk.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)}};Lc.DictionaryVector=Ip;Ip.prototype.indices=null});var Ap=V(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.FixedSizeBinaryVector=void 0;var Vk=ht(),Qw=class extends Vk.BaseVector{};Hc.FixedSizeBinaryVector=Qw});var Dp=V(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.FixedSizeListVector=void 0;var Nk=ht(),ej=class extends Nk.BaseVector{};zc.FixedSizeListVector=ej});var Cp=V(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.Float64Vector=li.Float32Vector=li.Float16Vector=li.FloatVector=void 0;var Pk=Mr(),Lk=dt(),qk=ht(),Hk=ci(),is=Pe(),Sa=class extends qk.BaseVector{static from(e){let t=Yk(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let i=Wk(e.constructor)||t;if(t===null&&(t=i),t&&t===i){let n=new t,s=e.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!zk(t,e.constructor))return Lk.Vector.new(Pk.Data.Float(n,0,s,0,null,e))}}if(t)return Hk.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")}};li.FloatVector=Sa;var Fp=class extends Sa{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}};li.Float16Vector=Fp;var Op=class extends Sa{};li.Float32Vector=Op;var kp=class extends Sa{};li.Float64Vector=kp;var zk=(r,e)=>r===is.Float16&&e!==Uint16Array,Wk=r=>{switch(r){case Uint16Array:return is.Float16;case Float32Array:return is.Float32;case Float64Array:return is.Float64;default:return null}},Yk=r=>{switch(r){case Fp:return is.Float16;case Op:return is.Float32;case kp:return is.Float64;default:return null}}});var Mp=V(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.IntervalYearMonthVector=fn.IntervalDayTimeVector=fn.IntervalVector=void 0;var Gk=ht(),Wc=class extends Gk.BaseVector{};fn.IntervalVector=Wc;var tj=class extends Wc{};fn.IntervalDayTimeVector=tj;var rj=class extends Wc{};fn.IntervalYearMonthVector=rj});var Yc=V(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.Uint64Vector=bt.Uint32Vector=bt.Uint16Vector=bt.Uint8Vector=bt.Int64Vector=bt.Int32Vector=bt.Int16Vector=bt.Int8Vector=bt.IntVector=void 0;var $k=Mr(),Kk=dt(),Jk=ht(),Xk=ci(),ij=Rt(),nj=gt(),ut=Pe(),di=class extends Jk.BaseVector{static from(...e){let[t,i=!1]=e,n=eC(this,i);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let s=Qk(t.constructor,i)||n;if(n===null&&(n=s),n&&n===s){let u=new n,p=t.byteLength/u.ArrayType.BYTES_PER_ELEMENT;return Zk(n,t.constructor)&&(p*=.5),Kk.Vector.new($k.Data.Int(u,0,p,0,null,t))}}if(n)return Xk.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")}};bt.IntVector=di;var Up=class extends di{};bt.Int8Vector=Up;var Ep=class extends di{};bt.Int16Vector=Ep;var Rp=class extends di{};bt.Int32Vector=Rp;var xp=class extends di{toBigInt64Array(){return nj.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}};bt.Int64Vector=xp;var Vp=class extends di{};bt.Uint8Vector=Vp;var Np=class extends di{};bt.Uint16Vector=Np;var Pp=class extends di{};bt.Uint32Vector=Pp;var Lp=class extends di{toBigUint64Array(){return nj.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}};bt.Uint64Vector=Lp;var Zk=(r,e)=>(r===ut.Int64||r===ut.Uint64)&&(e===Int32Array||e===Uint32Array),Qk=(r,e)=>{switch(r){case Int8Array:return ut.Int8;case Int16Array:return ut.Int16;case Int32Array:return e?ut.Int64:ut.Int32;case ij.BigInt64Array:return ut.Int64;case Uint8Array:return ut.Uint8;case Uint16Array:return ut.Uint16;case Uint32Array:return e?ut.Uint64:ut.Uint32;case ij.BigUint64Array:return ut.Uint64;default:return null}},eC=(r,e)=>{switch(r){case Up:return ut.Int8;case Ep:return ut.Int16;case Rp:return e?ut.Int64:ut.Int32;case xp:return ut.Int64;case Vp:return ut.Uint8;case Np:return ut.Uint16;case Pp:return e?ut.Uint64:ut.Uint32;case Lp:return ut.Uint64;default:return null}}});var qp=V(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.ListVector=void 0;var tC=ht(),sj=class extends tC.BaseVector{};Gc.ListVector=sj});var Hp=V($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.MapVector=void 0;var rC=pa(),iC=dt(),nC=ht(),sC=Pe(),oj=class extends nC.BaseVector{asList(){let e=this.type.children[0];return iC.Vector.new(this.data.clone(new sC.List(e)))}bind(e){let t=this.getChildAt(0),{[e]:i,[e+1]:n}=this.valueOffsets;return new rC.MapRow(t.slice(i,n))}};$c.MapVector=oj});var zp=V(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.NullVector=void 0;var oC=ht(),aj=class extends oC.BaseVector{};Kc.NullVector=aj});var Wp=V(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.StructVector=void 0;var aC=pa(),uC=ht(),cC=Symbol.for("rowIndex"),uj=class extends uC.BaseVector{bind(e){let t=this._row||(this._row=new aC.StructRow(this)),i=Object.create(t);return i[cC]=e,i}};Jc.StructVector=uj});var Yp=V(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.TimestampNanosecondVector=gr.TimestampMicrosecondVector=gr.TimestampMillisecondVector=gr.TimestampSecondVector=gr.TimestampVector=void 0;var lC=ht(),co=class extends lC.BaseVector{};gr.TimestampVector=co;var cj=class extends co{};gr.TimestampSecondVector=cj;var lj=class extends co{};gr.TimestampMillisecondVector=lj;var dj=class extends co{};gr.TimestampMicrosecondVector=dj;var fj=class extends co{};gr.TimestampNanosecondVector=fj});var Gp=V(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.TimeNanosecondVector=vr.TimeMicrosecondVector=vr.TimeMillisecondVector=vr.TimeSecondVector=vr.TimeVector=void 0;var dC=ht(),lo=class extends dC.BaseVector{};vr.TimeVector=lo;var hj=class extends lo{};vr.TimeSecondVector=hj;var pj=class extends lo{};vr.TimeMillisecondVector=pj;var _j=class extends lo{};vr.TimeMicrosecondVector=_j;var yj=class extends lo{};vr.TimeNanosecondVector=yj});var $p=V(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.SparseUnionVector=hn.DenseUnionVector=hn.UnionVector=void 0;var fC=ht(),Xc=class extends fC.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}};hn.UnionVector=Xc;var mj=class extends Xc{get valueOffsets(){return this.data.valueOffsets}};hn.DenseUnionVector=mj;var bj=class extends Xc{};hn.SparseUnionVector=bj});var Kp=V(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.Utf8Vector=void 0;var hC=dt(),pC=ht(),gj=Pe(),_C=ci(),vj=class extends pC.BaseVector{static from(e){return _C.vectorFromValuesWithType(()=>new gj.Utf8,e)}asBinary(){return hC.Vector.new(this.data.clone(new gj.Binary))}};Zc.Utf8Vector=vj});var wj=V(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.partial2=pn.partial1=pn.partial0=void 0;function yC(r){return function(){return r(this)}}pn.partial0=yC;function mC(r){return function(e){return r(this,e)}}pn.partial1=mC;function bC(r){return function(e,t){return r(this,e,t)}}pn.partial2=bC});var Zp=V(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.instance=fo.GetVisitor=void 0;var Qc=ua(),gC=Ot(),vC=Rn(),wC=na(),wr=$e(),de=class extends gC.Visitor{};fo.GetVisitor=de;var jC=(r,e)=>864e5*r[e],Jp=(r,e)=>4294967296*r[e+1]+(r[e]>>>0),BC=(r,e)=>4294967296*(r[e+1]/1e3)+(r[e]>>>0)/1e3,TC=(r,e)=>4294967296*(r[e+1]/1e6)+(r[e]>>>0)/1e6,jj=r=>new Date(r),SC=(r,e)=>jj(jC(r,e)),IC=(r,e)=>jj(Jp(r,e)),AC=(r,e)=>null,Bj=(r,e,t)=>{let{[t]:i,[t+1]:n}=e;return i!=null&&n!=null?r.subarray(i,n):null},DC=({offset:r,values:e},t)=>{let i=r+t;return(e[i>>3]&1<<i%8)!==0},Tj=({values:r},e)=>SC(r,e),Sj=({values:r},e)=>IC(r,e*2),fi=({stride:r,values:e},t)=>e[r*t],Ij=({stride:r,values:e},t)=>wC.uint16ToFloat64(e[r*t]),Xp=({stride:r,values:e,type:t},i)=>Qc.BN.new(e.subarray(r*i,r*(i+1)),t.isSigned),FC=({stride:r,values:e},t)=>e.subarray(r*t,r*(t+1)),OC=({values:r,valueOffsets:e},t)=>Bj(r,e,t),kC=({values:r,valueOffsets:e},t)=>{let i=Bj(r,e,t);return i!==null?vC.decodeUtf8(i):null},CC=(r,e)=>r.type.bitWidth<64?fi(r,e):Xp(r,e),MC=(r,e)=>r.type.precision!==wr.Precision.HALF?fi(r,e):Ij(r,e),UC=(r,e)=>r.type.unit===wr.DateUnit.DAY?Tj(r,e):Sj(r,e),Aj=({values:r},e)=>1e3*Jp(r,e*2),Dj=({values:r},e)=>Jp(r,e*2),Fj=({values:r},e)=>BC(r,e*2),Oj=({values:r},e)=>TC(r,e*2),EC=(r,e)=>{switch(r.type.unit){case wr.TimeUnit.SECOND:return Aj(r,e);case wr.TimeUnit.MILLISECOND:return Dj(r,e);case wr.TimeUnit.MICROSECOND:return Fj(r,e);case wr.TimeUnit.NANOSECOND:return Oj(r,e)}},kj=({values:r,stride:e},t)=>r[e*t],Cj=({values:r,stride:e},t)=>r[e*t],Mj=({values:r},e)=>Qc.BN.signed(r.subarray(2*e,2*(e+1))),Uj=({values:r},e)=>Qc.BN.signed(r.subarray(2*e,2*(e+1))),RC=(r,e)=>{switch(r.type.unit){case wr.TimeUnit.SECOND:return kj(r,e);case wr.TimeUnit.MILLISECOND:return Cj(r,e);case wr.TimeUnit.MICROSECOND:return Mj(r,e);case wr.TimeUnit.NANOSECOND:return Uj(r,e)}},xC=({values:r},e)=>Qc.BN.decimal(r.subarray(4*e,4*(e+1))),VC=(r,e)=>{let t=r.getChildAt(0),{valueOffsets:i,stride:n}=r;return t.slice(i[e*n],i[e*n+1])},NC=(r,e)=>r.bind(e),PC=(r,e)=>r.bind(e),LC=(r,e)=>r.type.mode===wr.UnionMode.Dense?Ej(r,e):Rj(r,e),Ej=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(r.valueOffsets[e]):null},Rj=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(e):null},qC=(r,e)=>r.getValue(r.getKey(e)),HC=(r,e)=>r.type.unit===wr.IntervalUnit.DAY_TIME?xj(r,e):Vj(r,e),xj=({values:r},e)=>r.subarray(2*e,2*(e+1)),Vj=({values:r},e)=>{let t=r[e],i=new Int32Array(2);return i[0]=t/12|0,i[1]=t%12|0,i},zC=(r,e)=>{let t=r.getChildAt(0),{stride:i}=r;return t.slice(e*i,(e+1)*i)};de.prototype.visitNull=AC;de.prototype.visitBool=DC;de.prototype.visitInt=CC;de.prototype.visitInt8=fi;de.prototype.visitInt16=fi;de.prototype.visitInt32=fi;de.prototype.visitInt64=Xp;de.prototype.visitUint8=fi;de.prototype.visitUint16=fi;de.prototype.visitUint32=fi;de.prototype.visitUint64=Xp;de.prototype.visitFloat=MC;de.prototype.visitFloat16=Ij;de.prototype.visitFloat32=fi;de.prototype.visitFloat64=fi;de.prototype.visitUtf8=kC;de.prototype.visitBinary=OC;de.prototype.visitFixedSizeBinary=FC;de.prototype.visitDate=UC;de.prototype.visitDateDay=Tj;de.prototype.visitDateMillisecond=Sj;de.prototype.visitTimestamp=EC;de.prototype.visitTimestampSecond=Aj;de.prototype.visitTimestampMillisecond=Dj;de.prototype.visitTimestampMicrosecond=Fj;de.prototype.visitTimestampNanosecond=Oj;de.prototype.visitTime=RC;de.prototype.visitTimeSecond=kj;de.prototype.visitTimeMillisecond=Cj;de.prototype.visitTimeMicrosecond=Mj;de.prototype.visitTimeNanosecond=Uj;de.prototype.visitDecimal=xC;de.prototype.visitList=VC;de.prototype.visitStruct=PC;de.prototype.visitUnion=LC;de.prototype.visitDenseUnion=Ej;de.prototype.visitSparseUnion=Rj;de.prototype.visitDictionary=qC;de.prototype.visitInterval=HC;de.prototype.visitIntervalDayTime=xj;de.prototype.visitIntervalYearMonth=Vj;de.prototype.visitFixedSizeList=zC;de.prototype.visitMap=NC;fo.instance=new de});var qj=V(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.instance=ho.IndexOfVisitor=void 0;var WC=Ot(),Nj=Zr(),Pj=ya(),fe=class extends WC.Visitor{};ho.IndexOfVisitor=fe;function YC(r,e){return e===null&&r.length>0?0:-1}function GC(r,e){let{nullBitmap:t}=r.data;if(!t||r.nullCount<=0)return-1;let i=0;for(let n of new Nj.BitIterator(t,r.data.offset+(e||0),r.length,t,Nj.getBool)){if(!n)return i;++i}return-1}function Ae(r,e,t){if(e===void 0)return-1;if(e===null)return GC(r,t);let i=Pj.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}function Lj(r,e,t){let i=Pj.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}fe.prototype.visitNull=YC;fe.prototype.visitBool=Ae;fe.prototype.visitInt=Ae;fe.prototype.visitInt8=Ae;fe.prototype.visitInt16=Ae;fe.prototype.visitInt32=Ae;fe.prototype.visitInt64=Ae;fe.prototype.visitUint8=Ae;fe.prototype.visitUint16=Ae;fe.prototype.visitUint32=Ae;fe.prototype.visitUint64=Ae;fe.prototype.visitFloat=Ae;fe.prototype.visitFloat16=Ae;fe.prototype.visitFloat32=Ae;fe.prototype.visitFloat64=Ae;fe.prototype.visitUtf8=Ae;fe.prototype.visitBinary=Ae;fe.prototype.visitFixedSizeBinary=Ae;fe.prototype.visitDate=Ae;fe.prototype.visitDateDay=Ae;fe.prototype.visitDateMillisecond=Ae;fe.prototype.visitTimestamp=Ae;fe.prototype.visitTimestampSecond=Ae;fe.prototype.visitTimestampMillisecond=Ae;fe.prototype.visitTimestampMicrosecond=Ae;fe.prototype.visitTimestampNanosecond=Ae;fe.prototype.visitTime=Ae;fe.prototype.visitTimeSecond=Ae;fe.prototype.visitTimeMillisecond=Ae;fe.prototype.visitTimeMicrosecond=Ae;fe.prototype.visitTimeNanosecond=Ae;fe.prototype.visitDecimal=Ae;fe.prototype.visitList=Ae;fe.prototype.visitStruct=Ae;fe.prototype.visitUnion=Ae;fe.prototype.visitDenseUnion=Lj;fe.prototype.visitSparseUnion=Lj;fe.prototype.visitDictionary=Ae;fe.prototype.visitInterval=Ae;fe.prototype.visitIntervalDayTime=Ae;fe.prototype.visitIntervalYearMonth=Ae;fe.prototype.visitFixedSizeList=Ae;fe.prototype.visitMap=Ae;ho.instance=new fe});var Qp=V(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.instance=po.IteratorVisitor=void 0;var el=$e(),$C=Ot(),KC=Zr(),Hj=Zp(),he=class extends $C.Visitor{};po.IteratorVisitor=he;function JC(r){let e=Hj.instance.getVisitFn(r);return new KC.BitIterator(r.data.nullBitmap,r.data.offset,r.length,r,(t,i,n,s)=>(n&1<<s)!==0?e(t,i):null)}var zj=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 Be(r){if(r.nullCount>0)return JC(r);let{type:e,typeId:t,length:i}=r;return r.stride===1&&(t===el.Type.Timestamp||t===el.Type.Int&&e.bitWidth!==64||t===el.Type.Time&&e.bitWidth!==64||t===el.Type.Float&&e.precision>0)?r.data.values.subarray(0,i)[Symbol.iterator]():new zj(r,Hj.instance.getVisitFn(r))}he.prototype.visitNull=Be;he.prototype.visitBool=Be;he.prototype.visitInt=Be;he.prototype.visitInt8=Be;he.prototype.visitInt16=Be;he.prototype.visitInt32=Be;he.prototype.visitInt64=Be;he.prototype.visitUint8=Be;he.prototype.visitUint16=Be;he.prototype.visitUint32=Be;he.prototype.visitUint64=Be;he.prototype.visitFloat=Be;he.prototype.visitFloat16=Be;he.prototype.visitFloat32=Be;he.prototype.visitFloat64=Be;he.prototype.visitUtf8=Be;he.prototype.visitBinary=Be;he.prototype.visitFixedSizeBinary=Be;he.prototype.visitDate=Be;he.prototype.visitDateDay=Be;he.prototype.visitDateMillisecond=Be;he.prototype.visitTimestamp=Be;he.prototype.visitTimestampSecond=Be;he.prototype.visitTimestampMillisecond=Be;he.prototype.visitTimestampMicrosecond=Be;he.prototype.visitTimestampNanosecond=Be;he.prototype.visitTime=Be;he.prototype.visitTimeSecond=Be;he.prototype.visitTimeMillisecond=Be;he.prototype.visitTimeMicrosecond=Be;he.prototype.visitTimeNanosecond=Be;he.prototype.visitDecimal=Be;he.prototype.visitList=Be;he.prototype.visitStruct=Be;he.prototype.visitUnion=Be;he.prototype.visitDenseUnion=Be;he.prototype.visitSparseUnion=Be;he.prototype.visitDictionary=Be;he.prototype.visitInterval=Be;he.prototype.visitIntervalDayTime=Be;he.prototype.visitIntervalYearMonth=Be;he.prototype.visitFixedSizeList=Be;he.prototype.visitMap=Be;po.instance=new he});var Wj=V(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.instance=_o.ToArrayVisitor=void 0;var Ia=$e(),XC=Ot(),ZC=Qp(),pe=class extends XC.Visitor{};_o.ToArrayVisitor=pe;function Te(r){let{type:e,length:t,stride:i}=r;switch(e.typeId){case Ia.Type.Int:case Ia.Type.Float:case Ia.Type.Decimal:case Ia.Type.Time:case Ia.Type.Timestamp:return r.data.values.subarray(0,t*i)}return[...ZC.instance.visit(r)]}pe.prototype.visitNull=Te;pe.prototype.visitBool=Te;pe.prototype.visitInt=Te;pe.prototype.visitInt8=Te;pe.prototype.visitInt16=Te;pe.prototype.visitInt32=Te;pe.prototype.visitInt64=Te;pe.prototype.visitUint8=Te;pe.prototype.visitUint16=Te;pe.prototype.visitUint32=Te;pe.prototype.visitUint64=Te;pe.prototype.visitFloat=Te;pe.prototype.visitFloat16=Te;pe.prototype.visitFloat32=Te;pe.prototype.visitFloat64=Te;pe.prototype.visitUtf8=Te;pe.prototype.visitBinary=Te;pe.prototype.visitFixedSizeBinary=Te;pe.prototype.visitDate=Te;pe.prototype.visitDateDay=Te;pe.prototype.visitDateMillisecond=Te;pe.prototype.visitTimestamp=Te;pe.prototype.visitTimestampSecond=Te;pe.prototype.visitTimestampMillisecond=Te;pe.prototype.visitTimestampMicrosecond=Te;pe.prototype.visitTimestampNanosecond=Te;pe.prototype.visitTime=Te;pe.prototype.visitTimeSecond=Te;pe.prototype.visitTimeMillisecond=Te;pe.prototype.visitTimeMicrosecond=Te;pe.prototype.visitTimeNanosecond=Te;pe.prototype.visitDecimal=Te;pe.prototype.visitList=Te;pe.prototype.visitStruct=Te;pe.prototype.visitUnion=Te;pe.prototype.visitDenseUnion=Te;pe.prototype.visitSparseUnion=Te;pe.prototype.visitDictionary=Te;pe.prototype.visitInterval=Te;pe.prototype.visitIntervalDayTime=Te;pe.prototype.visitIntervalYearMonth=Te;pe.prototype.visitFixedSizeList=Te;pe.prototype.visitMap=Te;_o.instance=new pe});var Yj=V(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.instance=yo.ByteWidthVisitor=void 0;var QC=Ot(),eM=$e(),Aa=(r,e)=>r+e,e_=r=>`Cannot compute the byte width of variable-width column ${r}`,t_=class extends QC.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(e_(e))}visitUtf8(e){throw new Error(e_(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===eM.TimeUnit.SECOND?4:8}visitInterval(e){return(e.unit+1)*4}visitList(e){throw new Error(e_(e))}visitStruct(e){return this.visitFields(e.children).reduce(Aa,0)}visitUnion(e){return this.visitFields(e.children).reduce(Aa,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(Aa,0)}visitMap(e){return this.visitFields(e.children).reduce(Aa,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(Aa,0)}};yo.ByteWidthVisitor=t_;yo.instance=new t_});var Gj=V(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.instance=mo.GetVectorConstructor=void 0;var tM=Ot(),rM=wp(),iM=jp(),r_=Tp(),nM=Sp(),sM=qc(),oM=Ap(),aM=Dp(),tl=Cp(),i_=Mp(),Di=Yc(),uM=qp(),cM=Hp(),lM=zp(),dM=Wp(),Da=Yp(),Fa=Gp(),n_=$p(),fM=Kp(),s_=class extends tM.Visitor{visitNull(){return lM.NullVector}visitBool(){return iM.BoolVector}visitInt(){return Di.IntVector}visitInt8(){return Di.Int8Vector}visitInt16(){return Di.Int16Vector}visitInt32(){return Di.Int32Vector}visitInt64(){return Di.Int64Vector}visitUint8(){return Di.Uint8Vector}visitUint16(){return Di.Uint16Vector}visitUint32(){return Di.Uint32Vector}visitUint64(){return Di.Uint64Vector}visitFloat(){return tl.FloatVector}visitFloat16(){return tl.Float16Vector}visitFloat32(){return tl.Float32Vector}visitFloat64(){return tl.Float64Vector}visitUtf8(){return fM.Utf8Vector}visitBinary(){return rM.BinaryVector}visitFixedSizeBinary(){return oM.FixedSizeBinaryVector}visitDate(){return r_.DateVector}visitDateDay(){return r_.DateDayVector}visitDateMillisecond(){return r_.DateMillisecondVector}visitTimestamp(){return Da.TimestampVector}visitTimestampSecond(){return Da.TimestampSecondVector}visitTimestampMillisecond(){return Da.TimestampMillisecondVector}visitTimestampMicrosecond(){return Da.TimestampMicrosecondVector}visitTimestampNanosecond(){return Da.TimestampNanosecondVector}visitTime(){return Fa.TimeVector}visitTimeSecond(){return Fa.TimeSecondVector}visitTimeMillisecond(){return Fa.TimeMillisecondVector}visitTimeMicrosecond(){return Fa.TimeMicrosecondVector}visitTimeNanosecond(){return Fa.TimeNanosecondVector}visitDecimal(){return nM.DecimalVector}visitList(){return uM.ListVector}visitStruct(){return dM.StructVector}visitUnion(){return n_.UnionVector}visitDenseUnion(){return n_.DenseUnionVector}visitSparseUnion(){return n_.SparseUnionVector}visitDictionary(){return sM.DictionaryVector}visitInterval(){return i_.IntervalVector}visitIntervalDayTime(){return i_.IntervalDayTimeVector}visitIntervalYearMonth(){return i_.IntervalYearMonthVector}visitFixedSizeList(){return aM.FixedSizeListVector}visitMap(){return cM.MapVector}};mo.GetVectorConstructor=s_;mo.instance=new s_});var ci=V(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.vectorFromValuesWithType=L.StructRow=L.MapRow=L.Utf8Vector=L.SparseUnionVector=L.DenseUnionVector=L.UnionVector=L.TimeNanosecondVector=L.TimeMicrosecondVector=L.TimeMillisecondVector=L.TimeSecondVector=L.TimeVector=L.TimestampNanosecondVector=L.TimestampMicrosecondVector=L.TimestampMillisecondVector=L.TimestampSecondVector=L.TimestampVector=L.StructVector=L.NullVector=L.MapVector=L.ListVector=L.Uint64Vector=L.Uint32Vector=L.Uint16Vector=L.Uint8Vector=L.Int64Vector=L.Int32Vector=L.Int16Vector=L.Int8Vector=L.IntVector=L.IntervalYearMonthVector=L.IntervalDayTimeVector=L.IntervalVector=L.Float64Vector=L.Float32Vector=L.Float16Vector=L.FloatVector=L.FixedSizeListVector=L.FixedSizeBinaryVector=L.DictionaryVector=L.DecimalVector=L.DateMillisecondVector=L.DateDayVector=L.DateVector=L.Chunked=L.BoolVector=L.BinaryVector=L.BaseVector=L.Vector=void 0;var o_=Et(),hM=dt();Object.defineProperty(L,"Vector",{enumerable:!0,get:function(){return hM.Vector}});var pM=ht();Object.defineProperty(L,"BaseVector",{enumerable:!0,get:function(){return pM.BaseVector}});var _M=wp();Object.defineProperty(L,"BinaryVector",{enumerable:!0,get:function(){return _M.BinaryVector}});var yM=jp();Object.defineProperty(L,"BoolVector",{enumerable:!0,get:function(){return yM.BoolVector}});var mM=sn();Object.defineProperty(L,"Chunked",{enumerable:!0,get:function(){return mM.Chunked}});var u_=Tp();Object.defineProperty(L,"DateVector",{enumerable:!0,get:function(){return u_.DateVector}});Object.defineProperty(L,"DateDayVector",{enumerable:!0,get:function(){return u_.DateDayVector}});Object.defineProperty(L,"DateMillisecondVector",{enumerable:!0,get:function(){return u_.DateMillisecondVector}});var bM=Sp();Object.defineProperty(L,"DecimalVector",{enumerable:!0,get:function(){return bM.DecimalVector}});var gM=qc();Object.defineProperty(L,"DictionaryVector",{enumerable:!0,get:function(){return gM.DictionaryVector}});var vM=Ap();Object.defineProperty(L,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return vM.FixedSizeBinaryVector}});var wM=Dp();Object.defineProperty(L,"FixedSizeListVector",{enumerable:!0,get:function(){return wM.FixedSizeListVector}});var il=Cp();Object.defineProperty(L,"FloatVector",{enumerable:!0,get:function(){return il.FloatVector}});Object.defineProperty(L,"Float16Vector",{enumerable:!0,get:function(){return il.Float16Vector}});Object.defineProperty(L,"Float32Vector",{enumerable:!0,get:function(){return il.Float32Vector}});Object.defineProperty(L,"Float64Vector",{enumerable:!0,get:function(){return il.Float64Vector}});var c_=Mp();Object.defineProperty(L,"IntervalVector",{enumerable:!0,get:function(){return c_.IntervalVector}});Object.defineProperty(L,"IntervalDayTimeVector",{enumerable:!0,get:function(){return c_.IntervalDayTimeVector}});Object.defineProperty(L,"IntervalYearMonthVector",{enumerable:!0,get:function(){return c_.IntervalYearMonthVector}});var Fi=Yc();Object.defineProperty(L,"IntVector",{enumerable:!0,get:function(){return Fi.IntVector}});Object.defineProperty(L,"Int8Vector",{enumerable:!0,get:function(){return Fi.Int8Vector}});Object.defineProperty(L,"Int16Vector",{enumerable:!0,get:function(){return Fi.Int16Vector}});Object.defineProperty(L,"Int32Vector",{enumerable:!0,get:function(){return Fi.Int32Vector}});Object.defineProperty(L,"Int64Vector",{enumerable:!0,get:function(){return Fi.Int64Vector}});Object.defineProperty(L,"Uint8Vector",{enumerable:!0,get:function(){return Fi.Uint8Vector}});Object.defineProperty(L,"Uint16Vector",{enumerable:!0,get:function(){return Fi.Uint16Vector}});Object.defineProperty(L,"Uint32Vector",{enumerable:!0,get:function(){return Fi.Uint32Vector}});Object.defineProperty(L,"Uint64Vector",{enumerable:!0,get:function(){return Fi.Uint64Vector}});var jM=qp();Object.defineProperty(L,"ListVector",{enumerable:!0,get:function(){return jM.ListVector}});var BM=Hp();Object.defineProperty(L,"MapVector",{enumerable:!0,get:function(){return BM.MapVector}});var TM=zp();Object.defineProperty(L,"NullVector",{enumerable:!0,get:function(){return TM.NullVector}});var SM=Wp();Object.defineProperty(L,"StructVector",{enumerable:!0,get:function(){return SM.StructVector}});var ka=Yp();Object.defineProperty(L,"TimestampVector",{enumerable:!0,get:function(){return ka.TimestampVector}});Object.defineProperty(L,"TimestampSecondVector",{enumerable:!0,get:function(){return ka.TimestampSecondVector}});Object.defineProperty(L,"TimestampMillisecondVector",{enumerable:!0,get:function(){return ka.TimestampMillisecondVector}});Object.defineProperty(L,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return ka.TimestampMicrosecondVector}});Object.defineProperty(L,"TimestampNanosecondVector",{enumerable:!0,get:function(){return ka.TimestampNanosecondVector}});var Ca=Gp();Object.defineProperty(L,"TimeVector",{enumerable:!0,get:function(){return Ca.TimeVector}});Object.defineProperty(L,"TimeSecondVector",{enumerable:!0,get:function(){return Ca.TimeSecondVector}});Object.defineProperty(L,"TimeMillisecondVector",{enumerable:!0,get:function(){return Ca.TimeMillisecondVector}});Object.defineProperty(L,"TimeMicrosecondVector",{enumerable:!0,get:function(){return Ca.TimeMicrosecondVector}});Object.defineProperty(L,"TimeNanosecondVector",{enumerable:!0,get:function(){return Ca.TimeNanosecondVector}});var l_=$p();Object.defineProperty(L,"UnionVector",{enumerable:!0,get:function(){return l_.UnionVector}});Object.defineProperty(L,"DenseUnionVector",{enumerable:!0,get:function(){return l_.DenseUnionVector}});Object.defineProperty(L,"SparseUnionVector",{enumerable:!0,get:function(){return l_.SparseUnionVector}});var IM=Kp();Object.defineProperty(L,"Utf8Vector",{enumerable:!0,get:function(){return IM.Utf8Vector}});var Jj=pa();Object.defineProperty(L,"MapRow",{enumerable:!0,get:function(){return Jj.MapRow}});Object.defineProperty(L,"StructRow",{enumerable:!0,get:function(){return Jj.StructRow}});var Oa=wj(),a_=$e(),bo=dt(),$j=sn(),ns=ht(),AM=Zr(),rl=Rt(),Kj=st(),Xj=Zp(),Zj=Bh(),Qj=qj(),e1=Wj(),t1=Qp(),r1=Yj(),i1=Gj();bo.Vector.new=DM;bo.Vector.from=OM;function DM(r,...e){return new(i1.instance.getVisitFn(r)())(r,...e)}function FM(r,e){if(rl.isIterable(e))return bo.Vector.from({nullValues:[null,void 0],type:r(),values:e});if(rl.isAsyncIterable(e))return bo.Vector.from({nullValues:[null,void 0],type:r(),values:e});let{values:t=[],type:i=r(),nullValues:n=[null,void 0]}=Object.assign({},e);return rl.isIterable(t)?bo.Vector.from(Object.assign(Object.assign({nullValues:n},e),{type:i})):bo.Vector.from(Object.assign(Object.assign({nullValues:n},e),{type:i}))}L.vectorFromValuesWithType=FM;function OM(r){let e=Object.assign({nullValues:[null,void 0]},r),{values:t=[]}=e,i=o_.__rest(e,["values"]);if(rl.isIterable(t)){let n=[...Kj.Builder.throughIterable(i)(t)];return n.length===1?n[0]:$j.Chunked.concat(n)}return(n=>o_.__awaiter(this,void 0,void 0,function*(){var s,u;let p=Kj.Builder.throughAsyncIterable(i);try{for(var m=o_.__asyncValues(p(t)),B;B=yield m.next(),!B.done;){let O=B.value;n.push(O)}}catch(O){s={error:O}}finally{try{B&&!B.done&&(u=m.return)&&(yield u.call(m))}finally{if(s)throw s.error}}return n.length===1?n[0]:$j.Chunked.concat(n)}))([])}ns.BaseVector.prototype.get=function(e){return Xj.instance.visit(this,e)};ns.BaseVector.prototype.set=function(e,t){return Zj.instance.visit(this,e,t)};ns.BaseVector.prototype.indexOf=function(e,t){return Qj.instance.visit(this,e,t)};ns.BaseVector.prototype.toArray=function(){return e1.instance.visit(this)};ns.BaseVector.prototype.getByteWidth=function(){return r1.instance.visit(this.type)};ns.BaseVector.prototype[Symbol.iterator]=function(){return t1.instance.visit(this)};ns.BaseVector.prototype._bindDataAccessors=UM;Object.keys(a_.Type).map(r=>a_.Type[r]).filter(r=>typeof r=="number").filter(r=>r!==a_.Type.NONE).forEach(r=>{let e=i1.instance.visit(r);e.prototype.get=Oa.partial1(Xj.instance.getVisitFn(r)),e.prototype.set=Oa.partial2(Zj.instance.getVisitFn(r)),e.prototype.indexOf=Oa.partial2(Qj.instance.getVisitFn(r)),e.prototype.toArray=Oa.partial0(e1.instance.getVisitFn(r)),e.prototype.getByteWidth=kM(r1.instance.getVisitFn(r)),e.prototype[Symbol.iterator]=Oa.partial0(t1.instance.getVisitFn(r))});function kM(r){return function(){return r(this.type)}}function CM(r){return function(e){return this.isValid(e)?r.call(this,e):null}}function MM(r){return function(e,t){AM.setBool(this.nullBitmap,this.offset+e,t!=null)&&r.call(this,e,t)}}function UM(){let r=this.nullBitmap;r&&r.byteLength>0&&(this.get=CM(this.get),this.set=MM(this.set))}});var Ta=V(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.Table=void 0;var nl=Et(),EM=io(),RM=Ma(),n1=Ec(),d_=Ai(),s1=St(),h_=Pe(),o1=Jn(),f_=Rt(),a1=bp(),p_=ci(),jt=class extends p_.Chunked{constructor(...e){var t;let i=null;e[0]instanceof s1.Schema&&(i=e[0]);let n=e[0]instanceof jt?e[0].chunks:o1.selectArgs(d_.RecordBatch,e);if(!i&&!(i=(t=n[0])===null||t===void 0?void 0:t.schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");n[0]||(n[0]=new d_._InternalEmptyPlaceholderRecordBatch(i));super(new h_.Struct(i.fields),n);this._schema=i,this._chunks=n}static empty(e=new s1.Schema([])){return new jt(e,[])}static from(e){if(!e)return jt.empty();if(typeof e=="object"){let i=f_.isIterable(e.values)?xM(e):f_.isAsyncIterable(e.values)?VM(e):null;if(i!==null)return i}let t=RM.RecordBatchReader.from(e);return f_.isPromise(t)?(()=>nl.__awaiter(this,void 0,void 0,function*(){return yield jt.from(yield t)}))():t.isSync()&&(t=t.open())?t.schema?new jt(t.schema,[...t]):jt.empty():(i=>nl.__awaiter(this,void 0,void 0,function*(){var n,s;let u=yield i,p=u.schema,m=[];if(p){try{for(var B=nl.__asyncValues(u),O;O=yield B.next(),!O.done;){let R=O.value;m.push(R)}}catch(R){n={error:R}}finally{try{O&&!O.done&&(s=B.return)&&(yield s.call(B))}finally{if(n)throw n.error}}return new jt(p,m)}return jt.empty()}))(t.open())}static fromAsync(e){return nl.__awaiter(this,void 0,void 0,function*(){return yield jt.from(e)})}static fromStruct(e){return jt.new(e.data.childData,e.type.children)}static new(...e){return new jt(...a1.distributeColumnsIntoRecordBatches(o1.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 jt(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 u=this._chunks.map(p=>p.getChildAt(e)).filter(p=>p!=null);if(u.length>0)return s[e]=new EM.Column(t,u)}return null}serialize(e="binary",t=!0){return(t?n1.RecordBatchStreamWriter:n1.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 jt(t,this._chunks.map(({length:i,data:{childData:n}})=>new d_.RecordBatch(t,i,e.map(s=>n[s]).filter(Boolean))))}assign(e){let t=this._schema.fields,[i,n]=e.schema.fields.reduce((p,m,B)=>{let[O,R]=p,W=t.findIndex(N=>N.name===m.name);return~W?R[W]=B:O.push(B),p},[[],[]]),s=this._schema.assign(e.schema),u=[...t.map((p,m,B,O=n[m])=>O===void 0?this.getColumnAt(m):e.getColumnAt(O)),...i.map(p=>e.getColumnAt(p))].filter(Boolean);return new jt(...a1.distributeVectorsIntoRecordBatches(s,u))}};sl.Table=jt;function xM(r){let{type:e}=r;return e instanceof h_.Struct?jt.fromStruct(p_.StructVector.from(r)):null}function VM(r){let{type:e}=r;return e instanceof h_.Struct?p_.StructVector.from(r).then(t=>jt.fromStruct(t)):null}});var Ai=V(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go._InternalEmptyPlaceholderRecordBatch=go.RecordBatch=void 0;var y_=Mr(),__=Ta(),NM=dt(),PM=Ot(),LM=St(),qM=Rt(),HM=sn(),zM=Jn(),m_=Pe(),WM=bp(),YM=ci(),_n=class extends YM.StructVector{constructor(...e){let t,i=e[0],n;if(e[1]instanceof y_.Data)[,t,n]=e;else{let s=i.fields,[,u,p]=e;t=y_.Data.Struct(new m_.Struct(s),0,u,0,null,p)}super(t,n);this._schema=i}static from(e){return qM.isIterable(e.values),__.Table.from(e)}static new(...e){let[t,i]=zM.selectFieldArgs(e),n=i.filter(s=>s instanceof NM.Vector);return new _n(...WM.ensureSameLengthData(new LM.Schema(t),n.map(s=>s.data)))}clone(e,t=this._children){return new _n(this._schema,e,t)}concat(...e){let t=this._schema,i=HM.Chunked.flatten(this,...e);return new __.Table(t,i.map(({data:n})=>new _n(t,n)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=ol.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 _n(t,this.length,i)}};go.RecordBatch=_n;var u1=class extends _n{constructor(e){super(e,0,e.fields.map(t=>y_.Data.new(t.type,0,0,0)))}};go._InternalEmptyPlaceholderRecordBatch=u1;var ol=class extends PM.Visitor{constructor(){super(...arguments);this.dictionaries=new Map}static collect(e){return new ol().visit(e.data,new m_.Struct(e.schema.fields)).dictionaries}visit(e,t){return m_.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 Ma=V(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.AsyncRecordBatchFileReader=Br.RecordBatchFileReader=Br.AsyncRecordBatchStreamReader=Br.RecordBatchStreamReader=Br.RecordBatchReader=void 0;var Ze=Et(),c1=dt(),al=$e(),p1=Uh(),l1=ra(),d1=en(),Ua=xh(),_1=W0(),b_=Ai(),ss=Os(),Tr=Tc(),jr=Rt(),hi=class extends ss.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 jr.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 l1.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return l1.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 hi?e:jr.isArrowJSON(e)?GM(e):jr.isFileHandle(e)?JM(e):jr.isPromise(e)?(()=>Ze.__awaiter(this,void 0,void 0,function*(){return yield hi.from(yield e)}))():jr.isFetchResponse(e)||jr.isReadableDOMStream(e)||jr.isReadableNodeStream(e)||jr.isAsyncIterable(e)?KM(new d1.AsyncByteStream(e)):$M(new d1.ByteStream(e))}static readAll(e){return e instanceof hi?e.isSync()?f1(e):h1(e):jr.isArrowJSON(e)||ArrayBuffer.isView(e)||jr.isIterable(e)||jr.isIteratorResult(e)?f1(e):h1(e)}};Br.RecordBatchReader=hi;var vo=class extends hi{constructor(e){super(e);this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Ze.__asyncGenerator(this,arguments,function*(){yield Ze.__await(yield*Ze.__asyncDelegator(Ze.__asyncValues(this[Symbol.iterator]())))})}};Br.RecordBatchStreamReader=vo;var wo=class extends hi{constructor(e){super(e);this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}};Br.AsyncRecordBatchStreamReader=wo;var ul=class extends vo{constructor(e){super(e);this._impl=e}};Br.RecordBatchFileReader=ul;var g_=class extends wo{constructor(e){super(e);this._impl=e}};Br.AsyncRecordBatchFileReader=g_;var v_=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 b_.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){let{id:i,isDelta:n,data:s}=e,{dictionaries:u,schema:p}=this,m=u.get(i);if(n||!m){let B=p.dictionaries.get(i);return m&&n?m.concat(c1.Vector.new(this._loadVectors(s,t,[B])[0])):c1.Vector.new(this._loadVectors(s,t,[B])[0])}return m}_loadVectors(e,t,i){return new _1.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}},Ea=class extends v_{constructor(e,t){super(t);this._reader=jr.isArrowJSON(e)?new Tr.JSONMessageReader(this._handle=e):new Tr.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=b1(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):ss.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):ss.ITERATOR_DONE}next(){if(this.closed)return ss.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 b_._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Ra=class extends v_{constructor(e,t){super(t);this._reader=new Tr.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return Ze.__awaiter(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return Ze.__awaiter(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=b1(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return Ze.__awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):ss.ITERATOR_DONE})}return(e){return Ze.__awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):ss.ITERATOR_DONE})}next(){return Ze.__awaiter(this,void 0,void 0,function*(){if(this.closed)return ss.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=yield 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=yield 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 b_._InternalEmptyPlaceholderRecordBatch(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return Ze.__awaiter(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},w_=class extends Ea{constructor(e,t){super(e instanceof Ua.RandomAccessFile?e:new Ua.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(al.MessageHeader.RecordBatch);if(i==null?void 0: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(al.MessageHeader.DictionaryBatch);if(i==null?void 0:i.isDictionaryBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength),u=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,u)}}}_readFooter(){let{_handle:e}=this,t=e.size-Tr.magicAndPadding,i=e.readInt32(t),n=e.readAt(t-i,i);return p1.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}},y1=class extends Ra{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 Ua.AsyncRandomAccessFile?e:new Ua.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}open(e){let t=Object.create(null,{open:{get:()=>super.open}});return Ze.__awaiter(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let i of this._footer.dictionaryBatches())i&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){return Ze.__awaiter(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());let t=this._footer&&this._footer.getRecordBatch(e);if(t&&(yield this._handle.seek(t.offset))){let i=yield this._reader.readMessage(al.MessageHeader.RecordBatch);if(i==null?void 0:i.isRecordBatch()){let n=i.header(),s=yield this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null})}_readDictionaryBatch(e){return Ze.__awaiter(this,void 0,void 0,function*(){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&(yield this._handle.seek(t.offset))){let i=yield this._reader.readMessage(al.MessageHeader.DictionaryBatch);if(i==null?void 0:i.isDictionaryBatch()){let n=i.header(),s=yield this._reader.readMessageBody(i.bodyLength),u=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,u)}}})}_readFooter(){return Ze.__awaiter(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-Tr.magicAndPadding,i=yield e.readInt32(t),n=yield e.readAt(t-i,i);return p1.Footer.decode(n)})}_readNextMessageAndValidate(e){return Ze.__awaiter(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null})}},m1=class extends Ea{constructor(e,t){super(e,t)}_loadVectors(e,t,i){return new _1.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}};function b1(r,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:r.autoDestroy}function*f1(r){let e=hi.from(r);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function h1(r){return Ze.__asyncGenerator(this,arguments,function*(){let t=yield Ze.__await(hi.from(r));try{if(!(yield Ze.__await(t.open({autoDestroy:!1}))).closed)do yield yield Ze.__await(t);while(!(yield Ze.__await(t.reset().open())).closed)}finally{yield Ze.__await(t.cancel())}})}function GM(r){return new vo(new m1(r))}function $M(r){let e=r.peek(Tr.magicLength+7&-8);return e&&e.byteLength>=4?Tr.checkForMagicArrowString(e)?new ul(new w_(r.read())):new vo(new Ea(r)):new vo(new Ea(function*(){}()))}function KM(r){return Ze.__awaiter(this,void 0,void 0,function*(){let e=yield r.peek(Tr.magicLength+7&-8);return e&&e.byteLength>=4?Tr.checkForMagicArrowString(e)?new ul(new w_(yield r.read())):new wo(new Ra(r)):new wo(new Ra(function(){return Ze.__asyncGenerator(this,arguments,function*(){})}()))})}function JM(r){return Ze.__awaiter(this,void 0,void 0,function*(){let{size:e}=yield r.stat(),t=new Ua.AsyncRandomAccessFile(r,e);return e>=Tr.magicX2AndPadding&&Tr.checkForMagicArrowString(yield t.readAt(0,Tr.magicLength+7&-8))?new g_(new y1(t)):new wo(new Ra(t))})}});var w1=V(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.toDOMStream=void 0;var cl=Et(),v1=gt(),g1=Rt();function XM(r,e){if(g1.isAsyncIterable(r))return QM(r,e);if(g1.isIterable(r))return ZM(r,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}ll.toDOMStream=XM;function ZM(r,e){let t=null,i=(e==null?void 0:e.type)==="bytes"||!1,n=(e==null?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(u){s(u,t||(t=r[Symbol.iterator]()))},pull(u){t?s(u,t):u.close()},cancel(){((t==null?void 0:t.return)&&t.return()||!0)&&(t=null)}}),Object.assign({highWaterMark:i?n:void 0},e));function s(u,p){let m,B=null,O=u.desiredSize||null;for(;!(B=p.next(i?O:null)).done;)if(ArrayBuffer.isView(B.value)&&(m=v1.toUint8Array(B.value))&&(O!=null&&i&&(O=O-m.byteLength+1),B.value=m),u.enqueue(B.value),O!=null&&--O<=0)return;u.close()}}function QM(r,e){let t=null,i=(e==null?void 0:e.type)==="bytes"||!1,n=(e==null?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(u){return cl.__awaiter(this,void 0,void 0,function*(){yield s(u,t||(t=r[Symbol.asyncIterator]()))})},pull(u){return cl.__awaiter(this,void 0,void 0,function*(){t?yield s(u,t):u.close()})},cancel(){return cl.__awaiter(this,void 0,void 0,function*(){((t==null?void 0:t.return)&&(yield t.return())||!0)&&(t=null)})}}),Object.assign({highWaterMark:i?n:void 0},e));function s(u,p){return cl.__awaiter(this,void 0,void 0,function*(){let m,B=null,O=u.desiredSize||null;for(;!(B=yield p.next(i?O:null)).done;)if(ArrayBuffer.isView(B.value)&&(m=v1.toUint8Array(B.value))&&(O!=null&&i&&(O=O-m.byteLength+1),B.value=m),u.enqueue(B.value),O!=null&&--O<=0)return;u.close()})}}});var T1=V(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.BuilderTransform=jo.builderThroughDOMStream=void 0;var eU=Et(),tU=lc();function rU(r){return new j_(r)}jo.builderThroughDOMStream=rU;var j_=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:t,["writableStrategy"]:i,["queueingStrategy"]:n="count"}=e,s=eU.__rest(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=tU.Builder.new(s),this._getSize=n!=="bytes"?j1:B1;let{["highWaterMark"]:u=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},t),{["highWaterMark"]:p=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},i);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:m=>{this._maybeFlush(this._builder,this._controller=m)},start:m=>{this._maybeFlush(this._builder,this._controller=m)}},{highWaterMark:u,size:n!=="bytes"?j1:B1}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:p,size:m=>this._writeValueAndReturnChunkSize(m)})}_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)}};jo.BuilderTransform=j_;var j1=r=>r.length,B1=r=>r.byteLength});var S1=V(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.recordBatchReaderThroughDOMStream=void 0;var xa=Et(),iU=en(),nU=Ma();function sU(r,e){let t=new iU.AsyncByteQueue,i=null,n=new ReadableStream({cancel(){return xa.__awaiter(this,void 0,void 0,function*(){yield t.close()})},start(p){return xa.__awaiter(this,void 0,void 0,function*(){yield u(p,i||(i=yield s()))})},pull(p){return xa.__awaiter(this,void 0,void 0,function*(){i?yield u(p,i):p.close()})}});return{writable:new WritableStream(t,Object.assign({highWaterMark:Math.pow(2,14)},r)),readable:n};function s(){return xa.__awaiter(this,void 0,void 0,function*(){return yield(yield nU.RecordBatchReader.from(t)).open(e)})}function u(p,m){return xa.__awaiter(this,void 0,void 0,function*(){let B=p.desiredSize,O=null;for(;!(O=yield m.next()).done;)if(p.enqueue(O.value),B!=null&&--B<=0)return;p.close()})}}dl.recordBatchReaderThroughDOMStream=sU});var I1=V(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.recordBatchWriterThroughDOMStream=void 0;var fl=Et(),oU=en();function aU(r,e){let t=new this(r),i=new oU.AsyncByteStream(t),n=new ReadableStream({type:"bytes",cancel(){return fl.__awaiter(this,void 0,void 0,function*(){yield i.cancel()})},pull(u){return fl.__awaiter(this,void 0,void 0,function*(){yield s(u)})},start(u){return fl.__awaiter(this,void 0,void 0,function*(){yield s(u)})}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(t,r),readable:n};function s(u){return fl.__awaiter(this,void 0,void 0,function*(){let p=null,m=u.desiredSize;for(;p=yield i.read(m||null);)if(u.enqueue(p),m!=null&&(m-=p.byteLength)<=0)return;u.close()})}}hl.recordBatchWriterThroughDOMStream=aU});var D_=V(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.custom=De.or=De.and=De.col=De.lit=De.CustomPredicate=De.Not=De.GTeq=De.LTeq=De.Equals=De.Or=De.And=De.CombinationPredicate=De.ComparisonPredicate=De.Predicate=De.Col=De.Literal=De.Value=void 0;var uU=qc(),yn=class{eq(e){return e instanceof yn||(e=new Oi(e)),new T_(this,e)}le(e){return e instanceof yn||(e=new Oi(e)),new S_(this,e)}ge(e){return e instanceof yn||(e=new Oi(e)),new I_(this,e)}lt(e){return new Bo(this.ge(e))}gt(e){return new Bo(this.le(e))}ne(e){return new Bo(this.eq(e))}};De.Value=yn;var Oi=class extends yn{constructor(e){super();this.v=e}};De.Literal=Oi;var B_=class extends yn{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)}};De.Col=B_;var To=class{and(...e){return new So(this,...e)}or(...e){return new Io(this,...e)}not(){return new Bo(this)}};De.Predicate=To;var Va=class extends To{constructor(e,t){super();this.left=e,this.right=t}bind(e){return this.left instanceof Oi?this.right instanceof Oi?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Oi?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}};De.ComparisonPredicate=Va;var Na=class extends To{constructor(...e){super();this.children=e}};De.CombinationPredicate=Na;Na.prototype.children=Object.freeze([]);var So=class extends Na{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof So?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))}};De.And=So;var Io=class extends Na{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Io?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))}};De.Or=Io;var T_=class extends Va{_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(u,p)=>n(u,p)==s(u,p)}_bindColLit(e,t,i){let n=t.bind(e);if(t.vector instanceof uU.DictionaryVector){let s,u=t.vector;return u.dictionary!==this.lastDictionary?(s=u.reverseLookup(i.v),this.lastDictionary=u.dictionary,this.lastKey=s):s=this.lastKey,s===-1?()=>!1:p=>u.getKey(p)===s}else return(s,u)=>n(s,u)==i.v}_bindLitCol(e,t,i){return this._bindColLit(e,i,t)}};De.Equals=T_;var S_=class extends Va{_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(u,p)=>n(u,p)<=s(u,p)}_bindColLit(e,t,i){let n=t.bind(e);return(s,u)=>n(s,u)<=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,u)=>t.v<=n(s,u)}};De.LTeq=S_;var I_=class extends Va{_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(u,p)=>n(u,p)>=s(u,p)}_bindColLit(e,t,i){let n=t.bind(e);return(s,u)=>n(s,u)>=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,u)=>t.v>=n(s,u)}};De.GTeq=I_;var Bo=class extends To{constructor(e){super();this.child=e}bind(e){let t=this.child.bind(e);return(i,n)=>!t(i,n)}};De.Not=Bo;var A_=class extends To{constructor(e,t){super();this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}};De.CustomPredicate=A_;function cU(r){return new Oi(r)}De.lit=cU;function lU(r){return new B_(r)}De.col=lU;function dU(...r){return new So(...r)}De.and=dU;function fU(...r){return new Io(...r)}De.or=fU;function hU(r,e){return new A_(r,e)}De.custom=hU});var C1=V(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.FilteredDataFrame=mn.CountByResult=mn.DataFrame=void 0;var A1=Ta(),D1=Yc(),F_=St(),F1=D_(),pU=Ai(),O1=Pe(),O_=class extends A1.Table{filter(e){return new Pa(this.chunks,e)}scan(e,t){let i=this.chunks,n=i.length;for(let s=-1;++s<n;){let u=i[s];t&&t(u);for(let p=-1,m=u.length;++p<m;)e(p,u)}}scanReverse(e,t){let i=this.chunks,n=i.length;for(let s=n;--s>=0;){let u=i[s];t&&t(u);for(let p=u.length;--p>=0;)e(p,u)}}countBy(e){let t=this.chunks,i=t.length,n=typeof e=="string"?new F1.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!O1.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let u=Math.ceil(Math.log(s.length)/Math.log(256)),p=u==4?Uint32Array:u>=2?Uint16Array:Uint8Array,m=new p(s.dictionary.length);for(let B=-1;++B<i;){let O=t[B];n.bind(O);let R=n.vector.indices;for(let W=-1,N=O.length;++W<N;){let Se=R.get(W);Se!==null&&m[Se]++}}return new pl(s.dictionary,D1.IntVector.from(m))}};mn.DataFrame=O_;var pl=class extends A1.Table{constructor(e,t){let i=new F_.Schema([new F_.Field("values",e.type),new F_.Field("counts",t.type)]);super(new pU.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}};mn.CountByResult=pl;var k1=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}},Pa=class extends O_{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 u=i[s],p=this._predicate.bind(u),m=!1;for(let B=-1,O=u.length;++B<O;)p(B,u)&&(t&&!m&&(t(u),m=!0),e(B,u))}}scanReverse(e,t){let i=this._chunks,n=i.length;for(let s=n;--s>=0;){let u=i[s],p=this._predicate.bind(u),m=!1;for(let B=u.length;--B>=0;)p(B,u)&&(t&&!m&&(t(u),m=!0),e(B,u))}}count(){let e=0,t=this._chunks,i=t.length;for(let n=-1;++n<i;){let s=t[n],u=this._predicate.bind(s);for(let p=-1,m=s.length;++p<m;)u(p,s)&&++e}return e}[Symbol.iterator](){return new k1(this._chunks,this._predicate)}filter(e){return new Pa(this._chunks,this._predicate.and(e))}countBy(e){let t=this._chunks,i=t.length,n=typeof e=="string"?new F1.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!O1.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let u=Math.ceil(Math.log(s.length)/Math.log(256)),p=u==4?Uint32Array:u>=2?Uint16Array:Uint8Array,m=new p(s.dictionary.length);for(let B=-1;++B<i;){let O=t[B],R=this._predicate.bind(O);n.bind(O);let W=n.vector.indices;for(let N=-1,Se=O.length;++N<Se;){let ye=W.get(N);ye!==null&&R(N,O)&&m[ye]++}}return new pl(s.dictionary,D1.IntVector.from(m))}};mn.FilteredDataFrame=Pa});var E1=V(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.isTypedArray=w.util=w.predicate=w.CountByResult=w.FilteredDataFrame=w.DataFrame=w.RecordBatch=w.Message=w.JSONMessageReader=w.AsyncMessageReader=w.MessageReader=w.RecordBatchJSONWriter=w.RecordBatchStreamWriter=w.RecordBatchFileWriter=w.RecordBatchWriter=w.AsyncRecordBatchStreamReader=w.AsyncRecordBatchFileReader=w.RecordBatchStreamReader=w.RecordBatchFileReader=w.RecordBatchReader=w.AsyncByteQueue=w.AsyncByteStream=w.ByteStream=w.Utf8Builder=w.SparseUnionBuilder=w.DenseUnionBuilder=w.UnionBuilder=w.TimeNanosecondBuilder=w.TimeMicrosecondBuilder=w.TimeMillisecondBuilder=w.TimeSecondBuilder=w.TimeBuilder=w.TimestampNanosecondBuilder=w.TimestampMicrosecondBuilder=w.TimestampMillisecondBuilder=w.TimestampSecondBuilder=w.TimestampBuilder=w.StructBuilder=w.NullBuilder=w.MapBuilder=w.ListBuilder=w.Uint64Builder=w.Uint32Builder=w.Uint16Builder=w.Uint8Builder=w.Int64Builder=w.Int32Builder=w.Int16Builder=w.Int8Builder=w.IntBuilder=w.IntervalYearMonthBuilder=w.IntervalDayTimeBuilder=w.IntervalBuilder=w.Float64Builder=w.Float32Builder=w.Float16Builder=w.FloatBuilder=w.FixedSizeListBuilder=w.FixedSizeBinaryBuilder=w.DictionaryBuilder=w.DecimalBuilder=w.DateMillisecondBuilder=w.DateDayBuilder=w.DateBuilder=w.BoolBuilder=w.BinaryBuilder=w.Builder=w.Utf8Vector=w.SparseUnionVector=w.DenseUnionVector=w.UnionVector=w.TimeNanosecondVector=w.TimeMicrosecondVector=w.TimeMillisecondVector=w.TimeSecondVector=w.TimeVector=w.TimestampNanosecondVector=w.TimestampMicrosecondVector=w.TimestampMillisecondVector=w.TimestampSecondVector=w.TimestampVector=w.StructVector=w.NullVector=w.MapVector=w.ListVector=w.Uint64Vector=w.Uint32Vector=w.Uint16Vector=w.Uint8Vector=w.Int64Vector=w.Int32Vector=w.Int16Vector=w.Int8Vector=w.IntVector=w.IntervalYearMonthVector=w.IntervalDayTimeVector=w.IntervalVector=w.Float64Vector=w.Float32Vector=w.Float16Vector=w.FloatVector=w.FixedSizeListVector=w.FixedSizeBinaryVector=w.DictionaryVector=w.DecimalVector=w.DateMillisecondVector=w.DateDayVector=w.DateVector=w.Chunked=w.BoolVector=w.BinaryVector=w.BaseVector=w.Vector=w.Field=w.Schema=w.Visitor=w.Column=w.Table=w.Map_=w.FixedSizeList=w.IntervalYearMonth=w.IntervalDayTime=w.Interval=w.Dictionary=w.SparseUnion=w.DenseUnion=w.Union=w.Struct=w.List=w.Decimal=w.TimeNanosecond=w.TimeMicrosecond=w.TimeMillisecond=w.TimeSecond=w.Time=w.TimestampNanosecond=w.TimestampMicrosecond=w.TimestampMillisecond=w.TimestampSecond=w.Timestamp=w.DateMillisecond=w.DateDay=w.Date_=w.FixedSizeBinary=w.Binary=w.Utf8=w.Float64=w.Float32=w.Float16=w.Float=w.Uint64=w.Uint32=w.Uint16=w.Uint8=w.Int64=w.Int32=w.Int16=w.Int8=w.Int=w.Bool=w.Null=w.DataType=w.Data=w.BufferType=w.Type=w.MessageHeader=w.MetadataVersion=w.IntervalUnit=w.UnionMode=w.Precision=w.TimeUnit=w.DateUnit=void 0;var Ao=Li();Object.defineProperty(w,"DateUnit",{enumerable:!0,get:function(){return Ao.DateUnit}});Object.defineProperty(w,"TimeUnit",{enumerable:!0,get:function(){return Ao.TimeUnit}});Object.defineProperty(w,"Precision",{enumerable:!0,get:function(){return Ao.Precision}});Object.defineProperty(w,"UnionMode",{enumerable:!0,get:function(){return Ao.UnionMode}});Object.defineProperty(w,"IntervalUnit",{enumerable:!0,get:function(){return Ao.IntervalUnit}});Object.defineProperty(w,"MetadataVersion",{enumerable:!0,get:function(){return Ao.MetadataVersion}});var _U=Tu();Object.defineProperty(w,"MessageHeader",{enumerable:!0,get:function(){return _U.MessageHeader}});var M1=$e();Object.defineProperty(w,"Type",{enumerable:!0,get:function(){return M1.Type}});Object.defineProperty(w,"BufferType",{enumerable:!0,get:function(){return M1.BufferType}});var yU=Mr();Object.defineProperty(w,"Data",{enumerable:!0,get:function(){return yU.Data}});var we=Pe();Object.defineProperty(w,"DataType",{enumerable:!0,get:function(){return we.DataType}});Object.defineProperty(w,"Null",{enumerable:!0,get:function(){return we.Null}});Object.defineProperty(w,"Bool",{enumerable:!0,get:function(){return we.Bool}});Object.defineProperty(w,"Int",{enumerable:!0,get:function(){return we.Int}});Object.defineProperty(w,"Int8",{enumerable:!0,get:function(){return we.Int8}});Object.defineProperty(w,"Int16",{enumerable:!0,get:function(){return we.Int16}});Object.defineProperty(w,"Int32",{enumerable:!0,get:function(){return we.Int32}});Object.defineProperty(w,"Int64",{enumerable:!0,get:function(){return we.Int64}});Object.defineProperty(w,"Uint8",{enumerable:!0,get:function(){return we.Uint8}});Object.defineProperty(w,"Uint16",{enumerable:!0,get:function(){return we.Uint16}});Object.defineProperty(w,"Uint32",{enumerable:!0,get:function(){return we.Uint32}});Object.defineProperty(w,"Uint64",{enumerable:!0,get:function(){return we.Uint64}});Object.defineProperty(w,"Float",{enumerable:!0,get:function(){return we.Float}});Object.defineProperty(w,"Float16",{enumerable:!0,get:function(){return we.Float16}});Object.defineProperty(w,"Float32",{enumerable:!0,get:function(){return we.Float32}});Object.defineProperty(w,"Float64",{enumerable:!0,get:function(){return we.Float64}});Object.defineProperty(w,"Utf8",{enumerable:!0,get:function(){return we.Utf8}});Object.defineProperty(w,"Binary",{enumerable:!0,get:function(){return we.Binary}});Object.defineProperty(w,"FixedSizeBinary",{enumerable:!0,get:function(){return we.FixedSizeBinary}});Object.defineProperty(w,"Date_",{enumerable:!0,get:function(){return we.Date_}});Object.defineProperty(w,"DateDay",{enumerable:!0,get:function(){return we.DateDay}});Object.defineProperty(w,"DateMillisecond",{enumerable:!0,get:function(){return we.DateMillisecond}});Object.defineProperty(w,"Timestamp",{enumerable:!0,get:function(){return we.Timestamp}});Object.defineProperty(w,"TimestampSecond",{enumerable:!0,get:function(){return we.TimestampSecond}});Object.defineProperty(w,"TimestampMillisecond",{enumerable:!0,get:function(){return we.TimestampMillisecond}});Object.defineProperty(w,"TimestampMicrosecond",{enumerable:!0,get:function(){return we.TimestampMicrosecond}});Object.defineProperty(w,"TimestampNanosecond",{enumerable:!0,get:function(){return we.TimestampNanosecond}});Object.defineProperty(w,"Time",{enumerable:!0,get:function(){return we.Time}});Object.defineProperty(w,"TimeSecond",{enumerable:!0,get:function(){return we.TimeSecond}});Object.defineProperty(w,"TimeMillisecond",{enumerable:!0,get:function(){return we.TimeMillisecond}});Object.defineProperty(w,"TimeMicrosecond",{enumerable:!0,get:function(){return we.TimeMicrosecond}});Object.defineProperty(w,"TimeNanosecond",{enumerable:!0,get:function(){return we.TimeNanosecond}});Object.defineProperty(w,"Decimal",{enumerable:!0,get:function(){return we.Decimal}});Object.defineProperty(w,"List",{enumerable:!0,get:function(){return we.List}});Object.defineProperty(w,"Struct",{enumerable:!0,get:function(){return we.Struct}});Object.defineProperty(w,"Union",{enumerable:!0,get:function(){return we.Union}});Object.defineProperty(w,"DenseUnion",{enumerable:!0,get:function(){return we.DenseUnion}});Object.defineProperty(w,"SparseUnion",{enumerable:!0,get:function(){return we.SparseUnion}});Object.defineProperty(w,"Dictionary",{enumerable:!0,get:function(){return we.Dictionary}});Object.defineProperty(w,"Interval",{enumerable:!0,get:function(){return we.Interval}});Object.defineProperty(w,"IntervalDayTime",{enumerable:!0,get:function(){return we.IntervalDayTime}});Object.defineProperty(w,"IntervalYearMonth",{enumerable:!0,get:function(){return we.IntervalYearMonth}});Object.defineProperty(w,"FixedSizeList",{enumerable:!0,get:function(){return we.FixedSizeList}});Object.defineProperty(w,"Map_",{enumerable:!0,get:function(){return we.Map_}});var mU=Ta();Object.defineProperty(w,"Table",{enumerable:!0,get:function(){return mU.Table}});var bU=io();Object.defineProperty(w,"Column",{enumerable:!0,get:function(){return bU.Column}});var gU=Ot();Object.defineProperty(w,"Visitor",{enumerable:!0,get:function(){return gU.Visitor}});var U1=St();Object.defineProperty(w,"Schema",{enumerable:!0,get:function(){return U1.Schema}});Object.defineProperty(w,"Field",{enumerable:!0,get:function(){return U1.Field}});var _e=ci();Object.defineProperty(w,"Vector",{enumerable:!0,get:function(){return _e.Vector}});Object.defineProperty(w,"BaseVector",{enumerable:!0,get:function(){return _e.BaseVector}});Object.defineProperty(w,"BinaryVector",{enumerable:!0,get:function(){return _e.BinaryVector}});Object.defineProperty(w,"BoolVector",{enumerable:!0,get:function(){return _e.BoolVector}});Object.defineProperty(w,"Chunked",{enumerable:!0,get:function(){return _e.Chunked}});Object.defineProperty(w,"DateVector",{enumerable:!0,get:function(){return _e.DateVector}});Object.defineProperty(w,"DateDayVector",{enumerable:!0,get:function(){return _e.DateDayVector}});Object.defineProperty(w,"DateMillisecondVector",{enumerable:!0,get:function(){return _e.DateMillisecondVector}});Object.defineProperty(w,"DecimalVector",{enumerable:!0,get:function(){return _e.DecimalVector}});Object.defineProperty(w,"DictionaryVector",{enumerable:!0,get:function(){return _e.DictionaryVector}});Object.defineProperty(w,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return _e.FixedSizeBinaryVector}});Object.defineProperty(w,"FixedSizeListVector",{enumerable:!0,get:function(){return _e.FixedSizeListVector}});Object.defineProperty(w,"FloatVector",{enumerable:!0,get:function(){return _e.FloatVector}});Object.defineProperty(w,"Float16Vector",{enumerable:!0,get:function(){return _e.Float16Vector}});Object.defineProperty(w,"Float32Vector",{enumerable:!0,get:function(){return _e.Float32Vector}});Object.defineProperty(w,"Float64Vector",{enumerable:!0,get:function(){return _e.Float64Vector}});Object.defineProperty(w,"IntervalVector",{enumerable:!0,get:function(){return _e.IntervalVector}});Object.defineProperty(w,"IntervalDayTimeVector",{enumerable:!0,get:function(){return _e.IntervalDayTimeVector}});Object.defineProperty(w,"IntervalYearMonthVector",{enumerable:!0,get:function(){return _e.IntervalYearMonthVector}});Object.defineProperty(w,"IntVector",{enumerable:!0,get:function(){return _e.IntVector}});Object.defineProperty(w,"Int8Vector",{enumerable:!0,get:function(){return _e.Int8Vector}});Object.defineProperty(w,"Int16Vector",{enumerable:!0,get:function(){return _e.Int16Vector}});Object.defineProperty(w,"Int32Vector",{enumerable:!0,get:function(){return _e.Int32Vector}});Object.defineProperty(w,"Int64Vector",{enumerable:!0,get:function(){return _e.Int64Vector}});Object.defineProperty(w,"Uint8Vector",{enumerable:!0,get:function(){return _e.Uint8Vector}});Object.defineProperty(w,"Uint16Vector",{enumerable:!0,get:function(){return _e.Uint16Vector}});Object.defineProperty(w,"Uint32Vector",{enumerable:!0,get:function(){return _e.Uint32Vector}});Object.defineProperty(w,"Uint64Vector",{enumerable:!0,get:function(){return _e.Uint64Vector}});Object.defineProperty(w,"ListVector",{enumerable:!0,get:function(){return _e.ListVector}});Object.defineProperty(w,"MapVector",{enumerable:!0,get:function(){return _e.MapVector}});Object.defineProperty(w,"NullVector",{enumerable:!0,get:function(){return _e.NullVector}});Object.defineProperty(w,"StructVector",{enumerable:!0,get:function(){return _e.StructVector}});Object.defineProperty(w,"TimestampVector",{enumerable:!0,get:function(){return _e.TimestampVector}});Object.defineProperty(w,"TimestampSecondVector",{enumerable:!0,get:function(){return _e.TimestampSecondVector}});Object.defineProperty(w,"TimestampMillisecondVector",{enumerable:!0,get:function(){return _e.TimestampMillisecondVector}});Object.defineProperty(w,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return _e.TimestampMicrosecondVector}});Object.defineProperty(w,"TimestampNanosecondVector",{enumerable:!0,get:function(){return _e.TimestampNanosecondVector}});Object.defineProperty(w,"TimeVector",{enumerable:!0,get:function(){return _e.TimeVector}});Object.defineProperty(w,"TimeSecondVector",{enumerable:!0,get:function(){return _e.TimeSecondVector}});Object.defineProperty(w,"TimeMillisecondVector",{enumerable:!0,get:function(){return _e.TimeMillisecondVector}});Object.defineProperty(w,"TimeMicrosecondVector",{enumerable:!0,get:function(){return _e.TimeMicrosecondVector}});Object.defineProperty(w,"TimeNanosecondVector",{enumerable:!0,get:function(){return _e.TimeNanosecondVector}});Object.defineProperty(w,"UnionVector",{enumerable:!0,get:function(){return _e.UnionVector}});Object.defineProperty(w,"DenseUnionVector",{enumerable:!0,get:function(){return _e.DenseUnionVector}});Object.defineProperty(w,"SparseUnionVector",{enumerable:!0,get:function(){return _e.SparseUnionVector}});Object.defineProperty(w,"Utf8Vector",{enumerable:!0,get:function(){return _e.Utf8Vector}});var je=lc();Object.defineProperty(w,"Builder",{enumerable:!0,get:function(){return je.Builder}});Object.defineProperty(w,"BinaryBuilder",{enumerable:!0,get:function(){return je.BinaryBuilder}});Object.defineProperty(w,"BoolBuilder",{enumerable:!0,get:function(){return je.BoolBuilder}});Object.defineProperty(w,"DateBuilder",{enumerable:!0,get:function(){return je.DateBuilder}});Object.defineProperty(w,"DateDayBuilder",{enumerable:!0,get:function(){return je.DateDayBuilder}});Object.defineProperty(w,"DateMillisecondBuilder",{enumerable:!0,get:function(){return je.DateMillisecondBuilder}});Object.defineProperty(w,"DecimalBuilder",{enumerable:!0,get:function(){return je.DecimalBuilder}});Object.defineProperty(w,"DictionaryBuilder",{enumerable:!0,get:function(){return je.DictionaryBuilder}});Object.defineProperty(w,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return je.FixedSizeBinaryBuilder}});Object.defineProperty(w,"FixedSizeListBuilder",{enumerable:!0,get:function(){return je.FixedSizeListBuilder}});Object.defineProperty(w,"FloatBuilder",{enumerable:!0,get:function(){return je.FloatBuilder}});Object.defineProperty(w,"Float16Builder",{enumerable:!0,get:function(){return je.Float16Builder}});Object.defineProperty(w,"Float32Builder",{enumerable:!0,get:function(){return je.Float32Builder}});Object.defineProperty(w,"Float64Builder",{enumerable:!0,get:function(){return je.Float64Builder}});Object.defineProperty(w,"IntervalBuilder",{enumerable:!0,get:function(){return je.IntervalBuilder}});Object.defineProperty(w,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return je.IntervalDayTimeBuilder}});Object.defineProperty(w,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return je.IntervalYearMonthBuilder}});Object.defineProperty(w,"IntBuilder",{enumerable:!0,get:function(){return je.IntBuilder}});Object.defineProperty(w,"Int8Builder",{enumerable:!0,get:function(){return je.Int8Builder}});Object.defineProperty(w,"Int16Builder",{enumerable:!0,get:function(){return je.Int16Builder}});Object.defineProperty(w,"Int32Builder",{enumerable:!0,get:function(){return je.Int32Builder}});Object.defineProperty(w,"Int64Builder",{enumerable:!0,get:function(){return je.Int64Builder}});Object.defineProperty(w,"Uint8Builder",{enumerable:!0,get:function(){return je.Uint8Builder}});Object.defineProperty(w,"Uint16Builder",{enumerable:!0,get:function(){return je.Uint16Builder}});Object.defineProperty(w,"Uint32Builder",{enumerable:!0,get:function(){return je.Uint32Builder}});Object.defineProperty(w,"Uint64Builder",{enumerable:!0,get:function(){return je.Uint64Builder}});Object.defineProperty(w,"ListBuilder",{enumerable:!0,get:function(){return je.ListBuilder}});Object.defineProperty(w,"MapBuilder",{enumerable:!0,get:function(){return je.MapBuilder}});Object.defineProperty(w,"NullBuilder",{enumerable:!0,get:function(){return je.NullBuilder}});Object.defineProperty(w,"StructBuilder",{enumerable:!0,get:function(){return je.StructBuilder}});Object.defineProperty(w,"TimestampBuilder",{enumerable:!0,get:function(){return je.TimestampBuilder}});Object.defineProperty(w,"TimestampSecondBuilder",{enumerable:!0,get:function(){return je.TimestampSecondBuilder}});Object.defineProperty(w,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return je.TimestampMillisecondBuilder}});Object.defineProperty(w,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return je.TimestampMicrosecondBuilder}});Object.defineProperty(w,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return je.TimestampNanosecondBuilder}});Object.defineProperty(w,"TimeBuilder",{enumerable:!0,get:function(){return je.TimeBuilder}});Object.defineProperty(w,"TimeSecondBuilder",{enumerable:!0,get:function(){return je.TimeSecondBuilder}});Object.defineProperty(w,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return je.TimeMillisecondBuilder}});Object.defineProperty(w,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return je.TimeMicrosecondBuilder}});Object.defineProperty(w,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return je.TimeNanosecondBuilder}});Object.defineProperty(w,"UnionBuilder",{enumerable:!0,get:function(){return je.UnionBuilder}});Object.defineProperty(w,"DenseUnionBuilder",{enumerable:!0,get:function(){return je.DenseUnionBuilder}});Object.defineProperty(w,"SparseUnionBuilder",{enumerable:!0,get:function(){return je.SparseUnionBuilder}});Object.defineProperty(w,"Utf8Builder",{enumerable:!0,get:function(){return je.Utf8Builder}});var C_=en();Object.defineProperty(w,"ByteStream",{enumerable:!0,get:function(){return C_.ByteStream}});Object.defineProperty(w,"AsyncByteStream",{enumerable:!0,get:function(){return C_.AsyncByteStream}});Object.defineProperty(w,"AsyncByteQueue",{enumerable:!0,get:function(){return C_.AsyncByteQueue}});var La=Ma();Object.defineProperty(w,"RecordBatchReader",{enumerable:!0,get:function(){return La.RecordBatchReader}});Object.defineProperty(w,"RecordBatchFileReader",{enumerable:!0,get:function(){return La.RecordBatchFileReader}});Object.defineProperty(w,"RecordBatchStreamReader",{enumerable:!0,get:function(){return La.RecordBatchStreamReader}});Object.defineProperty(w,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return La.AsyncRecordBatchFileReader}});Object.defineProperty(w,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return La.AsyncRecordBatchStreamReader}});var _l=Ec();Object.defineProperty(w,"RecordBatchWriter",{enumerable:!0,get:function(){return _l.RecordBatchWriter}});Object.defineProperty(w,"RecordBatchFileWriter",{enumerable:!0,get:function(){return _l.RecordBatchFileWriter}});Object.defineProperty(w,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return _l.RecordBatchStreamWriter}});Object.defineProperty(w,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return _l.RecordBatchJSONWriter}});var M_=Tc();Object.defineProperty(w,"MessageReader",{enumerable:!0,get:function(){return M_.MessageReader}});Object.defineProperty(w,"AsyncMessageReader",{enumerable:!0,get:function(){return M_.AsyncMessageReader}});Object.defineProperty(w,"JSONMessageReader",{enumerable:!0,get:function(){return M_.JSONMessageReader}});var vU=Qn();Object.defineProperty(w,"Message",{enumerable:!0,get:function(){return vU.Message}});var wU=Ai();Object.defineProperty(w,"RecordBatch",{enumerable:!0,get:function(){return wU.RecordBatch}});var U_=C1();Object.defineProperty(w,"DataFrame",{enumerable:!0,get:function(){return U_.DataFrame}});Object.defineProperty(w,"FilteredDataFrame",{enumerable:!0,get:function(){return U_.FilteredDataFrame}});Object.defineProperty(w,"CountByResult",{enumerable:!0,get:function(){return U_.CountByResult}});var jU=ua(),BU=Nh(),TU=Zr(),SU=na(),IU=gt(),AU=ya(),DU=D_();w.predicate=DU;var k_=ip();w.util=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jU),BU),TU),SU),IU),AU),{compareSchemas:k_.compareSchemas,compareFields:k_.compareFields,compareTypes:k_.compareTypes});var FU=Jn();Object.defineProperty(w,"isTypedArray",{enumerable:!0,get:function(){return FU.isTypedArray}})});var rB=V((exports,module)=>{(function(){"use strict";var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(r){return Object.prototype.toString.call(r)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(r){return typeof r=="object"&&r.buffer&&r.buffer.constructor===ArrayBuffer});var createOutputMethod=function(r,e){return function(t){return new Sha256(e,!0).update(t)[r]()}},createMethod=function(r){var e=createOutputMethod("hex",r);NODE_JS&&(e=nodeWrap(e,r)),e.create=function(){return new Sha256(r)},e.update=function(n){return e.create().update(n)};for(var t=0;t<OUTPUT_TYPES.length;++t){var i=OUTPUT_TYPES[t];e[i]=createOutputMethod(i,r)}return e},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(r){if(typeof r=="string")return crypto.createHash(algorithm).update(r,"utf8").digest("hex");if(r==null)throw new Error(ERROR);return r.constructor===ArrayBuffer&&(r=new Uint8Array(r)),Array.isArray(r)||ArrayBuffer.isView(r)||r.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(r)).digest("hex"):method(r)};return nodeMethod},createHmacOutputMethod=function(r,e){return function(t,i){return new HmacSha256(t,e,!0).update(i)[r]()}},createHmacMethod=function(r){var e=createHmacOutputMethod("hex",r);e.create=function(n){return new HmacSha256(n,r)},e.update=function(n,s){return e.create(n).update(s)};for(var t=0;t<OUTPUT_TYPES.length;++t){var i=OUTPUT_TYPES[t];e[i]=createHmacOutputMethod(i,r)}return e};function Sha256(r,e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=r}Sha256.prototype.update=function(r){if(!this.finalized){var e,t=typeof r;if(t!=="string"){if(t==="object"){if(r===null)throw new Error(ERROR);if(ARRAY_BUFFER&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!Array.isArray(r)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(r)))throw new Error(ERROR)}else throw new Error(ERROR);e=!0}for(var i,n=0,s,u=r.length,p=this.blocks;n<u;){if(this.hashed&&(this.hashed=!1,p[0]=this.block,p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0),e)for(s=this.start;n<u&&s<64;++n)p[s>>2]|=r[n]<<SHIFT[s++&3];else for(s=this.start;n<u&&s<64;++n)i=r.charCodeAt(n),i<128?p[s>>2]|=i<<SHIFT[s++&3]:i<2048?(p[s>>2]|=(192|i>>6)<<SHIFT[s++&3],p[s>>2]|=(128|i&63)<<SHIFT[s++&3]):i<55296||i>=57344?(p[s>>2]|=(224|i>>12)<<SHIFT[s++&3],p[s>>2]|=(128|i>>6&63)<<SHIFT[s++&3],p[s>>2]|=(128|i&63)<<SHIFT[s++&3]):(i=65536+((i&1023)<<10|r.charCodeAt(++n)&1023),p[s>>2]|=(240|i>>18)<<SHIFT[s++&3],p[s>>2]|=(128|i>>12&63)<<SHIFT[s++&3],p[s>>2]|=(128|i>>6&63)<<SHIFT[s++&3],p[s>>2]|=(128|i&63)<<SHIFT[s++&3]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.block=p[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var r=this.blocks,e=this.lastByteIndex;r[16]=this.block,r[e>>2]|=EXTRA[e&3],this.block=r[16],e>=56&&(this.hashed||this.hash(),r[0]=this.block,r[16]=r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=r[11]=r[12]=r[13]=r[14]=r[15]=0),r[14]=this.hBytes<<3|this.bytes>>>29,r[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var r=this.h0,e=this.h1,t=this.h2,i=this.h3,n=this.h4,s=this.h5,u=this.h6,p=this.h7,m=this.blocks,B,O,R,W,N,Se,ye,Ee,He,Tt,Pr;for(B=16;B<64;++B)N=m[B-15],O=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=m[B-2],R=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,m[B]=m[B-16]+O+m[B-7]+R<<0;for(Pr=e&t,B=0;B<64;B+=4)this.first?(this.is224?(Ee=300032,N=m[0]-1413257819,p=N-150054599<<0,i=N+24177077<<0):(Ee=704751109,N=m[0]-210244248,p=N-1521486534<<0,i=N+143694565<<0),this.first=!1):(O=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),R=(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7),Ee=r&e,W=Ee^r&t^Pr,ye=n&s^~n&u,N=p+R+ye+K[B]+m[B],Se=O+W,p=i+N<<0,i=N+Se<<0),O=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),R=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),He=i&r,W=He^i&e^Ee,ye=p&n^~p&s,N=u+R+ye+K[B+1]+m[B+1],Se=O+W,u=t+N<<0,t=N+Se<<0,O=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),R=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),Tt=t&i,W=Tt^t&r^He,ye=u&p^~u&n,N=s+R+ye+K[B+2]+m[B+2],Se=O+W,s=e+N<<0,e=N+Se<<0,O=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),R=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),Pr=e&t,W=Pr^e&i^Tt,ye=s&u^~s&p,N=n+R+ye+K[B+3]+m[B+3],Se=O+W,n=r+N<<0,r=N+Se<<0;this.h0=this.h0+r<<0,this.h1=this.h1+e<<0,this.h2=this.h2+t<<0,this.h3=this.h3+i<<0,this.h4=this.h4+n<<0,this.h5=this.h5+s<<0,this.h6=this.h6+u<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var r=this.h0,e=this.h1,t=this.h2,i=this.h3,n=this.h4,s=this.h5,u=this.h6,p=this.h7,m=HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[n&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15];return this.is224||(m+=HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[p&15]),m},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var r=this.h0,e=this.h1,t=this.h2,i=this.h3,n=this.h4,s=this.h5,u=this.h6,p=this.h7,m=[r>>24&255,r>>16&255,r>>8&255,r&255,e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,i>>24&255,i>>16&255,i>>8&255,i&255,n>>24&255,n>>16&255,n>>8&255,n&255,s>>24&255,s>>16&255,s>>8&255,s&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||m.push(p>>24&255,p>>16&255,p>>8&255,p&255),m},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var r=new ArrayBuffer(this.is224?28:32),e=new DataView(r);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),r};function HmacSha256(r,e,t){var i,n=typeof r;if(n==="string"){var s=[],u=r.length,p=0,m;for(i=0;i<u;++i)m=r.charCodeAt(i),m<128?s[p++]=m:m<2048?(s[p++]=192|m>>6,s[p++]=128|m&63):m<55296||m>=57344?(s[p++]=224|m>>12,s[p++]=128|m>>6&63,s[p++]=128|m&63):(m=65536+((m&1023)<<10|r.charCodeAt(++i)&1023),s[p++]=240|m>>18,s[p++]=128|m>>12&63,s[p++]=128|m>>6&63,s[p++]=128|m&63);r=s}else if(n==="object"){if(r===null)throw new Error(ERROR);if(ARRAY_BUFFER&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!Array.isArray(r)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(r)))throw new Error(ERROR)}else throw new Error(ERROR);r.length>64&&(r=new Sha256(e,!0).update(r).array());var B=[],O=[];for(i=0;i<64;++i){var R=r[i]||0;B[i]=92^R,O[i]=54^R}Sha256.call(this,e,t),this.update(O),this.oKeyPad=B,this.inner=!0,this.sharedMemory=t}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var r=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(r),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()});var za=V(()=>{});var K_=V(()=>{});var _E={};zA(_E,{BROWSER_RUNTIME:()=>ct,ConsoleLogger:()=>X1,DEFAULT_RUNTIME:()=>N_,DuckDBBindingsBase:()=>jl,DuckDBConnection:()=>bl,DuckDBDataProtocol:()=>x_,DuckDBFeature:()=>z1,FileFlags:()=>V_,FileStatistics:()=>wl,JSONTableShape:()=>W1,LogEvent:()=>$1,LogLevel:()=>Y1,LogOrigin:()=>K1,LogTopic:()=>G1,PACKAGE_NAME:()=>L_,PACKAGE_VERSION:()=>q_,PACKAGE_VERSION_MAJOR:()=>rE,PACKAGE_VERSION_MINOR:()=>iE,PACKAGE_VERSION_PATCH:()=>nE,PreparedStatement:()=>E_,ResultStreamIterator:()=>gl,StatusCode:()=>L1,VoidLogger:()=>J1,callSRet:()=>qe,copyBuffer:()=>os,createDuckDB:()=>pE,decodeText:()=>H1,dropResponseBuffers:()=>Ke,failWith:()=>Nr,getJsDelivrBundles:()=>sE,getLogEventLabel:()=>UU,getLogLevelLabel:()=>MU,getLogOriginLabel:()=>RU,getLogTopicLabel:()=>EU,getPlatformFeatures:()=>Tl,readString:()=>Ie,selectBundle:()=>aE});var R1=Yr(ra(),1),x1=Yr(lc(),1),Do=Yr(Ma(),1),Fo=Yr(Ec(),1),V1=Yr(w1(),1),N1=Yr(T1(),1),yl=Yr(S1(),1),ml=Yr(I1(),1),F=Yr(E1(),1);R1.default.toDOMStream=V1.toDOMStream;x1.Builder.throughDOM=N1.builderThroughDOMStream;Do.RecordBatchReader.throughDOM=yl.recordBatchReaderThroughDOMStream;Do.RecordBatchFileReader.throughDOM=yl.recordBatchReaderThroughDOMStream;Do.RecordBatchStreamReader.throughDOM=yl.recordBatchReaderThroughDOMStream;Fo.RecordBatchWriter.throughDOM=ml.recordBatchWriterThroughDOMStream;Fo.RecordBatchFileWriter.throughDOM=ml.recordBatchWriterThroughDOMStream;Fo.RecordBatchStreamWriter.throughDOM=ml.recordBatchWriterThroughDOMStream;var bl=class{constructor(e,t){this._bindings=e,this._conn=t}close(){this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}query(e){let t=this._bindings.runQuery(this._conn,e),i=F.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),F.Table.from(i)}send(e){let t=this._bindings.sendQuery(this._conn,e),i=new gl(this._bindings,this._conn,t),n=F.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}getTableNames(e){return this._bindings.getTableNames(this._conn,e)}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new E_(this._bindings,this._conn,t)}createScalarFunction(e,t,i){this._bindings.createScalarFunction(this._conn,e,t,i)}insertArrowTable(e,t){let i=e.serialize("binary",!0);this.insertArrowFromIPCStream(i,t)}insertArrowFromIPCStream(e,t){this._bindings.insertArrowFromIPCStream(this._conn,e,t)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}},gl=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}},E_=class{constructor(e,t,i){this.bindings=e,this.connectionId=t,this.statementId=i}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...e){let t=this.bindings.runPrepared(this.connectionId,this.statementId,e),i=F.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),F.Table.from(i)}send(...e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),i=new gl(this.bindings,this.connectionId,t),n=F.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}};var L1=(e=>(e[e.SUCCESS=0]="SUCCESS",e))(L1||{});var OU=new TextEncoder;function qa(r,e,t){let i=OU.encode(t),n=r._malloc(i.byteLength),s=r.HEAPU8.subarray(n,n+i.byteLength);s.set(i),r.HEAPF64[(e>>3)+0]=1,r.HEAPF64[(e>>3)+1]=n,r.HEAPF64[(e>>3)+2]=s.byteLength}function R_(r){switch(r){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function bn(r,e,t,i){let n=r.HEAPU8.subarray(e,e+i*R_(t));switch(t){case"UINT8":return new Uint8Array(n.buffer,n.byteOffset,i);case"INT8":return new Int8Array(n.buffer,n.byteOffset,i);case"INT32":return new Int32Array(n.buffer,n.byteOffset,i);case"FLOAT":return new Float32Array(n.buffer,n.byteOffset,i);case"DOUBLE":return new Float64Array(n.buffer,n.byteOffset,i);case"VARCHAR":return new Float64Array(n.buffer,n.byteOffset,i);default:return new Array(0)}}function vl(r,e,t,i,n,s,u,p){try{let m=r._udfFunctions.get(i);if(!m){qa(e,t,"Unknown UDF with id: "+i);return}let B=new TextDecoder().decode(e.HEAPU8.subarray(n,n+s)),O=JSON.parse(B),R=bn(e,u,"DOUBLE",p/8),W=[],N=[];for(let ge in O.args){let Ne=O.args[ge],ze=bn(e,R[Ne.data_buffer],Ne.physical_type,O.rows),tr=bn(e,R[Ne.validity_buffer],"UINT8",O.rows);if(ze.length==0||tr.length==0){qa(e,t,"Can't create physical arrays for argument "+Ne.physical_type);return}if(W.push(tr),Ne.physical_type=="VARCHAR"){let Vt=bn(e,R[Ne.length_buffer],"DOUBLE",O.rows),rr=[],Kt=new TextDecoder;for(let Ye=0;Ye<O.rows;++Ye){if(!tr[Ye]){rr.push(void 0);continue}let Jt=e.HEAPU8.subarray(ze[Ye],ze[Ye]+Vt[Ye]),Bn=Kt.decode(Jt);rr.push(Bn)}N.push(rr)}else N.push(ze)}let Se=O.rows*R_(O.ret.physical_type),ye=e._malloc(Se),Ee=bn(e,ye,O.ret.physical_type,O.rows),He=e._malloc(O.rows),Tt=bn(e,He,"UINT8",O.rows);if(Ee.length==0||Tt.length==0){qa(e,t,"Can't create physical arrays for result");return}let Pr=Ee;switch(O.ret.physical_type=="VARCHAR"&&(Ee=new Array(O.rows)),O.args.length){case 0:for(let ge=0;ge<O.rows;++ge){let Ne=m.func();Ee[ge]=Ne,Tt[ge]=Ne==null?0:1}break;case 1:for(let ge=0;ge<O.rows;++ge){let Ne=m.func(W[0][ge]?N[0][ge]:void 0);Ee[ge]=Ne,Tt[ge]=Ne==null?0:1}break;case 2:for(let ge=0;ge<O.rows;++ge){let Ne=m.func(W[0][ge]?N[0][ge]:void 0,W[1][ge]?N[1][ge]:void 0);Ee[ge]=Ne,Tt[ge]=Ne==null?0:1}break;default:qa(e,t,"Can't deal with argument count: "+O.args.length);return}let Sr=0;if(O.ret.physical_type=="VARCHAR"){let ge=new TextEncoder,Ne=new Array(0),ze=0;Sr=e._malloc(O.rows*R_("DOUBLE"));let tr=bn(e,Sr,"DOUBLE",O.rows);for(let Ye=0;Ye<O.rows;++Ye)Ne[Ye]=ge.encode(Ee[Ye]),ze+=Ne[Ye].length,tr[Ye]=Ne[Ye].length;let Vt=e._malloc(ze),rr=e.HEAPU8.subarray(Vt,Vt+ze),Kt=0;Ee=Pr;for(let Ye=0;Ye<O.rows;++Ye){Ee[Ye]=Vt+Kt;for(let Jt=0;Jt<Ne[Ye].length;Jt++)rr[Kt+Jt]=Ne[Ye][Jt];Kt+=Ne[Ye].length}}let Ir=3*8,Lr=e._malloc(Ir),jn=bn(e,Lr,"DOUBLE",3);jn[0]=ye,jn[1]=He,jn[2]=Sr,e.HEAPF64[(t>>3)+0]=0,e.HEAPF64[(t>>3)+1]=Lr,e.HEAPF64[(t>>3)+2]=0}catch(m){qa(e,t,m.toString())}}function kU(){let r=new TextDecoder;return e=>(typeof SharedArrayBuffer<"u"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),r.decode(e))}var H1=kU();function Nr(r,e){r.ccall("duckdb_web_fail_with",null,["string"],[e])}function os(r,e,t){let i=r.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function Ie(r,e,t){return H1(r.HEAPU8.subarray(e,e+t))}var x_=(n=>(n[n.BUFFER=0]="BUFFER",n[n.NATIVE=1]="NATIVE",n[n.HTTP=3]="HTTP",n[n.S3=4]="S3",n))(x_||{}),V_=(u=>(u[u.FILE_FLAGS_READ=1]="FILE_FLAGS_READ",u[u.FILE_FLAGS_WRITE=2]="FILE_FLAGS_WRITE",u[u.FILE_FLAGS_DIRECT_IO=4]="FILE_FLAGS_DIRECT_IO",u[u.FILE_FLAGS_FILE_CREATE=8]="FILE_FLAGS_FILE_CREATE",u[u.FILE_FLAGS_FILE_CREATE_NEW=16]="FILE_FLAGS_FILE_CREATE_NEW",u[u.FILE_FLAGS_APPEND=32]="FILE_FLAGS_APPEND",u))(V_||{});function qe(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 u=r.HEAPF64[(s>>3)+0],p=r.HEAPF64[(s>>3)+1],m=r.HEAPF64[(s>>3)+2];return r.stackRestore(n),[u,p,m]}function Ke(r){r.ccall("duckdb_web_clear_response",null,[],[])}var N_={_udfFunctions:new Map,testPlatformFeature:(r,e)=>!1,openFile:(r,e,t)=>{},syncFile:(r,e)=>{},closeFile:(r,e)=>{},getLastFileModificationTime:(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)=>{},callScalarUDF:(r,e,t,i,n,s,u)=>{vl(N_,r,e,t,i,n,s,u)}};var wl=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}};function P_(r){switch(r.typeId){case F.Type.Binary:return{type:"binary"};case F.Type.Bool:return{type:"bool"};case F.Type.Date:return{type:"date"};case F.Type.DateDay:return{type:"date32[d]"};case F.Type.DateMillisecond:return{type:"date64[ms]"};case F.Type.Decimal:{let e=r;return{type:"decimal",precision:e.precision,scale:e.scale}}case F.Type.Float:return{type:"float"};case F.Type.Float16:return{type:"float16"};case F.Type.Float32:return{type:"float32"};case F.Type.Float64:return{type:"float64"};case F.Type.Int:return{type:"int32"};case F.Type.Int16:return{type:"int16"};case F.Type.Int32:return{type:"int32"};case F.Type.Int64:return{type:"int64"};case F.Type.Uint16:return{type:"uint16"};case F.Type.Uint32:return{type:"uint32"};case F.Type.Uint64:return{type:"uint64"};case F.Type.Uint8:return{type:"uint8"};case F.Type.IntervalDayTime:return{type:"interval[dt]"};case F.Type.IntervalYearMonth:return{type:"interval[m]"};case F.Type.List:{let e=r;return{type:"list",children:[Ha(e.valueField.name,e.valueField.type)]}}case F.Type.FixedSizeBinary:return{type:"fixedsizebinary",byteWidth:r.byteWidth};case F.Type.Null:return{type:"null"};case F.Type.Utf8:return{type:"utf8"};case F.Type.Struct:return{type:"struct",children:r.children.map(t=>Ha(t.name,t.type))};case F.Type.Time:return{type:"time[s]"};case F.Type.TimeMicrosecond:return{type:"time[us]"};case F.Type.TimeMillisecond:return{type:"time[ms]"};case F.Type.TimeNanosecond:return{type:"time[ns]"};case F.Type.TimeSecond:return{type:"time[s]"};case F.Type.Timestamp:return{type:"timestamp",timezone:r.timezone||void 0};case F.Type.TimestampSecond:return{type:"timestamp[s]",timezone:r.timezone||void 0};case F.Type.TimestampMicrosecond:return{type:"timestamp[us]",timezone:r.timezone||void 0};case F.Type.TimestampNanosecond:return{type:"timestamp[ns]",timezone:r.timezone||void 0};case F.Type.TimestampMillisecond:return{type:"timestamp[ms]",timezone:r.timezone||void 0}}throw new Error(`unsupported arrow type: ${r.toString()}`)}function Ha(r,e){let t=P_(e);return t.name=r,t}var CU=new TextEncoder,z1=(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",s))(z1||{}),jl=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=e,this._runtime=t,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(e=t=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(e),await this._initPromise),this._initPromise=new Promise(t=>{this._initPromiseResolver=t}),this.onInstantiationProgress=[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.onInstantiationProgress=this.onInstantiationProgress.filter(t=>t!=e),this)}open(e){let[t,i,n]=qe(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==0)throw new Error(Ie(this.mod,i,n));Ke(this.mod)}reset(){let[e,t,i]=qe(this.mod,"duckdb_web_reset",[],[]);if(e!==0)throw new Error(Ie(this.mod,t,i));Ke(this.mod)}getVersion(){let[e,t,i]=qe(this.mod,"duckdb_web_get_version",[],[]);if(e!==0)throw new Error(Ie(this.mod,t,i));let n=Ie(this.mod,t,i);return Ke(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,i,n]=qe(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));let s=Ie(this.mod,i,n);return Ke(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new bl(this,e)}disconnect(e){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[e]),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"dropUDFFunctions",connectionId:e})}runQuery(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));let u=os(this.mod,n,s);return Ke(this.mod),u}sendQuery(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));let u=os(this.mod,n,s);return Ke(this.mod),u}fetchQueryResults(e){let[t,i,n]=qe(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));let s=os(this.mod,i,n);return Ke(this.mod),s}getTableNames(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_get_tablenames",["number","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));let u=Ie(this.mod,n,s);return Ke(this.mod),JSON.parse(u)}createScalarFunction(e,t,i,n){let s={functionId:this._nextUDFId,name:t,returnType:P_(i)},u={functionId:s.functionId,connectionId:e,name:t,returnType:i,func:n};this._nextUDFId+=1;let[p,m,B]=qe(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[e,JSON.stringify(s)]);if(p!==0)throw new Error(Ie(this.mod,m,B));if(Ke(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(u.functionId,u),this.pthread)for(let O of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])O.postMessage({cmd:"registerUDFFunction",udf:u})}createPrepared(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_prepared_create",["number","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));return Ke(this.mod),n}closePrepared(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));Ke(this.mod)}runPrepared(e,t,i){let[n,s,u]=qe(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==0)throw new Error(Ie(this.mod,s,u));let p=os(this.mod,s,u);return Ke(this.mod),p}sendPrepared(e,t,i){let[n,s,u]=qe(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==0)throw new Error(Ie(this.mod,s,u));let p=os(this.mod,s,u);return Ke(this.mod),p}insertArrowFromIPCStream(e,t,i){if(t.length==0)return;let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let u=i?JSON.stringify(i):"",[p,m,B]=qe(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,u]);if(p!==0)throw new Error(Ie(this.mod,m,B))}insertCSVFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let B in i.columns)i.columnsFlat.push(Ha(B,i.columns[B]))}let n=Wr({},i);n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,p,m]=qe(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,s]);if(u!==0)throw new Error(Ie(this.mod,p,m))}insertJSONFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let B in i.columns)i.columnsFlat.push(Ha(B,i.columns[B]))}let n=Wr({},i);n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,p,m]=qe(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,s]);if(u!==0)throw new Error(Ie(this.mod,p,m))}globFiles(e){let[t,i,n]=qe(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));let s=Ie(this.mod,i,n);Ke(this.mod);let u=JSON.parse(s);return u==null?[]:u}registerFileURL(e,t){t===void 0&&(t=e);let[i,n,s]=qe(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[e,t,-1]);if(i!==0)throw new Error(Ie(this.mod,n,s));Ke(this.mod)}registerFileText(e,t){let i=CU.encode(t);this.registerFileBuffer(e,i)}registerFileBuffer(e,t){let i=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(i,i+t.length).set(t);let[s,u,p]=qe(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,i,t.length]);if(s!==0)throw new Error(Ie(this.mod,u,p));Ke(this.mod)}registerFileHandle(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[e,e,-1]);if(i!==0)throw new Error(Ie(this.mod,n,s));if(Ke(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let u of this.pthread.runningWorkers)u.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let u of this.pthread.unusedWorkers)u.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){let[t,i,n]=qe(this.mod,"duckdb_web_fs_drop_file",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));Ke(this.mod)}dropFiles(){let[e,t,i]=qe(this.mod,"duckdb_web_fs_drop_files",[],[]);if(e!==0)throw new Error(Ie(this.mod,t,i));Ke(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));Ke(this.mod)}copyFileToBuffer(e){let[t,i,n]=qe(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));let s=this.mod.HEAPU8.subarray(i,i+n),u=new Uint8Array(s.length);return u.set(s),Ke(this.mod),u}collectFileStatistics(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s))}exportFileStatistics(e){let[t,i,n]=qe(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));return new wl(this.mod.HEAPU8.subarray(i,i+n))}};var W1=(t=>(t.ROW_ARRAY="row-array",t.COLUMN_OBJECT="column-object",t))(W1||{});var Y1=(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",s))(Y1||{}),G1=(u=>(u[u.NONE=0]="NONE",u[u.CONNECT=1]="CONNECT",u[u.DISCONNECT=2]="DISCONNECT",u[u.OPEN=3]="OPEN",u[u.QUERY=4]="QUERY",u[u.INSTANTIATE=5]="INSTANTIATE",u))(G1||{}),$1=(u=>(u[u.NONE=0]="NONE",u[u.OK=1]="OK",u[u.ERROR=2]="ERROR",u[u.START=3]="START",u[u.RUN=4]="RUN",u[u.CAPTURE=5]="CAPTURE",u))($1||{}),K1=(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",s))(K1||{}),J1=class{log(e){}},X1=class{log(e){console.log(e)}};function MU(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 UU(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 EU(r){switch(r){case 1:return"CONNECT";case 2:return"DISCONNECT";case 5:return"INSTANTIATE";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function RU(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 Z1=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),Q1=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11]));var eB=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]));var tB=()=>(async r=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(r)}catch(e){return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]));var VU="@duckdb/duckdb-wasm",NU="1.13.1-dev161.0",PU="DuckDB powered by WebAssembly",LU="MPL-2.0",qU={type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},HU=["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],zU={"apache-arrow":"^6.0.1","wasm-feature-detect":"^1.2.11","fast-glob":"^3.2.11","web-worker":"^1.2.0","@types/emscripten":"^1.39.6","js-sha256":"^0.9.0"},WU={"@types/jasmine":"^3.10.3","@typescript-eslint/eslint-plugin":"^5.11.0","@typescript-eslint/parser":"^5.11.0",esbuild:"^0.14.21",eslint:"^8.8.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.28.0",jasmine:"^4.0.2","jasmine-core":"^4.0.0","jasmine-spec-reporter":"^7.0.0",karma:"^6.3.15","karma-chrome-launcher":"^3.1.0","karma-coverage":"^2.2.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^4.0.1","karma-jasmine-html-reporter":"^1.7.0","karma-sourcemap-loader":"^0.3.8","karma-spec-reporter":"^0.0.33","make-dir":"^3.1.0",nyc:"^15.1.0",prettier:"^2.5.1",puppeteer:"^13.3.0",rimraf:"^3.0.2",s3rver:"^3.7.1",typedoc:"^0.22.11",typescript:"^4.5.5"},YU={"build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",docs:"typedoc",report:"node ./coverage.mjs","test:node":"node --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:debug":"node --inspect-brk --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:coverage":"nyc -r json --report-dir ./coverage/node node --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:firefox":"karma start ./karma/tests-firefox.cjs","test:chrome":"karma start ./karma/tests-chrome.cjs","test:chrome:eh":"karma start ./karma/tests-chrome-eh.cjs","test:chrome:coverage":"karma start ./karma/tests-chrome-coverage.cjs","test:browser":"karma start ./karma/tests-all.cjs","test:browser:debug":"karma start ./karma/tests-debug.cjs",test:"npm run test:chrome && npm run test:node","test:coverage":"npm run test:chrome:coverage && npm run test:node:coverage && npm run report",lint:"eslint src test"},GU=["dist","!dist/types/test"],$U="dist/duckdb-browser.cjs",KU="dist/duckdb-browser.mjs",JU="dist/duckdb-browser.d.ts",XU="dist/duckdb-browser.cjs",ZU="dist/duckdb-browser.mjs",QU=!1,eE={fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},tE={"./dist/duckdb-mvp.wasm":"./dist/duckdb-mvp.wasm","./dist/duckdb-eh.wasm":"./dist/duckdb-eh.wasm","./dist/duckdb-coi.wasm":"./dist/duckdb-coi.wasm","./dist/duckdb-browser":"./dist/duckdb-browser.mjs","./dist/duckdb-browser.cjs":"./dist/duckdb-browser.cjs","./dist/duckdb-browser.mjs":"./dist/duckdb-browser.mjs","./dist/duckdb-browser-blocking":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.mjs":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.cjs":"./dist/duckdb-browser-blocking.cjs","./dist/duckdb-browser-coi.pthread.worker.js":"./dist/duckdb-browser-coi.pthread.worker.js","./dist/duckdb-browser-coi.worker.js":"./dist/duckdb-browser-coi.worker.js","./dist/duckdb-browser-eh.worker.js":"./dist/duckdb-browser-eh.worker.js","./dist/duckdb-browser-mvp.worker.js":"./dist/duckdb-browser-mvp.worker.js","./dist/duckdb-node":"./dist/duckdb-node.cjs","./dist/duckdb-node.cjs":"./dist/duckdb-node.cjs","./dist/duckdb-node-blocking":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-blocking.cjs":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-eh.worker.cjs":"./dist/duckdb-node-eh.worker.cjs","./dist/duckdb-node-mvp.worker.cjs":"./dist/duckdb-node-mvp.worker.cjs","./blocking":{browser:{types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},node:{types:"./dist/duckdb-node-blocking.d.ts",require:"./dist/duckdb-node-blocking.cjs",import:"./dist/duckdb-node-blocking.cjs"},types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},".":{browser:{types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"},node:{types:"./dist/duckdb-node.d.ts",import:"./dist/duckdb-node.cjs",require:"./dist/duckdb-node.cjs"},types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"}},Bl={name:VU,version:NU,description:PU,license:LU,repository:qU,keywords:HU,dependencies:zU,devDependencies:WU,scripts:YU,files:GU,main:$U,module:KU,types:JU,jsdelivr:XU,unpkg:ZU,sideEffects:QU,browser:eE,exports:tE};var L_=Bl.name,q_=Bl.version,H_=Bl.version.split("."),rE=H_[0],iE=H_[1],nE=H_[2];function sE(){let r=`https://cdn.jsdelivr.net/npm/${L_}@${q_}/dist/`;return{mvp:{mainModule:`${r}duckdb-mvp.wasm`,mainWorker:`${r}duckdb-browser-mvp.worker.js`},eh:{mainModule:`${r}duckdb-eh.wasm`,mainWorker:`${r}duckdb-browser-eh.worker.js`}}}var z_=null,W_=null,Y_=null,G_=null,$_=null;function oE(){return typeof process<"u"&&!1}async function Tl(){return z_==null&&(z_=typeof BigInt64Array<"u"),W_==null&&(W_=await Q1()),Y_==null&&(Y_=await tB()),G_==null&&(G_=await eB()),$_==null&&($_=await Z1()),{bigInt64Array:z_,crossOriginIsolated:oE()||globalThis.crossOriginIsolated||!1,wasmExceptions:W_,wasmSIMD:G_,wasmThreads:Y_,wasmBulkMemory:$_}}async function aE(r){let e=await Tl();if(e.wasmExceptions){if(e.wasmSIMD&&e.wasmThreads&&e.crossOriginIsolated&&r.coi)return{mainModule:r.coi.mainModule,mainWorker:r.coi.mainWorker,pthreadWorker:r.coi.pthreadWorker};if(r.eh)return{mainModule:r.eh.mainModule,mainWorker:r.eh.mainWorker,pthreadWorker:null}}return{mainModule:r.mvp.mainModule,mainWorker:r.mvp.mainWorker,pthreadWorker:null}}var gn=Yr(rB()),iB=function(r,e,t){var i;if((i=r==null?void 0:r.endpoint)==null?void 0:i.startsWith("http")){let n=`${r==null?void 0:r.endpoint}`,s=n.indexOf("://")+3;return n.substring(s)}else return(r==null?void 0:r.endpoint)?`${t}.${r==null?void 0:r.endpoint}`:`${t}.s3.amazonaws.com`};function uE(r,e,t){var n,s,u,p;let i=nB(e);return{url:i.path,query:"",host:iB(r,e,i.bucket),region:(n=r==null?void 0:r.region)!=null?n:"",service:"s3",method:t,accessKeyId:(s=r==null?void 0:r.accessKeyId)!=null?s:"",secretAccessKey:(u=r==null?void 0:r.secretAccessKey)!=null?u:"",sessionToken:(p=r==null?void 0:r.sessionToken)!=null?p:"",dateNow:new Date().toISOString().replace(/-/g,"").split("T")[0],datetimeNow:new Date().toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function cE(r,e=!1){let t="0123456789ABCDEF",i="";for(let n=0;n<r.length;n++){let s=r[n];s>="A"&&s<="Z"||s>="a"&&s<="z"||s>="0"&&s<="9"||s=="_"||s=="-"||s=="~"||s=="."?i+=s:s=="/"?e?i+="%2F":i+=s:(i+="%",i+=t[s.charCodeAt(0)>>4],i+=t[s.charCodeAt(0)&15])}return i}function lE(r,e=null){var Se;let t=(Se=e==null?void 0:e.contentHash)!=null?Se:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",i=new Map;i.set("x-amz-date",r.datetimeNow),i.set("x-amz-content-sha256",t),r.sessionToken&&i.set("x-amz-security-token",r.sessionToken);let n="";(e==null?void 0:e.contentType)&&(n+="content-type;"),n+="host;x-amz-content-sha256;x-amz-date",r.sessionToken&&(n+=";x-amz-security-token");let s=r.method+`
|
|
17
|
+
}`),this._dictionaries=[],this._recordBatches=[],super.close()}};ui.RecordBatchJSONWriter=Uc;function pp(r,e){let t=e;e instanceof fp.Table&&(t=e.chunks,r.reset(void 0,e.schema));for(let i of t)r.write(i);return r.finish()}function _p(r,e){var t,i,n,s;return Vw.__awaiter(this,void 0,void 0,function*(){try{for(t=Vw.__asyncValues(e);i=yield t.next(),!i.done;){let u=i.value;r.write(u)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(s=t.return)&&(yield s.call(t))}finally{if(n)throw n.error}}return r.finish()})}function qw({name:r,type:e,nullable:t}){let i=new dk.JSONTypeAssembler;return{name:r,nullable:t,type:i.visit(e),children:(e.children||[]).map(qw),dictionary:ck.DataType.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:i.visit(e.indices)}:void 0}}function pk(r,e,t=!1){let i=new lk.Field(`${e}`,r.type,r.nullCount>0),n=Lw.JSONVectorAssembler.assemble(new uk.Column(i,[r]));return JSON.stringify({id:e,isDelta:t,data:{count:r.length,columns:n}},null,2)}function _k(r){return JSON.stringify({count:r.length,columns:Lw.JSONVectorAssembler.assemble(r)},null,2)}});var bp=V(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.distributeVectorsIntoRecordBatches=ln.distributeColumnsIntoRecordBatches=ln.ensureSameLengthData=void 0;var Hw=Mr(),mp=St(),yk=sn(),mk=Ai(),yp=new Uint8Array(0),zw=r=>[yp,yp,new Uint8Array(r),yp];function bk(r,e,t=e.reduce((i,n)=>Math.max(i,n.length),0)){let i,n,s=-1,u=e.length,p=[...r.fields],m=[],B=(t+63&-64)>>3;for(;++s<u;)(i=e[s])&&i.length===t?m[s]=i:((n=p[s]).nullable||(p[s]=p[s].clone({nullable:!0})),m[s]=i?i._changeLengthAndBackfillNullBitmap(t):Hw.Data.new(n.type,0,t,t,zw(B)));return[new mp.Schema(p),t,m]}ln.ensureSameLengthData=bk;function gk(r){return Ww(new mp.Schema(r.map(({field:e})=>e)),r)}ln.distributeColumnsIntoRecordBatches=gk;function Ww(r,e){return vk(r,e.map(t=>t instanceof yk.Chunked?t.chunks.map(i=>i.data):[t.data]))}ln.distributeVectorsIntoRecordBatches=Ww;function vk(r,e){let t=[...r.fields],i=[],n={numBatches:e.reduce((R,W)=>Math.max(R,W.length),0)},s=0,u=0,p=-1,m=e.length,B,O=[];for(;n.numBatches-- >0;){for(u=Number.POSITIVE_INFINITY,p=-1;++p<m;)O[p]=B=e[p].shift(),u=Math.min(u,B?B.length:u);isFinite(u)&&(O=wk(t,u,O,e,n),u>0&&(i[s++]=[u,O.slice()]))}return[r=new mp.Schema(t,r.metadata),i.map(R=>new mk.RecordBatch(r,...R))]}function wk(r,e,t,i,n){let s,u,p=0,m=-1,B=i.length,O=(e+63&-64)>>3;for(;++m<B;)(s=t[m])&&(p=s.length)>=e?p===e?t[m]=s:(t[m]=s.slice(0,e),s=s.slice(e,p-e),n.numBatches=Math.max(n.numBatches,i[m].unshift(s))):((u=r[m]).nullable||(r[m]=u.clone({nullable:!0})),t[m]=s?s._changeLengthAndBackfillNullBitmap(e):Hw.Data.new(u.type,0,e,e,zw(O)));return t}});var ht=V(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.BaseVector=void 0;var jk=$e(),Bk=sn(),Tk=ya(),gp=dt(),vp=class extends gp.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`${jk.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 gp.Vector.new(e,t)}concat(...e){return Bk.Chunked.concat(this,...e)}slice(e,t){return Tk.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]=gp.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){}};Rc.BaseVector=vp;vp.prototype[Symbol.isConcatSpreadable]=!0});var wp=V(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.BinaryVector=void 0;var Sk=dt(),Ik=ht(),Ak=Pe(),Yw=class extends Ik.BaseVector{asUtf8(){return Sk.Vector.new(this.data.clone(new Ak.Utf8))}};xc.BinaryVector=Yw});var jp=V(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.BoolVector=void 0;var Dk=Pe(),Fk=ht(),Ok=ci(),Gw=class extends Fk.BaseVector{static from(e){return Ok.vectorFromValuesWithType(()=>new Dk.Bool,e)}};Vc.BoolVector=Gw});var Tp=V(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.DateMillisecondVector=dn.DateDayVector=dn.DateVector=void 0;var kk=$e(),Ck=ht(),$w=ci(),Bp=Pe(),Nc=class extends Ck.BaseVector{static from(...e){return e.length===2?$w.vectorFromValuesWithType(()=>e[1]===kk.DateUnit.DAY?new Bp.DateDay:new Bp.DateMillisecond,e[0]):$w.vectorFromValuesWithType(()=>new Bp.DateMillisecond,e[0])}};dn.DateVector=Nc;var Kw=class extends Nc{};dn.DateDayVector=Kw;var Jw=class extends Nc{};dn.DateMillisecondVector=Jw});var Sp=V(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.DecimalVector=void 0;var Mk=ht(),Xw=class extends Mk.BaseVector{};Pc.DecimalVector=Xw});var qc=V(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.DictionaryVector=void 0;var Uk=Mr(),Zw=dt(),Ek=ht(),Rk=ci(),xk=Pe(),Ip=class extends Ek.BaseVector{constructor(e){super(e);this.indices=Zw.Vector.new(e.clone(this.type.indices))}static from(...e){if(e.length===3){let[t,i,n]=e,s=new xk.Dictionary(t.type,i,null,null);return Zw.Vector.new(Uk.Data.Dictionary(s,0,n.length,0,null,n,t))}return Rk.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)}};Lc.DictionaryVector=Ip;Ip.prototype.indices=null});var Ap=V(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.FixedSizeBinaryVector=void 0;var Vk=ht(),Qw=class extends Vk.BaseVector{};Hc.FixedSizeBinaryVector=Qw});var Dp=V(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.FixedSizeListVector=void 0;var Nk=ht(),ej=class extends Nk.BaseVector{};zc.FixedSizeListVector=ej});var Cp=V(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.Float64Vector=li.Float32Vector=li.Float16Vector=li.FloatVector=void 0;var Pk=Mr(),Lk=dt(),qk=ht(),Hk=ci(),is=Pe(),Sa=class extends qk.BaseVector{static from(e){let t=Yk(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let i=Wk(e.constructor)||t;if(t===null&&(t=i),t&&t===i){let n=new t,s=e.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!zk(t,e.constructor))return Lk.Vector.new(Pk.Data.Float(n,0,s,0,null,e))}}if(t)return Hk.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")}};li.FloatVector=Sa;var Fp=class extends Sa{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}};li.Float16Vector=Fp;var Op=class extends Sa{};li.Float32Vector=Op;var kp=class extends Sa{};li.Float64Vector=kp;var zk=(r,e)=>r===is.Float16&&e!==Uint16Array,Wk=r=>{switch(r){case Uint16Array:return is.Float16;case Float32Array:return is.Float32;case Float64Array:return is.Float64;default:return null}},Yk=r=>{switch(r){case Fp:return is.Float16;case Op:return is.Float32;case kp:return is.Float64;default:return null}}});var Mp=V(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.IntervalYearMonthVector=fn.IntervalDayTimeVector=fn.IntervalVector=void 0;var Gk=ht(),Wc=class extends Gk.BaseVector{};fn.IntervalVector=Wc;var tj=class extends Wc{};fn.IntervalDayTimeVector=tj;var rj=class extends Wc{};fn.IntervalYearMonthVector=rj});var Yc=V(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.Uint64Vector=bt.Uint32Vector=bt.Uint16Vector=bt.Uint8Vector=bt.Int64Vector=bt.Int32Vector=bt.Int16Vector=bt.Int8Vector=bt.IntVector=void 0;var $k=Mr(),Kk=dt(),Jk=ht(),Xk=ci(),ij=Rt(),nj=gt(),ut=Pe(),di=class extends Jk.BaseVector{static from(...e){let[t,i=!1]=e,n=eC(this,i);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let s=Qk(t.constructor,i)||n;if(n===null&&(n=s),n&&n===s){let u=new n,p=t.byteLength/u.ArrayType.BYTES_PER_ELEMENT;return Zk(n,t.constructor)&&(p*=.5),Kk.Vector.new($k.Data.Int(u,0,p,0,null,t))}}if(n)return Xk.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")}};bt.IntVector=di;var Up=class extends di{};bt.Int8Vector=Up;var Ep=class extends di{};bt.Int16Vector=Ep;var Rp=class extends di{};bt.Int32Vector=Rp;var xp=class extends di{toBigInt64Array(){return nj.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}};bt.Int64Vector=xp;var Vp=class extends di{};bt.Uint8Vector=Vp;var Np=class extends di{};bt.Uint16Vector=Np;var Pp=class extends di{};bt.Uint32Vector=Pp;var Lp=class extends di{toBigUint64Array(){return nj.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}};bt.Uint64Vector=Lp;var Zk=(r,e)=>(r===ut.Int64||r===ut.Uint64)&&(e===Int32Array||e===Uint32Array),Qk=(r,e)=>{switch(r){case Int8Array:return ut.Int8;case Int16Array:return ut.Int16;case Int32Array:return e?ut.Int64:ut.Int32;case ij.BigInt64Array:return ut.Int64;case Uint8Array:return ut.Uint8;case Uint16Array:return ut.Uint16;case Uint32Array:return e?ut.Uint64:ut.Uint32;case ij.BigUint64Array:return ut.Uint64;default:return null}},eC=(r,e)=>{switch(r){case Up:return ut.Int8;case Ep:return ut.Int16;case Rp:return e?ut.Int64:ut.Int32;case xp:return ut.Int64;case Vp:return ut.Uint8;case Np:return ut.Uint16;case Pp:return e?ut.Uint64:ut.Uint32;case Lp:return ut.Uint64;default:return null}}});var qp=V(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.ListVector=void 0;var tC=ht(),sj=class extends tC.BaseVector{};Gc.ListVector=sj});var Hp=V($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.MapVector=void 0;var rC=pa(),iC=dt(),nC=ht(),sC=Pe(),oj=class extends nC.BaseVector{asList(){let e=this.type.children[0];return iC.Vector.new(this.data.clone(new sC.List(e)))}bind(e){let t=this.getChildAt(0),{[e]:i,[e+1]:n}=this.valueOffsets;return new rC.MapRow(t.slice(i,n))}};$c.MapVector=oj});var zp=V(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.NullVector=void 0;var oC=ht(),aj=class extends oC.BaseVector{};Kc.NullVector=aj});var Wp=V(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.StructVector=void 0;var aC=pa(),uC=ht(),cC=Symbol.for("rowIndex"),uj=class extends uC.BaseVector{bind(e){let t=this._row||(this._row=new aC.StructRow(this)),i=Object.create(t);return i[cC]=e,i}};Jc.StructVector=uj});var Yp=V(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.TimestampNanosecondVector=gr.TimestampMicrosecondVector=gr.TimestampMillisecondVector=gr.TimestampSecondVector=gr.TimestampVector=void 0;var lC=ht(),co=class extends lC.BaseVector{};gr.TimestampVector=co;var cj=class extends co{};gr.TimestampSecondVector=cj;var lj=class extends co{};gr.TimestampMillisecondVector=lj;var dj=class extends co{};gr.TimestampMicrosecondVector=dj;var fj=class extends co{};gr.TimestampNanosecondVector=fj});var Gp=V(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.TimeNanosecondVector=vr.TimeMicrosecondVector=vr.TimeMillisecondVector=vr.TimeSecondVector=vr.TimeVector=void 0;var dC=ht(),lo=class extends dC.BaseVector{};vr.TimeVector=lo;var hj=class extends lo{};vr.TimeSecondVector=hj;var pj=class extends lo{};vr.TimeMillisecondVector=pj;var _j=class extends lo{};vr.TimeMicrosecondVector=_j;var yj=class extends lo{};vr.TimeNanosecondVector=yj});var $p=V(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.SparseUnionVector=hn.DenseUnionVector=hn.UnionVector=void 0;var fC=ht(),Xc=class extends fC.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}};hn.UnionVector=Xc;var mj=class extends Xc{get valueOffsets(){return this.data.valueOffsets}};hn.DenseUnionVector=mj;var bj=class extends Xc{};hn.SparseUnionVector=bj});var Kp=V(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.Utf8Vector=void 0;var hC=dt(),pC=ht(),gj=Pe(),_C=ci(),vj=class extends pC.BaseVector{static from(e){return _C.vectorFromValuesWithType(()=>new gj.Utf8,e)}asBinary(){return hC.Vector.new(this.data.clone(new gj.Binary))}};Zc.Utf8Vector=vj});var wj=V(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.partial2=pn.partial1=pn.partial0=void 0;function yC(r){return function(){return r(this)}}pn.partial0=yC;function mC(r){return function(e){return r(this,e)}}pn.partial1=mC;function bC(r){return function(e,t){return r(this,e,t)}}pn.partial2=bC});var Zp=V(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.instance=fo.GetVisitor=void 0;var Qc=ua(),gC=Ot(),vC=Rn(),wC=na(),wr=$e(),de=class extends gC.Visitor{};fo.GetVisitor=de;var jC=(r,e)=>864e5*r[e],Jp=(r,e)=>4294967296*r[e+1]+(r[e]>>>0),BC=(r,e)=>4294967296*(r[e+1]/1e3)+(r[e]>>>0)/1e3,TC=(r,e)=>4294967296*(r[e+1]/1e6)+(r[e]>>>0)/1e6,jj=r=>new Date(r),SC=(r,e)=>jj(jC(r,e)),IC=(r,e)=>jj(Jp(r,e)),AC=(r,e)=>null,Bj=(r,e,t)=>{let{[t]:i,[t+1]:n}=e;return i!=null&&n!=null?r.subarray(i,n):null},DC=({offset:r,values:e},t)=>{let i=r+t;return(e[i>>3]&1<<i%8)!==0},Tj=({values:r},e)=>SC(r,e),Sj=({values:r},e)=>IC(r,e*2),fi=({stride:r,values:e},t)=>e[r*t],Ij=({stride:r,values:e},t)=>wC.uint16ToFloat64(e[r*t]),Xp=({stride:r,values:e,type:t},i)=>Qc.BN.new(e.subarray(r*i,r*(i+1)),t.isSigned),FC=({stride:r,values:e},t)=>e.subarray(r*t,r*(t+1)),OC=({values:r,valueOffsets:e},t)=>Bj(r,e,t),kC=({values:r,valueOffsets:e},t)=>{let i=Bj(r,e,t);return i!==null?vC.decodeUtf8(i):null},CC=(r,e)=>r.type.bitWidth<64?fi(r,e):Xp(r,e),MC=(r,e)=>r.type.precision!==wr.Precision.HALF?fi(r,e):Ij(r,e),UC=(r,e)=>r.type.unit===wr.DateUnit.DAY?Tj(r,e):Sj(r,e),Aj=({values:r},e)=>1e3*Jp(r,e*2),Dj=({values:r},e)=>Jp(r,e*2),Fj=({values:r},e)=>BC(r,e*2),Oj=({values:r},e)=>TC(r,e*2),EC=(r,e)=>{switch(r.type.unit){case wr.TimeUnit.SECOND:return Aj(r,e);case wr.TimeUnit.MILLISECOND:return Dj(r,e);case wr.TimeUnit.MICROSECOND:return Fj(r,e);case wr.TimeUnit.NANOSECOND:return Oj(r,e)}},kj=({values:r,stride:e},t)=>r[e*t],Cj=({values:r,stride:e},t)=>r[e*t],Mj=({values:r},e)=>Qc.BN.signed(r.subarray(2*e,2*(e+1))),Uj=({values:r},e)=>Qc.BN.signed(r.subarray(2*e,2*(e+1))),RC=(r,e)=>{switch(r.type.unit){case wr.TimeUnit.SECOND:return kj(r,e);case wr.TimeUnit.MILLISECOND:return Cj(r,e);case wr.TimeUnit.MICROSECOND:return Mj(r,e);case wr.TimeUnit.NANOSECOND:return Uj(r,e)}},xC=({values:r},e)=>Qc.BN.decimal(r.subarray(4*e,4*(e+1))),VC=(r,e)=>{let t=r.getChildAt(0),{valueOffsets:i,stride:n}=r;return t.slice(i[e*n],i[e*n+1])},NC=(r,e)=>r.bind(e),PC=(r,e)=>r.bind(e),LC=(r,e)=>r.type.mode===wr.UnionMode.Dense?Ej(r,e):Rj(r,e),Ej=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(r.valueOffsets[e]):null},Rj=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(e):null},qC=(r,e)=>r.getValue(r.getKey(e)),HC=(r,e)=>r.type.unit===wr.IntervalUnit.DAY_TIME?xj(r,e):Vj(r,e),xj=({values:r},e)=>r.subarray(2*e,2*(e+1)),Vj=({values:r},e)=>{let t=r[e],i=new Int32Array(2);return i[0]=t/12|0,i[1]=t%12|0,i},zC=(r,e)=>{let t=r.getChildAt(0),{stride:i}=r;return t.slice(e*i,(e+1)*i)};de.prototype.visitNull=AC;de.prototype.visitBool=DC;de.prototype.visitInt=CC;de.prototype.visitInt8=fi;de.prototype.visitInt16=fi;de.prototype.visitInt32=fi;de.prototype.visitInt64=Xp;de.prototype.visitUint8=fi;de.prototype.visitUint16=fi;de.prototype.visitUint32=fi;de.prototype.visitUint64=Xp;de.prototype.visitFloat=MC;de.prototype.visitFloat16=Ij;de.prototype.visitFloat32=fi;de.prototype.visitFloat64=fi;de.prototype.visitUtf8=kC;de.prototype.visitBinary=OC;de.prototype.visitFixedSizeBinary=FC;de.prototype.visitDate=UC;de.prototype.visitDateDay=Tj;de.prototype.visitDateMillisecond=Sj;de.prototype.visitTimestamp=EC;de.prototype.visitTimestampSecond=Aj;de.prototype.visitTimestampMillisecond=Dj;de.prototype.visitTimestampMicrosecond=Fj;de.prototype.visitTimestampNanosecond=Oj;de.prototype.visitTime=RC;de.prototype.visitTimeSecond=kj;de.prototype.visitTimeMillisecond=Cj;de.prototype.visitTimeMicrosecond=Mj;de.prototype.visitTimeNanosecond=Uj;de.prototype.visitDecimal=xC;de.prototype.visitList=VC;de.prototype.visitStruct=PC;de.prototype.visitUnion=LC;de.prototype.visitDenseUnion=Ej;de.prototype.visitSparseUnion=Rj;de.prototype.visitDictionary=qC;de.prototype.visitInterval=HC;de.prototype.visitIntervalDayTime=xj;de.prototype.visitIntervalYearMonth=Vj;de.prototype.visitFixedSizeList=zC;de.prototype.visitMap=NC;fo.instance=new de});var qj=V(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.instance=ho.IndexOfVisitor=void 0;var WC=Ot(),Nj=Zr(),Pj=ya(),fe=class extends WC.Visitor{};ho.IndexOfVisitor=fe;function YC(r,e){return e===null&&r.length>0?0:-1}function GC(r,e){let{nullBitmap:t}=r.data;if(!t||r.nullCount<=0)return-1;let i=0;for(let n of new Nj.BitIterator(t,r.data.offset+(e||0),r.length,t,Nj.getBool)){if(!n)return i;++i}return-1}function Ae(r,e,t){if(e===void 0)return-1;if(e===null)return GC(r,t);let i=Pj.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}function Lj(r,e,t){let i=Pj.createElementComparator(e);for(let n=(t||0)-1,s=r.length;++n<s;)if(i(r.get(n)))return n;return-1}fe.prototype.visitNull=YC;fe.prototype.visitBool=Ae;fe.prototype.visitInt=Ae;fe.prototype.visitInt8=Ae;fe.prototype.visitInt16=Ae;fe.prototype.visitInt32=Ae;fe.prototype.visitInt64=Ae;fe.prototype.visitUint8=Ae;fe.prototype.visitUint16=Ae;fe.prototype.visitUint32=Ae;fe.prototype.visitUint64=Ae;fe.prototype.visitFloat=Ae;fe.prototype.visitFloat16=Ae;fe.prototype.visitFloat32=Ae;fe.prototype.visitFloat64=Ae;fe.prototype.visitUtf8=Ae;fe.prototype.visitBinary=Ae;fe.prototype.visitFixedSizeBinary=Ae;fe.prototype.visitDate=Ae;fe.prototype.visitDateDay=Ae;fe.prototype.visitDateMillisecond=Ae;fe.prototype.visitTimestamp=Ae;fe.prototype.visitTimestampSecond=Ae;fe.prototype.visitTimestampMillisecond=Ae;fe.prototype.visitTimestampMicrosecond=Ae;fe.prototype.visitTimestampNanosecond=Ae;fe.prototype.visitTime=Ae;fe.prototype.visitTimeSecond=Ae;fe.prototype.visitTimeMillisecond=Ae;fe.prototype.visitTimeMicrosecond=Ae;fe.prototype.visitTimeNanosecond=Ae;fe.prototype.visitDecimal=Ae;fe.prototype.visitList=Ae;fe.prototype.visitStruct=Ae;fe.prototype.visitUnion=Ae;fe.prototype.visitDenseUnion=Lj;fe.prototype.visitSparseUnion=Lj;fe.prototype.visitDictionary=Ae;fe.prototype.visitInterval=Ae;fe.prototype.visitIntervalDayTime=Ae;fe.prototype.visitIntervalYearMonth=Ae;fe.prototype.visitFixedSizeList=Ae;fe.prototype.visitMap=Ae;ho.instance=new fe});var Qp=V(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.instance=po.IteratorVisitor=void 0;var el=$e(),$C=Ot(),KC=Zr(),Hj=Zp(),he=class extends $C.Visitor{};po.IteratorVisitor=he;function JC(r){let e=Hj.instance.getVisitFn(r);return new KC.BitIterator(r.data.nullBitmap,r.data.offset,r.length,r,(t,i,n,s)=>(n&1<<s)!==0?e(t,i):null)}var zj=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 Be(r){if(r.nullCount>0)return JC(r);let{type:e,typeId:t,length:i}=r;return r.stride===1&&(t===el.Type.Timestamp||t===el.Type.Int&&e.bitWidth!==64||t===el.Type.Time&&e.bitWidth!==64||t===el.Type.Float&&e.precision>0)?r.data.values.subarray(0,i)[Symbol.iterator]():new zj(r,Hj.instance.getVisitFn(r))}he.prototype.visitNull=Be;he.prototype.visitBool=Be;he.prototype.visitInt=Be;he.prototype.visitInt8=Be;he.prototype.visitInt16=Be;he.prototype.visitInt32=Be;he.prototype.visitInt64=Be;he.prototype.visitUint8=Be;he.prototype.visitUint16=Be;he.prototype.visitUint32=Be;he.prototype.visitUint64=Be;he.prototype.visitFloat=Be;he.prototype.visitFloat16=Be;he.prototype.visitFloat32=Be;he.prototype.visitFloat64=Be;he.prototype.visitUtf8=Be;he.prototype.visitBinary=Be;he.prototype.visitFixedSizeBinary=Be;he.prototype.visitDate=Be;he.prototype.visitDateDay=Be;he.prototype.visitDateMillisecond=Be;he.prototype.visitTimestamp=Be;he.prototype.visitTimestampSecond=Be;he.prototype.visitTimestampMillisecond=Be;he.prototype.visitTimestampMicrosecond=Be;he.prototype.visitTimestampNanosecond=Be;he.prototype.visitTime=Be;he.prototype.visitTimeSecond=Be;he.prototype.visitTimeMillisecond=Be;he.prototype.visitTimeMicrosecond=Be;he.prototype.visitTimeNanosecond=Be;he.prototype.visitDecimal=Be;he.prototype.visitList=Be;he.prototype.visitStruct=Be;he.prototype.visitUnion=Be;he.prototype.visitDenseUnion=Be;he.prototype.visitSparseUnion=Be;he.prototype.visitDictionary=Be;he.prototype.visitInterval=Be;he.prototype.visitIntervalDayTime=Be;he.prototype.visitIntervalYearMonth=Be;he.prototype.visitFixedSizeList=Be;he.prototype.visitMap=Be;po.instance=new he});var Wj=V(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.instance=_o.ToArrayVisitor=void 0;var Ia=$e(),XC=Ot(),ZC=Qp(),pe=class extends XC.Visitor{};_o.ToArrayVisitor=pe;function Te(r){let{type:e,length:t,stride:i}=r;switch(e.typeId){case Ia.Type.Int:case Ia.Type.Float:case Ia.Type.Decimal:case Ia.Type.Time:case Ia.Type.Timestamp:return r.data.values.subarray(0,t*i)}return[...ZC.instance.visit(r)]}pe.prototype.visitNull=Te;pe.prototype.visitBool=Te;pe.prototype.visitInt=Te;pe.prototype.visitInt8=Te;pe.prototype.visitInt16=Te;pe.prototype.visitInt32=Te;pe.prototype.visitInt64=Te;pe.prototype.visitUint8=Te;pe.prototype.visitUint16=Te;pe.prototype.visitUint32=Te;pe.prototype.visitUint64=Te;pe.prototype.visitFloat=Te;pe.prototype.visitFloat16=Te;pe.prototype.visitFloat32=Te;pe.prototype.visitFloat64=Te;pe.prototype.visitUtf8=Te;pe.prototype.visitBinary=Te;pe.prototype.visitFixedSizeBinary=Te;pe.prototype.visitDate=Te;pe.prototype.visitDateDay=Te;pe.prototype.visitDateMillisecond=Te;pe.prototype.visitTimestamp=Te;pe.prototype.visitTimestampSecond=Te;pe.prototype.visitTimestampMillisecond=Te;pe.prototype.visitTimestampMicrosecond=Te;pe.prototype.visitTimestampNanosecond=Te;pe.prototype.visitTime=Te;pe.prototype.visitTimeSecond=Te;pe.prototype.visitTimeMillisecond=Te;pe.prototype.visitTimeMicrosecond=Te;pe.prototype.visitTimeNanosecond=Te;pe.prototype.visitDecimal=Te;pe.prototype.visitList=Te;pe.prototype.visitStruct=Te;pe.prototype.visitUnion=Te;pe.prototype.visitDenseUnion=Te;pe.prototype.visitSparseUnion=Te;pe.prototype.visitDictionary=Te;pe.prototype.visitInterval=Te;pe.prototype.visitIntervalDayTime=Te;pe.prototype.visitIntervalYearMonth=Te;pe.prototype.visitFixedSizeList=Te;pe.prototype.visitMap=Te;_o.instance=new pe});var Yj=V(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.instance=yo.ByteWidthVisitor=void 0;var QC=Ot(),eM=$e(),Aa=(r,e)=>r+e,e_=r=>`Cannot compute the byte width of variable-width column ${r}`,t_=class extends QC.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(e_(e))}visitUtf8(e){throw new Error(e_(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===eM.TimeUnit.SECOND?4:8}visitInterval(e){return(e.unit+1)*4}visitList(e){throw new Error(e_(e))}visitStruct(e){return this.visitFields(e.children).reduce(Aa,0)}visitUnion(e){return this.visitFields(e.children).reduce(Aa,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(Aa,0)}visitMap(e){return this.visitFields(e.children).reduce(Aa,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(Aa,0)}};yo.ByteWidthVisitor=t_;yo.instance=new t_});var Gj=V(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.instance=mo.GetVectorConstructor=void 0;var tM=Ot(),rM=wp(),iM=jp(),r_=Tp(),nM=Sp(),sM=qc(),oM=Ap(),aM=Dp(),tl=Cp(),i_=Mp(),Di=Yc(),uM=qp(),cM=Hp(),lM=zp(),dM=Wp(),Da=Yp(),Fa=Gp(),n_=$p(),fM=Kp(),s_=class extends tM.Visitor{visitNull(){return lM.NullVector}visitBool(){return iM.BoolVector}visitInt(){return Di.IntVector}visitInt8(){return Di.Int8Vector}visitInt16(){return Di.Int16Vector}visitInt32(){return Di.Int32Vector}visitInt64(){return Di.Int64Vector}visitUint8(){return Di.Uint8Vector}visitUint16(){return Di.Uint16Vector}visitUint32(){return Di.Uint32Vector}visitUint64(){return Di.Uint64Vector}visitFloat(){return tl.FloatVector}visitFloat16(){return tl.Float16Vector}visitFloat32(){return tl.Float32Vector}visitFloat64(){return tl.Float64Vector}visitUtf8(){return fM.Utf8Vector}visitBinary(){return rM.BinaryVector}visitFixedSizeBinary(){return oM.FixedSizeBinaryVector}visitDate(){return r_.DateVector}visitDateDay(){return r_.DateDayVector}visitDateMillisecond(){return r_.DateMillisecondVector}visitTimestamp(){return Da.TimestampVector}visitTimestampSecond(){return Da.TimestampSecondVector}visitTimestampMillisecond(){return Da.TimestampMillisecondVector}visitTimestampMicrosecond(){return Da.TimestampMicrosecondVector}visitTimestampNanosecond(){return Da.TimestampNanosecondVector}visitTime(){return Fa.TimeVector}visitTimeSecond(){return Fa.TimeSecondVector}visitTimeMillisecond(){return Fa.TimeMillisecondVector}visitTimeMicrosecond(){return Fa.TimeMicrosecondVector}visitTimeNanosecond(){return Fa.TimeNanosecondVector}visitDecimal(){return nM.DecimalVector}visitList(){return uM.ListVector}visitStruct(){return dM.StructVector}visitUnion(){return n_.UnionVector}visitDenseUnion(){return n_.DenseUnionVector}visitSparseUnion(){return n_.SparseUnionVector}visitDictionary(){return sM.DictionaryVector}visitInterval(){return i_.IntervalVector}visitIntervalDayTime(){return i_.IntervalDayTimeVector}visitIntervalYearMonth(){return i_.IntervalYearMonthVector}visitFixedSizeList(){return aM.FixedSizeListVector}visitMap(){return cM.MapVector}};mo.GetVectorConstructor=s_;mo.instance=new s_});var ci=V(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.vectorFromValuesWithType=L.StructRow=L.MapRow=L.Utf8Vector=L.SparseUnionVector=L.DenseUnionVector=L.UnionVector=L.TimeNanosecondVector=L.TimeMicrosecondVector=L.TimeMillisecondVector=L.TimeSecondVector=L.TimeVector=L.TimestampNanosecondVector=L.TimestampMicrosecondVector=L.TimestampMillisecondVector=L.TimestampSecondVector=L.TimestampVector=L.StructVector=L.NullVector=L.MapVector=L.ListVector=L.Uint64Vector=L.Uint32Vector=L.Uint16Vector=L.Uint8Vector=L.Int64Vector=L.Int32Vector=L.Int16Vector=L.Int8Vector=L.IntVector=L.IntervalYearMonthVector=L.IntervalDayTimeVector=L.IntervalVector=L.Float64Vector=L.Float32Vector=L.Float16Vector=L.FloatVector=L.FixedSizeListVector=L.FixedSizeBinaryVector=L.DictionaryVector=L.DecimalVector=L.DateMillisecondVector=L.DateDayVector=L.DateVector=L.Chunked=L.BoolVector=L.BinaryVector=L.BaseVector=L.Vector=void 0;var o_=Et(),hM=dt();Object.defineProperty(L,"Vector",{enumerable:!0,get:function(){return hM.Vector}});var pM=ht();Object.defineProperty(L,"BaseVector",{enumerable:!0,get:function(){return pM.BaseVector}});var _M=wp();Object.defineProperty(L,"BinaryVector",{enumerable:!0,get:function(){return _M.BinaryVector}});var yM=jp();Object.defineProperty(L,"BoolVector",{enumerable:!0,get:function(){return yM.BoolVector}});var mM=sn();Object.defineProperty(L,"Chunked",{enumerable:!0,get:function(){return mM.Chunked}});var u_=Tp();Object.defineProperty(L,"DateVector",{enumerable:!0,get:function(){return u_.DateVector}});Object.defineProperty(L,"DateDayVector",{enumerable:!0,get:function(){return u_.DateDayVector}});Object.defineProperty(L,"DateMillisecondVector",{enumerable:!0,get:function(){return u_.DateMillisecondVector}});var bM=Sp();Object.defineProperty(L,"DecimalVector",{enumerable:!0,get:function(){return bM.DecimalVector}});var gM=qc();Object.defineProperty(L,"DictionaryVector",{enumerable:!0,get:function(){return gM.DictionaryVector}});var vM=Ap();Object.defineProperty(L,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return vM.FixedSizeBinaryVector}});var wM=Dp();Object.defineProperty(L,"FixedSizeListVector",{enumerable:!0,get:function(){return wM.FixedSizeListVector}});var il=Cp();Object.defineProperty(L,"FloatVector",{enumerable:!0,get:function(){return il.FloatVector}});Object.defineProperty(L,"Float16Vector",{enumerable:!0,get:function(){return il.Float16Vector}});Object.defineProperty(L,"Float32Vector",{enumerable:!0,get:function(){return il.Float32Vector}});Object.defineProperty(L,"Float64Vector",{enumerable:!0,get:function(){return il.Float64Vector}});var c_=Mp();Object.defineProperty(L,"IntervalVector",{enumerable:!0,get:function(){return c_.IntervalVector}});Object.defineProperty(L,"IntervalDayTimeVector",{enumerable:!0,get:function(){return c_.IntervalDayTimeVector}});Object.defineProperty(L,"IntervalYearMonthVector",{enumerable:!0,get:function(){return c_.IntervalYearMonthVector}});var Fi=Yc();Object.defineProperty(L,"IntVector",{enumerable:!0,get:function(){return Fi.IntVector}});Object.defineProperty(L,"Int8Vector",{enumerable:!0,get:function(){return Fi.Int8Vector}});Object.defineProperty(L,"Int16Vector",{enumerable:!0,get:function(){return Fi.Int16Vector}});Object.defineProperty(L,"Int32Vector",{enumerable:!0,get:function(){return Fi.Int32Vector}});Object.defineProperty(L,"Int64Vector",{enumerable:!0,get:function(){return Fi.Int64Vector}});Object.defineProperty(L,"Uint8Vector",{enumerable:!0,get:function(){return Fi.Uint8Vector}});Object.defineProperty(L,"Uint16Vector",{enumerable:!0,get:function(){return Fi.Uint16Vector}});Object.defineProperty(L,"Uint32Vector",{enumerable:!0,get:function(){return Fi.Uint32Vector}});Object.defineProperty(L,"Uint64Vector",{enumerable:!0,get:function(){return Fi.Uint64Vector}});var jM=qp();Object.defineProperty(L,"ListVector",{enumerable:!0,get:function(){return jM.ListVector}});var BM=Hp();Object.defineProperty(L,"MapVector",{enumerable:!0,get:function(){return BM.MapVector}});var TM=zp();Object.defineProperty(L,"NullVector",{enumerable:!0,get:function(){return TM.NullVector}});var SM=Wp();Object.defineProperty(L,"StructVector",{enumerable:!0,get:function(){return SM.StructVector}});var ka=Yp();Object.defineProperty(L,"TimestampVector",{enumerable:!0,get:function(){return ka.TimestampVector}});Object.defineProperty(L,"TimestampSecondVector",{enumerable:!0,get:function(){return ka.TimestampSecondVector}});Object.defineProperty(L,"TimestampMillisecondVector",{enumerable:!0,get:function(){return ka.TimestampMillisecondVector}});Object.defineProperty(L,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return ka.TimestampMicrosecondVector}});Object.defineProperty(L,"TimestampNanosecondVector",{enumerable:!0,get:function(){return ka.TimestampNanosecondVector}});var Ca=Gp();Object.defineProperty(L,"TimeVector",{enumerable:!0,get:function(){return Ca.TimeVector}});Object.defineProperty(L,"TimeSecondVector",{enumerable:!0,get:function(){return Ca.TimeSecondVector}});Object.defineProperty(L,"TimeMillisecondVector",{enumerable:!0,get:function(){return Ca.TimeMillisecondVector}});Object.defineProperty(L,"TimeMicrosecondVector",{enumerable:!0,get:function(){return Ca.TimeMicrosecondVector}});Object.defineProperty(L,"TimeNanosecondVector",{enumerable:!0,get:function(){return Ca.TimeNanosecondVector}});var l_=$p();Object.defineProperty(L,"UnionVector",{enumerable:!0,get:function(){return l_.UnionVector}});Object.defineProperty(L,"DenseUnionVector",{enumerable:!0,get:function(){return l_.DenseUnionVector}});Object.defineProperty(L,"SparseUnionVector",{enumerable:!0,get:function(){return l_.SparseUnionVector}});var IM=Kp();Object.defineProperty(L,"Utf8Vector",{enumerable:!0,get:function(){return IM.Utf8Vector}});var Jj=pa();Object.defineProperty(L,"MapRow",{enumerable:!0,get:function(){return Jj.MapRow}});Object.defineProperty(L,"StructRow",{enumerable:!0,get:function(){return Jj.StructRow}});var Oa=wj(),a_=$e(),bo=dt(),$j=sn(),ns=ht(),AM=Zr(),rl=Rt(),Kj=st(),Xj=Zp(),Zj=Bh(),Qj=qj(),e1=Wj(),t1=Qp(),r1=Yj(),i1=Gj();bo.Vector.new=DM;bo.Vector.from=OM;function DM(r,...e){return new(i1.instance.getVisitFn(r)())(r,...e)}function FM(r,e){if(rl.isIterable(e))return bo.Vector.from({nullValues:[null,void 0],type:r(),values:e});if(rl.isAsyncIterable(e))return bo.Vector.from({nullValues:[null,void 0],type:r(),values:e});let{values:t=[],type:i=r(),nullValues:n=[null,void 0]}=Object.assign({},e);return rl.isIterable(t)?bo.Vector.from(Object.assign(Object.assign({nullValues:n},e),{type:i})):bo.Vector.from(Object.assign(Object.assign({nullValues:n},e),{type:i}))}L.vectorFromValuesWithType=FM;function OM(r){let e=Object.assign({nullValues:[null,void 0]},r),{values:t=[]}=e,i=o_.__rest(e,["values"]);if(rl.isIterable(t)){let n=[...Kj.Builder.throughIterable(i)(t)];return n.length===1?n[0]:$j.Chunked.concat(n)}return(n=>o_.__awaiter(this,void 0,void 0,function*(){var s,u;let p=Kj.Builder.throughAsyncIterable(i);try{for(var m=o_.__asyncValues(p(t)),B;B=yield m.next(),!B.done;){let O=B.value;n.push(O)}}catch(O){s={error:O}}finally{try{B&&!B.done&&(u=m.return)&&(yield u.call(m))}finally{if(s)throw s.error}}return n.length===1?n[0]:$j.Chunked.concat(n)}))([])}ns.BaseVector.prototype.get=function(e){return Xj.instance.visit(this,e)};ns.BaseVector.prototype.set=function(e,t){return Zj.instance.visit(this,e,t)};ns.BaseVector.prototype.indexOf=function(e,t){return Qj.instance.visit(this,e,t)};ns.BaseVector.prototype.toArray=function(){return e1.instance.visit(this)};ns.BaseVector.prototype.getByteWidth=function(){return r1.instance.visit(this.type)};ns.BaseVector.prototype[Symbol.iterator]=function(){return t1.instance.visit(this)};ns.BaseVector.prototype._bindDataAccessors=UM;Object.keys(a_.Type).map(r=>a_.Type[r]).filter(r=>typeof r=="number").filter(r=>r!==a_.Type.NONE).forEach(r=>{let e=i1.instance.visit(r);e.prototype.get=Oa.partial1(Xj.instance.getVisitFn(r)),e.prototype.set=Oa.partial2(Zj.instance.getVisitFn(r)),e.prototype.indexOf=Oa.partial2(Qj.instance.getVisitFn(r)),e.prototype.toArray=Oa.partial0(e1.instance.getVisitFn(r)),e.prototype.getByteWidth=kM(r1.instance.getVisitFn(r)),e.prototype[Symbol.iterator]=Oa.partial0(t1.instance.getVisitFn(r))});function kM(r){return function(){return r(this.type)}}function CM(r){return function(e){return this.isValid(e)?r.call(this,e):null}}function MM(r){return function(e,t){AM.setBool(this.nullBitmap,this.offset+e,t!=null)&&r.call(this,e,t)}}function UM(){let r=this.nullBitmap;r&&r.byteLength>0&&(this.get=CM(this.get),this.set=MM(this.set))}});var Ta=V(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.Table=void 0;var nl=Et(),EM=io(),RM=Ma(),n1=Ec(),d_=Ai(),s1=St(),h_=Pe(),o1=Jn(),f_=Rt(),a1=bp(),p_=ci(),jt=class extends p_.Chunked{constructor(...e){var t;let i=null;e[0]instanceof s1.Schema&&(i=e[0]);let n=e[0]instanceof jt?e[0].chunks:o1.selectArgs(d_.RecordBatch,e);if(!i&&!(i=(t=n[0])===null||t===void 0?void 0:t.schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");n[0]||(n[0]=new d_._InternalEmptyPlaceholderRecordBatch(i));super(new h_.Struct(i.fields),n);this._schema=i,this._chunks=n}static empty(e=new s1.Schema([])){return new jt(e,[])}static from(e){if(!e)return jt.empty();if(typeof e=="object"){let i=f_.isIterable(e.values)?xM(e):f_.isAsyncIterable(e.values)?VM(e):null;if(i!==null)return i}let t=RM.RecordBatchReader.from(e);return f_.isPromise(t)?(()=>nl.__awaiter(this,void 0,void 0,function*(){return yield jt.from(yield t)}))():t.isSync()&&(t=t.open())?t.schema?new jt(t.schema,[...t]):jt.empty():(i=>nl.__awaiter(this,void 0,void 0,function*(){var n,s;let u=yield i,p=u.schema,m=[];if(p){try{for(var B=nl.__asyncValues(u),O;O=yield B.next(),!O.done;){let R=O.value;m.push(R)}}catch(R){n={error:R}}finally{try{O&&!O.done&&(s=B.return)&&(yield s.call(B))}finally{if(n)throw n.error}}return new jt(p,m)}return jt.empty()}))(t.open())}static fromAsync(e){return nl.__awaiter(this,void 0,void 0,function*(){return yield jt.from(e)})}static fromStruct(e){return jt.new(e.data.childData,e.type.children)}static new(...e){return new jt(...a1.distributeColumnsIntoRecordBatches(o1.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 jt(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 u=this._chunks.map(p=>p.getChildAt(e)).filter(p=>p!=null);if(u.length>0)return s[e]=new EM.Column(t,u)}return null}serialize(e="binary",t=!0){return(t?n1.RecordBatchStreamWriter:n1.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 jt(t,this._chunks.map(({length:i,data:{childData:n}})=>new d_.RecordBatch(t,i,e.map(s=>n[s]).filter(Boolean))))}assign(e){let t=this._schema.fields,[i,n]=e.schema.fields.reduce((p,m,B)=>{let[O,R]=p,W=t.findIndex(N=>N.name===m.name);return~W?R[W]=B:O.push(B),p},[[],[]]),s=this._schema.assign(e.schema),u=[...t.map((p,m,B,O=n[m])=>O===void 0?this.getColumnAt(m):e.getColumnAt(O)),...i.map(p=>e.getColumnAt(p))].filter(Boolean);return new jt(...a1.distributeVectorsIntoRecordBatches(s,u))}};sl.Table=jt;function xM(r){let{type:e}=r;return e instanceof h_.Struct?jt.fromStruct(p_.StructVector.from(r)):null}function VM(r){let{type:e}=r;return e instanceof h_.Struct?p_.StructVector.from(r).then(t=>jt.fromStruct(t)):null}});var Ai=V(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go._InternalEmptyPlaceholderRecordBatch=go.RecordBatch=void 0;var y_=Mr(),__=Ta(),NM=dt(),PM=Ot(),LM=St(),qM=Rt(),HM=sn(),zM=Jn(),m_=Pe(),WM=bp(),YM=ci(),_n=class extends YM.StructVector{constructor(...e){let t,i=e[0],n;if(e[1]instanceof y_.Data)[,t,n]=e;else{let s=i.fields,[,u,p]=e;t=y_.Data.Struct(new m_.Struct(s),0,u,0,null,p)}super(t,n);this._schema=i}static from(e){return qM.isIterable(e.values),__.Table.from(e)}static new(...e){let[t,i]=zM.selectFieldArgs(e),n=i.filter(s=>s instanceof NM.Vector);return new _n(...WM.ensureSameLengthData(new LM.Schema(t),n.map(s=>s.data)))}clone(e,t=this._children){return new _n(this._schema,e,t)}concat(...e){let t=this._schema,i=HM.Chunked.flatten(this,...e);return new __.Table(t,i.map(({data:n})=>new _n(t,n)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=ol.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 _n(t,this.length,i)}};go.RecordBatch=_n;var u1=class extends _n{constructor(e){super(e,0,e.fields.map(t=>y_.Data.new(t.type,0,0,0)))}};go._InternalEmptyPlaceholderRecordBatch=u1;var ol=class extends PM.Visitor{constructor(){super(...arguments);this.dictionaries=new Map}static collect(e){return new ol().visit(e.data,new m_.Struct(e.schema.fields)).dictionaries}visit(e,t){return m_.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 Ma=V(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.AsyncRecordBatchFileReader=Br.RecordBatchFileReader=Br.AsyncRecordBatchStreamReader=Br.RecordBatchStreamReader=Br.RecordBatchReader=void 0;var Ze=Et(),c1=dt(),al=$e(),p1=Uh(),l1=ra(),d1=en(),Ua=xh(),_1=W0(),b_=Ai(),ss=Os(),Tr=Tc(),jr=Rt(),hi=class extends ss.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 jr.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 l1.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return l1.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 hi?e:jr.isArrowJSON(e)?GM(e):jr.isFileHandle(e)?JM(e):jr.isPromise(e)?(()=>Ze.__awaiter(this,void 0,void 0,function*(){return yield hi.from(yield e)}))():jr.isFetchResponse(e)||jr.isReadableDOMStream(e)||jr.isReadableNodeStream(e)||jr.isAsyncIterable(e)?KM(new d1.AsyncByteStream(e)):$M(new d1.ByteStream(e))}static readAll(e){return e instanceof hi?e.isSync()?f1(e):h1(e):jr.isArrowJSON(e)||ArrayBuffer.isView(e)||jr.isIterable(e)||jr.isIteratorResult(e)?f1(e):h1(e)}};Br.RecordBatchReader=hi;var vo=class extends hi{constructor(e){super(e);this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Ze.__asyncGenerator(this,arguments,function*(){yield Ze.__await(yield*Ze.__asyncDelegator(Ze.__asyncValues(this[Symbol.iterator]())))})}};Br.RecordBatchStreamReader=vo;var wo=class extends hi{constructor(e){super(e);this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}};Br.AsyncRecordBatchStreamReader=wo;var ul=class extends vo{constructor(e){super(e);this._impl=e}};Br.RecordBatchFileReader=ul;var g_=class extends wo{constructor(e){super(e);this._impl=e}};Br.AsyncRecordBatchFileReader=g_;var v_=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 b_.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){let{id:i,isDelta:n,data:s}=e,{dictionaries:u,schema:p}=this,m=u.get(i);if(n||!m){let B=p.dictionaries.get(i);return m&&n?m.concat(c1.Vector.new(this._loadVectors(s,t,[B])[0])):c1.Vector.new(this._loadVectors(s,t,[B])[0])}return m}_loadVectors(e,t,i){return new _1.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}},Ea=class extends v_{constructor(e,t){super(t);this._reader=jr.isArrowJSON(e)?new Tr.JSONMessageReader(this._handle=e):new Tr.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=b1(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):ss.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):ss.ITERATOR_DONE}next(){if(this.closed)return ss.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 b_._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Ra=class extends v_{constructor(e,t){super(t);this._reader=new Tr.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return Ze.__awaiter(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return Ze.__awaiter(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=b1(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return Ze.__awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):ss.ITERATOR_DONE})}return(e){return Ze.__awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):ss.ITERATOR_DONE})}next(){return Ze.__awaiter(this,void 0,void 0,function*(){if(this.closed)return ss.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=yield 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=yield 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 b_._InternalEmptyPlaceholderRecordBatch(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return Ze.__awaiter(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},w_=class extends Ea{constructor(e,t){super(e instanceof Ua.RandomAccessFile?e:new Ua.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(al.MessageHeader.RecordBatch);if(i==null?void 0: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(al.MessageHeader.DictionaryBatch);if(i==null?void 0:i.isDictionaryBatch()){let n=i.header(),s=this._reader.readMessageBody(i.bodyLength),u=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,u)}}}_readFooter(){let{_handle:e}=this,t=e.size-Tr.magicAndPadding,i=e.readInt32(t),n=e.readAt(t-i,i);return p1.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}},y1=class extends Ra{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 Ua.AsyncRandomAccessFile?e:new Ua.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}open(e){let t=Object.create(null,{open:{get:()=>super.open}});return Ze.__awaiter(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let i of this._footer.dictionaryBatches())i&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){return Ze.__awaiter(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());let t=this._footer&&this._footer.getRecordBatch(e);if(t&&(yield this._handle.seek(t.offset))){let i=yield this._reader.readMessage(al.MessageHeader.RecordBatch);if(i==null?void 0:i.isRecordBatch()){let n=i.header(),s=yield this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,s)}}return null})}_readDictionaryBatch(e){return Ze.__awaiter(this,void 0,void 0,function*(){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&(yield this._handle.seek(t.offset))){let i=yield this._reader.readMessage(al.MessageHeader.DictionaryBatch);if(i==null?void 0:i.isDictionaryBatch()){let n=i.header(),s=yield this._reader.readMessageBody(i.bodyLength),u=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,u)}}})}_readFooter(){return Ze.__awaiter(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-Tr.magicAndPadding,i=yield e.readInt32(t),n=yield e.readAt(t-i,i);return p1.Footer.decode(n)})}_readNextMessageAndValidate(e){return Ze.__awaiter(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null})}},m1=class extends Ea{constructor(e,t){super(e,t)}_loadVectors(e,t,i){return new _1.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}};function b1(r,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:r.autoDestroy}function*f1(r){let e=hi.from(r);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function h1(r){return Ze.__asyncGenerator(this,arguments,function*(){let t=yield Ze.__await(hi.from(r));try{if(!(yield Ze.__await(t.open({autoDestroy:!1}))).closed)do yield yield Ze.__await(t);while(!(yield Ze.__await(t.reset().open())).closed)}finally{yield Ze.__await(t.cancel())}})}function GM(r){return new vo(new m1(r))}function $M(r){let e=r.peek(Tr.magicLength+7&-8);return e&&e.byteLength>=4?Tr.checkForMagicArrowString(e)?new ul(new w_(r.read())):new vo(new Ea(r)):new vo(new Ea(function*(){}()))}function KM(r){return Ze.__awaiter(this,void 0,void 0,function*(){let e=yield r.peek(Tr.magicLength+7&-8);return e&&e.byteLength>=4?Tr.checkForMagicArrowString(e)?new ul(new w_(yield r.read())):new wo(new Ra(r)):new wo(new Ra(function(){return Ze.__asyncGenerator(this,arguments,function*(){})}()))})}function JM(r){return Ze.__awaiter(this,void 0,void 0,function*(){let{size:e}=yield r.stat(),t=new Ua.AsyncRandomAccessFile(r,e);return e>=Tr.magicX2AndPadding&&Tr.checkForMagicArrowString(yield t.readAt(0,Tr.magicLength+7&-8))?new g_(new y1(t)):new wo(new Ra(t))})}});var w1=V(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.toDOMStream=void 0;var cl=Et(),v1=gt(),g1=Rt();function XM(r,e){if(g1.isAsyncIterable(r))return QM(r,e);if(g1.isIterable(r))return ZM(r,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}ll.toDOMStream=XM;function ZM(r,e){let t=null,i=(e==null?void 0:e.type)==="bytes"||!1,n=(e==null?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(u){s(u,t||(t=r[Symbol.iterator]()))},pull(u){t?s(u,t):u.close()},cancel(){((t==null?void 0:t.return)&&t.return()||!0)&&(t=null)}}),Object.assign({highWaterMark:i?n:void 0},e));function s(u,p){let m,B=null,O=u.desiredSize||null;for(;!(B=p.next(i?O:null)).done;)if(ArrayBuffer.isView(B.value)&&(m=v1.toUint8Array(B.value))&&(O!=null&&i&&(O=O-m.byteLength+1),B.value=m),u.enqueue(B.value),O!=null&&--O<=0)return;u.close()}}function QM(r,e){let t=null,i=(e==null?void 0:e.type)==="bytes"||!1,n=(e==null?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(u){return cl.__awaiter(this,void 0,void 0,function*(){yield s(u,t||(t=r[Symbol.asyncIterator]()))})},pull(u){return cl.__awaiter(this,void 0,void 0,function*(){t?yield s(u,t):u.close()})},cancel(){return cl.__awaiter(this,void 0,void 0,function*(){((t==null?void 0:t.return)&&(yield t.return())||!0)&&(t=null)})}}),Object.assign({highWaterMark:i?n:void 0},e));function s(u,p){return cl.__awaiter(this,void 0,void 0,function*(){let m,B=null,O=u.desiredSize||null;for(;!(B=yield p.next(i?O:null)).done;)if(ArrayBuffer.isView(B.value)&&(m=v1.toUint8Array(B.value))&&(O!=null&&i&&(O=O-m.byteLength+1),B.value=m),u.enqueue(B.value),O!=null&&--O<=0)return;u.close()})}}});var T1=V(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.BuilderTransform=jo.builderThroughDOMStream=void 0;var eU=Et(),tU=lc();function rU(r){return new j_(r)}jo.builderThroughDOMStream=rU;var j_=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:t,["writableStrategy"]:i,["queueingStrategy"]:n="count"}=e,s=eU.__rest(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=tU.Builder.new(s),this._getSize=n!=="bytes"?j1:B1;let{["highWaterMark"]:u=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},t),{["highWaterMark"]:p=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},i);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:m=>{this._maybeFlush(this._builder,this._controller=m)},start:m=>{this._maybeFlush(this._builder,this._controller=m)}},{highWaterMark:u,size:n!=="bytes"?j1:B1}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:p,size:m=>this._writeValueAndReturnChunkSize(m)})}_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)}};jo.BuilderTransform=j_;var j1=r=>r.length,B1=r=>r.byteLength});var S1=V(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.recordBatchReaderThroughDOMStream=void 0;var xa=Et(),iU=en(),nU=Ma();function sU(r,e){let t=new iU.AsyncByteQueue,i=null,n=new ReadableStream({cancel(){return xa.__awaiter(this,void 0,void 0,function*(){yield t.close()})},start(p){return xa.__awaiter(this,void 0,void 0,function*(){yield u(p,i||(i=yield s()))})},pull(p){return xa.__awaiter(this,void 0,void 0,function*(){i?yield u(p,i):p.close()})}});return{writable:new WritableStream(t,Object.assign({highWaterMark:Math.pow(2,14)},r)),readable:n};function s(){return xa.__awaiter(this,void 0,void 0,function*(){return yield(yield nU.RecordBatchReader.from(t)).open(e)})}function u(p,m){return xa.__awaiter(this,void 0,void 0,function*(){let B=p.desiredSize,O=null;for(;!(O=yield m.next()).done;)if(p.enqueue(O.value),B!=null&&--B<=0)return;p.close()})}}dl.recordBatchReaderThroughDOMStream=sU});var I1=V(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.recordBatchWriterThroughDOMStream=void 0;var fl=Et(),oU=en();function aU(r,e){let t=new this(r),i=new oU.AsyncByteStream(t),n=new ReadableStream({type:"bytes",cancel(){return fl.__awaiter(this,void 0,void 0,function*(){yield i.cancel()})},pull(u){return fl.__awaiter(this,void 0,void 0,function*(){yield s(u)})},start(u){return fl.__awaiter(this,void 0,void 0,function*(){yield s(u)})}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(t,r),readable:n};function s(u){return fl.__awaiter(this,void 0,void 0,function*(){let p=null,m=u.desiredSize;for(;p=yield i.read(m||null);)if(u.enqueue(p),m!=null&&(m-=p.byteLength)<=0)return;u.close()})}}hl.recordBatchWriterThroughDOMStream=aU});var D_=V(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.custom=De.or=De.and=De.col=De.lit=De.CustomPredicate=De.Not=De.GTeq=De.LTeq=De.Equals=De.Or=De.And=De.CombinationPredicate=De.ComparisonPredicate=De.Predicate=De.Col=De.Literal=De.Value=void 0;var uU=qc(),yn=class{eq(e){return e instanceof yn||(e=new Oi(e)),new T_(this,e)}le(e){return e instanceof yn||(e=new Oi(e)),new S_(this,e)}ge(e){return e instanceof yn||(e=new Oi(e)),new I_(this,e)}lt(e){return new Bo(this.ge(e))}gt(e){return new Bo(this.le(e))}ne(e){return new Bo(this.eq(e))}};De.Value=yn;var Oi=class extends yn{constructor(e){super();this.v=e}};De.Literal=Oi;var B_=class extends yn{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)}};De.Col=B_;var To=class{and(...e){return new So(this,...e)}or(...e){return new Io(this,...e)}not(){return new Bo(this)}};De.Predicate=To;var Va=class extends To{constructor(e,t){super();this.left=e,this.right=t}bind(e){return this.left instanceof Oi?this.right instanceof Oi?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Oi?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}};De.ComparisonPredicate=Va;var Na=class extends To{constructor(...e){super();this.children=e}};De.CombinationPredicate=Na;Na.prototype.children=Object.freeze([]);var So=class extends Na{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof So?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))}};De.And=So;var Io=class extends Na{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Io?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))}};De.Or=Io;var T_=class extends Va{_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(u,p)=>n(u,p)==s(u,p)}_bindColLit(e,t,i){let n=t.bind(e);if(t.vector instanceof uU.DictionaryVector){let s,u=t.vector;return u.dictionary!==this.lastDictionary?(s=u.reverseLookup(i.v),this.lastDictionary=u.dictionary,this.lastKey=s):s=this.lastKey,s===-1?()=>!1:p=>u.getKey(p)===s}else return(s,u)=>n(s,u)==i.v}_bindLitCol(e,t,i){return this._bindColLit(e,i,t)}};De.Equals=T_;var S_=class extends Va{_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(u,p)=>n(u,p)<=s(u,p)}_bindColLit(e,t,i){let n=t.bind(e);return(s,u)=>n(s,u)<=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,u)=>t.v<=n(s,u)}};De.LTeq=S_;var I_=class extends Va{_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(u,p)=>n(u,p)>=s(u,p)}_bindColLit(e,t,i){let n=t.bind(e);return(s,u)=>n(s,u)>=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(s,u)=>t.v>=n(s,u)}};De.GTeq=I_;var Bo=class extends To{constructor(e){super();this.child=e}bind(e){let t=this.child.bind(e);return(i,n)=>!t(i,n)}};De.Not=Bo;var A_=class extends To{constructor(e,t){super();this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}};De.CustomPredicate=A_;function cU(r){return new Oi(r)}De.lit=cU;function lU(r){return new B_(r)}De.col=lU;function dU(...r){return new So(...r)}De.and=dU;function fU(...r){return new Io(...r)}De.or=fU;function hU(r,e){return new A_(r,e)}De.custom=hU});var C1=V(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.FilteredDataFrame=mn.CountByResult=mn.DataFrame=void 0;var A1=Ta(),D1=Yc(),F_=St(),F1=D_(),pU=Ai(),O1=Pe(),O_=class extends A1.Table{filter(e){return new Pa(this.chunks,e)}scan(e,t){let i=this.chunks,n=i.length;for(let s=-1;++s<n;){let u=i[s];t&&t(u);for(let p=-1,m=u.length;++p<m;)e(p,u)}}scanReverse(e,t){let i=this.chunks,n=i.length;for(let s=n;--s>=0;){let u=i[s];t&&t(u);for(let p=u.length;--p>=0;)e(p,u)}}countBy(e){let t=this.chunks,i=t.length,n=typeof e=="string"?new F1.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!O1.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let u=Math.ceil(Math.log(s.length)/Math.log(256)),p=u==4?Uint32Array:u>=2?Uint16Array:Uint8Array,m=new p(s.dictionary.length);for(let B=-1;++B<i;){let O=t[B];n.bind(O);let R=n.vector.indices;for(let W=-1,N=O.length;++W<N;){let Se=R.get(W);Se!==null&&m[Se]++}}return new pl(s.dictionary,D1.IntVector.from(m))}};mn.DataFrame=O_;var pl=class extends A1.Table{constructor(e,t){let i=new F_.Schema([new F_.Field("values",e.type),new F_.Field("counts",t.type)]);super(new pU.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}};mn.CountByResult=pl;var k1=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}},Pa=class extends O_{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 u=i[s],p=this._predicate.bind(u),m=!1;for(let B=-1,O=u.length;++B<O;)p(B,u)&&(t&&!m&&(t(u),m=!0),e(B,u))}}scanReverse(e,t){let i=this._chunks,n=i.length;for(let s=n;--s>=0;){let u=i[s],p=this._predicate.bind(u),m=!1;for(let B=u.length;--B>=0;)p(B,u)&&(t&&!m&&(t(u),m=!0),e(B,u))}}count(){let e=0,t=this._chunks,i=t.length;for(let n=-1;++n<i;){let s=t[n],u=this._predicate.bind(s);for(let p=-1,m=s.length;++p<m;)u(p,s)&&++e}return e}[Symbol.iterator](){return new k1(this._chunks,this._predicate)}filter(e){return new Pa(this._chunks,this._predicate.and(e))}countBy(e){let t=this._chunks,i=t.length,n=typeof e=="string"?new F1.Col(e):e;n.bind(t[i-1]);let s=n.vector;if(!O1.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let u=Math.ceil(Math.log(s.length)/Math.log(256)),p=u==4?Uint32Array:u>=2?Uint16Array:Uint8Array,m=new p(s.dictionary.length);for(let B=-1;++B<i;){let O=t[B],R=this._predicate.bind(O);n.bind(O);let W=n.vector.indices;for(let N=-1,Se=O.length;++N<Se;){let ye=W.get(N);ye!==null&&R(N,O)&&m[ye]++}}return new pl(s.dictionary,D1.IntVector.from(m))}};mn.FilteredDataFrame=Pa});var E1=V(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.isTypedArray=w.util=w.predicate=w.CountByResult=w.FilteredDataFrame=w.DataFrame=w.RecordBatch=w.Message=w.JSONMessageReader=w.AsyncMessageReader=w.MessageReader=w.RecordBatchJSONWriter=w.RecordBatchStreamWriter=w.RecordBatchFileWriter=w.RecordBatchWriter=w.AsyncRecordBatchStreamReader=w.AsyncRecordBatchFileReader=w.RecordBatchStreamReader=w.RecordBatchFileReader=w.RecordBatchReader=w.AsyncByteQueue=w.AsyncByteStream=w.ByteStream=w.Utf8Builder=w.SparseUnionBuilder=w.DenseUnionBuilder=w.UnionBuilder=w.TimeNanosecondBuilder=w.TimeMicrosecondBuilder=w.TimeMillisecondBuilder=w.TimeSecondBuilder=w.TimeBuilder=w.TimestampNanosecondBuilder=w.TimestampMicrosecondBuilder=w.TimestampMillisecondBuilder=w.TimestampSecondBuilder=w.TimestampBuilder=w.StructBuilder=w.NullBuilder=w.MapBuilder=w.ListBuilder=w.Uint64Builder=w.Uint32Builder=w.Uint16Builder=w.Uint8Builder=w.Int64Builder=w.Int32Builder=w.Int16Builder=w.Int8Builder=w.IntBuilder=w.IntervalYearMonthBuilder=w.IntervalDayTimeBuilder=w.IntervalBuilder=w.Float64Builder=w.Float32Builder=w.Float16Builder=w.FloatBuilder=w.FixedSizeListBuilder=w.FixedSizeBinaryBuilder=w.DictionaryBuilder=w.DecimalBuilder=w.DateMillisecondBuilder=w.DateDayBuilder=w.DateBuilder=w.BoolBuilder=w.BinaryBuilder=w.Builder=w.Utf8Vector=w.SparseUnionVector=w.DenseUnionVector=w.UnionVector=w.TimeNanosecondVector=w.TimeMicrosecondVector=w.TimeMillisecondVector=w.TimeSecondVector=w.TimeVector=w.TimestampNanosecondVector=w.TimestampMicrosecondVector=w.TimestampMillisecondVector=w.TimestampSecondVector=w.TimestampVector=w.StructVector=w.NullVector=w.MapVector=w.ListVector=w.Uint64Vector=w.Uint32Vector=w.Uint16Vector=w.Uint8Vector=w.Int64Vector=w.Int32Vector=w.Int16Vector=w.Int8Vector=w.IntVector=w.IntervalYearMonthVector=w.IntervalDayTimeVector=w.IntervalVector=w.Float64Vector=w.Float32Vector=w.Float16Vector=w.FloatVector=w.FixedSizeListVector=w.FixedSizeBinaryVector=w.DictionaryVector=w.DecimalVector=w.DateMillisecondVector=w.DateDayVector=w.DateVector=w.Chunked=w.BoolVector=w.BinaryVector=w.BaseVector=w.Vector=w.Field=w.Schema=w.Visitor=w.Column=w.Table=w.Map_=w.FixedSizeList=w.IntervalYearMonth=w.IntervalDayTime=w.Interval=w.Dictionary=w.SparseUnion=w.DenseUnion=w.Union=w.Struct=w.List=w.Decimal=w.TimeNanosecond=w.TimeMicrosecond=w.TimeMillisecond=w.TimeSecond=w.Time=w.TimestampNanosecond=w.TimestampMicrosecond=w.TimestampMillisecond=w.TimestampSecond=w.Timestamp=w.DateMillisecond=w.DateDay=w.Date_=w.FixedSizeBinary=w.Binary=w.Utf8=w.Float64=w.Float32=w.Float16=w.Float=w.Uint64=w.Uint32=w.Uint16=w.Uint8=w.Int64=w.Int32=w.Int16=w.Int8=w.Int=w.Bool=w.Null=w.DataType=w.Data=w.BufferType=w.Type=w.MessageHeader=w.MetadataVersion=w.IntervalUnit=w.UnionMode=w.Precision=w.TimeUnit=w.DateUnit=void 0;var Ao=Li();Object.defineProperty(w,"DateUnit",{enumerable:!0,get:function(){return Ao.DateUnit}});Object.defineProperty(w,"TimeUnit",{enumerable:!0,get:function(){return Ao.TimeUnit}});Object.defineProperty(w,"Precision",{enumerable:!0,get:function(){return Ao.Precision}});Object.defineProperty(w,"UnionMode",{enumerable:!0,get:function(){return Ao.UnionMode}});Object.defineProperty(w,"IntervalUnit",{enumerable:!0,get:function(){return Ao.IntervalUnit}});Object.defineProperty(w,"MetadataVersion",{enumerable:!0,get:function(){return Ao.MetadataVersion}});var _U=Tu();Object.defineProperty(w,"MessageHeader",{enumerable:!0,get:function(){return _U.MessageHeader}});var M1=$e();Object.defineProperty(w,"Type",{enumerable:!0,get:function(){return M1.Type}});Object.defineProperty(w,"BufferType",{enumerable:!0,get:function(){return M1.BufferType}});var yU=Mr();Object.defineProperty(w,"Data",{enumerable:!0,get:function(){return yU.Data}});var we=Pe();Object.defineProperty(w,"DataType",{enumerable:!0,get:function(){return we.DataType}});Object.defineProperty(w,"Null",{enumerable:!0,get:function(){return we.Null}});Object.defineProperty(w,"Bool",{enumerable:!0,get:function(){return we.Bool}});Object.defineProperty(w,"Int",{enumerable:!0,get:function(){return we.Int}});Object.defineProperty(w,"Int8",{enumerable:!0,get:function(){return we.Int8}});Object.defineProperty(w,"Int16",{enumerable:!0,get:function(){return we.Int16}});Object.defineProperty(w,"Int32",{enumerable:!0,get:function(){return we.Int32}});Object.defineProperty(w,"Int64",{enumerable:!0,get:function(){return we.Int64}});Object.defineProperty(w,"Uint8",{enumerable:!0,get:function(){return we.Uint8}});Object.defineProperty(w,"Uint16",{enumerable:!0,get:function(){return we.Uint16}});Object.defineProperty(w,"Uint32",{enumerable:!0,get:function(){return we.Uint32}});Object.defineProperty(w,"Uint64",{enumerable:!0,get:function(){return we.Uint64}});Object.defineProperty(w,"Float",{enumerable:!0,get:function(){return we.Float}});Object.defineProperty(w,"Float16",{enumerable:!0,get:function(){return we.Float16}});Object.defineProperty(w,"Float32",{enumerable:!0,get:function(){return we.Float32}});Object.defineProperty(w,"Float64",{enumerable:!0,get:function(){return we.Float64}});Object.defineProperty(w,"Utf8",{enumerable:!0,get:function(){return we.Utf8}});Object.defineProperty(w,"Binary",{enumerable:!0,get:function(){return we.Binary}});Object.defineProperty(w,"FixedSizeBinary",{enumerable:!0,get:function(){return we.FixedSizeBinary}});Object.defineProperty(w,"Date_",{enumerable:!0,get:function(){return we.Date_}});Object.defineProperty(w,"DateDay",{enumerable:!0,get:function(){return we.DateDay}});Object.defineProperty(w,"DateMillisecond",{enumerable:!0,get:function(){return we.DateMillisecond}});Object.defineProperty(w,"Timestamp",{enumerable:!0,get:function(){return we.Timestamp}});Object.defineProperty(w,"TimestampSecond",{enumerable:!0,get:function(){return we.TimestampSecond}});Object.defineProperty(w,"TimestampMillisecond",{enumerable:!0,get:function(){return we.TimestampMillisecond}});Object.defineProperty(w,"TimestampMicrosecond",{enumerable:!0,get:function(){return we.TimestampMicrosecond}});Object.defineProperty(w,"TimestampNanosecond",{enumerable:!0,get:function(){return we.TimestampNanosecond}});Object.defineProperty(w,"Time",{enumerable:!0,get:function(){return we.Time}});Object.defineProperty(w,"TimeSecond",{enumerable:!0,get:function(){return we.TimeSecond}});Object.defineProperty(w,"TimeMillisecond",{enumerable:!0,get:function(){return we.TimeMillisecond}});Object.defineProperty(w,"TimeMicrosecond",{enumerable:!0,get:function(){return we.TimeMicrosecond}});Object.defineProperty(w,"TimeNanosecond",{enumerable:!0,get:function(){return we.TimeNanosecond}});Object.defineProperty(w,"Decimal",{enumerable:!0,get:function(){return we.Decimal}});Object.defineProperty(w,"List",{enumerable:!0,get:function(){return we.List}});Object.defineProperty(w,"Struct",{enumerable:!0,get:function(){return we.Struct}});Object.defineProperty(w,"Union",{enumerable:!0,get:function(){return we.Union}});Object.defineProperty(w,"DenseUnion",{enumerable:!0,get:function(){return we.DenseUnion}});Object.defineProperty(w,"SparseUnion",{enumerable:!0,get:function(){return we.SparseUnion}});Object.defineProperty(w,"Dictionary",{enumerable:!0,get:function(){return we.Dictionary}});Object.defineProperty(w,"Interval",{enumerable:!0,get:function(){return we.Interval}});Object.defineProperty(w,"IntervalDayTime",{enumerable:!0,get:function(){return we.IntervalDayTime}});Object.defineProperty(w,"IntervalYearMonth",{enumerable:!0,get:function(){return we.IntervalYearMonth}});Object.defineProperty(w,"FixedSizeList",{enumerable:!0,get:function(){return we.FixedSizeList}});Object.defineProperty(w,"Map_",{enumerable:!0,get:function(){return we.Map_}});var mU=Ta();Object.defineProperty(w,"Table",{enumerable:!0,get:function(){return mU.Table}});var bU=io();Object.defineProperty(w,"Column",{enumerable:!0,get:function(){return bU.Column}});var gU=Ot();Object.defineProperty(w,"Visitor",{enumerable:!0,get:function(){return gU.Visitor}});var U1=St();Object.defineProperty(w,"Schema",{enumerable:!0,get:function(){return U1.Schema}});Object.defineProperty(w,"Field",{enumerable:!0,get:function(){return U1.Field}});var _e=ci();Object.defineProperty(w,"Vector",{enumerable:!0,get:function(){return _e.Vector}});Object.defineProperty(w,"BaseVector",{enumerable:!0,get:function(){return _e.BaseVector}});Object.defineProperty(w,"BinaryVector",{enumerable:!0,get:function(){return _e.BinaryVector}});Object.defineProperty(w,"BoolVector",{enumerable:!0,get:function(){return _e.BoolVector}});Object.defineProperty(w,"Chunked",{enumerable:!0,get:function(){return _e.Chunked}});Object.defineProperty(w,"DateVector",{enumerable:!0,get:function(){return _e.DateVector}});Object.defineProperty(w,"DateDayVector",{enumerable:!0,get:function(){return _e.DateDayVector}});Object.defineProperty(w,"DateMillisecondVector",{enumerable:!0,get:function(){return _e.DateMillisecondVector}});Object.defineProperty(w,"DecimalVector",{enumerable:!0,get:function(){return _e.DecimalVector}});Object.defineProperty(w,"DictionaryVector",{enumerable:!0,get:function(){return _e.DictionaryVector}});Object.defineProperty(w,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return _e.FixedSizeBinaryVector}});Object.defineProperty(w,"FixedSizeListVector",{enumerable:!0,get:function(){return _e.FixedSizeListVector}});Object.defineProperty(w,"FloatVector",{enumerable:!0,get:function(){return _e.FloatVector}});Object.defineProperty(w,"Float16Vector",{enumerable:!0,get:function(){return _e.Float16Vector}});Object.defineProperty(w,"Float32Vector",{enumerable:!0,get:function(){return _e.Float32Vector}});Object.defineProperty(w,"Float64Vector",{enumerable:!0,get:function(){return _e.Float64Vector}});Object.defineProperty(w,"IntervalVector",{enumerable:!0,get:function(){return _e.IntervalVector}});Object.defineProperty(w,"IntervalDayTimeVector",{enumerable:!0,get:function(){return _e.IntervalDayTimeVector}});Object.defineProperty(w,"IntervalYearMonthVector",{enumerable:!0,get:function(){return _e.IntervalYearMonthVector}});Object.defineProperty(w,"IntVector",{enumerable:!0,get:function(){return _e.IntVector}});Object.defineProperty(w,"Int8Vector",{enumerable:!0,get:function(){return _e.Int8Vector}});Object.defineProperty(w,"Int16Vector",{enumerable:!0,get:function(){return _e.Int16Vector}});Object.defineProperty(w,"Int32Vector",{enumerable:!0,get:function(){return _e.Int32Vector}});Object.defineProperty(w,"Int64Vector",{enumerable:!0,get:function(){return _e.Int64Vector}});Object.defineProperty(w,"Uint8Vector",{enumerable:!0,get:function(){return _e.Uint8Vector}});Object.defineProperty(w,"Uint16Vector",{enumerable:!0,get:function(){return _e.Uint16Vector}});Object.defineProperty(w,"Uint32Vector",{enumerable:!0,get:function(){return _e.Uint32Vector}});Object.defineProperty(w,"Uint64Vector",{enumerable:!0,get:function(){return _e.Uint64Vector}});Object.defineProperty(w,"ListVector",{enumerable:!0,get:function(){return _e.ListVector}});Object.defineProperty(w,"MapVector",{enumerable:!0,get:function(){return _e.MapVector}});Object.defineProperty(w,"NullVector",{enumerable:!0,get:function(){return _e.NullVector}});Object.defineProperty(w,"StructVector",{enumerable:!0,get:function(){return _e.StructVector}});Object.defineProperty(w,"TimestampVector",{enumerable:!0,get:function(){return _e.TimestampVector}});Object.defineProperty(w,"TimestampSecondVector",{enumerable:!0,get:function(){return _e.TimestampSecondVector}});Object.defineProperty(w,"TimestampMillisecondVector",{enumerable:!0,get:function(){return _e.TimestampMillisecondVector}});Object.defineProperty(w,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return _e.TimestampMicrosecondVector}});Object.defineProperty(w,"TimestampNanosecondVector",{enumerable:!0,get:function(){return _e.TimestampNanosecondVector}});Object.defineProperty(w,"TimeVector",{enumerable:!0,get:function(){return _e.TimeVector}});Object.defineProperty(w,"TimeSecondVector",{enumerable:!0,get:function(){return _e.TimeSecondVector}});Object.defineProperty(w,"TimeMillisecondVector",{enumerable:!0,get:function(){return _e.TimeMillisecondVector}});Object.defineProperty(w,"TimeMicrosecondVector",{enumerable:!0,get:function(){return _e.TimeMicrosecondVector}});Object.defineProperty(w,"TimeNanosecondVector",{enumerable:!0,get:function(){return _e.TimeNanosecondVector}});Object.defineProperty(w,"UnionVector",{enumerable:!0,get:function(){return _e.UnionVector}});Object.defineProperty(w,"DenseUnionVector",{enumerable:!0,get:function(){return _e.DenseUnionVector}});Object.defineProperty(w,"SparseUnionVector",{enumerable:!0,get:function(){return _e.SparseUnionVector}});Object.defineProperty(w,"Utf8Vector",{enumerable:!0,get:function(){return _e.Utf8Vector}});var je=lc();Object.defineProperty(w,"Builder",{enumerable:!0,get:function(){return je.Builder}});Object.defineProperty(w,"BinaryBuilder",{enumerable:!0,get:function(){return je.BinaryBuilder}});Object.defineProperty(w,"BoolBuilder",{enumerable:!0,get:function(){return je.BoolBuilder}});Object.defineProperty(w,"DateBuilder",{enumerable:!0,get:function(){return je.DateBuilder}});Object.defineProperty(w,"DateDayBuilder",{enumerable:!0,get:function(){return je.DateDayBuilder}});Object.defineProperty(w,"DateMillisecondBuilder",{enumerable:!0,get:function(){return je.DateMillisecondBuilder}});Object.defineProperty(w,"DecimalBuilder",{enumerable:!0,get:function(){return je.DecimalBuilder}});Object.defineProperty(w,"DictionaryBuilder",{enumerable:!0,get:function(){return je.DictionaryBuilder}});Object.defineProperty(w,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return je.FixedSizeBinaryBuilder}});Object.defineProperty(w,"FixedSizeListBuilder",{enumerable:!0,get:function(){return je.FixedSizeListBuilder}});Object.defineProperty(w,"FloatBuilder",{enumerable:!0,get:function(){return je.FloatBuilder}});Object.defineProperty(w,"Float16Builder",{enumerable:!0,get:function(){return je.Float16Builder}});Object.defineProperty(w,"Float32Builder",{enumerable:!0,get:function(){return je.Float32Builder}});Object.defineProperty(w,"Float64Builder",{enumerable:!0,get:function(){return je.Float64Builder}});Object.defineProperty(w,"IntervalBuilder",{enumerable:!0,get:function(){return je.IntervalBuilder}});Object.defineProperty(w,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return je.IntervalDayTimeBuilder}});Object.defineProperty(w,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return je.IntervalYearMonthBuilder}});Object.defineProperty(w,"IntBuilder",{enumerable:!0,get:function(){return je.IntBuilder}});Object.defineProperty(w,"Int8Builder",{enumerable:!0,get:function(){return je.Int8Builder}});Object.defineProperty(w,"Int16Builder",{enumerable:!0,get:function(){return je.Int16Builder}});Object.defineProperty(w,"Int32Builder",{enumerable:!0,get:function(){return je.Int32Builder}});Object.defineProperty(w,"Int64Builder",{enumerable:!0,get:function(){return je.Int64Builder}});Object.defineProperty(w,"Uint8Builder",{enumerable:!0,get:function(){return je.Uint8Builder}});Object.defineProperty(w,"Uint16Builder",{enumerable:!0,get:function(){return je.Uint16Builder}});Object.defineProperty(w,"Uint32Builder",{enumerable:!0,get:function(){return je.Uint32Builder}});Object.defineProperty(w,"Uint64Builder",{enumerable:!0,get:function(){return je.Uint64Builder}});Object.defineProperty(w,"ListBuilder",{enumerable:!0,get:function(){return je.ListBuilder}});Object.defineProperty(w,"MapBuilder",{enumerable:!0,get:function(){return je.MapBuilder}});Object.defineProperty(w,"NullBuilder",{enumerable:!0,get:function(){return je.NullBuilder}});Object.defineProperty(w,"StructBuilder",{enumerable:!0,get:function(){return je.StructBuilder}});Object.defineProperty(w,"TimestampBuilder",{enumerable:!0,get:function(){return je.TimestampBuilder}});Object.defineProperty(w,"TimestampSecondBuilder",{enumerable:!0,get:function(){return je.TimestampSecondBuilder}});Object.defineProperty(w,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return je.TimestampMillisecondBuilder}});Object.defineProperty(w,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return je.TimestampMicrosecondBuilder}});Object.defineProperty(w,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return je.TimestampNanosecondBuilder}});Object.defineProperty(w,"TimeBuilder",{enumerable:!0,get:function(){return je.TimeBuilder}});Object.defineProperty(w,"TimeSecondBuilder",{enumerable:!0,get:function(){return je.TimeSecondBuilder}});Object.defineProperty(w,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return je.TimeMillisecondBuilder}});Object.defineProperty(w,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return je.TimeMicrosecondBuilder}});Object.defineProperty(w,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return je.TimeNanosecondBuilder}});Object.defineProperty(w,"UnionBuilder",{enumerable:!0,get:function(){return je.UnionBuilder}});Object.defineProperty(w,"DenseUnionBuilder",{enumerable:!0,get:function(){return je.DenseUnionBuilder}});Object.defineProperty(w,"SparseUnionBuilder",{enumerable:!0,get:function(){return je.SparseUnionBuilder}});Object.defineProperty(w,"Utf8Builder",{enumerable:!0,get:function(){return je.Utf8Builder}});var C_=en();Object.defineProperty(w,"ByteStream",{enumerable:!0,get:function(){return C_.ByteStream}});Object.defineProperty(w,"AsyncByteStream",{enumerable:!0,get:function(){return C_.AsyncByteStream}});Object.defineProperty(w,"AsyncByteQueue",{enumerable:!0,get:function(){return C_.AsyncByteQueue}});var La=Ma();Object.defineProperty(w,"RecordBatchReader",{enumerable:!0,get:function(){return La.RecordBatchReader}});Object.defineProperty(w,"RecordBatchFileReader",{enumerable:!0,get:function(){return La.RecordBatchFileReader}});Object.defineProperty(w,"RecordBatchStreamReader",{enumerable:!0,get:function(){return La.RecordBatchStreamReader}});Object.defineProperty(w,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return La.AsyncRecordBatchFileReader}});Object.defineProperty(w,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return La.AsyncRecordBatchStreamReader}});var _l=Ec();Object.defineProperty(w,"RecordBatchWriter",{enumerable:!0,get:function(){return _l.RecordBatchWriter}});Object.defineProperty(w,"RecordBatchFileWriter",{enumerable:!0,get:function(){return _l.RecordBatchFileWriter}});Object.defineProperty(w,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return _l.RecordBatchStreamWriter}});Object.defineProperty(w,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return _l.RecordBatchJSONWriter}});var M_=Tc();Object.defineProperty(w,"MessageReader",{enumerable:!0,get:function(){return M_.MessageReader}});Object.defineProperty(w,"AsyncMessageReader",{enumerable:!0,get:function(){return M_.AsyncMessageReader}});Object.defineProperty(w,"JSONMessageReader",{enumerable:!0,get:function(){return M_.JSONMessageReader}});var vU=Qn();Object.defineProperty(w,"Message",{enumerable:!0,get:function(){return vU.Message}});var wU=Ai();Object.defineProperty(w,"RecordBatch",{enumerable:!0,get:function(){return wU.RecordBatch}});var U_=C1();Object.defineProperty(w,"DataFrame",{enumerable:!0,get:function(){return U_.DataFrame}});Object.defineProperty(w,"FilteredDataFrame",{enumerable:!0,get:function(){return U_.FilteredDataFrame}});Object.defineProperty(w,"CountByResult",{enumerable:!0,get:function(){return U_.CountByResult}});var jU=ua(),BU=Nh(),TU=Zr(),SU=na(),IU=gt(),AU=ya(),DU=D_();w.predicate=DU;var k_=ip();w.util=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jU),BU),TU),SU),IU),AU),{compareSchemas:k_.compareSchemas,compareFields:k_.compareFields,compareTypes:k_.compareTypes});var FU=Jn();Object.defineProperty(w,"isTypedArray",{enumerable:!0,get:function(){return FU.isTypedArray}})});var rB=V((exports,module)=>{(function(){"use strict";var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(r){return Object.prototype.toString.call(r)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(r){return typeof r=="object"&&r.buffer&&r.buffer.constructor===ArrayBuffer});var createOutputMethod=function(r,e){return function(t){return new Sha256(e,!0).update(t)[r]()}},createMethod=function(r){var e=createOutputMethod("hex",r);NODE_JS&&(e=nodeWrap(e,r)),e.create=function(){return new Sha256(r)},e.update=function(n){return e.create().update(n)};for(var t=0;t<OUTPUT_TYPES.length;++t){var i=OUTPUT_TYPES[t];e[i]=createOutputMethod(i,r)}return e},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(r){if(typeof r=="string")return crypto.createHash(algorithm).update(r,"utf8").digest("hex");if(r==null)throw new Error(ERROR);return r.constructor===ArrayBuffer&&(r=new Uint8Array(r)),Array.isArray(r)||ArrayBuffer.isView(r)||r.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(r)).digest("hex"):method(r)};return nodeMethod},createHmacOutputMethod=function(r,e){return function(t,i){return new HmacSha256(t,e,!0).update(i)[r]()}},createHmacMethod=function(r){var e=createHmacOutputMethod("hex",r);e.create=function(n){return new HmacSha256(n,r)},e.update=function(n,s){return e.create(n).update(s)};for(var t=0;t<OUTPUT_TYPES.length;++t){var i=OUTPUT_TYPES[t];e[i]=createHmacOutputMethod(i,r)}return e};function Sha256(r,e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=r}Sha256.prototype.update=function(r){if(!this.finalized){var e,t=typeof r;if(t!=="string"){if(t==="object"){if(r===null)throw new Error(ERROR);if(ARRAY_BUFFER&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!Array.isArray(r)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(r)))throw new Error(ERROR)}else throw new Error(ERROR);e=!0}for(var i,n=0,s,u=r.length,p=this.blocks;n<u;){if(this.hashed&&(this.hashed=!1,p[0]=this.block,p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0),e)for(s=this.start;n<u&&s<64;++n)p[s>>2]|=r[n]<<SHIFT[s++&3];else for(s=this.start;n<u&&s<64;++n)i=r.charCodeAt(n),i<128?p[s>>2]|=i<<SHIFT[s++&3]:i<2048?(p[s>>2]|=(192|i>>6)<<SHIFT[s++&3],p[s>>2]|=(128|i&63)<<SHIFT[s++&3]):i<55296||i>=57344?(p[s>>2]|=(224|i>>12)<<SHIFT[s++&3],p[s>>2]|=(128|i>>6&63)<<SHIFT[s++&3],p[s>>2]|=(128|i&63)<<SHIFT[s++&3]):(i=65536+((i&1023)<<10|r.charCodeAt(++n)&1023),p[s>>2]|=(240|i>>18)<<SHIFT[s++&3],p[s>>2]|=(128|i>>12&63)<<SHIFT[s++&3],p[s>>2]|=(128|i>>6&63)<<SHIFT[s++&3],p[s>>2]|=(128|i&63)<<SHIFT[s++&3]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.block=p[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var r=this.blocks,e=this.lastByteIndex;r[16]=this.block,r[e>>2]|=EXTRA[e&3],this.block=r[16],e>=56&&(this.hashed||this.hash(),r[0]=this.block,r[16]=r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=r[11]=r[12]=r[13]=r[14]=r[15]=0),r[14]=this.hBytes<<3|this.bytes>>>29,r[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var r=this.h0,e=this.h1,t=this.h2,i=this.h3,n=this.h4,s=this.h5,u=this.h6,p=this.h7,m=this.blocks,B,O,R,W,N,Se,ye,Ee,He,Tt,Pr;for(B=16;B<64;++B)N=m[B-15],O=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=m[B-2],R=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,m[B]=m[B-16]+O+m[B-7]+R<<0;for(Pr=e&t,B=0;B<64;B+=4)this.first?(this.is224?(Ee=300032,N=m[0]-1413257819,p=N-150054599<<0,i=N+24177077<<0):(Ee=704751109,N=m[0]-210244248,p=N-1521486534<<0,i=N+143694565<<0),this.first=!1):(O=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),R=(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7),Ee=r&e,W=Ee^r&t^Pr,ye=n&s^~n&u,N=p+R+ye+K[B]+m[B],Se=O+W,p=i+N<<0,i=N+Se<<0),O=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),R=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),He=i&r,W=He^i&e^Ee,ye=p&n^~p&s,N=u+R+ye+K[B+1]+m[B+1],Se=O+W,u=t+N<<0,t=N+Se<<0,O=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),R=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),Tt=t&i,W=Tt^t&r^He,ye=u&p^~u&n,N=s+R+ye+K[B+2]+m[B+2],Se=O+W,s=e+N<<0,e=N+Se<<0,O=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),R=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),Pr=e&t,W=Pr^e&i^Tt,ye=s&u^~s&p,N=n+R+ye+K[B+3]+m[B+3],Se=O+W,n=r+N<<0,r=N+Se<<0;this.h0=this.h0+r<<0,this.h1=this.h1+e<<0,this.h2=this.h2+t<<0,this.h3=this.h3+i<<0,this.h4=this.h4+n<<0,this.h5=this.h5+s<<0,this.h6=this.h6+u<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var r=this.h0,e=this.h1,t=this.h2,i=this.h3,n=this.h4,s=this.h5,u=this.h6,p=this.h7,m=HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[n&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15];return this.is224||(m+=HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[p&15]),m},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var r=this.h0,e=this.h1,t=this.h2,i=this.h3,n=this.h4,s=this.h5,u=this.h6,p=this.h7,m=[r>>24&255,r>>16&255,r>>8&255,r&255,e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,i>>24&255,i>>16&255,i>>8&255,i&255,n>>24&255,n>>16&255,n>>8&255,n&255,s>>24&255,s>>16&255,s>>8&255,s&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||m.push(p>>24&255,p>>16&255,p>>8&255,p&255),m},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var r=new ArrayBuffer(this.is224?28:32),e=new DataView(r);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),r};function HmacSha256(r,e,t){var i,n=typeof r;if(n==="string"){var s=[],u=r.length,p=0,m;for(i=0;i<u;++i)m=r.charCodeAt(i),m<128?s[p++]=m:m<2048?(s[p++]=192|m>>6,s[p++]=128|m&63):m<55296||m>=57344?(s[p++]=224|m>>12,s[p++]=128|m>>6&63,s[p++]=128|m&63):(m=65536+((m&1023)<<10|r.charCodeAt(++i)&1023),s[p++]=240|m>>18,s[p++]=128|m>>12&63,s[p++]=128|m>>6&63,s[p++]=128|m&63);r=s}else if(n==="object"){if(r===null)throw new Error(ERROR);if(ARRAY_BUFFER&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!Array.isArray(r)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(r)))throw new Error(ERROR)}else throw new Error(ERROR);r.length>64&&(r=new Sha256(e,!0).update(r).array());var B=[],O=[];for(i=0;i<64;++i){var R=r[i]||0;B[i]=92^R,O[i]=54^R}Sha256.call(this,e,t),this.update(O),this.oKeyPad=B,this.inner=!0,this.sharedMemory=t}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var r=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(r),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()});var za=V(()=>{});var K_=V(()=>{});var _E={};zA(_E,{BROWSER_RUNTIME:()=>ct,ConsoleLogger:()=>X1,DEFAULT_RUNTIME:()=>N_,DuckDBBindingsBase:()=>jl,DuckDBConnection:()=>bl,DuckDBDataProtocol:()=>x_,DuckDBFeature:()=>z1,FileFlags:()=>V_,FileStatistics:()=>wl,JSONTableShape:()=>W1,LogEvent:()=>$1,LogLevel:()=>Y1,LogOrigin:()=>K1,LogTopic:()=>G1,PACKAGE_NAME:()=>L_,PACKAGE_VERSION:()=>q_,PACKAGE_VERSION_MAJOR:()=>rE,PACKAGE_VERSION_MINOR:()=>iE,PACKAGE_VERSION_PATCH:()=>nE,PreparedStatement:()=>E_,ResultStreamIterator:()=>gl,StatusCode:()=>L1,VoidLogger:()=>J1,callSRet:()=>qe,copyBuffer:()=>os,createDuckDB:()=>pE,decodeText:()=>H1,dropResponseBuffers:()=>Ke,failWith:()=>Nr,getJsDelivrBundles:()=>sE,getLogEventLabel:()=>UU,getLogLevelLabel:()=>MU,getLogOriginLabel:()=>RU,getLogTopicLabel:()=>EU,getPlatformFeatures:()=>Tl,readString:()=>Ie,selectBundle:()=>aE});var R1=Yr(ra(),1),x1=Yr(lc(),1),Do=Yr(Ma(),1),Fo=Yr(Ec(),1),V1=Yr(w1(),1),N1=Yr(T1(),1),yl=Yr(S1(),1),ml=Yr(I1(),1),F=Yr(E1(),1);R1.default.toDOMStream=V1.toDOMStream;x1.Builder.throughDOM=N1.builderThroughDOMStream;Do.RecordBatchReader.throughDOM=yl.recordBatchReaderThroughDOMStream;Do.RecordBatchFileReader.throughDOM=yl.recordBatchReaderThroughDOMStream;Do.RecordBatchStreamReader.throughDOM=yl.recordBatchReaderThroughDOMStream;Fo.RecordBatchWriter.throughDOM=ml.recordBatchWriterThroughDOMStream;Fo.RecordBatchFileWriter.throughDOM=ml.recordBatchWriterThroughDOMStream;Fo.RecordBatchStreamWriter.throughDOM=ml.recordBatchWriterThroughDOMStream;var bl=class{constructor(e,t){this._bindings=e,this._conn=t}close(){this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}query(e){let t=this._bindings.runQuery(this._conn,e),i=F.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),F.Table.from(i)}send(e){let t=this._bindings.sendQuery(this._conn,e),i=new gl(this._bindings,this._conn,t),n=F.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}getTableNames(e){return this._bindings.getTableNames(this._conn,e)}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new E_(this._bindings,this._conn,t)}createScalarFunction(e,t,i){this._bindings.createScalarFunction(this._conn,e,t,i)}insertArrowTable(e,t){let i=e.serialize("binary",!0);this.insertArrowFromIPCStream(i,t)}insertArrowFromIPCStream(e,t){this._bindings.insertArrowFromIPCStream(this._conn,e,t)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}},gl=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}},E_=class{constructor(e,t,i){this.bindings=e,this.connectionId=t,this.statementId=i}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...e){let t=this.bindings.runPrepared(this.connectionId,this.statementId,e),i=F.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),F.Table.from(i)}send(...e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),i=new gl(this.bindings,this.connectionId,t),n=F.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}};var L1=(e=>(e[e.SUCCESS=0]="SUCCESS",e))(L1||{});var OU=new TextEncoder;function qa(r,e,t){let i=OU.encode(t),n=r._malloc(i.byteLength),s=r.HEAPU8.subarray(n,n+i.byteLength);s.set(i),r.HEAPF64[(e>>3)+0]=1,r.HEAPF64[(e>>3)+1]=n,r.HEAPF64[(e>>3)+2]=s.byteLength}function R_(r){switch(r){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function bn(r,e,t,i){let n=r.HEAPU8.subarray(e,e+i*R_(t));switch(t){case"UINT8":return new Uint8Array(n.buffer,n.byteOffset,i);case"INT8":return new Int8Array(n.buffer,n.byteOffset,i);case"INT32":return new Int32Array(n.buffer,n.byteOffset,i);case"FLOAT":return new Float32Array(n.buffer,n.byteOffset,i);case"DOUBLE":return new Float64Array(n.buffer,n.byteOffset,i);case"VARCHAR":return new Float64Array(n.buffer,n.byteOffset,i);default:return new Array(0)}}function vl(r,e,t,i,n,s,u,p){try{let m=r._udfFunctions.get(i);if(!m){qa(e,t,"Unknown UDF with id: "+i);return}let B=new TextDecoder().decode(e.HEAPU8.subarray(n,n+s)),O=JSON.parse(B),R=bn(e,u,"DOUBLE",p/8),W=[],N=[];for(let ge in O.args){let Ne=O.args[ge],ze=bn(e,R[Ne.data_buffer],Ne.physical_type,O.rows),tr=bn(e,R[Ne.validity_buffer],"UINT8",O.rows);if(ze.length==0||tr.length==0){qa(e,t,"Can't create physical arrays for argument "+Ne.physical_type);return}if(W.push(tr),Ne.physical_type=="VARCHAR"){let Vt=bn(e,R[Ne.length_buffer],"DOUBLE",O.rows),rr=[],Kt=new TextDecoder;for(let Ye=0;Ye<O.rows;++Ye){if(!tr[Ye]){rr.push(void 0);continue}let Jt=e.HEAPU8.subarray(ze[Ye],ze[Ye]+Vt[Ye]),Bn=Kt.decode(Jt);rr.push(Bn)}N.push(rr)}else N.push(ze)}let Se=O.rows*R_(O.ret.physical_type),ye=e._malloc(Se),Ee=bn(e,ye,O.ret.physical_type,O.rows),He=e._malloc(O.rows),Tt=bn(e,He,"UINT8",O.rows);if(Ee.length==0||Tt.length==0){qa(e,t,"Can't create physical arrays for result");return}let Pr=Ee;switch(O.ret.physical_type=="VARCHAR"&&(Ee=new Array(O.rows)),O.args.length){case 0:for(let ge=0;ge<O.rows;++ge){let Ne=m.func();Ee[ge]=Ne,Tt[ge]=Ne==null?0:1}break;case 1:for(let ge=0;ge<O.rows;++ge){let Ne=m.func(W[0][ge]?N[0][ge]:void 0);Ee[ge]=Ne,Tt[ge]=Ne==null?0:1}break;case 2:for(let ge=0;ge<O.rows;++ge){let Ne=m.func(W[0][ge]?N[0][ge]:void 0,W[1][ge]?N[1][ge]:void 0);Ee[ge]=Ne,Tt[ge]=Ne==null?0:1}break;default:qa(e,t,"Can't deal with argument count: "+O.args.length);return}let Sr=0;if(O.ret.physical_type=="VARCHAR"){let ge=new TextEncoder,Ne=new Array(0),ze=0;Sr=e._malloc(O.rows*R_("DOUBLE"));let tr=bn(e,Sr,"DOUBLE",O.rows);for(let Ye=0;Ye<O.rows;++Ye)Ne[Ye]=ge.encode(Ee[Ye]),ze+=Ne[Ye].length,tr[Ye]=Ne[Ye].length;let Vt=e._malloc(ze),rr=e.HEAPU8.subarray(Vt,Vt+ze),Kt=0;Ee=Pr;for(let Ye=0;Ye<O.rows;++Ye){Ee[Ye]=Vt+Kt;for(let Jt=0;Jt<Ne[Ye].length;Jt++)rr[Kt+Jt]=Ne[Ye][Jt];Kt+=Ne[Ye].length}}let Ir=3*8,Lr=e._malloc(Ir),jn=bn(e,Lr,"DOUBLE",3);jn[0]=ye,jn[1]=He,jn[2]=Sr,e.HEAPF64[(t>>3)+0]=0,e.HEAPF64[(t>>3)+1]=Lr,e.HEAPF64[(t>>3)+2]=0}catch(m){qa(e,t,m.toString())}}function kU(){let r=new TextDecoder;return e=>(typeof SharedArrayBuffer<"u"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),r.decode(e))}var H1=kU();function Nr(r,e){r.ccall("duckdb_web_fail_with",null,["string"],[e])}function os(r,e,t){let i=r.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function Ie(r,e,t){return H1(r.HEAPU8.subarray(e,e+t))}var x_=(n=>(n[n.BUFFER=0]="BUFFER",n[n.NATIVE=1]="NATIVE",n[n.HTTP=3]="HTTP",n[n.S3=4]="S3",n))(x_||{}),V_=(u=>(u[u.FILE_FLAGS_READ=1]="FILE_FLAGS_READ",u[u.FILE_FLAGS_WRITE=2]="FILE_FLAGS_WRITE",u[u.FILE_FLAGS_DIRECT_IO=4]="FILE_FLAGS_DIRECT_IO",u[u.FILE_FLAGS_FILE_CREATE=8]="FILE_FLAGS_FILE_CREATE",u[u.FILE_FLAGS_FILE_CREATE_NEW=16]="FILE_FLAGS_FILE_CREATE_NEW",u[u.FILE_FLAGS_APPEND=32]="FILE_FLAGS_APPEND",u))(V_||{});function qe(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 u=r.HEAPF64[(s>>3)+0],p=r.HEAPF64[(s>>3)+1],m=r.HEAPF64[(s>>3)+2];return r.stackRestore(n),[u,p,m]}function Ke(r){r.ccall("duckdb_web_clear_response",null,[],[])}var N_={_udfFunctions:new Map,testPlatformFeature:(r,e)=>!1,openFile:(r,e,t)=>{},syncFile:(r,e)=>{},closeFile:(r,e)=>{},getLastFileModificationTime:(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)=>{},callScalarUDF:(r,e,t,i,n,s,u)=>{vl(N_,r,e,t,i,n,s,u)}};var wl=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}};function P_(r){switch(r.typeId){case F.Type.Binary:return{type:"binary"};case F.Type.Bool:return{type:"bool"};case F.Type.Date:return{type:"date"};case F.Type.DateDay:return{type:"date32[d]"};case F.Type.DateMillisecond:return{type:"date64[ms]"};case F.Type.Decimal:{let e=r;return{type:"decimal",precision:e.precision,scale:e.scale}}case F.Type.Float:return{type:"float"};case F.Type.Float16:return{type:"float16"};case F.Type.Float32:return{type:"float32"};case F.Type.Float64:return{type:"float64"};case F.Type.Int:return{type:"int32"};case F.Type.Int16:return{type:"int16"};case F.Type.Int32:return{type:"int32"};case F.Type.Int64:return{type:"int64"};case F.Type.Uint16:return{type:"uint16"};case F.Type.Uint32:return{type:"uint32"};case F.Type.Uint64:return{type:"uint64"};case F.Type.Uint8:return{type:"uint8"};case F.Type.IntervalDayTime:return{type:"interval[dt]"};case F.Type.IntervalYearMonth:return{type:"interval[m]"};case F.Type.List:{let e=r;return{type:"list",children:[Ha(e.valueField.name,e.valueField.type)]}}case F.Type.FixedSizeBinary:return{type:"fixedsizebinary",byteWidth:r.byteWidth};case F.Type.Null:return{type:"null"};case F.Type.Utf8:return{type:"utf8"};case F.Type.Struct:return{type:"struct",children:r.children.map(t=>Ha(t.name,t.type))};case F.Type.Time:return{type:"time[s]"};case F.Type.TimeMicrosecond:return{type:"time[us]"};case F.Type.TimeMillisecond:return{type:"time[ms]"};case F.Type.TimeNanosecond:return{type:"time[ns]"};case F.Type.TimeSecond:return{type:"time[s]"};case F.Type.Timestamp:return{type:"timestamp",timezone:r.timezone||void 0};case F.Type.TimestampSecond:return{type:"timestamp[s]",timezone:r.timezone||void 0};case F.Type.TimestampMicrosecond:return{type:"timestamp[us]",timezone:r.timezone||void 0};case F.Type.TimestampNanosecond:return{type:"timestamp[ns]",timezone:r.timezone||void 0};case F.Type.TimestampMillisecond:return{type:"timestamp[ms]",timezone:r.timezone||void 0}}throw new Error(`unsupported arrow type: ${r.toString()}`)}function Ha(r,e){let t=P_(e);return t.name=r,t}var CU=new TextEncoder,z1=(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",s))(z1||{}),jl=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=e,this._runtime=t,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(e=t=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(e),await this._initPromise),this._initPromise=new Promise(t=>{this._initPromiseResolver=t}),this.onInstantiationProgress=[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.onInstantiationProgress=this.onInstantiationProgress.filter(t=>t!=e),this)}open(e){let[t,i,n]=qe(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==0)throw new Error(Ie(this.mod,i,n));Ke(this.mod)}reset(){let[e,t,i]=qe(this.mod,"duckdb_web_reset",[],[]);if(e!==0)throw new Error(Ie(this.mod,t,i));Ke(this.mod)}getVersion(){let[e,t,i]=qe(this.mod,"duckdb_web_get_version",[],[]);if(e!==0)throw new Error(Ie(this.mod,t,i));let n=Ie(this.mod,t,i);return Ke(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,i,n]=qe(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));let s=Ie(this.mod,i,n);return Ke(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new bl(this,e)}disconnect(e){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[e]),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"dropUDFFunctions",connectionId:e})}runQuery(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));let u=os(this.mod,n,s);return Ke(this.mod),u}sendQuery(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));let u=os(this.mod,n,s);return Ke(this.mod),u}fetchQueryResults(e){let[t,i,n]=qe(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));let s=os(this.mod,i,n);return Ke(this.mod),s}getTableNames(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_get_tablenames",["number","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));let u=Ie(this.mod,n,s);return Ke(this.mod),JSON.parse(u)}createScalarFunction(e,t,i,n){let s={functionId:this._nextUDFId,name:t,returnType:P_(i)},u={functionId:s.functionId,connectionId:e,name:t,returnType:i,func:n};this._nextUDFId+=1;let[p,m,B]=qe(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[e,JSON.stringify(s)]);if(p!==0)throw new Error(Ie(this.mod,m,B));if(Ke(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(u.functionId,u),this.pthread)for(let O of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])O.postMessage({cmd:"registerUDFFunction",udf:u})}createPrepared(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_prepared_create",["number","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));return Ke(this.mod),n}closePrepared(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));Ke(this.mod)}runPrepared(e,t,i){let[n,s,u]=qe(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==0)throw new Error(Ie(this.mod,s,u));let p=os(this.mod,s,u);return Ke(this.mod),p}sendPrepared(e,t,i){let[n,s,u]=qe(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==0)throw new Error(Ie(this.mod,s,u));let p=os(this.mod,s,u);return Ke(this.mod),p}insertArrowFromIPCStream(e,t,i){if(t.length==0)return;let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let u=i?JSON.stringify(i):"",[p,m,B]=qe(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,u]);if(p!==0)throw new Error(Ie(this.mod,m,B))}insertCSVFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let B in i.columns)i.columnsFlat.push(Ha(B,i.columns[B]))}let n=Wr({},i);n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,p,m]=qe(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,s]);if(u!==0)throw new Error(Ie(this.mod,p,m))}insertJSONFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let B in i.columns)i.columnsFlat.push(Ha(B,i.columns[B]))}let n=Wr({},i);n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,p,m]=qe(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,s]);if(u!==0)throw new Error(Ie(this.mod,p,m))}globFiles(e){let[t,i,n]=qe(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));let s=Ie(this.mod,i,n);Ke(this.mod);let u=JSON.parse(s);return u==null?[]:u}registerFileURL(e,t){t===void 0&&(t=e);let[i,n,s]=qe(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[e,t,-1]);if(i!==0)throw new Error(Ie(this.mod,n,s));Ke(this.mod)}registerFileText(e,t){let i=CU.encode(t);this.registerFileBuffer(e,i)}registerFileBuffer(e,t){let i=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(i,i+t.length).set(t);let[s,u,p]=qe(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,i,t.length]);if(s!==0)throw new Error(Ie(this.mod,u,p));Ke(this.mod)}registerFileHandle(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[e,e,-1]);if(i!==0)throw new Error(Ie(this.mod,n,s));if(Ke(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let u of this.pthread.runningWorkers)u.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let u of this.pthread.unusedWorkers)u.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){let[t,i,n]=qe(this.mod,"duckdb_web_fs_drop_file",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));Ke(this.mod)}dropFiles(){let[e,t,i]=qe(this.mod,"duckdb_web_fs_drop_files",[],[]);if(e!==0)throw new Error(Ie(this.mod,t,i));Ke(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s));Ke(this.mod)}copyFileToBuffer(e){let[t,i,n]=qe(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));let s=this.mod.HEAPU8.subarray(i,i+n),u=new Uint8Array(s.length);return u.set(s),Ke(this.mod),u}collectFileStatistics(e,t){let[i,n,s]=qe(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(i!==0)throw new Error(Ie(this.mod,n,s))}exportFileStatistics(e){let[t,i,n]=qe(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==0)throw new Error(Ie(this.mod,i,n));return new wl(this.mod.HEAPU8.subarray(i,i+n))}};var W1=(t=>(t.ROW_ARRAY="row-array",t.COLUMN_OBJECT="column-object",t))(W1||{});var Y1=(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",s))(Y1||{}),G1=(u=>(u[u.NONE=0]="NONE",u[u.CONNECT=1]="CONNECT",u[u.DISCONNECT=2]="DISCONNECT",u[u.OPEN=3]="OPEN",u[u.QUERY=4]="QUERY",u[u.INSTANTIATE=5]="INSTANTIATE",u))(G1||{}),$1=(u=>(u[u.NONE=0]="NONE",u[u.OK=1]="OK",u[u.ERROR=2]="ERROR",u[u.START=3]="START",u[u.RUN=4]="RUN",u[u.CAPTURE=5]="CAPTURE",u))($1||{}),K1=(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",s))(K1||{}),J1=class{log(e){}},X1=class{log(e){console.log(e)}};function MU(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 UU(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 EU(r){switch(r){case 1:return"CONNECT";case 2:return"DISCONNECT";case 5:return"INSTANTIATE";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function RU(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 Z1=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),Q1=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11]));var eB=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]));var tB=()=>(async r=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(r)}catch(e){return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]));var VU="@duckdb/duckdb-wasm",NU="1.13.1-dev166.0",PU="DuckDB powered by WebAssembly",LU="MPL-2.0",qU={type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},HU=["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],zU={"apache-arrow":"^6.0.1","wasm-feature-detect":"^1.2.11","fast-glob":"^3.2.11","web-worker":"^1.2.0","@types/emscripten":"^1.39.6","js-sha256":"^0.9.0"},WU={"@types/jasmine":"^3.10.3","@typescript-eslint/eslint-plugin":"^5.11.0","@typescript-eslint/parser":"^5.11.0",esbuild:"^0.14.21",eslint:"^8.8.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.28.0",jasmine:"^4.0.2","jasmine-core":"^4.0.0","jasmine-spec-reporter":"^7.0.0",karma:"^6.3.16","karma-chrome-launcher":"^3.1.0","karma-coverage":"^2.2.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^4.0.1","karma-jasmine-html-reporter":"^1.7.0","karma-sourcemap-loader":"^0.3.8","karma-spec-reporter":"^0.0.33","make-dir":"^3.1.0",nyc:"^15.1.0",prettier:"^2.5.1",puppeteer:"^13.3.1",rimraf:"^3.0.2",s3rver:"^3.7.1",typedoc:"^0.22.11",typescript:"^4.5.5"},YU={"build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",docs:"typedoc",report:"node ./coverage.mjs","test:node":"node --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:debug":"node --inspect-brk --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:coverage":"nyc -r json --report-dir ./coverage/node node --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:firefox":"karma start ./karma/tests-firefox.cjs","test:chrome":"karma start ./karma/tests-chrome.cjs","test:chrome:eh":"karma start ./karma/tests-chrome-eh.cjs","test:chrome:coverage":"karma start ./karma/tests-chrome-coverage.cjs","test:browser":"karma start ./karma/tests-all.cjs","test:browser:debug":"karma start ./karma/tests-debug.cjs",test:"npm run test:chrome && npm run test:node","test:coverage":"npm run test:chrome:coverage && npm run test:node:coverage && npm run report",lint:"eslint src test"},GU=["dist","!dist/types/test"],$U="dist/duckdb-browser.cjs",KU="dist/duckdb-browser.mjs",JU="dist/duckdb-browser.d.ts",XU="dist/duckdb-browser.cjs",ZU="dist/duckdb-browser.mjs",QU=!1,eE={fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},tE={"./dist/duckdb-mvp.wasm":"./dist/duckdb-mvp.wasm","./dist/duckdb-eh.wasm":"./dist/duckdb-eh.wasm","./dist/duckdb-coi.wasm":"./dist/duckdb-coi.wasm","./dist/duckdb-browser":"./dist/duckdb-browser.mjs","./dist/duckdb-browser.cjs":"./dist/duckdb-browser.cjs","./dist/duckdb-browser.mjs":"./dist/duckdb-browser.mjs","./dist/duckdb-browser-blocking":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.mjs":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.cjs":"./dist/duckdb-browser-blocking.cjs","./dist/duckdb-browser-coi.pthread.worker.js":"./dist/duckdb-browser-coi.pthread.worker.js","./dist/duckdb-browser-coi.worker.js":"./dist/duckdb-browser-coi.worker.js","./dist/duckdb-browser-eh.worker.js":"./dist/duckdb-browser-eh.worker.js","./dist/duckdb-browser-mvp.worker.js":"./dist/duckdb-browser-mvp.worker.js","./dist/duckdb-node":"./dist/duckdb-node.cjs","./dist/duckdb-node.cjs":"./dist/duckdb-node.cjs","./dist/duckdb-node-blocking":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-blocking.cjs":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-eh.worker.cjs":"./dist/duckdb-node-eh.worker.cjs","./dist/duckdb-node-mvp.worker.cjs":"./dist/duckdb-node-mvp.worker.cjs","./blocking":{browser:{types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},node:{types:"./dist/duckdb-node-blocking.d.ts",require:"./dist/duckdb-node-blocking.cjs",import:"./dist/duckdb-node-blocking.cjs"},types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},".":{browser:{types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"},node:{types:"./dist/duckdb-node.d.ts",import:"./dist/duckdb-node.cjs",require:"./dist/duckdb-node.cjs"},types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"}},Bl={name:VU,version:NU,description:PU,license:LU,repository:qU,keywords:HU,dependencies:zU,devDependencies:WU,scripts:YU,files:GU,main:$U,module:KU,types:JU,jsdelivr:XU,unpkg:ZU,sideEffects:QU,browser:eE,exports:tE};var L_=Bl.name,q_=Bl.version,H_=Bl.version.split("."),rE=H_[0],iE=H_[1],nE=H_[2];function sE(){let r=`https://cdn.jsdelivr.net/npm/${L_}@${q_}/dist/`;return{mvp:{mainModule:`${r}duckdb-mvp.wasm`,mainWorker:`${r}duckdb-browser-mvp.worker.js`},eh:{mainModule:`${r}duckdb-eh.wasm`,mainWorker:`${r}duckdb-browser-eh.worker.js`}}}var z_=null,W_=null,Y_=null,G_=null,$_=null;function oE(){return typeof process<"u"&&!1}async function Tl(){return z_==null&&(z_=typeof BigInt64Array<"u"),W_==null&&(W_=await Q1()),Y_==null&&(Y_=await tB()),G_==null&&(G_=await eB()),$_==null&&($_=await Z1()),{bigInt64Array:z_,crossOriginIsolated:oE()||globalThis.crossOriginIsolated||!1,wasmExceptions:W_,wasmSIMD:G_,wasmThreads:Y_,wasmBulkMemory:$_}}async function aE(r){let e=await Tl();if(e.wasmExceptions){if(e.wasmSIMD&&e.wasmThreads&&e.crossOriginIsolated&&r.coi)return{mainModule:r.coi.mainModule,mainWorker:r.coi.mainWorker,pthreadWorker:r.coi.pthreadWorker};if(r.eh)return{mainModule:r.eh.mainModule,mainWorker:r.eh.mainWorker,pthreadWorker:null}}return{mainModule:r.mvp.mainModule,mainWorker:r.mvp.mainWorker,pthreadWorker:null}}var gn=Yr(rB()),iB=function(r,e,t){var i;if((i=r==null?void 0:r.endpoint)==null?void 0:i.startsWith("http")){let n=`${r==null?void 0:r.endpoint}`,s=n.indexOf("://")+3;return n.substring(s)}else return(r==null?void 0:r.endpoint)?`${t}.${r==null?void 0:r.endpoint}`:`${t}.s3.amazonaws.com`};function uE(r,e,t){var n,s,u,p;let i=nB(e);return{url:i.path,query:"",host:iB(r,e,i.bucket),region:(n=r==null?void 0:r.region)!=null?n:"",service:"s3",method:t,accessKeyId:(s=r==null?void 0:r.accessKeyId)!=null?s:"",secretAccessKey:(u=r==null?void 0:r.secretAccessKey)!=null?u:"",sessionToken:(p=r==null?void 0:r.sessionToken)!=null?p:"",dateNow:new Date().toISOString().replace(/-/g,"").split("T")[0],datetimeNow:new Date().toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function cE(r,e=!1){let t="0123456789ABCDEF",i="";for(let n=0;n<r.length;n++){let s=r[n];s>="A"&&s<="Z"||s>="a"&&s<="z"||s>="0"&&s<="9"||s=="_"||s=="-"||s=="~"||s=="."?i+=s:s=="/"?e?i+="%2F":i+=s:(i+="%",i+=t[s.charCodeAt(0)>>4],i+=t[s.charCodeAt(0)&15])}return i}function lE(r,e=null){var Se;let t=(Se=e==null?void 0:e.contentHash)!=null?Se:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",i=new Map;i.set("x-amz-date",r.datetimeNow),i.set("x-amz-content-sha256",t),r.sessionToken&&i.set("x-amz-security-token",r.sessionToken);let n="";(e==null?void 0:e.contentType)&&(n+="content-type;"),n+="host;x-amz-content-sha256;x-amz-date",r.sessionToken&&(n+=";x-amz-security-token");let s=r.method+`
|
|
18
18
|
`+cE(r.url)+`
|
|
19
19
|
`+r.query;(e==null?void 0:e.contentType)&&(s+=`
|
|
20
20
|
content-type:`+(e==null?void 0:e.contentType)),s+=`
|
|
@@ -28,7 +28,7 @@ x-amz-security-token:`+r.sessionToken),s+=`
|
|
|
28
28
|
`+r.datetimeNow+`
|
|
29
29
|
`+r.dateNow+"/"+r.region+"/"+r.service+`/aws4_request
|
|
30
30
|
`+u,m="AWS4"+r.secretAccessKey,B=gn.sha256.hmac.arrayBuffer(m,r.dateNow),O=gn.sha256.hmac.arrayBuffer(B,r.region),R=gn.sha256.hmac.arrayBuffer(O,r.service),W=gn.sha256.hmac.arrayBuffer(R,"aws4_request"),N=gn.sha256.hmac(W,p);return i.set("Authorization","AWS4-HMAC-SHA256 Credential="+r.accessKeyId+"/"+r.dateNow+"/"+r.region+"/"+r.service+"/aws4_request, SignedHeaders="+n+", Signature="+N),i}var dE=function(r,e,t,i=null,n=null){let s=uE(r,e,t),u={contentType:i,contentHash:n?gn.sha256.hex(n):null};return lE(s,u)};function vn(r,e,t,i,n=null,s=null){((e==null?void 0:e.accessKeyId)||(e==null?void 0:e.sessionToken))&&(dE(e,t,i,n,s).forEach((p,m)=>{r.setRequestHeader(m,p)}),n&&r.setRequestHeader("content-type",n))}function nB(r){if(r.indexOf("s3://")!=0)throw new Error("URL needs to start with s3://");let e=r.indexOf("/",5);if(e==-1)throw new Error("URL needs to contain a '/' after the host");let t=r.substring(5,e);if(!t)throw new Error("URL needs to contain a bucket name");let i=r.substring(e);if(!i)throw new Error("URL needs to contain key");return{bucket:t,path:i}}function wn(r,e){var i;let t=nB(e);return((i=r==null?void 0:r.endpoint)==null?void 0:i.startsWith("http"))?`${r==null?void 0:r.endpoint}/${t.bucket}`+t.path:"https://"+iB(r,e,t.bucket)+t.path}var ct={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(r,e){try{let t=ct._fileInfoCache.get(e),[i,n,s]=qe(r,"duckdb_web_fs_get_file_info_by_id",["number","number"],[e,(t==null?void 0:t.cacheEpoch)||0]);if(i!==0)return null;if(s===0)return t;let u=Ie(r,n,s);Ke(r);let p=JSON.parse(u);if(p==null)return null;let m=En(Wr({},p),{blob:null});return ct._fileInfoCache.set(e,m),m}catch(t){return null}},getGlobalFileInfo(r){var e;try{let[t,i,n]=qe(r,"duckdb_web_get_global_file_info",["number"],[((e=ct._globalFileInfo)==null?void 0:e.cacheEpoch)||0]);if(t!==0)return null;if(n===0)return ct._globalFileInfo;let s=Ie(r,i,n);Ke(r);let u=JSON.parse(s);return u==null?null:(ct._globalFileInfo=En(Wr({},u),{blob:null}),ct._globalFileInfo)}catch(t){return null}},testPlatformFeature:(r,e)=>{switch(e){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${e}`),!1}},openFile:(r,e,t)=>{var i;try{ct._fileInfoCache.delete(e);let n=ct.getFileInfo(r,e);switch(n==null?void 0:n.dataProtocol){case 3:case 4:{if(t&1&&t&2)throw new Error(`Opening file ${n.fileName} failed: cannot open file with both read and write flags set`);if(t&32)throw new Error(`Opening file ${n.fileName} failed: appending to HTTP/S3 files is not supported`);if(t&2){let u=new XMLHttpRequest;if(n.dataProtocol==4?(u.open("HEAD",wn(n.s3Config,n.dataUrl),!1),vn(u,n.s3Config,n.dataUrl,"HEAD")):u.open("HEAD",n.dataUrl,!1),u.send(null),u.status!=200&&u.status!=404)throw new Error(`Opening file ${n.fileName} failed: Unexpected return status from server (${u.status})`);if(u.status==404&&!(t&8||t&16))throw new Error(`Opening file ${n.fileName} failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag.`);let p=r._malloc(1),m=new Uint8Array;r.HEAPU8.set(m,p);let B=r._malloc(2*8);return r.HEAPF64[(B>>3)+0]=1,r.HEAPF64[(B>>3)+1]=p,B}else if(t!=1)throw new Error(`Opening file ${n.fileName} failed: unsupported file flags: ${t}`);let s=null;try{let u=new XMLHttpRequest;n.dataProtocol==4?(u.open("HEAD",wn(n.s3Config,n.dataUrl),!1),vn(u,n.s3Config,n.dataUrl,"HEAD")):u.open("HEAD",n.dataUrl,!1),u.setRequestHeader("Range","bytes=0-"),u.send(null);let p=u.getResponseHeader("Content-Length");if(u.status==206&&p!==null){let m=r._malloc(16);return r.HEAPF64[(m>>3)+0]=+p,r.HEAPF64[(m>>3)+1]=0,m}}catch(u){s=u,console.warn(`HEAD request with range header failed: ${u}`)}if(n.allowFullHttpReads){console.warn(`falling back to full HTTP read for: ${n.dataUrl}`);let u=new XMLHttpRequest;if(n.dataProtocol==4?(u.open("GET",wn(n.s3Config,n.dataUrl),!1),vn(u,n.s3Config,n.dataUrl,"GET")):u.open("GET",n.dataUrl,!1),u.responseType="arraybuffer",u.send(null),u.status==200){let p=r._malloc(u.response.byteLength),m=new Uint8Array(u.response,0,u.response.byteLength);r.HEAPU8.set(m,p);let B=r._malloc(2*8);return r.HEAPF64[(B>>3)+0]=u.response.byteLength,r.HEAPF64[(B>>3)+1]=p,B}}if(s!=null)throw new Error(`Reading file ${n.fileName} failed with error: ${s}`);return 0}case 1:{let s=(i=ct._files)==null?void 0:i.get(n.fileName);if(s){let m=r._malloc(16);return r.HEAPF64[(m>>3)+0]=s.size,r.HEAPF64[(m>>3)+1]=0,m}console.warn(`Buffering missing file: ${n.fileName}`);let u=r._malloc(2*8),p=r._malloc(1);return r.HEAPF64[(u>>3)+0]=1,r.HEAPF64[(u>>3)+1]=p,u}}}catch(n){console.error(n.toString()),Nr(r,n.toString())}return 0},glob:(r,e,t)=>{try{let i=Ie(r,e,t);if(i.startsWith("http")||i.startsWith("s3://")){let n=new XMLHttpRequest;if(i.startsWith("s3://")){let s=ct.getGlobalFileInfo(r);n.open("HEAD",wn(s==null?void 0:s.s3Config,i),!1),vn(n,s==null?void 0:s.s3Config,i,"HEAD")}else n.open("HEAD",i,!1);if(n.send(null),n.status!=200&&n.status!==206){Nr(r,`HEAD request failed: ${i}`);return}r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(i){return Nr(r,i.toString()),0}},checkFile:(r,e,t)=>{try{let i=Ie(r,e,t);if(i.startsWith("http")||i.startsWith("s3://")){let n=new XMLHttpRequest;if(i.startsWith("s3://")){let u=ct.getGlobalFileInfo(r);n.open("HEAD",wn(u==null?void 0:u.s3Config,i),!1),vn(n,u==null?void 0:u.s3Config,i,"HEAD")}else 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=ct.getFileInfo(r,e);switch(ct._fileInfoCache.delete(e),t==null?void 0:t.dataProtocol){case 3:case 4:break;case 1:return}},truncateFile:(r,e,t)=>{let i=ct.getFileInfo(r,e);switch(i==null?void 0:i.dataProtocol){case 3:Nr(r,"Cannot truncate a http file");return;case 4:Nr(r,"Cannot truncate an s3 file");return;case 1:Nr(r,"truncateFile not implemented");return}return 0},readFile(r,e,t,i,n){var s;try{let u=ct.getFileInfo(r,e);switch(u==null?void 0:u.dataProtocol){case 3:case 4:{if(!u.dataUrl)throw new Error(`Missing data URL for file ${e}`);try{let p=new XMLHttpRequest;if(u.dataProtocol==4?(p.open("GET",wn(u==null?void 0:u.s3Config,u.dataUrl),!1),vn(p,u==null?void 0:u.s3Config,u.dataUrl,"GET")):p.open("GET",u.dataUrl,!1),p.responseType="arraybuffer",p.setRequestHeader("Range",`bytes=${n}-${n+i-1}`),p.send(null),p.status==206||p.status==200&&i==p.response.byteLength&&n==0){let m=new Uint8Array(p.response,0,Math.min(p.response.byteLength,i));return r.HEAPU8.set(m,t),m.byteLength}else throw p.status==200?new Error(`Range request for ${u.dataUrl} did not return a partial response: ${p.status} "${p.statusText}"`):new Error(`Range request for ${u.dataUrl} did returned non-success status: ${p.status} "${p.statusText}"`)}catch(p){throw new Error(`Range request for ${u.dataUrl} failed with error: ${p}"`)}}case 1:{let p=(s=ct._files)==null?void 0:s.get(u.fileName);if(!p)throw new Error(`No handle available for file: ${u.fileName}`);let m=p.slice(n,n+i),B=new Uint8Array(new FileReaderSync().readAsArrayBuffer(m));return r.HEAPU8.set(B,t),B.byteLength}}return 0}catch(u){return Nr(r,u.toString()),0}},writeFile:(r,e,t,i,n)=>{let s=ct.getFileInfo(r,e);switch(s==null?void 0:s.dataProtocol){case 3:return Nr(r,"Cannot write to HTTP file"),0;case 4:{let u=r.HEAPU8.subarray(t,t+i),p=new XMLHttpRequest;return p.open("PUT",wn(s==null?void 0:s.s3Config,s.dataUrl),!1),vn(p,s==null?void 0:s.s3Config,s.dataUrl,"PUT","",u),p.send(u),i}case 1:return Nr(r,"writefile not implemented"),0}return 0},getLastFileModificationTime:(r,e)=>{var i;let t=ct.getFileInfo(r,e);switch(t==null?void 0:t.dataProtocol){case 1:{if(!((i=ct._files)==null?void 0:i.get(t.fileName)))throw Error(`No handle available for file: ${t.fileName}`);return 0}case 3:case 4:return new Date().getTime()}return 0},checkDirectory:(r,e,t)=>{let i=Ie(r,e,t);return console.log(`checkDirectory: ${i}`),!1},createDirectory:(r,e,t)=>{let i=Ie(r,e,t);console.log(`createDirectory: ${i}`)},removeDirectory:(r,e,t)=>{let i=Ie(r,e,t);console.log(`removeDirectory: ${i}`)},listDirectoryEntries:(r,e,t)=>{let i=Ie(r,e,t);return console.log(`listDirectoryEntries: ${i}`),!1},moveFile:(r,e,t,i,n)=>{},removeFile:(r,e,t)=>{},callScalarUDF:(r,e,t,i,n,s,u)=>{vl(ct,r,e,t,i,n,s,u)}};var sB={},fE=(()=>{var r=sB.url;return function(e){e=e||{};var t=typeof e<"u"?e:{},i=Object.assign,n,s;t.ready=new Promise(function(o,a){n=o,s=a});var u=i({},t),p=[],m="./this.program",B=(o,a)=>{throw a},O=typeof window=="object",R=typeof importScripts=="function",W=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",N="";function Se(o){return t.locateFile?t.locateFile(o,N):N+o}var ye,Ee,He,Tt;function Pr(o){if(o instanceof _u)return;ge("exiting due to exception: "+o)}var Sr,Ir,Lr;W?(R?N=za().dirname(N)+"/":N=__dirname+"/",Lr=function(){Ir||(Sr=K_(),Ir=za())},ye=function(a,c){return Lr(),a=Ir.normalize(a),Sr.readFileSync(a,c?null:"utf8")},He=function(a){var c=ye(a,!0);return c.buffer||(c=new Uint8Array(c)),c},Ee=function(a,c,l){Lr(),a=Ir.normalize(a),Sr.readFile(a,function(d,f){d?l(d):c(f.buffer)})},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),p=process.argv.slice(2),process.on("uncaughtException",function(o){if(!(o instanceof _u))throw o}),process.on("unhandledRejection",function(o){throw o}),B=(o,a)=>{if(xo())throw process.exitCode=o,a;Pr(a),process.exit(o)},t.inspect=function(){return"[Emscripten Module object]"}):(O||R)&&(R?N=self.location.href:typeof document<"u"&&document.currentScript&&(N=document.currentScript.src),r&&(N=r),N.indexOf("blob:")!==0?N=N.substr(0,N.replace(/[?#].*/,"").lastIndexOf("/")+1):N="",ye=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.send(null),a.responseText},R&&(He=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.responseType="arraybuffer",a.send(null),new Uint8Array(a.response)}),Ee=function(o,a,c){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}c()},l.onerror=c,l.send(null)},Tt=o=>document.title=o);var jn=t.print||console.log.bind(console),ge=t.printErr||console.warn.bind(console);i(t,u),u=null,t.arguments&&(p=t.arguments),t.thisProgram&&(m=t.thisProgram),t.quit&&(B=t.quit);var Ne=0,ze=function(o){Ne=o},tr=function(){return Ne},Vt;t.wasmBinary&&(Vt=t.wasmBinary);var rr=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Je("no native wasm support detected");var Kt,Ye=!1,Jt;function Bn(o,a){o||Je(a)}function Ya(o){var a=t["_"+o];return a}function Ar(o,a,c,l,d){var f={string:function(Y){var ve=0;if(Y!=null&&Y!==0){var Fe=(Y.length<<2)+1;ve=Nt(Fe),Co(Y,ve,Fe)}return ve},array:function(Y){var ve=Nt(Y.length);return Mo(Y,ve),ve}};function h(Y){return a==="string"?Dr(Y):a==="boolean"?Boolean(Y):Y}var _=Ya(o),y=[],b=0;if(l)for(var g=0;g<l.length;g++){var I=f[c[g]];I?(b===0&&(b=A()),y[g]=I(l[g])):y[g]=l[g]}var k=_.apply(null,y);function E(Y){return b!==0&&S(b),h(Y)}return k=E(k),k}var Oo=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function as(o,a,c){for(var l=a+c,d=a;o[d]&&!(d>=l);)++d;if(d-a>16&&o.subarray&&Oo)return Oo.decode(o.subarray(a,d));for(var f="";a<d;){var h=o[a++];if(!(h&128)){f+=String.fromCharCode(h);continue}var _=o[a++]&63;if((h&224)==192){f+=String.fromCharCode((h&31)<<6|_);continue}var y=o[a++]&63;if((h&240)==224?h=(h&15)<<12|_<<6|y:h=(h&7)<<18|_<<12|y<<6|o[a++]&63,h<65536)f+=String.fromCharCode(h);else{var b=h-65536;f+=String.fromCharCode(55296|b>>10,56320|b&1023)}}return f}function Dr(o,a){return o?as(re,o,a):""}function ko(o,a,c,l){if(!(l>0))return 0;for(var d=c,f=c+l-1,h=0;h<o.length;++h){var _=o.charCodeAt(h);if(_>=55296&&_<=57343){var y=o.charCodeAt(++h);_=65536+((_&1023)<<10)|y&1023}if(_<=127){if(c>=f)break;a[c++]=_}else if(_<=2047){if(c+1>=f)break;a[c++]=192|_>>6,a[c++]=128|_&63}else if(_<=65535){if(c+2>=f)break;a[c++]=224|_>>12,a[c++]=128|_>>6&63,a[c++]=128|_&63}else{if(c+3>=f)break;a[c++]=240|_>>18,a[c++]=128|_>>12&63,a[c++]=128|_>>6&63,a[c++]=128|_&63}}return a[c]=0,c-d}function Co(o,a,c){return ko(o,re,a,c)}function Sl(o){for(var a=0,c=0;c<o.length;++c){var l=o.charCodeAt(c);l>=55296&&l<=57343&&(l=65536+((l&1023)<<10)|o.charCodeAt(++c)&1023),l<=127?++a:l<=2047?a+=2:l<=65535?a+=3:a+=4}return a}function Mo(o,a){ir.set(o,a)}function Tn(o,a,c){for(var l=0;l<o.length;++l)ir[a++>>0]=o.charCodeAt(l);c||(ir[a>>0]=0)}function qr(o,a){return o%a>0&&(o+=a-o%a),o}var ki,ir,re,Sn,Ga,Q,$a,Z_,Ka;function Uo(o){ki=o,t.HEAP8=ir=new Int8Array(o),t.HEAP16=Sn=new Int16Array(o),t.HEAP32=Q=new Int32Array(o),t.HEAPU8=re=new Uint8Array(o),t.HEAPU16=Ga=new Uint16Array(o),t.HEAPU32=$a=new Uint32Array(o),t.HEAPF32=Z_=new Float32Array(o),t.HEAPF64=Ka=new Float64Array(o)}var Il=t.INITIAL_MEMORY||16777216,Ja,Eo=[],Xa=[],Al=[],Za=[],Ro=!1,Dl=!1,Fl=0;function xo(){return rr||Fl>0}function Ol(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)pi(t.preRun.shift());cs(Eo)}function kl(){Ro=!0,cs(Xa)}function Cl(){cs(Al)}function Ml(){Dl=!0}function Ul(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)In(t.postRun.shift());cs(Za)}function pi(o){Eo.unshift(o)}function Vo(o){Xa.unshift(o)}function In(o){Za.unshift(o)}var _i=0,No=null,Dt=null;function El(o){_i++,t.monitorRunDependencies&&t.monitorRunDependencies(_i)}function Qa(o){if(_i--,t.monitorRunDependencies&&t.monitorRunDependencies(_i),_i==0&&(No!==null&&(clearInterval(No),No=null),Dt)){var a=Dt;Dt=null,a()}}t.preloadedImages={},t.preloadedAudios={};function Je(o){t.onAbort&&t.onAbort(o),o="Aborted("+o+")",ge(o),Ye=!0,Jt=1,o+=". Build with -s ASSERTIONS=1 for more info.";var a=new WebAssembly.RuntimeError(o);throw s(a),a}var eu="data:application/octet-stream;base64,";function tu(o){return o.startsWith(eu)}var Ht;t.locateFile?(Ht="./duckdb-mvp.wasm",tu(Ht)||(Ht=Se(Ht))):Ht=new URL("./duckdb-mvp.wasm",sB.url).toString();function An(o){try{if(o==Ht&&Vt)return new Uint8Array(Vt);if(He)return He(o);throw"both async and sync fetching of the wasm failed"}catch(a){Je(a)}}function us(){return!Vt&&(O||R)&&typeof fetch=="function"?fetch(Ht,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+Ht+"'";return o.arrayBuffer()}).catch(function(){return An(Ht)}):Promise.resolve().then(function(){return An(Ht)})}function ru(){var o={a:Kd};function a(h,_){var y=h.exports;t.asm=y,Kt=t.asm.Re,Uo(Kt.buffer),Ja=t.asm.Ue,Vo(t.asm.Se),Qa("wasm-instantiate")}El("wasm-instantiate");function c(h){a(h.instance)}function l(h){return us().then(function(_){return WebAssembly.instantiate(_,o)}).then(function(_){return _}).then(h,function(_){ge("failed to asynchronously prepare wasm: "+_),Je(_)})}function d(){return!Vt&&typeof WebAssembly.instantiateStreaming=="function"&&!tu(Ht)&&typeof fetch=="function"?fetch(Ht,{credentials:"same-origin"}).then(function(h){var _=WebAssembly.instantiateStreaming(h,o);return _.then(c,function(y){return ge("wasm streaming compile failed: "+y),ge("falling back to ArrayBuffer instantiation"),l(c)})}):l(c)}if(t.instantiateWasm)try{var f=t.instantiateWasm(o,a);return f}catch(h){return ge("Module.instantiateWasm callback failed with error: "+h),!1}return d().catch(s),{}}function cs(o){for(;o.length>0;){var a=o.shift();if(typeof a=="function"){a(t);continue}var c=a.func;typeof c=="number"?a.arg===void 0?X(c)():X(c)(a.arg):c(a.arg===void 0?null:a.arg)}}var ls=[];function X(o){var a=ls[o];return a||(o>=ls.length&&(ls.length=o+1),ls[o]=a=Ja.get(o)),a}function Rl(o){if(o instanceof _u||o=="unwind")return Jt;B(1,o)}function xl(o,a,c,l){Je("Assertion failed: "+Dr(o)+", at: "+[a?Dr(a):"unknown filename",c,l?Dr(l):"unknown function"])}function Vl(o){return q(o+16)+16}function Hr(o){this.excPtr=o,this.ptr=o-16,this.set_type=function(a){Q[this.ptr+4>>2]=a},this.get_type=function(){return Q[this.ptr+4>>2]},this.set_destructor=function(a){Q[this.ptr+8>>2]=a},this.get_destructor=function(){return Q[this.ptr+8>>2]},this.set_refcount=function(a){Q[this.ptr>>2]=a},this.set_caught=function(a){a=a?1:0,ir[this.ptr+12>>0]=a},this.get_caught=function(){return ir[this.ptr+12>>0]!=0},this.set_rethrown=function(a){a=a?1:0,ir[this.ptr+13>>0]=a},this.get_rethrown=function(){return ir[this.ptr+13>>0]!=0},this.init=function(a,c){this.set_type(a),this.set_destructor(c),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var a=Q[this.ptr>>2];Q[this.ptr>>2]=a+1},this.release_ref=function(){var a=Q[this.ptr>>2];return Q[this.ptr>>2]=a-1,a===1}}function nr(o){this.free=function(){ce(this.ptr),this.ptr=0},this.set_base_ptr=function(a){Q[this.ptr>>2]=a},this.get_base_ptr=function(){return Q[this.ptr>>2]},this.set_adjusted_ptr=function(a){Q[this.ptr+4>>2]=a},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return Q[this.ptr+4>>2]},this.get_exception_ptr=function(){var a=Ci(this.get_exception_info().get_type());if(a)return Q[this.get_base_ptr()>>2];var c=this.get_adjusted_ptr();return c!==0?c:this.get_base_ptr()},this.get_exception_info=function(){return new Hr(this.get_base_ptr())},o===void 0?(this.ptr=q(8),this.set_adjusted_ptr(0)):this.ptr=o}var ds=[];function Po(o){o.add_ref()}var Dn=0;function iu(o){var a=new nr(o),c=a.get_exception_info();return c.get_caught()||(c.set_caught(!0),Dn--),c.set_rethrown(!1),ds.push(a),Po(c),a.get_exception_ptr()}var zt=0;function Fn(o){return ce(new Hr(o).ptr)}function Lo(o){if(o.release_ref()&&!o.get_rethrown()){var a=o.get_destructor();a&&X(a)(o.excPtr),Fn(o.excPtr)}}function Wt(){T(0);var o=ds.pop();Lo(o.get_exception_info()),o.free(),zt=0}function nu(o){var a=new nr(o),c=a.get_base_ptr();throw zt||(zt=c),a.free(),c}function Nl(){var o=zt;if(!o)return ze(0),0;var a=new Hr(o),c=a.get_type(),l=new nr;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return ze(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===c)break;if(Ut(h,c,l.get_adjusted_ptr_addr()))return ze(h),l.ptr|0}return ze(c),l.ptr|0}function Pl(){var o=zt;if(!o)return ze(0),0;var a=new Hr(o),c=a.get_type(),l=new nr;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return ze(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===c)break;if(Ut(h,c,l.get_adjusted_ptr_addr()))return ze(h),l.ptr|0}return ze(c),l.ptr|0}function Ll(){var o=zt;if(!o)return ze(0),0;var a=new Hr(o),c=a.get_type(),l=new nr;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return ze(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===c)break;if(Ut(h,c,l.get_adjusted_ptr_addr()))return ze(h),l.ptr|0}return ze(c),l.ptr|0}function ql(){var o=zt;if(!o)return ze(0),0;var a=new Hr(o),c=a.get_type(),l=new nr;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return ze(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===c)break;if(Ut(h,c,l.get_adjusted_ptr_addr()))return ze(h),l.ptr|0}return ze(c),l.ptr|0}function Hl(){var o=ds.pop();o||Je("no exception to throw");var a=o.get_exception_info(),c=o.get_base_ptr();throw a.get_rethrown()?o.free():(ds.push(o),a.set_rethrown(!0),a.set_caught(!1),Dn++),zt=c,c}function zl(o,a,c){var l=new Hr(o);throw l.init(a,c),zt=o,Dn++,o}function Wl(){return Dn}var lt={mappings:{},buffers:[null,[],[]],printChar:function(o,a){var c=lt.buffers[o];a===0||a===10?((o===1?jn:ge)(as(c,0)),c.length=0):c.push(a)},varargs:void 0,get:function(){lt.varargs+=4;var o=Q[lt.varargs-4>>2];return o},getStr:function(o){var a=Dr(o);return a},get64:function(o,a){return o}};function qo(o,a,c,l,d){}function Yl(o,a){return o=lt.getStr(o),lt.doAccess(o,a)}function Gl(){ge("missing function: $SOCKFS"),Je(-1)}function su(){ge("missing function: $FS"),Je(-1)}function On(o){var a=Gl.getSocket(o);if(!a)throw new su.ErrnoError(8);return a}function $l(o){return Q[ue()>>2]=o,o}function Ho(o){return(o&255)+"."+(o>>8&255)+"."+(o>>16&255)+"."+(o>>24&255)}function ou(o){var a="",c=0,l=0,d=0,f=0,h=0,_=0,y=[o[0]&65535,o[0]>>16,o[1]&65535,o[1]>>16,o[2]&65535,o[2]>>16,o[3]&65535,o[3]>>16],b=!0,g="";for(_=0;_<5;_++)if(y[_]!==0){b=!1;break}if(b){if(g=Ho(y[6]|y[7]<<16),y[5]===-1)return a="::ffff:",a+=g,a;if(y[5]===0)return a="::",g==="0.0.0.0"&&(g=""),g==="0.0.0.1"&&(g="1"),a+=g,a}for(c=0;c<8;c++)y[c]===0&&(c-d>1&&(h=0),d=c,h++),h>l&&(l=h,f=c-l+1);for(c=0;c<8;c++){if(l>1&&y[c]===0&&c>=f&&c<f+l){c===f&&(a+=":",f===0&&(a+=":"));continue}a+=Number(Mt(y[c]&65535)).toString(16),a+=c<7?":":""}return a}function au(o,a){var c=Sn[o>>1],l=Mt(Ga[o+2>>1]),d;switch(c){case 2:if(a!==16)return{errno:28};d=Q[o+4>>2],d=Ho(d);break;case 10:if(a!==28)return{errno:28};d=[Q[o+8>>2],Q[o+12>>2],Q[o+16>>2],Q[o+20>>2]],d=ou(d);break;default:return{errno:5}}return{family:c,addr:d,port:l}}function fs(o){for(var a=o.split("."),c=0;c<4;c++){var l=Number(a[c]);if(isNaN(l))return null;a[c]=l}return(a[0]|a[1]<<8|a[2]<<16|a[3]<<24)>>>0}function hs(o){return parseInt(o)}function zo(o){var a,c,l,d,f=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,h=[];if(!f.test(o))return null;if(o==="::")return[0,0,0,0,0,0,0,0];for(o.startsWith("::")?o=o.replace("::","Z:"):o=o.replace("::",":Z:"),o.indexOf(".")>0?(o=o.replace(new RegExp("[.]","g"),":"),a=o.split(":"),a[a.length-4]=hs(a[a.length-4])+hs(a[a.length-3])*256,a[a.length-3]=hs(a[a.length-2])+hs(a[a.length-1])*256,a=a.slice(0,a.length-2)):a=o.split(":"),l=0,d=0,c=0;c<a.length;c++)if(typeof a[c]=="string")if(a[c]==="Z"){for(d=0;d<8-a.length+1;d++)h[c+d]=0;l=d-1}else h[c+l]=Me(parseInt(a[c],16));else h[c+l]=a[c];return[h[1]<<16|h[0],h[3]<<16|h[2],h[5]<<16|h[4],h[7]<<16|h[6]]}var Yt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(o){var a=fs(o);if(a!==null||(a=zo(o),a!==null))return o;var c;if(Yt.address_map.addrs[o])c=Yt.address_map.addrs[o];else{var l=Yt.address_map.id++;Bn(l<65535,"exceeded max address mappings of 65535"),c="172.29."+(l&255)+"."+(l&65280),Yt.address_map.names[c]=o,Yt.address_map.addrs[o]=c}return c},lookup_addr:function(o){return Yt.address_map.names[o]?Yt.address_map.names[o]:null}};function uu(o,a,c){if(c&&o===0)return null;var l=au(o,a);if(l.errno)throw new su.ErrnoError(l.errno);return l.addr=Yt.lookup_addr(l.addr)||l.addr,l}function Kl(o,a,c){var l=On(o),d=uu(a,c);return l.sock_ops.bind(l,d.addr,d.port),0}function Jl(o,a,c){var l=On(o),d=uu(a,c);return l.sock_ops.connect(l,d.addr,d.port),0}function Xl(o,a,c){return lt.varargs=c,0}function Wo(o,a){}function Zl(o,a,c,l){}function Ql(o,a,c){}function ed(o,a,c){}function cu(o,a){re.fill(0,o,o+a)}function Yo(o,a,c,l,d){switch(a){case 2:c=fs(c),cu(o,16),d&&(Q[d>>2]=16),Sn[o>>1]=a,Q[o+4>>2]=c,Sn[o+2>>1]=Me(l);break;case 10:c=zo(c),cu(o,28),d&&(Q[d>>2]=28),Q[o>>2]=a,Q[o+8>>2]=c[0],Q[o+12>>2]=c[1],Q[o+16>>2]=c[2],Q[o+20>>2]=c[3],Sn[o+2>>1]=Me(l);break;default:return 5}return 0}function td(o,a,c){var l=On(o);if(!l.daddr)return-53;var d=Yo(a,l.family,Yt.lookup_name(l.daddr),l.dport,c);return 0}function rd(o,a,c,l,d){var f=On(o);return a===1&&c===4?(Q[l>>2]=f.error,Q[d>>2]=4,f.error=null,0):-50}function id(o,a,c){return lt.varargs=c,0}function nd(o,a){}function sd(o,a){return o=lt.getStr(o),lt.doMkdir(o,a)}function od(o,a,c){lt.varargs=c}function ad(o,a,c,l,d,f){var h=On(o),_=h.sock_ops.recvmsg(h,c);if(!_)return 0;if(d)var y=Yo(d,h.family,Yt.lookup_name(_.addr),_.port,f);return re.set(_.buffer,a),_.buffer.byteLength}function ud(o,a){}function cd(o){}function ld(o,a,c,l,d,f){}function dd(o,a,c){}function fd(o,a){}function hd(o){}function pd(o,a){Je("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function _d(o,a){Je("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function yd(){Je("")}var kn;W?kn=()=>{var o=process.hrtime();return o[0]*1e3+o[1]/1e6}:kn=()=>performance.now();var md=!0;function Cn(o,a){var c;if(o===0)c=Date.now();else if((o===1||o===4)&&md)c=kn();else return $l(28),-1;return Q[a>>2]=c/1e3|0,Q[a+4>>2]=c%1e3*1e3*1e3|0,0}function bd(o,a){return globalThis.DUCKDB_RUNTIME.createDirectory(t,o,a)}function gd(o,a){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,o,a)}function vd(o,a){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,o,a)}function wd(o,a){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,o,a)}function jd(o){return globalThis.DUCKDB_RUNTIME.closeFile(t,o)}function Bd(o,a){return globalThis.DUCKDB_RUNTIME.checkFile(t,o,a)}function Td(o){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,o)}function Sd(o,a,c,l){return globalThis.DUCKDB_RUNTIME.moveFile(t,o,a,c,l)}function Id(o,a){return globalThis.DUCKDB_RUNTIME.openFile(t,o,a)}function Ad(o,a,c,l){return globalThis.DUCKDB_RUNTIME.readFile(t,o,a,c,l)}function Dd(o,a){return globalThis.DUCKDB_RUNTIME.truncateFile(t,o,a)}function ps(o,a,c,l){return globalThis.DUCKDB_RUNTIME.writeFile(t,o,a,c,l)}function Fd(o,a){return globalThis.DUCKDB_RUNTIME.glob(t,o,a)}function _s(o){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,o)}function Go(o,a,c,l,d,f){return globalThis.DUCKDB_RUNTIME.callScalarUDF(t,o,a,c,l,d,f)}function ys(){return 2147483648}function ms(o,a,c){re.copyWithin(o,a,a+c)}function bs(o){try{return Kt.grow(o-ki.byteLength+65535>>>16),Uo(Kt.buffer),1}catch(a){}}function Od(o){var a=re.length;o=o>>>0;var c=2147483648;if(o>c)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(c,qr(Math.max(o,d),65536)),h=bs(f);if(h)return!0}return!1}var $o={};function kd(){return m||"./this.program"}function Mn(){if(!Mn.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,_:kd()};for(var c in $o)$o[c]===void 0?delete a[c]:a[c]=$o[c];var l=[];for(var c in a)l.push(c+"="+a[c]);Mn.strings=l}return Mn.strings}function Q_(o,a){var c=0;return Mn().forEach(function(l,d){var f=a+c;Q[o+d*4>>2]=f,Tn(l,f),c+=l.length+1}),0}function Cd(o,a){var c=Mn();Q[o>>2]=c.length;var l=0;return c.forEach(function(d){l+=d.length+1}),Q[a>>2]=l,0}function Md(o){return 0}function Ud(o,a,c,l,d,f){var h=lt.getStreamFromFD(o),_=lt.doReadv(h,a,c,l);return Q[f>>2]=_,0}function Ed(o,a,c,l,d,f){var h=lt.getStreamFromFD(o),_=lt.doWritev(h,a,c,l);return Q[f>>2]=_,0}function Rd(o,a,c,l){var d=lt.getStreamFromFD(o),f=lt.doReadv(d,a,c);return Q[l>>2]=f,0}function xd(o,a,c,l,d){}function Vd(o){var a=lt.getStreamFromFD(o);return a.stream_ops&&a.stream_ops.fsync?-a.stream_ops.fsync(a):0}function Nd(o,a,c,l){for(var d=0,f=0;f<c;f++){var h=Q[a>>2],_=Q[a+4>>2];a+=8;for(var y=0;y<_;y++)lt.printChar(o,re[h+y]);d+=_}return Q[l>>2]=d,0}function Pd(){return tr()}function Ld(o,a,c,l){var d=0,f=0,h=0,_=0,y=0,b=0,g;function I(k,E,Y,ve,Fe,tt){var P,oe,Ue,Oe;return oe=k===10?28:16,Fe=k===10?ou(Fe):Ho(Fe),P=q(oe),Oe=Yo(P,k,Fe,tt),Bn(!Oe),Ue=q(32),Q[Ue+4>>2]=k,Q[Ue+8>>2]=E,Q[Ue+12>>2]=Y,Q[Ue+24>>2]=ve,Q[Ue+20>>2]=P,k===10?Q[Ue+16>>2]=28:Q[Ue+16>>2]=16,Q[Ue+28>>2]=0,Ue}if(c&&(h=Q[c>>2],_=Q[c+4>>2],y=Q[c+8>>2],b=Q[c+12>>2]),y&&!b&&(b=y===2?17:6),!y&&b&&(y=b===17?2:1),b===0&&(b=6),y===0&&(y=1),!o&&!a)return-2;if(h&-1088||c!==0&&Q[c>>2]&2&&!o)return-1;if(h&32)return-2;if(y!==0&&y!==1&&y!==2)return-7;if(_!==0&&_!==2&&_!==10)return-6;if(a&&(a=Dr(a),f=parseInt(a,10),isNaN(f)))return h&1024?-2:-8;if(!o)return _===0&&(_=2),(h&1)===0&&(_===2?d=Re(2130706433):d=[0,0,0,1]),g=I(_,y,b,null,d,f),Q[l>>2]=g,0;if(o=Dr(o),d=fs(o),d!==null)if(_===0||_===2)_=2;else if(_===10&&h&8)d=[0,0,Re(65535),d],_=10;else return-2;else if(d=zo(o),d!==null)if(_===0||_===10)_=10;else return-2;return d!=null?(g=I(_,y,b,o,d,f),Q[l>>2]=g,0):h&4?-2:(o=Yt.lookup_name(o),d=fs(o),_===0?_=2:_===10&&(d=[0,0,Re(65535),d]),g=I(_,y,b,null,d,f),Q[l>>2]=g,0)}function qd(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var o=new Uint8Array(1);return function(){return crypto.getRandomValues(o),o[0]}}else if(W)try{var a=require("crypto");return function(){return a.randomBytes(1)[0]}}catch(c){}return function(){Je("randomDevice")}}function gs(o,a){gs.randomDevice||(gs.randomDevice=qd());for(var c=0;c<a;c++)ir[o+c>>0]=gs.randomDevice();return 0}function Hd(o,a,c,l,d,f,h){var _=au(o,a);if(_.errno)return-6;var y=_.port,b=_.addr,g=!1;if(c&&l){var I;if(h&1||!(I=Yt.lookup_addr(b))){if(h&8)return-2}else b=I;var k=Co(b,c,l);k+1>=l&&(g=!0)}if(d&&f){y=""+y;var k=Co(y,d,f);k+1>=f&&(g=!0)}return g?-12:0}function zd(o){return o}function Wd(o){ze(o)}function vs(o){return o%4===0&&(o%100!==0||o%400===0)}function Ko(o,a){for(var c=0,l=0;l<=a;c+=o[l++]);return c}var ws=[31,29,31,30,31,30,31,31,30,31,30,31],js=[31,28,31,30,31,30,31,31,30,31,30,31];function Bs(o,a){for(var c=new Date(o.getTime());a>0;){var l=vs(c.getFullYear()),d=c.getMonth(),f=(l?ws:js)[d];if(a>f-c.getDate())a-=f-c.getDate()+1,c.setDate(1),d<11?c.setMonth(d+1):(c.setMonth(0),c.setFullYear(c.getFullYear()+1));else return c.setDate(c.getDate()+a),c}return c}function Yd(o,a,c,l){var d=Q[l+40>>2],f={tm_sec:Q[l>>2],tm_min:Q[l+4>>2],tm_hour:Q[l+8>>2],tm_mday:Q[l+12>>2],tm_mon:Q[l+16>>2],tm_year:Q[l+20>>2],tm_wday:Q[l+24>>2],tm_yday:Q[l+28>>2],tm_isdst:Q[l+32>>2],tm_gmtoff:Q[l+36>>2],tm_zone:d?Dr(d):""},h=Dr(c),_={"%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 _)h=h.replace(new RegExp(y,"g"),_[y]);var b=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"];function I(P,oe,Ue){for(var Oe=typeof P=="number"?P.toString():P||"";Oe.length<oe;)Oe=Ue[0]+Oe;return Oe}function k(P,oe){return I(P,oe,"0")}function E(P,oe){function Ue(Pt){return Pt<0?-1:Pt>0?1:0}var Oe;return(Oe=Ue(P.getFullYear()-oe.getFullYear()))===0&&(Oe=Ue(P.getMonth()-oe.getMonth()))===0&&(Oe=Ue(P.getDate()-oe.getDate())),Oe}function Y(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 ve(P){var oe=Bs(new Date(P.tm_year+1900,0,1),P.tm_yday),Ue=new Date(oe.getFullYear(),0,4),Oe=new Date(oe.getFullYear()+1,0,4),Pt=Y(Ue),Mi=Y(Oe);return E(Pt,oe)<=0?E(Mi,oe)<=0?oe.getFullYear()+1:oe.getFullYear():oe.getFullYear()-1}var Fe={"%a":function(P){return b[P.tm_wday].substring(0,3)},"%A":function(P){return b[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 oe=P.tm_year+1900;return k(oe/100|0,2)},"%d":function(P){return k(P.tm_mday,2)},"%e":function(P){return I(P.tm_mday,2," ")},"%g":function(P){return ve(P).toString().substring(2)},"%G":function(P){return ve(P)},"%H":function(P){return k(P.tm_hour,2)},"%I":function(P){var oe=P.tm_hour;return oe==0?oe=12:oe>12&&(oe-=12),k(oe,2)},"%j":function(P){return k(P.tm_mday+Ko(vs(P.tm_year+1900)?ws:js,P.tm_mon-1),3)},"%m":function(P){return k(P.tm_mon+1,2)},"%M":function(P){return k(P.tm_min,2)},"%n":function(){return`
|
|
31
|
-
`},"%p":function(P){return P.tm_hour>=0&&P.tm_hour<12?"AM":"PM"},"%S":function(P){return k(P.tm_sec,2)},"%t":function(){return" "},"%u":function(P){return P.tm_wday||7},"%U":function(P){var oe=new Date(P.tm_year+1900,0,1),Ue=oe.getDay()===0?oe:Bs(oe,7-oe.getDay()),Oe=new Date(P.tm_year+1900,P.tm_mon,P.tm_mday);if(E(Ue,Oe)<0){var Pt=Ko(vs(Oe.getFullYear())?ws:js,Oe.getMonth()-1)-31,Mi=31-Ue.getDate(),Un=Mi+Pt+Oe.getDate();return k(Math.ceil(Un/7),2)}return E(Ue,oe)===0?"01":"00"},"%V":function(P){var oe=new Date(P.tm_year+1900,0,4),Ue=new Date(P.tm_year+1901,0,4),Oe=Y(oe),Pt=Y(Ue),Mi=Bs(new Date(P.tm_year+1900,0,1),P.tm_yday);if(E(Mi,Oe)<0)return"53";if(E(Pt,Mi)<=0)return"01";var Un;return Oe.getFullYear()<P.tm_year+1900?Un=P.tm_yday+32-Oe.getDate():Un=P.tm_yday+1-Oe.getDate(),k(Math.ceil(Un/7),2)},"%w":function(P){return P.tm_wday},"%W":function(P){var oe=new Date(P.tm_year,0,1),Ue=oe.getDay()===1?oe:Bs(oe,oe.getDay()===0?1:7-oe.getDay()+1),Oe=new Date(P.tm_year+1900,P.tm_mon,P.tm_mday);if(E(Ue,Oe)<0){var Pt=Ko(vs(Oe.getFullYear())?ws:js,Oe.getMonth()-1)-31,Mi=31-Ue.getDate(),Un=Mi+Pt+Oe.getDate();return k(Math.ceil(Un/7),2)}return E(Ue,oe)===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 oe=P.tm_gmtoff,Ue=oe>=0;return oe=Math.abs(oe)/60,oe=oe/60*100+oe%60,(Ue?"+":"-")+String("0000"+oe).slice(-4)},"%Z":function(P){return P.tm_zone},"%%":function(){return"%"}};for(var y in Fe)h.includes(y)&&(h=h.replace(new RegExp(y,"g"),Fe[y](f)));var tt=$d(h,!1);return tt.length>a?0:(Mo(tt,o),tt.length-1)}function Gd(o,a,c,l){return Yd(o,a,c,l)}function $d(o,a,c){var l=c>0?c:Sl(o)+1,d=new Array(l),f=ko(o,d,0,d.length);return a&&(d.length=f),d}var Kd={p:xl,j:Vl,A:iu,F:Wt,b:Nl,n:Pl,H:Ll,W:ql,i:Fn,da:Hl,v:zl,E:Wl,e:nu,Ca:qo,Qe:Yl,Ea:Kl,Da:Jl,Q:Xl,Sa:Wo,Qa:Zl,Na:Ql,Oa:ed,ya:td,Ba:rd,Ua:id,Pa:nd,Ta:sd,oa:od,za:ad,Oe:ud,ma:cd,Aa:ld,ga:dd,Ra:fd,na:hd,ha:pd,Ga:_d,_:yd,la:Cn,Ge:bd,He:gd,Ee:vd,Fe:wd,ta:jd,Ce:Bd,Je:Td,De:Sd,Ke:Id,fa:Ad,Ie:Dd,ua:ps,Be:Fd,sa:_s,Le:Go,Va:ys,kb:ms,ed:Od,Xa:Q_,Ya:Cd,U:Md,pe:Ud,qb:Ed,qa:Rd,ye:xd,Pe:Vd,ea:Nd,a:Pd,Fa:Ld,Ma:gs,xa:Hd,ia:QB,N:HB,Ja:KB,T:gB,yc:aI,ja:ZB,X:WB,ra:bB,zc:oI,u:SB,Ha:tT,Ka:EB,Z:VB,Ia:eT,La:UB,d:dB,aa:nT,D:NB,Ib:XI,c:fB,Y:zB,va:oT,h:pB,Gb:QI,m:mB,pa:CB,o:_B,w:AB,z:BB,S:xB,y:TB,x:DB,q:$B,O:iT,J:rT,cc:FI,fc:II,ic:BI,oc:mI,dc:DI,Hb:ZI,xc:uI,gc:SI,pc:yI,Pb:zI,ue:pT,Qd:WT,Jd:ZT,te:_T,Ub:NI,jd:TS,Lb:$I,Kb:KI,Xd:VT,Pd:YT,yb:aA,Xc:xS,Wd:NT,Ec:rI,Vb:VI,Jb:JI,ke:BT,Td:qT,Ac:sI,Kd:XT,vd:fS,Hd:eS,mb:bA,Ud:LT,me:wT,Rd:zT,id:SS,gb:BA,Ob:WI,se:yT,Yd:xT,xd:lS,wb:cA,Ld:JT,hb:jA,Fb:eA,Sd:HT,Dd:nS,Gd:tS,Fd:rS,Ed:iS,Ad:aS,mc:gI,$b:CI,ee:FT,qc:_I,ae:MT,qe:bT,tc:fI,sc:hI,xe:dT,we:fT,Od:GT,Ae:cT,qd:mS,rc:pI,ec:AI,Fc:tI,vc:lI,Uc:PS,vb:lA,Cc:nI,sd:_S,md:wS,Mc:$S,wc:cI,zb:oA,ac:kI,od:gS,dd:FS,Pc:WS,Oc:YS,Lc:KS,Nc:GS,td:pS,ad:CS,Mb:GI,kc:wI,ob:yA,_c:US,uc:dI,Cb:iA,Yb:EI,Db:rA,Wb:xI,t:cB,k:hB,C:qB,ba:GB,sb:hA,K:LB,ca:YB,tb:fA,f:lB,V:wB,R:PB,Bc:vB,g:jB,l:yB,Ne:aT,r:RB,s:kB,wa:sT,B:IB,L:MB,P:XB,M:FB,Me:uT,ka:JB,$:OB,Cd:sS,rb:pA,kd:BS,bc:OI,Dc:iI,nc:bI,Qb:HI,Za:CA,jb:vA,ie:ST,Vd:PT,xb:uA,eb:SA,yd:cS,zd:uS,Zb:UI,Yc:RS,Sb:LI,Rb:qI,_a:kA,Qc:zS,he:IT,_d:ET,Bd:oS,Wc:VS,Ic:ZS,Ab:sA,Nb:YI,Bb:nA,ib:wA,ce:kT,ud:hS,Tb:PI,Gc:eI,Tc:LS,ge:AT,fb:TA,oe:gT,re:mT,ve:hT,Id:QT,db:IA,cd:OS,Kc:JS,Jc:XS,bd:kS,Zc:ES,nd:vS,lb:gA,hd:IS,cb:AA,Hc:QS,nb:mA,ze:lT,le:jT,fd:DS,Rc:HS,be:CT,hc:TI,je:TT,de:OT,gd:AS,Nd:$T,Md:KT,$c:MS,ub:dA,ld:jS,lc:vI,fe:DT,bb:DA,Sc:qS,pb:_A,$d:UT,Vc:NS,$a:OA,ab:FA,jc:jI,ne:vT,rd:yS,Zd:RT,Xb:RI,_b:MI,Eb:tA,wd:dS,pd:bS,G:zd,I:Wd,Wa:Gd},ey=ru(),Jd=t.___wasm_call_ctors=function(){return(Jd=t.___wasm_call_ctors=t.asm.Se).apply(null,arguments)},Xd=t._main=function(){return(Xd=t._main=t.asm.Te).apply(null,arguments)},Zd=t._duckdb_web_fs_glob_add_path=function(){return(Zd=t._duckdb_web_fs_glob_add_path=t.asm.Ve).apply(null,arguments)},Qd=t._duckdb_web_clear_response=function(){return(Qd=t._duckdb_web_clear_response=t.asm.We).apply(null,arguments)},ef=t._duckdb_web_fail_with=function(){return(ef=t._duckdb_web_fail_with=t.asm.Xe).apply(null,arguments)},tf=t._duckdb_web_reset=function(){return(tf=t._duckdb_web_reset=t.asm.Ye).apply(null,arguments)},rf=t._duckdb_web_connect=function(){return(rf=t._duckdb_web_connect=t.asm.Ze).apply(null,arguments)},nf=t._duckdb_web_disconnect=function(){return(nf=t._duckdb_web_disconnect=t.asm._e).apply(null,arguments)},sf=t._duckdb_web_flush_files=function(){return(sf=t._duckdb_web_flush_files=t.asm.$e).apply(null,arguments)},of=t._duckdb_web_flush_file=function(){return(of=t._duckdb_web_flush_file=t.asm.af).apply(null,arguments)},af=t._duckdb_web_open=function(){return(af=t._duckdb_web_open=t.asm.bf).apply(null,arguments)},uf=t._duckdb_web_get_global_file_info=function(){return(uf=t._duckdb_web_get_global_file_info=t.asm.cf).apply(null,arguments)},cf=t._duckdb_web_collect_file_stats=function(){return(cf=t._duckdb_web_collect_file_stats=t.asm.df).apply(null,arguments)},lf=t._duckdb_web_export_file_stats=function(){return(lf=t._duckdb_web_export_file_stats=t.asm.ef).apply(null,arguments)},lu=t._duckdb_web_fs_drop_file=function(){return(lu=t._duckdb_web_fs_drop_file=t.asm.ff).apply(null,arguments)},Ts=t._duckdb_web_fs_drop_files=function(){return(Ts=t._duckdb_web_fs_drop_files=t.asm.gf).apply(null,arguments)},Ss=t._duckdb_web_fs_glob_file_infos=function(){return(Ss=t._duckdb_web_fs_glob_file_infos=t.asm.hf).apply(null,arguments)},Jo=t._duckdb_web_fs_get_file_info_by_id=function(){return(Jo=t._duckdb_web_fs_get_file_info_by_id=t.asm.jf).apply(null,arguments)},du=t._duckdb_web_fs_get_file_info_by_name=function(){return(du=t._duckdb_web_fs_get_file_info_by_name=t.asm.kf).apply(null,arguments)},fu=t._duckdb_web_fs_set_file_descriptor=function(){return(fu=t._duckdb_web_fs_set_file_descriptor=t.asm.lf).apply(null,arguments)},Xo=t._duckdb_web_fs_register_file_url=function(){return(Xo=t._duckdb_web_fs_register_file_url=t.asm.mf).apply(null,arguments)},Zo=t._duckdb_web_fs_register_file_buffer=function(){return(Zo=t._duckdb_web_fs_register_file_buffer=t.asm.nf).apply(null,arguments)},df=t._duckdb_web_copy_file_to_buffer=function(){return(df=t._duckdb_web_copy_file_to_buffer=t.asm.of).apply(null,arguments)},Is=t._duckdb_web_copy_file_to_path=function(){return(Is=t._duckdb_web_copy_file_to_path=t.asm.pf).apply(null,arguments)},As=t._duckdb_web_get_version=function(){return(As=t._duckdb_web_get_version=t.asm.qf).apply(null,arguments)},ff=t._duckdb_web_get_feature_flags=function(){return(ff=t._duckdb_web_get_feature_flags=t.asm.rf).apply(null,arguments)},hf=t._duckdb_web_tokenize=function(){return(hf=t._duckdb_web_tokenize=t.asm.sf).apply(null,arguments)},Qo=t._duckdb_web_udf_scalar_create=function(){return(Qo=t._duckdb_web_udf_scalar_create=t.asm.tf).apply(null,arguments)},pf=t._duckdb_web_prepared_create=function(){return(pf=t._duckdb_web_prepared_create=t.asm.uf).apply(null,arguments)},_f=t._duckdb_web_prepared_close=function(){return(_f=t._duckdb_web_prepared_close=t.asm.vf).apply(null,arguments)},hu=t._duckdb_web_prepared_run=function(){return(hu=t._duckdb_web_prepared_run=t.asm.wf).apply(null,arguments)},v=t._duckdb_web_prepared_send=function(){return(v=t._duckdb_web_prepared_send=t.asm.xf).apply(null,arguments)},j=t._duckdb_web_query_run=function(){return(j=t._duckdb_web_query_run=t.asm.yf).apply(null,arguments)},D=t._duckdb_web_query_send=function(){return(D=t._duckdb_web_query_send=t.asm.zf).apply(null,arguments)},C=t._duckdb_web_query_fetch_results=function(){return(C=t._duckdb_web_query_fetch_results=t.asm.Af).apply(null,arguments)},x=t._duckdb_web_get_tablenames=function(){return(x=t._duckdb_web_get_tablenames=t.asm.Bf).apply(null,arguments)},te=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(te=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.Cf).apply(null,arguments)},J=t._duckdb_web_insert_csv_from_path=function(){return(J=t._duckdb_web_insert_csv_from_path=t.asm.Df).apply(null,arguments)},$=t._duckdb_web_insert_json_from_path=function(){return($=t._duckdb_web_insert_json_from_path=t.asm.Ef).apply(null,arguments)},ue=t.___errno_location=function(){return(ue=t.___errno_location=t.asm.Ff).apply(null,arguments)},Re=t._htonl=function(){return(Re=t._htonl=t.asm.Gf).apply(null,arguments)},Me=t._htons=function(){return(Me=t._htons=t.asm.Hf).apply(null,arguments)},Mt=t._ntohs=function(){return(Mt=t._ntohs=t.asm.If).apply(null,arguments)},T=t._setThrew=function(){return(T=t._setThrew=t.asm.Jf).apply(null,arguments)},A=t.stackSave=function(){return(A=t.stackSave=t.asm.Kf).apply(null,arguments)},S=t.stackRestore=function(){return(S=t.stackRestore=t.asm.Lf).apply(null,arguments)},Nt=t.stackAlloc=function(){return(Nt=t.stackAlloc=t.asm.Mf).apply(null,arguments)},Ut=t.___cxa_can_catch=function(){return(Ut=t.___cxa_can_catch=t.asm.Nf).apply(null,arguments)},Ci=t.___cxa_is_pointer_type=function(){return(Ci=t.___cxa_is_pointer_type=t.asm.Of).apply(null,arguments)},q=t._malloc=function(){return(q=t._malloc=t.asm.Pf).apply(null,arguments)},ce=t._free=function(){return(ce=t._free=t.asm.Qf).apply(null,arguments)},xe=t.dynCall_jiiii=function(){return(xe=t.dynCall_jiiii=t.asm.Rf).apply(null,arguments)},Ve=t.dynCall_iiiiij=function(){return(Ve=t.dynCall_iiiiij=t.asm.Sf).apply(null,arguments)},Xt=t.dynCall_iiiiijj=function(){return(Xt=t.dynCall_iiiiijj=t.asm.Tf).apply(null,arguments)},Fr=t.dynCall_viijii=function(){return(Fr=t.dynCall_viijii=t.asm.Uf).apply(null,arguments)},zr=t.dynCall_j=function(){return(zr=t.dynCall_j=t.asm.Vf).apply(null,arguments)},ty=t.dynCall_ji=function(){return(ty=t.dynCall_ji=t.asm.Wf).apply(null,arguments)},ry=t.dynCall_iij=function(){return(ry=t.dynCall_iij=t.asm.Xf).apply(null,arguments)},iy=t.dynCall_viij=function(){return(iy=t.dynCall_viij=t.asm.Yf).apply(null,arguments)},ny=t.dynCall_viijji=function(){return(ny=t.dynCall_viijji=t.asm.Zf).apply(null,arguments)},sy=t.dynCall_viijj=function(){return(sy=t.dynCall_viijj=t.asm._f).apply(null,arguments)},oy=t.dynCall_viiijj=function(){return(oy=t.dynCall_viiijj=t.asm.$f).apply(null,arguments)},ay=t.dynCall_viiji=function(){return(ay=t.dynCall_viiji=t.asm.ag).apply(null,arguments)},uy=t.dynCall_vijjj=function(){return(uy=t.dynCall_vijjj=t.asm.bg).apply(null,arguments)},cy=t.dynCall_iiijj=function(){return(cy=t.dynCall_iiijj=t.asm.cg).apply(null,arguments)},ly=t.dynCall_viiij=function(){return(ly=t.dynCall_viiij=t.asm.dg).apply(null,arguments)},dy=t.dynCall_viijij=function(){return(dy=t.dynCall_viijij=t.asm.eg).apply(null,arguments)},fy=t.dynCall_viiijjj=function(){return(fy=t.dynCall_viiijjj=t.asm.fg).apply(null,arguments)},hy=t.dynCall_iiij=function(){return(hy=t.dynCall_iiij=t.asm.gg).apply(null,arguments)},py=t.dynCall_vijijj=function(){return(py=t.dynCall_vijijj=t.asm.hg).apply(null,arguments)},_y=t.dynCall_iji=function(){return(_y=t.dynCall_iji=t.asm.ig).apply(null,arguments)},yy=t.dynCall_viji=function(){return(yy=t.dynCall_viji=t.asm.jg).apply(null,arguments)},my=t.dynCall_vij=function(){return(my=t.dynCall_vij=t.asm.kg).apply(null,arguments)},by=t.dynCall_viiiij=function(){return(by=t.dynCall_viiiij=t.asm.lg).apply(null,arguments)},gy=t.dynCall_jii=function(){return(gy=t.dynCall_jii=t.asm.mg).apply(null,arguments)},vy=t.dynCall_viiiji=function(){return(vy=t.dynCall_viiiji=t.asm.ng).apply(null,arguments)},wy=t.dynCall_vijj=function(){return(wy=t.dynCall_vijj=t.asm.og).apply(null,arguments)},jy=t.dynCall_vj=function(){return(jy=t.dynCall_vj=t.asm.pg).apply(null,arguments)},By=t.dynCall_iiji=function(){return(By=t.dynCall_iiji=t.asm.qg).apply(null,arguments)},Ty=t.dynCall_iiiij=function(){return(Ty=t.dynCall_iiiij=t.asm.rg).apply(null,arguments)},Sy=t.dynCall_iiiiiji=function(){return(Sy=t.dynCall_iiiiiji=t.asm.sg).apply(null,arguments)},Iy=t.dynCall_iiiji=function(){return(Iy=t.dynCall_iiiji=t.asm.tg).apply(null,arguments)},Ay=t.dynCall_iiiiji=function(){return(Ay=t.dynCall_iiiiji=t.asm.ug).apply(null,arguments)},Dy=t.dynCall_jiii=function(){return(Dy=t.dynCall_jiii=t.asm.vg).apply(null,arguments)},Fy=t.dynCall_jij=function(){return(Fy=t.dynCall_jij=t.asm.wg).apply(null,arguments)},Oy=t.dynCall_iijjijj=function(){return(Oy=t.dynCall_iijjijj=t.asm.xg).apply(null,arguments)},ky=t.dynCall_viiiijiiiii=function(){return(ky=t.dynCall_viiiijiiiii=t.asm.yg).apply(null,arguments)},Cy=t.dynCall_viiiijiiii=function(){return(Cy=t.dynCall_viiiijiiii=t.asm.zg).apply(null,arguments)},My=t.dynCall_viiijii=function(){return(My=t.dynCall_viiijii=t.asm.Ag).apply(null,arguments)},Uy=t.dynCall_viiiiiij=function(){return(Uy=t.dynCall_viiiiiij=t.asm.Bg).apply(null,arguments)},Ey=t.dynCall_iiijiii=function(){return(Ey=t.dynCall_iiijiii=t.asm.Cg).apply(null,arguments)},Ry=t.dynCall_iiiiijii=function(){return(Ry=t.dynCall_iiiiijii=t.asm.Dg).apply(null,arguments)},xy=t.dynCall_viijiii=function(){return(xy=t.dynCall_viijiii=t.asm.Eg).apply(null,arguments)},Vy=t.dynCall_iiijiij=function(){return(Vy=t.dynCall_iiijiij=t.asm.Fg).apply(null,arguments)},Ny=t.dynCall_vijiii=function(){return(Ny=t.dynCall_vijiii=t.asm.Gg).apply(null,arguments)},Py=t.dynCall_iijjii=function(){return(Py=t.dynCall_iijjii=t.asm.Hg).apply(null,arguments)},Ly=t.dynCall_iijjiii=function(){return(Ly=t.dynCall_iijjiii=t.asm.Ig).apply(null,arguments)},qy=t.dynCall_iijjiiii=function(){return(qy=t.dynCall_iijjiiii=t.asm.Jg).apply(null,arguments)},Hy=t.dynCall_iijji=function(){return(Hy=t.dynCall_iijji=t.asm.Kg).apply(null,arguments)},zy=t.dynCall_vijiiii=function(){return(zy=t.dynCall_vijiiii=t.asm.Lg).apply(null,arguments)},Wy=t.dynCall_iijiiii=function(){return(Wy=t.dynCall_iijiiii=t.asm.Mg).apply(null,arguments)},Yy=t.dynCall_iijii=function(){return(Yy=t.dynCall_iijii=t.asm.Ng).apply(null,arguments)},Gy=t.dynCall_vijij=function(){return(Gy=t.dynCall_vijij=t.asm.Og).apply(null,arguments)},$y=t.dynCall_iiijiiii=function(){return($y=t.dynCall_iiijiiii=t.asm.Pg).apply(null,arguments)},Ky=t.dynCall_jiiij=function(){return(Ky=t.dynCall_jiiij=t.asm.Qg).apply(null,arguments)},Jy=t.dynCall_jiiiii=function(){return(Jy=t.dynCall_jiiiii=t.asm.Rg).apply(null,arguments)},Xy=t.dynCall_iiiiijjiijj=function(){return(Xy=t.dynCall_iiiiijjiijj=t.asm.Sg).apply(null,arguments)},Zy=t.dynCall_viijiiji=function(){return(Zy=t.dynCall_viijiiji=t.asm.Tg).apply(null,arguments)},Qy=t.dynCall_vjjijij=function(){return(Qy=t.dynCall_vjjijij=t.asm.Ug).apply(null,arguments)},em=t.dynCall_vijjji=function(){return(em=t.dynCall_vijjji=t.asm.Vg).apply(null,arguments)},tm=t.dynCall_vjjii=function(){return(tm=t.dynCall_vjjii=t.asm.Wg).apply(null,arguments)},rm=t.dynCall_viiiiiji=function(){return(rm=t.dynCall_viiiiiji=t.asm.Xg).apply(null,arguments)},im=t.dynCall_jiiiji=function(){return(im=t.dynCall_jiiiji=t.asm.Yg).apply(null,arguments)},nm=t.dynCall_iijj=function(){return(nm=t.dynCall_iijj=t.asm.Zg).apply(null,arguments)},sm=t.dynCall_iiijjii=function(){return(sm=t.dynCall_iiijjii=t.asm._g).apply(null,arguments)},om=t.dynCall_vijii=function(){return(om=t.dynCall_vijii=t.asm.$g).apply(null,arguments)},am=t.dynCall_viijjii=function(){return(am=t.dynCall_viijjii=t.asm.ah).apply(null,arguments)},um=t.dynCall_viiiijj=function(){return(um=t.dynCall_viiiijj=t.asm.bh).apply(null,arguments)},cm=t.dynCall_jijjij=function(){return(cm=t.dynCall_jijjij=t.asm.ch).apply(null,arguments)},lm=t.dynCall_jiijii=function(){return(lm=t.dynCall_jiijii=t.asm.dh).apply(null,arguments)},dm=t.dynCall_jijiii=function(){return(dm=t.dynCall_jijiii=t.asm.eh).apply(null,arguments)},fm=t.dynCall_viijiiiii=function(){return(fm=t.dynCall_viijiiiii=t.asm.fh).apply(null,arguments)},hm=t.dynCall_viijiiij=function(){return(hm=t.dynCall_viijiiij=t.asm.gh).apply(null,arguments)},pm=t.dynCall_vijiiiji=function(){return(pm=t.dynCall_vijiiiji=t.asm.hh).apply(null,arguments)},_m=t.dynCall_jiiji=function(){return(_m=t.dynCall_jiiji=t.asm.ih).apply(null,arguments)},ym=t.dynCall_viiijij=function(){return(ym=t.dynCall_viiijij=t.asm.jh).apply(null,arguments)},mm=t.dynCall_viijiij=function(){return(mm=t.dynCall_viijiij=t.asm.kh).apply(null,arguments)},bm=t.dynCall_viiiiijj=function(){return(bm=t.dynCall_viiiiijj=t.asm.lh).apply(null,arguments)},gm=t.dynCall_viiijji=function(){return(gm=t.dynCall_viiijji=t.asm.mh).apply(null,arguments)},vm=t.dynCall_iiiijiii=function(){return(vm=t.dynCall_iiiijiii=t.asm.nh).apply(null,arguments)},wm=t.dynCall_iiijij=function(){return(wm=t.dynCall_iiijij=t.asm.oh).apply(null,arguments)},jm=t.dynCall_iiijji=function(){return(jm=t.dynCall_iiijji=t.asm.ph).apply(null,arguments)},Bm=t.dynCall_iiiijj=function(){return(Bm=t.dynCall_iiiijj=t.asm.qh).apply(null,arguments)},Tm=t.dynCall_viiijiii=function(){return(Tm=t.dynCall_viiijiii=t.asm.rh).apply(null,arguments)},Sm=t.dynCall_vijji=function(){return(Sm=t.dynCall_vijji=t.asm.sh).apply(null,arguments)},Im=t.dynCall_jiiiij=function(){return(Im=t.dynCall_jiiiij=t.asm.th).apply(null,arguments)},Am=t.dynCall_jiijiiiii=function(){return(Am=t.dynCall_jiijiiiii=t.asm.uh).apply(null,arguments)},Dm=t.dynCall_jiijiijiii=function(){return(Dm=t.dynCall_jiijiijiii=t.asm.vh).apply(null,arguments)},Fm=t.dynCall_jiijjiii=function(){return(Fm=t.dynCall_jiijjiii=t.asm.wh).apply(null,arguments)},Om=t.dynCall_jiiijii=function(){return(Om=t.dynCall_jiiijii=t.asm.xh).apply(null,arguments)},km=t.dynCall_jiijijii=function(){return(km=t.dynCall_jiijijii=t.asm.yh).apply(null,arguments)},Cm=t.dynCall_viiijjij=function(){return(Cm=t.dynCall_viiijjij=t.asm.zh).apply(null,arguments)},Mm=t.dynCall_vijijjiij=function(){return(Mm=t.dynCall_vijijjiij=t.asm.Ah).apply(null,arguments)},Um=t.dynCall_viijjij=function(){return(Um=t.dynCall_viijjij=t.asm.Bh).apply(null,arguments)},Em=t.dynCall_viiijjiij=function(){return(Em=t.dynCall_viiijjiij=t.asm.Ch).apply(null,arguments)},Rm=t.dynCall_viiiijjjj=function(){return(Rm=t.dynCall_viiiijjjj=t.asm.Dh).apply(null,arguments)},xm=t.dynCall_viijiiiiij=function(){return(xm=t.dynCall_viijiiiiij=t.asm.Eh).apply(null,arguments)},Vm=t.dynCall_viijiiiijj=function(){return(Vm=t.dynCall_viijiiiijj=t.asm.Fh).apply(null,arguments)},Nm=t.dynCall_viiijiiiijjj=function(){return(Nm=t.dynCall_viiijiiiijjj=t.asm.Gh).apply(null,arguments)},Pm=t.dynCall_viijijiiiijjj=function(){return(Pm=t.dynCall_viijijiiiijjj=t.asm.Hh).apply(null,arguments)},Lm=t.dynCall_viiiiijiiii=function(){return(Lm=t.dynCall_viiiiijiiii=t.asm.Ih).apply(null,arguments)},qm=t.dynCall_iiijii=function(){return(qm=t.dynCall_iiijii=t.asm.Jh).apply(null,arguments)},Hm=t.dynCall_fiijii=function(){return(Hm=t.dynCall_fiijii=t.asm.Kh).apply(null,arguments)},zm=t.dynCall_diijii=function(){return(zm=t.dynCall_diijii=t.asm.Lh).apply(null,arguments)},Wm=t.dynCall_iiiiiiijii=function(){return(Wm=t.dynCall_iiiiiiijii=t.asm.Mh).apply(null,arguments)},Ym=t.dynCall_viiiiji=function(){return(Ym=t.dynCall_viiiiji=t.asm.Nh).apply(null,arguments)},Gm=t.dynCall_jiiiijii=function(){return(Gm=t.dynCall_jiiiijii=t.asm.Oh).apply(null,arguments)},$m=t.dynCall_jiiijiii=function(){return($m=t.dynCall_jiiijiii=t.asm.Ph).apply(null,arguments)},Km=t.dynCall_jiiiiijiiii=function(){return(Km=t.dynCall_jiiiiijiiii=t.asm.Qh).apply(null,arguments)},Jm=t.dynCall_jj=function(){return(Jm=t.dynCall_jj=t.asm.Rh).apply(null,arguments)},Xm=t.dynCall_jd=function(){return(Xm=t.dynCall_jd=t.asm.Sh).apply(null,arguments)},Zm=t.dynCall_jf=function(){return(Zm=t.dynCall_jf=t.asm.Th).apply(null,arguments)},Qm=t.dynCall_iijjj=function(){return(Qm=t.dynCall_iijjj=t.asm.Uh).apply(null,arguments)},eb=t.dynCall_vijijiiiijjj=function(){return(eb=t.dynCall_vijijiiiijjj=t.asm.Vh).apply(null,arguments)},tb=t.dynCall_iiiiiiji=function(){return(tb=t.dynCall_iiiiiiji=t.asm.Wh).apply(null,arguments)},rb=t.dynCall_iiiiiiiiji=function(){return(rb=t.dynCall_iiiiiiiiji=t.asm.Xh).apply(null,arguments)},ib=t.dynCall_jijijjij=function(){return(ib=t.dynCall_jijijjij=t.asm.Yh).apply(null,arguments)},nb=t.dynCall_viijjj=function(){return(nb=t.dynCall_viijjj=t.asm.Zh).apply(null,arguments)},sb=t.dynCall_vijjij=function(){return(sb=t.dynCall_vijjij=t.asm._h).apply(null,arguments)},ob=t.dynCall_viijjji=function(){return(ob=t.dynCall_viijjji=t.asm.$h).apply(null,arguments)},ab=t.dynCall_iiiiiij=function(){return(ab=t.dynCall_iiiiiij=t.asm.ai).apply(null,arguments)},ub=t.dynCall_iiiiiiiiiiji=function(){return(ub=t.dynCall_iiiiiiiiiiji=t.asm.bi).apply(null,arguments)},cb=t.dynCall_jiiiiiii=function(){return(cb=t.dynCall_jiiiiiii=t.asm.ci).apply(null,arguments)},lb=t.dynCall_jijj=function(){return(lb=t.dynCall_jijj=t.asm.di).apply(null,arguments)},db=t.dynCall_viiiijiiiiiiii=function(){return(db=t.dynCall_viiiijiiiiiiii=t.asm.ei).apply(null,arguments)},fb=t.dynCall_ij=function(){return(fb=t.dynCall_ij=t.asm.fi).apply(null,arguments)},hb=t.dynCall_jjj=function(){return(hb=t.dynCall_jjj=t.asm.gi).apply(null,arguments)},pb=t.dynCall_vjii=function(){return(pb=t.dynCall_vjii=t.asm.hi).apply(null,arguments)},_b=t.dynCall_jjjjjjd=function(){return(_b=t.dynCall_jjjjjjd=t.asm.ii).apply(null,arguments)},yb=t.dynCall_vjiiii=function(){return(yb=t.dynCall_vjiiii=t.asm.ji).apply(null,arguments)},mb=t.dynCall_viiiiijiii=function(){return(mb=t.dynCall_viiiiijiii=t.asm.ki).apply(null,arguments)},bb=t.dynCall_jiij=function(){return(bb=t.dynCall_jiij=t.asm.li).apply(null,arguments)},gb=t.dynCall_iiiijjii=function(){return(gb=t.dynCall_iiiijjii=t.asm.mi).apply(null,arguments)},vb=t.dynCall_iiiiijji=function(){return(vb=t.dynCall_iiiiijji=t.asm.ni).apply(null,arguments)},wb=t.dynCall_viiijjii=function(){return(wb=t.dynCall_viiijjii=t.asm.oi).apply(null,arguments)},jb=t.dynCall_viiiijji=function(){return(jb=t.dynCall_viiiijji=t.asm.pi).apply(null,arguments)},Bb=t.dynCall_viiiijjii=function(){return(Bb=t.dynCall_viiiijjii=t.asm.qi).apply(null,arguments)},Tb=t.dynCall_viiiiijji=function(){return(Tb=t.dynCall_viiiiijji=t.asm.ri).apply(null,arguments)},Sb=t.dynCall_iiiiiijji=function(){return(Sb=t.dynCall_iiiiiijji=t.asm.si).apply(null,arguments)},Ib=t.dynCall_iiiiijjj=function(){return(Ib=t.dynCall_iiiiijjj=t.asm.ti).apply(null,arguments)},Ab=t.dynCall_jijiiii=function(){return(Ab=t.dynCall_jijiiii=t.asm.ui).apply(null,arguments)},Db=t.dynCall_viiijiji=function(){return(Db=t.dynCall_viiijiji=t.asm.vi).apply(null,arguments)},Fb=t.dynCall_iiijjjii=function(){return(Fb=t.dynCall_iiijjjii=t.asm.wi).apply(null,arguments)},Ob=t.dynCall_iiiiijjji=function(){return(Ob=t.dynCall_iiiiijjji=t.asm.xi).apply(null,arguments)},kb=t.dynCall_iiiijjj=function(){return(kb=t.dynCall_iiiijjj=t.asm.yi).apply(null,arguments)},Cb=t.dynCall_iidj=function(){return(Cb=t.dynCall_iidj=t.asm.zi).apply(null,arguments)},Mb=t.dynCall_ijji=function(){return(Mb=t.dynCall_ijji=t.asm.Ai).apply(null,arguments)},Ub=t.dynCall_iiiiiiiij=function(){return(Ub=t.dynCall_iiiiiiiij=t.asm.Bi).apply(null,arguments)},Eb=t.dynCall_iiiiiiij=function(){return(Eb=t.dynCall_iiiiiiij=t.asm.Ci).apply(null,arguments)},Rb=t.dynCall_iiiiiiiiiiiij=function(){return(Rb=t.dynCall_iiiiiiiiiiiij=t.asm.Di).apply(null,arguments)},xb=t.dynCall_iiiiiiiji=function(){return(xb=t.dynCall_iiiiiiiji=t.asm.Ei).apply(null,arguments)},Vb=t.dynCall_iiiidjj=function(){return(Vb=t.dynCall_iiiidjj=t.asm.Fi).apply(null,arguments)},Nb=t.dynCall_jiiiiiijii=function(){return(Nb=t.dynCall_jiiiiiijii=t.asm.Gi).apply(null,arguments)},Pb=t.dynCall_iiiijji=function(){return(Pb=t.dynCall_iiiijji=t.asm.Hi).apply(null,arguments)},Lb=t.dynCall_jiiiiii=function(){return(Lb=t.dynCall_jiiiiii=t.asm.Ii).apply(null,arguments)},qb=t.dynCall_iijiji=function(){return(qb=t.dynCall_iijiji=t.asm.Ji).apply(null,arguments)},Hb=t.dynCall_vjiiiji=function(){return(Hb=t.dynCall_vjiiiji=t.asm.Ki).apply(null,arguments)},zb=t.dynCall_jjjii=function(){return(zb=t.dynCall_jjjii=t.asm.Li).apply(null,arguments)},Wb=t.dynCall_jji=function(){return(Wb=t.dynCall_jji=t.asm.Mi).apply(null,arguments)},Yb=t.dynCall_viiijijiji=function(){return(Yb=t.dynCall_viiijijiji=t.asm.Ni).apply(null,arguments)},Gb=t.dynCall_jiiijj=function(){return(Gb=t.dynCall_jiiijj=t.asm.Oi).apply(null,arguments)},$b=t.dynCall_iiiijii=function(){return($b=t.dynCall_iiiijii=t.asm.Pi).apply(null,arguments)},Kb=t.dynCall_viiiijii=function(){return(Kb=t.dynCall_viiiijii=t.asm.Qi).apply(null,arguments)},Jb=t.dynCall_iijiii=function(){return(Jb=t.dynCall_iijiii=t.asm.Ri).apply(null,arguments)},Xb=t.dynCall_jiiiiji=function(){return(Xb=t.dynCall_jiiiiji=t.asm.Si).apply(null,arguments)},Zb=t.dynCall_vijiijj=function(){return(Zb=t.dynCall_vijiijj=t.asm.Ti).apply(null,arguments)},Qb=t.dynCall_vifiijj=function(){return(Qb=t.dynCall_vifiijj=t.asm.Ui).apply(null,arguments)},eg=t.dynCall_vidiijj=function(){return(eg=t.dynCall_vidiijj=t.asm.Vi).apply(null,arguments)},tg=t.dynCall_viiiiij=function(){return(tg=t.dynCall_viiiiij=t.asm.Wi).apply(null,arguments)},rg=t.dynCall_ijjiii=function(){return(rg=t.dynCall_ijjiii=t.asm.Xi).apply(null,arguments)},ig=t.dynCall_vijijjji=function(){return(ig=t.dynCall_vijijjji=t.asm.Yi).apply(null,arguments)},ng=t.dynCall_viijiijj=function(){return(ng=t.dynCall_viijiijj=t.asm.Zi).apply(null,arguments)},sg=t.dynCall_viijijj=function(){return(sg=t.dynCall_viijijj=t.asm._i).apply(null,arguments)},og=t.dynCall_viiiiijjji=function(){return(og=t.dynCall_viiiiijjji=t.asm.$i).apply(null,arguments)},ag=t.dynCall_iiijiijj=function(){return(ag=t.dynCall_iiijiijj=t.asm.aj).apply(null,arguments)},ug=t.dynCall_viiijijjj=function(){return(ug=t.dynCall_viiijijjj=t.asm.bj).apply(null,arguments)},cg=t.dynCall_iijiijj=function(){return(cg=t.dynCall_iijiijj=t.asm.cj).apply(null,arguments)},lg=t.dynCall_viiijjjji=function(){return(lg=t.dynCall_viiijjjji=t.asm.dj).apply(null,arguments)},dg=t.dynCall_viiiijiii=function(){return(dg=t.dynCall_viiiijiii=t.asm.ej).apply(null,arguments)},fg=t.dynCall_viijiiii=function(){return(fg=t.dynCall_viijiiii=t.asm.fj).apply(null,arguments)},hg=t.dynCall_vijjiiii=function(){return(hg=t.dynCall_vijjiiii=t.asm.gj).apply(null,arguments)},pg=t.dynCall_vijijjiiiii=function(){return(pg=t.dynCall_vijijjiiiii=t.asm.hj).apply(null,arguments)},_g=t.dynCall_vijjiiiii=function(){return(_g=t.dynCall_vijjiiiii=t.asm.ij).apply(null,arguments)},yg=t.dynCall_iiijjji=function(){return(yg=t.dynCall_iiijjji=t.asm.jj).apply(null,arguments)},mg=t.dynCall_viiiijjj=function(){return(mg=t.dynCall_viiiijjj=t.asm.kj).apply(null,arguments)},bg=t.dynCall_viiiiijjj=function(){return(bg=t.dynCall_viiiiijjj=t.asm.lj).apply(null,arguments)},gg=t.dynCall_viijiji=function(){return(gg=t.dynCall_viijiji=t.asm.mj).apply(null,arguments)};function cB(o){var a=A();try{X(o)()}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function lB(o,a,c){var l=A();try{X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function dB(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function fB(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function hB(o,a){var c=A();try{X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function pB(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function _B(o,a,c,l,d,f){var h=A();try{return X(o)(a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function yB(o,a,c,l,d){var f=A();try{X(o)(a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function mB(o,a,c,l,d){var f=A();try{return X(o)(a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function bB(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function gB(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function vB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function wB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function jB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function BB(o,a,c,l,d,f,h,_){var y=A();try{return X(o)(a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function TB(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function SB(o){var a=A();try{return X(o)()}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function IB(o,a,c,l,d,f,h,_){var y=A();try{X(o)(a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function AB(o,a,c,l,d,f,h){var _=A();try{return X(o)(a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function DB(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function FB(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{X(o)(a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function OB(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve){var Fe=A();try{X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve)}catch(tt){if(S(Fe),tt!==tt+0&&tt!=="longjmp")throw tt;T(1,0)}}function kB(o,a,c,l,d,f,h){var _=A();try{X(o)(a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function CB(o,a,c,l,d,f){var h=A();try{return X(o)(a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function MB(o,a,c,l,d,f,h,_,y){var b=A();try{X(o)(a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function UB(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function EB(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function RB(o,a,c,l,d,f){var h=A();try{X(o)(a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function xB(o,a,c,l,d,f,h,_,y){var b=A();try{return X(o)(a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function VB(o,a,c,l,d){var f=A();try{return X(o)(a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function NB(o,a,c,l,d){var f=A();try{return X(o)(a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function PB(o,a,c,l,d,f){var h=A();try{X(o)(a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function LB(o,a,c){var l=A();try{X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function qB(o,a,c){var l=A();try{X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function HB(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function zB(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function WB(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function YB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function GB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function $B(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y){var ve=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E,Y)}catch(Fe){if(S(ve),Fe!==Fe+0&&Fe!=="longjmp")throw Fe;T(1,0)}}function KB(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function JB(o,a,c,l,d,f,h,_,y,b,g,I,k,E){var Y=A();try{X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E)}catch(ve){if(S(Y),ve!==ve+0&&ve!=="longjmp")throw ve;T(1,0)}}function XB(o,a,c,l,d,f,h,_,y,b){var g=A();try{X(o)(a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function ZB(o){var a=A();try{return X(o)()}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function QB(o){var a=A();try{return X(o)()}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function eT(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function tT(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function rT(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt,P,oe,Ue){var Oe=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt,P,oe,Ue)}catch(Pt){if(S(Oe),Pt!==Pt+0&&Pt!=="longjmp")throw Pt;T(1,0)}}function iT(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt,P,oe){var Ue=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt,P,oe)}catch(Oe){if(S(Ue),Oe!==Oe+0&&Oe!=="longjmp")throw Oe;T(1,0)}}function nT(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function sT(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{X(o)(a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function oT(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function aT(o,a,c,l,d,f,h,_,y,b){var g=A();try{X(o)(a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function uT(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{X(o)(a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function cT(o,a,c,l,d){var f=A();try{return xe(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function lT(o,a,c,l,d,f,h){var _=A();try{sy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function dT(o,a){var c=A();try{return ty(o,a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function fT(o,a,c){var l=A();try{return gy(o,a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function hT(o,a,c,l,d,f,h){var _=A();try{Fr(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function pT(o,a,c,l,d,f,h){var _=A();try{return Ve(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function _T(o,a,c,l,d,f,h,_,y){var b=A();try{return Xt(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function yT(o,a,c,l){var d=A();try{return ry(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function mT(o,a,c,l,d,f){var h=A();try{ay(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function bT(o){var a=A();try{return zr(o)}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function gT(o,a,c,l,d){var f=A();try{iy(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function vT(o,a,c,l,d,f,h,_){var y=A();try{uy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function wT(o,a,c,l,d,f,h){var _=A();try{return cy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function jT(o,a,c,l,d,f,h,_){var y=A();try{ny(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function BT(o,a,c,l,d){var f=A();try{return hy(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function TT(o,a,c,l){var d=A();try{my(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function ST(o,a,c,l,d,f,h){var _=A();try{by(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function IT(o,a,c,l,d,f){var h=A();try{ly(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function AT(o,a,c,l,d,f,h,_,y,b){var g=A();try{fy(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function DT(o,a,c,l,d,f,h,_,y){var b=A();try{py(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function FT(o,a,c,l){var d=A();try{return _y(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function OT(o,a,c,l,d){var f=A();try{yy(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function kT(o,a,c,l,d,f,h,_){var y=A();try{oy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function CT(o,a,c,l,d,f,h,_,y){var b=A();try{nb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function MT(o,a,c,l,d,f,h,_){var y=A();try{return rg(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function UT(o,a,c,l,d,f){var h=A();try{wy(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function ET(o,a,c,l,d,f,h){var _=A();try{vy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function RT(o,a,c){var l=A();try{jy(o,a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function xT(o,a,c,l,d){var f=A();try{return By(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function VT(o,a,c,l,d,f){var h=A();try{return Ty(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function NT(o,a,c,l,d,f,h,_){var y=A();try{return Bm(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function PT(o,a,c,l,d,f,h,_){var y=A();try{Ym(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function LT(o,a,c,l,d,f,h,_){var y=A();try{return wm(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function qT(o,a,c,l,d,f){var h=A();try{return Iy(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function HT(o,a,c,l,d,f){var h=A();try{return nm(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function zT(o,a,c,l,d,f,h,_){var y=A();try{return jm(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function WT(o,a,c,l,d,f,h,_){var y=A();try{return Sy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function YT(o,a,c,l,d,f,h){var _=A();try{return Ay(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function GT(o,a,c,l){var d=A();try{return Dy(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function $T(o,a,c,l,d,f,h){var _=A();try{Ny(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function KT(o,a,c,l,d,f,h,_){var y=A();try{zy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function JT(o,a,c,l,d,f,h,_){var y=A();try{return Wy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function XT(o,a,c,l,d,f,h,_){var y=A();try{return Ey(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function ZT(o,a,c,l,d,f,h,_,y){var b=A();try{return Ry(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function QT(o,a,c,l,d,f,h,_){var y=A();try{xy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function eS(o,a,c,l,d,f,h,_,y){var b=A();try{return Vy(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function tS(o,a,c,l,d,f,h,_){var y=A();try{return Py(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function rS(o,a,c,l,d,f,h,_,y){var b=A();try{return Ly(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function iS(o,a,c,l,d,f,h,_,y,b){var g=A();try{return qy(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function nS(o,a,c,l,d,f,h){var _=A();try{return Hy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function sS(o,a,c,l,d,f,h,_,y){var b=A();try{Uy(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function oS(o,a,c,l,d,f,h,_){var y=A();try{My(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function aS(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Oy(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function uS(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{ky(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function cS(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Cy(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function lS(o,a,c,l,d,f){var h=A();try{return Yy(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function dS(o,a,c,l,d,f,h){var _=A();try{tm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function fS(o,a,c,l,d,f,h,_,y){var b=A();try{return $y(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function hS(o,a,c,l,d,f,h,_,y){var b=A();try{gm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function pS(o,a,c,l){var d=A();try{return Fy(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function _S(o,a,c,l,d,f){var h=A();try{return Ky(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function yS(o,a,c,l,d,f,h,_,y){var b=A();try{em(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function mS(o,a,c,l,d,f){var h=A();try{return Jy(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function bS(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Qy(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function gS(o,a,c,l,d,f){var h=A();try{return _m(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function vS(o,a,c,l,d,f,h,_,y,b){var g=A();try{Zy(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function wS(o,a,c,l,d,f,h){var _=A();try{return im(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function jS(o,a,c,l,d,f,h){var _=A();try{Gy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function BS(o,a,c,l,d,f,h,_,y){var b=A();try{rm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function TS(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y){var ve=A();try{return Xy(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y)}catch(Fe){if(S(ve),Fe!==Fe+0&&Fe!=="longjmp")throw Fe;T(1,0)}}function SS(o,a,c,l,d,f,h,_,y){var b=A();try{return sm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function IS(o,a,c,l,d,f,h,_){var y=A();try{dy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function AS(o,a,c,l,d,f){var h=A();try{om(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function DS(o,a,c,l,d,f,h,_,y){var b=A();try{am(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function FS(o,a,c,l,d,f,h){var _=A();try{return lm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function OS(o,a,c,l,d,f,h,_,y,b){var g=A();try{fm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function kS(o,a,c,l,d,f,h,_,y,b){var g=A();try{hm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function CS(o,a,c,l,d,f,h){var _=A();try{return dm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function MS(o,a,c,l,d,f,h,_,y,b){var g=A();try{pm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function US(o,a,c,l,d,f,h,_,y){var b=A();try{return cm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function ES(o,a,c,l,d,f,h,_,y){var b=A();try{mm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function RS(o,a,c,l,d,f,h,_,y){var b=A();try{um(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function xS(o,a,c,l,d,f,h,_,y){var b=A();try{return vm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function VS(o,a,c,l,d,f,h,_,y){var b=A();try{Tm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function NS(o,a,c,l,d,f,h){var _=A();try{Sm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function PS(o,a,c,l,d,f,h){var _=A();try{return Im(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function LS(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Cm(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function qS(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{Mm(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function HS(o,a,c,l,d,f,h,_,y,b){var g=A();try{Um(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function zS(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{Rm(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function WS(o,a,c,l,d,f,h,_,y,b){var g=A();try{return Am(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function YS(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return Dm(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function GS(o,a,c,l,d,f,h,_,y,b){var g=A();try{return Fm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function $S(o,a,c,l,d,f,h,_){var y=A();try{return Om(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function KS(o,a,c,l,d,f,h,_,y,b){var g=A();try{return km(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function JS(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{xm(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function XS(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{Vm(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function ZS(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve){var Fe=A();try{Nm(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve)}catch(tt){if(S(Fe),tt!==tt+0&&tt!=="longjmp")throw tt;T(1,0)}}function QS(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt){var P=A();try{Pm(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt)}catch(oe){if(S(P),oe!==oe+0&&oe!=="longjmp")throw oe;T(1,0)}}function eI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{Em(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function tI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Nb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function rI(o,a,c,l,d,f,h,_,y){var b=A();try{return Pb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function iI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{Lm(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function nI(o,a,c,l,d,f,h,_,y){var b=A();try{return Gm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function sI(o,a,c,l,d,f,h){var _=A();try{return qm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function oI(o,a,c,l,d,f,h){var _=A();try{return Hm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function aI(o,a,c,l,d,f,h){var _=A();try{return zm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function uI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Wm(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function cI(o,a,c,l,d,f,h,_,y){var b=A();try{return $m(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function lI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return Km(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function dI(o,a,c){var l=A();try{return Jm(o,a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function fI(o,a){var c=A();try{return Xm(o,a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function hI(o,a){var c=A();try{return Zm(o,a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function pI(o,a,c,l,d,f,h){var _=A();try{return Lb(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function _I(o,a,c,l,d,f){var h=A();try{return Mb(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function yI(o,a,c,l,d,f,h,_,y){var b=A();try{return tb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function mI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return rb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function bI(o,a,c,l,d,f,h,_,y,b){var g=A();try{bm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function gI(o,a,c,l,d,f,h,_){var y=A();try{return Qm(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function vI(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe){var tt=A();try{eb(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe)}catch(P){if(S(tt),P!==P+0&&P!=="longjmp")throw P;T(1,0)}}function wI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return ib(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function jI(o,a,c,l,d,f,h,_,y){var b=A();try{sb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function BI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return Ub(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function TI(o,a,c,l,d,f,h,_,y,b){var g=A();try{ob(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function SI(o,a,c,l,d,f,h,_){var y=A();try{return ab(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function II(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{return ub(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function AI(o,a,c,l,d,f,h,_){var y=A();try{return cb(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function DI(o,a,c,l,d,f,h,_,y){var b=A();try{return Eb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function FI(o,a,c,l,d,f,h,_,y,b,g,I,k,E){var Y=A();try{return Rb(o,a,c,l,d,f,h,_,y,b,g,I,k,E)}catch(ve){if(S(Y),ve!==ve+0&&ve!=="longjmp")throw ve;T(1,0)}}function OI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{mb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function kI(o,a,c,l,d){var f=A();try{return bb(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function CI(o,a,c){var l=A();try{return fb(o,a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function MI(o,a,c,l,d,f,h){var _=A();try{yb(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function UI(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y){var ve=A();try{db(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y)}catch(Fe){if(S(ve),Fe!==Fe+0&&Fe!=="longjmp")throw Fe;T(1,0)}}function EI(o,a,c,l,d){var f=A();try{return hb(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function RI(o,a,c,l,d){var f=A();try{pb(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function xI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return _b(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function VI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return gb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function NI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return vb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function PI(o,a,c,l,d,f,h,_,y,b){var g=A();try{wb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function LI(o,a,c,l,d,f,h,_,y,b){var g=A();try{jb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function qI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Bb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function HI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Tb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function zI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Sb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function WI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Fb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function YI(o,a,c,l,d,f,h,_,y,b){var g=A();try{Db(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function GI(o,a,c,l,d,f,h,_){var y=A();try{return Ab(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function $I(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Ib(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function KI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return Ob(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function JI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return kb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function XI(o,a,c,l,d){var f=A();try{return Cb(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function ZI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return xb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function QI(o,a,c,l,d,f,h,_,y){var b=A();try{return Vb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function eA(o,a,c,l,d,f,h,_){var y=A();try{return qb(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function tA(o,a,c,l,d,f,h,_,y){var b=A();try{Hb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function rA(o,a,c,l,d,f,h){var _=A();try{return zb(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function iA(o,a,c,l){var d=A();try{return Wb(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function nA(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{Yb(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function sA(o,a,c,l,d,f,h,_,y){var b=A();try{ym(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function oA(o,a,c,l,d,f,h,_){var y=A();try{return Gb(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function aA(o,a,c,l,d,f,h,_){var y=A();try{return $b(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function uA(o,a,c,l,d,f,h,_,y){var b=A();try{Kb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function cA(o,a,c,l,d,f,h){var _=A();try{return Jb(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function lA(o,a,c,l,d,f,h,_){var y=A();try{return Xb(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function dA(o,a,c,l,d,f,h,_,y,b){var g=A();try{Zb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function fA(o,a,c,l,d,f,h,_,y){var b=A();try{Qb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function hA(o,a,c,l,d,f,h,_,y){var b=A();try{eg(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function pA(o,a,c,l,d,f,h,_){var y=A();try{tg(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function _A(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{ig(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function yA(o,a,c,l,d,f){var h=A();try{return lb(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function mA(o,a,c,l,d,f,h,_,y,b){var g=A();try{sg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function bA(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return ag(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function gA(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{ng(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function vA(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{og(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function wA(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{ug(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function jA(o,a,c,l,d,f,h,_,y,b){var g=A();try{return cg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function BA(o,a,c,l,d,f,h,_,y,b){var g=A();try{return yg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function TA(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{lg(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function SA(o,a,c,l,d,f,h,_,y,b){var g=A();try{dg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function IA(o,a,c,l,d,f,h,_,y){var b=A();try{fg(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function AA(o,a,c,l,d,f,h,_,y){var b=A();try{gg(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function DA(o,a,c,l,d,f,h,_,y,b,g,I,k,E){var Y=A();try{pg(o,a,c,l,d,f,h,_,y,b,g,I,k,E)}catch(ve){if(S(Y),ve!==ve+0&&ve!=="longjmp")throw ve;T(1,0)}}function FA(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{_g(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function OA(o,a,c,l,d,f,h,_,y,b){var g=A();try{hg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function kA(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{mg(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function CA(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{bg(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}t.ccall=Ar;var pu;function _u(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var MA=!1;Dt=function o(){pu||yf(),pu||(Dt=o)};function UA(o){var a=t._main,c=0,l=0;try{var d=a(c,l);return EA(d,!0),d}catch(f){return Rl(f)}finally{MA=!0}}function yf(o){if(o=o||p,_i>0||(Ol(),_i>0))return;function a(){pu||(pu=!0,t.calledRun=!0,!Ye&&(kl(),Cl(),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),vg&&UA(o),Ul()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),a()},1)):a()}t.run=yf;function EA(o,a){Jt=o,xo()||Ml(),RA(o)}function RA(o){Jt=o,xo()||(t.onExit&&t.onExit(o),Ye=!0),B(o,new _u(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var vg=!0;return t.noInitialRun&&(vg=!1),yf(),e.ready}})(),oB=fE;var Wa=class extends jl{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){globalThis.DUCKDB_RUNTIME=this._runtime;let i=this.onInstantiationProgress;if(typeof TransformStream=="function"&&ReadableStream.prototype.pipeThrough&&WebAssembly.instantiateStreaming){let s=(async()=>{var Se;let u=new Request(this.mainModuleURL),p=await fetch(u),m=p.headers.get("content-length"),B=m&&parseInt(m,10)||0,O=new Date,R={startedAt:O,updatedAt:O,bytesTotal:B||0,bytesLoaded:0},W={transform(ye,Ee){R.bytesLoaded+=ye.byteLength;let He=new Date;if(He.getTime()-R.updatedAt.getTime()<20){R.updatedAt=He,Ee.enqueue(ye);return}for(let Tt of i)Tt(R);Ee.enqueue(ye)}},N=new TransformStream(W);return new Response((Se=p.body)==null?void 0:Se.pipeThrough(N),p)})();WebAssembly.instantiateStreaming(s,e).then(u=>{t(u.instance,u.module)})}else{let n=new XMLHttpRequest,s=this.mainModuleURL,u=new Date,p={startedAt:u,updatedAt:u,bytesTotal:0,bytesLoaded:0};n.open("GET",s),n.responseType="arraybuffer",n.onerror=m=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+m}),new Error(m.toString())},n.onprogress=m=>{p.bytesTotal=m.total,p.bytesLoaded=m.loaded;let B=new Date;if(B.getTime()-p.updatedAt.getTime()<20){p.updatedAt=B;return}for(let O of i)O(p)},n.onload=()=>{WebAssembly.instantiate(n.response,e).then(m=>{t(m.instance,m.module)}).catch(m=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+m}),new Error(m)})},n.send()}return[]}};var J_=class extends Wa{constructor(e,t,i,n=null){super(e,t,i,n)}instantiateImpl(e){return oB(En(Wr({},e),{instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)}))}};var aB={},hE=(()=>{var r=aB.url;return function(e){e=e||{};var t=typeof e<"u"?e:{},i=Object.assign,n,s;t.ready=new Promise(function(v,j){n=v,s=j});var u=i({},t),p=[],m="./this.program",B=(v,j)=>{throw j},O=typeof window=="object",R=typeof importScripts=="function",W=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",N="";function Se(v){return t.locateFile?t.locateFile(v,N):N+v}var ye,Ee,He,Tt;function Pr(v){if(v instanceof As)return;ge("exiting due to exception: "+v)}var Sr,Ir,Lr;W?(R?N=za().dirname(N)+"/":N=__dirname+"/",Lr=function(){Ir||(Sr=K_(),Ir=za())},ye=function(j,D){return Lr(),j=Ir.normalize(j),Sr.readFileSync(j,D?null:"utf8")},He=function(j){var D=ye(j,!0);return D.buffer||(D=new Uint8Array(D)),D},Ee=function(j,D,C){Lr(),j=Ir.normalize(j),Sr.readFile(j,function(x,te){x?C(x):D(te.buffer)})},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),p=process.argv.slice(2),process.on("uncaughtException",function(v){if(!(v instanceof As))throw v}),process.on("unhandledRejection",function(v){throw v}),B=(v,j)=>{if(Ro())throw process.exitCode=v,j;Pr(j),process.exit(v)},t.inspect=function(){return"[Emscripten Module object]"}):(O||R)&&(R?N=self.location.href:typeof document<"u"&&document.currentScript&&(N=document.currentScript.src),r&&(N=r),N.indexOf("blob:")!==0?N=N.substr(0,N.replace(/[?#].*/,"").lastIndexOf("/")+1):N="",ye=function(v){var j=new XMLHttpRequest;return j.open("GET",v,!1),j.send(null),j.responseText},R&&(He=function(v){var j=new XMLHttpRequest;return j.open("GET",v,!1),j.responseType="arraybuffer",j.send(null),new Uint8Array(j.response)}),Ee=function(v,j,D){var C=new XMLHttpRequest;C.open("GET",v,!0),C.responseType="arraybuffer",C.onload=function(){if(C.status==200||C.status==0&&C.response){j(C.response);return}D()},C.onerror=D,C.send(null)},Tt=v=>document.title=v);var jn=t.print||console.log.bind(console),ge=t.printErr||console.warn.bind(console);i(t,u),u=null,t.arguments&&(p=t.arguments),t.thisProgram&&(m=t.thisProgram),t.quit&&(B=t.quit);var Ne;t.wasmBinary&&(Ne=t.wasmBinary);var ze=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Dt("no native wasm support detected");var tr,Vt=!1,rr;function Kt(v,j){v||Dt(j)}function Ye(v){var j=t["_"+v];return j}function Jt(v,j,D,C,x){var te={string:function(S){var Nt=0;if(S!=null&&S!==0){var Ut=(S.length<<2)+1;Nt=Xo(Ut),as(S,Nt,Ut)}return Nt},array:function(S){var Nt=Xo(S.length);return ko(S,Nt),Nt}};function J(S){return j==="string"?Ar(S):j==="boolean"?Boolean(S):S}var $=Ye(v),ue=[],Re=0;if(C)for(var Me=0;Me<C.length;Me++){var Mt=te[D[Me]];Mt?(Re===0&&(Re=du()),ue[Me]=Mt(C[Me])):ue[Me]=C[Me]}var T=$.apply(null,ue);function A(S){return Re!==0&&fu(Re),J(S)}return T=A(T),T}var Bn=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Ya(v,j,D){for(var C=j+D,x=j;v[x]&&!(x>=C);)++x;if(x-j>16&&v.subarray&&Bn)return Bn.decode(v.subarray(j,x));for(var te="";j<x;){var J=v[j++];if(!(J&128)){te+=String.fromCharCode(J);continue}var $=v[j++]&63;if((J&224)==192){te+=String.fromCharCode((J&31)<<6|$);continue}var ue=v[j++]&63;if((J&240)==224?J=(J&15)<<12|$<<6|ue:J=(J&7)<<18|$<<12|ue<<6|v[j++]&63,J<65536)te+=String.fromCharCode(J);else{var Re=J-65536;te+=String.fromCharCode(55296|Re>>10,56320|Re&1023)}}return te}function Ar(v,j){return v?Ya(qr,v,j):""}function Oo(v,j,D,C){if(!(C>0))return 0;for(var x=D,te=D+C-1,J=0;J<v.length;++J){var $=v.charCodeAt(J);if($>=55296&&$<=57343){var ue=v.charCodeAt(++J);$=65536+(($&1023)<<10)|ue&1023}if($<=127){if(D>=te)break;j[D++]=$}else if($<=2047){if(D+1>=te)break;j[D++]=192|$>>6,j[D++]=128|$&63}else if($<=65535){if(D+2>=te)break;j[D++]=224|$>>12,j[D++]=128|$>>6&63,j[D++]=128|$&63}else{if(D+3>=te)break;j[D++]=240|$>>18,j[D++]=128|$>>12&63,j[D++]=128|$>>6&63,j[D++]=128|$&63}}return j[D]=0,D-x}function as(v,j,D){return Oo(v,qr,j,D)}function Dr(v){for(var j=0,D=0;D<v.length;++D){var C=v.charCodeAt(D);C>=55296&&C<=57343&&(C=65536+((C&1023)<<10)|v.charCodeAt(++D)&1023),C<=127?++j:C<=2047?j+=2:C<=65535?j+=3:j+=4}return j}function ko(v,j){Tn.set(v,j)}function Co(v,j,D){for(var C=0;C<v.length;++C)Tn[j++>>0]=v.charCodeAt(C);D||(Tn[j>>0]=0)}function Sl(v,j){return v%j>0&&(v+=j-v%j),v}var Mo,Tn,qr,ki,ir,re,Sn,Ga,Q;function $a(v){Mo=v,t.HEAP8=Tn=new Int8Array(v),t.HEAP16=ki=new Int16Array(v),t.HEAP32=re=new Int32Array(v),t.HEAPU8=qr=new Uint8Array(v),t.HEAPU16=ir=new Uint16Array(v),t.HEAPU32=Sn=new Uint32Array(v),t.HEAPF32=Ga=new Float32Array(v),t.HEAPF64=Q=new Float64Array(v)}var Z_=t.INITIAL_MEMORY||16777216,Ka,Uo=[],Il=[],Ja=[],Eo=[],Xa=!1,Al=!1,Za=0;function Ro(){return ze||Za>0}function Dl(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Cl(t.preRun.shift());An(Uo)}function Fl(){Xa=!0,An(Il)}function xo(){An(Ja)}function Ol(){Al=!0}function kl(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Ul(t.postRun.shift());An(Eo)}function Cl(v){Uo.unshift(v)}function Ml(v){Il.unshift(v)}function Ul(v){Eo.unshift(v)}var pi=0,Vo=null,In=null;function _i(v){pi++,t.monitorRunDependencies&&t.monitorRunDependencies(pi)}function No(v){if(pi--,t.monitorRunDependencies&&t.monitorRunDependencies(pi),pi==0&&(Vo!==null&&(clearInterval(Vo),Vo=null),In)){var j=In;In=null,j()}}t.preloadedImages={},t.preloadedAudios={};function Dt(v){t.onAbort&&t.onAbort(v),v="Aborted("+v+")",ge(v),Vt=!0,rr=1,v+=". Build with -s ASSERTIONS=1 for more info.";var j=new WebAssembly.RuntimeError(v);throw s(j),j}var El="data:application/octet-stream;base64,";function Qa(v){return v.startsWith(El)}var Je;t.locateFile?(Je="./duckdb-eh.wasm",Qa(Je)||(Je=Se(Je))):Je=new URL("./duckdb-eh.wasm",aB.url).toString();function eu(v){try{if(v==Je&&Ne)return new Uint8Array(Ne);if(He)return He(v);throw"both async and sync fetching of the wasm failed"}catch(j){Dt(j)}}function tu(){return!Ne&&(O||R)&&typeof fetch=="function"?fetch(Je,{credentials:"same-origin"}).then(function(v){if(!v.ok)throw"failed to load wasm binary file at '"+Je+"'";return v.arrayBuffer()}).catch(function(){return eu(Je)}):Promise.resolve().then(function(){return eu(Je)})}function Ht(){var v={a:Mn};function j(J,$){var ue=J.exports;t.asm=ue,tr=t.asm.ea,$a(tr.buffer),Ka=t.asm.ha,Ml(t.asm.fa),No("wasm-instantiate")}_i("wasm-instantiate");function D(J){j(J.instance)}function C(J){return tu().then(function($){return WebAssembly.instantiate($,v)}).then(function($){return $}).then(J,function($){ge("failed to asynchronously prepare wasm: "+$),Dt($)})}function x(){return!Ne&&typeof WebAssembly.instantiateStreaming=="function"&&!Qa(Je)&&typeof fetch=="function"?fetch(Je,{credentials:"same-origin"}).then(function(J){var $=WebAssembly.instantiateStreaming(J,v);return $.then(D,function(ue){return ge("wasm streaming compile failed: "+ue),ge("falling back to ArrayBuffer instantiation"),C(D)})}):C(D)}if(t.instantiateWasm)try{var te=t.instantiateWasm(v,j);return te}catch(J){return ge("Module.instantiateWasm callback failed with error: "+J),!1}return x().catch(s),{}}function An(v){for(;v.length>0;){var j=v.shift();if(typeof j=="function"){j(t);continue}var D=j.func;typeof D=="number"?j.arg===void 0?ru(D)():ru(D)(j.arg):D(j.arg===void 0?null:j.arg)}}var us=[];function ru(v){var j=us[v];return j||(v>=us.length&&(us.length=v+1),us[v]=j=Ka.get(v)),j}function cs(v){if(v instanceof As||v=="unwind")return rr;B(1,v)}function ls(v,j,D,C){Dt("Assertion failed: "+Ar(v)+", at: "+[j?Ar(j):"unknown filename",D,C?Ar(C):"unknown function"])}var X={mappings:{},buffers:[null,[],[]],printChar:function(v,j){var D=X.buffers[v];j===0||j===10?((v===1?jn:ge)(Ya(D,0)),D.length=0):D.push(j)},varargs:void 0,get:function(){X.varargs+=4;var v=re[X.varargs-4>>2];return v},getStr:function(v){var j=Ar(v);return j},get64:function(v,j){return v}};function Rl(v,j,D,C,x){}function xl(v,j){return v=X.getStr(v),X.doAccess(v,j)}function Vl(){ge("missing function: $SOCKFS"),Dt(-1)}function Hr(){ge("missing function: $FS"),Dt(-1)}function nr(v){var j=Vl.getSocket(v);if(!j)throw new Hr.ErrnoError(8);return j}function ds(v){return re[lu()>>2]=v,v}function Po(v){return(v&255)+"."+(v>>8&255)+"."+(v>>16&255)+"."+(v>>24&255)}function Dn(v){var j="",D=0,C=0,x=0,te=0,J=0,$=0,ue=[v[0]&65535,v[0]>>16,v[1]&65535,v[1]>>16,v[2]&65535,v[2]>>16,v[3]&65535,v[3]>>16],Re=!0,Me="";for($=0;$<5;$++)if(ue[$]!==0){Re=!1;break}if(Re){if(Me=Po(ue[6]|ue[7]<<16),ue[5]===-1)return j="::ffff:",j+=Me,j;if(ue[5]===0)return j="::",Me==="0.0.0.0"&&(Me=""),Me==="0.0.0.1"&&(Me="1"),j+=Me,j}for(D=0;D<8;D++)ue[D]===0&&(D-x>1&&(J=0),x=D,J++),J>C&&(C=J,te=D-C+1);for(D=0;D<8;D++){if(C>1&&ue[D]===0&&D>=te&&D<te+C){D===te&&(j+=":",te===0&&(j+=":"));continue}j+=Number(Jo(ue[D]&65535)).toString(16),j+=D<7?":":""}return j}function iu(v,j){var D=ki[v>>1],C=Jo(ir[v+2>>1]),x;switch(D){case 2:if(j!==16)return{errno:28};x=re[v+4>>2],x=Po(x);break;case 10:if(j!==28)return{errno:28};x=[re[v+8>>2],re[v+12>>2],re[v+16>>2],re[v+20>>2]],x=Dn(x);break;default:return{errno:5}}return{family:D,addr:x,port:C}}function zt(v){for(var j=v.split("."),D=0;D<4;D++){var C=Number(j[D]);if(isNaN(C))return null;j[D]=C}return(j[0]|j[1]<<8|j[2]<<16|j[3]<<24)>>>0}function Fn(v){return parseInt(v)}function Lo(v){var j,D,C,x,te=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,J=[];if(!te.test(v))return null;if(v==="::")return[0,0,0,0,0,0,0,0];for(v.startsWith("::")?v=v.replace("::","Z:"):v=v.replace("::",":Z:"),v.indexOf(".")>0?(v=v.replace(new RegExp("[.]","g"),":"),j=v.split(":"),j[j.length-4]=Fn(j[j.length-4])+Fn(j[j.length-3])*256,j[j.length-3]=Fn(j[j.length-2])+Fn(j[j.length-1])*256,j=j.slice(0,j.length-2)):j=v.split(":"),C=0,x=0,D=0;D<j.length;D++)if(typeof j[D]=="string")if(j[D]==="Z"){for(x=0;x<8-j.length+1;x++)J[D+x]=0;C=x-1}else J[D+C]=Ss(parseInt(j[D],16));else J[D+C]=j[D];return[J[1]<<16|J[0],J[3]<<16|J[2],J[5]<<16|J[4],J[7]<<16|J[6]]}var Wt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(v){var j=zt(v);if(j!==null||(j=Lo(v),j!==null))return v;var D;if(Wt.address_map.addrs[v])D=Wt.address_map.addrs[v];else{var C=Wt.address_map.id++;Kt(C<65535,"exceeded max address mappings of 65535"),D="172.29."+(C&255)+"."+(C&65280),Wt.address_map.names[D]=v,Wt.address_map.addrs[v]=D}return D},lookup_addr:function(v){return Wt.address_map.names[v]?Wt.address_map.names[v]:null}};function nu(v,j,D){if(D&&v===0)return null;var C=iu(v,j);if(C.errno)throw new Hr.ErrnoError(C.errno);return C.addr=Wt.lookup_addr(C.addr)||C.addr,C}function Nl(v,j,D){var C=nr(v),x=nu(j,D);return C.sock_ops.bind(C,x.addr,x.port),0}function Pl(v,j,D){var C=nr(v),x=nu(j,D);return C.sock_ops.connect(C,x.addr,x.port),0}function Ll(v,j,D){return X.varargs=D,0}function ql(v,j){}function Hl(v,j,D,C){}function zl(v,j,D){}function Wl(v,j,D){}function lt(v,j){qr.fill(0,v,v+j)}function qo(v,j,D,C,x){switch(j){case 2:D=zt(D),lt(v,16),x&&(re[x>>2]=16),ki[v>>1]=j,re[v+4>>2]=D,ki[v+2>>1]=Ss(C);break;case 10:D=Lo(D),lt(v,28),x&&(re[x>>2]=28),re[v>>2]=j,re[v+8>>2]=D[0],re[v+12>>2]=D[1],re[v+16>>2]=D[2],re[v+20>>2]=D[3],ki[v+2>>1]=Ss(C);break;default:return 5}return 0}function Yl(v,j,D){var C=nr(v);if(!C.daddr)return-53;var x=qo(j,C.family,Wt.lookup_name(C.daddr),C.dport,D);return 0}function Gl(v,j,D,C,x){var te=nr(v);return j===1&&D===4?(re[C>>2]=te.error,re[x>>2]=4,te.error=null,0):-50}function su(v,j,D){return X.varargs=D,0}function On(v,j){}function $l(v,j){return v=X.getStr(v),X.doMkdir(v,j)}function Ho(v,j,D){X.varargs=D}function ou(v,j,D,C,x,te){var J=nr(v),$=J.sock_ops.recvmsg(J,D);if(!$)return 0;if(x)var ue=qo(x,J.family,Wt.lookup_name($.addr),$.port,te);return qr.set($.buffer,j),$.buffer.byteLength}function au(v,j){}function fs(v){}function hs(v,j,D,C,x,te){}function zo(v,j,D){}function Yt(v,j){}function uu(v){}function Kl(v,j){Dt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Jl(v,j){Dt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Xl(){Dt("")}var Wo;W?Wo=()=>{var v=process.hrtime();return v[0]*1e3+v[1]/1e6}:Wo=()=>performance.now();var Zl=!0;function Ql(v,j){var D;if(v===0)D=Date.now();else if((v===1||v===4)&&Zl)D=Wo();else return ds(28),-1;return re[j>>2]=D/1e3|0,re[j+4>>2]=D%1e3*1e3*1e3|0,0}function ed(v,j){return globalThis.DUCKDB_RUNTIME.createDirectory(t,v,j)}function cu(v,j){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,v,j)}function Yo(v,j){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,v,j)}function td(v,j){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,v,j)}function rd(v){return globalThis.DUCKDB_RUNTIME.closeFile(t,v)}function id(v,j){return globalThis.DUCKDB_RUNTIME.checkFile(t,v,j)}function nd(v){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,v)}function sd(v,j,D,C){return globalThis.DUCKDB_RUNTIME.moveFile(t,v,j,D,C)}function od(v,j){return globalThis.DUCKDB_RUNTIME.openFile(t,v,j)}function ad(v,j,D,C){return globalThis.DUCKDB_RUNTIME.readFile(t,v,j,D,C)}function ud(v,j){return globalThis.DUCKDB_RUNTIME.truncateFile(t,v,j)}function cd(v,j,D,C){return globalThis.DUCKDB_RUNTIME.writeFile(t,v,j,D,C)}function ld(v,j){return globalThis.DUCKDB_RUNTIME.glob(t,v,j)}function dd(v){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,v)}function fd(v,j,D,C,x,te){return globalThis.DUCKDB_RUNTIME.callScalarUDF(t,v,j,D,C,x,te)}function hd(){return 2147483648}function pd(v,j,D){qr.copyWithin(v,j,j+D)}function _d(v){try{return tr.grow(v-Mo.byteLength+65535>>>16),$a(tr.buffer),1}catch(j){}}function yd(v){var j=qr.length;v=v>>>0;var D=2147483648;if(v>D)return!1;for(var C=1;C<=4;C*=2){var x=j*(1+.2/C);x=Math.min(x,v+100663296);var te=Math.min(D,Sl(Math.max(v,x),65536)),J=_d(te);if(J)return!0}return!1}var kn={};function md(){return m||"./this.program"}function Cn(){if(!Cn.strings){var v=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",j={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:v,_:md()};for(var D in kn)kn[D]===void 0?delete j[D]:j[D]=kn[D];var C=[];for(var D in j)C.push(D+"="+j[D]);Cn.strings=C}return Cn.strings}function bd(v,j){var D=0;return Cn().forEach(function(C,x){var te=j+D;re[v+x*4>>2]=te,Co(C,te),D+=C.length+1}),0}function gd(v,j){var D=Cn();re[v>>2]=D.length;var C=0;return D.forEach(function(x){C+=x.length+1}),re[j>>2]=C,0}function vd(v){return 0}function wd(v,j,D,C,x,te){var J=X.getStreamFromFD(v),$=X.doReadv(J,j,D,C);return re[te>>2]=$,0}function jd(v,j,D,C,x,te){var J=X.getStreamFromFD(v),$=X.doWritev(J,j,D,C);return re[te>>2]=$,0}function Bd(v,j,D,C){var x=X.getStreamFromFD(v),te=X.doReadv(x,j,D);return re[C>>2]=te,0}function Td(v,j,D,C,x){}function Sd(v){var j=X.getStreamFromFD(v);return j.stream_ops&&j.stream_ops.fsync?-j.stream_ops.fsync(j):0}function Id(v,j,D,C){for(var x=0,te=0;te<D;te++){var J=re[j>>2],$=re[j+4>>2];j+=8;for(var ue=0;ue<$;ue++)X.printChar(v,qr[J+ue]);x+=$}return re[C>>2]=x,0}function Ad(v,j,D,C){var x=0,te=0,J=0,$=0,ue=0,Re=0,Me;function Mt(T,A,S,Nt,Ut,Ci){var q,ce,xe,Ve;return ce=T===10?28:16,Ut=T===10?Dn(Ut):Po(Ut),q=Zo(ce),Ve=qo(q,T,Ut,Ci),Kt(!Ve),xe=Zo(32),re[xe+4>>2]=T,re[xe+8>>2]=A,re[xe+12>>2]=S,re[xe+24>>2]=Nt,re[xe+20>>2]=q,T===10?re[xe+16>>2]=28:re[xe+16>>2]=16,re[xe+28>>2]=0,xe}if(D&&(J=re[D>>2],$=re[D+4>>2],ue=re[D+8>>2],Re=re[D+12>>2]),ue&&!Re&&(Re=ue===2?17:6),!ue&&Re&&(ue=Re===17?2:1),Re===0&&(Re=6),ue===0&&(ue=1),!v&&!j)return-2;if(J&-1088||D!==0&&re[D>>2]&2&&!v)return-1;if(J&32)return-2;if(ue!==0&&ue!==1&&ue!==2)return-7;if($!==0&&$!==2&&$!==10)return-6;if(j&&(j=Ar(j),te=parseInt(j,10),isNaN(te)))return J&1024?-2:-8;if(!v)return $===0&&($=2),(J&1)===0&&($===2?x=Ts(2130706433):x=[0,0,0,1]),Me=Mt($,ue,Re,null,x,te),re[C>>2]=Me,0;if(v=Ar(v),x=zt(v),x!==null)if($===0||$===2)$=2;else if($===10&&J&8)x=[0,0,Ts(65535),x],$=10;else return-2;else if(x=Lo(v),x!==null)if($===0||$===10)$=10;else return-2;return x!=null?(Me=Mt($,ue,Re,v,x,te),re[C>>2]=Me,0):J&4?-2:(v=Wt.lookup_name(v),x=zt(v),$===0?$=2:$===10&&(x=[0,0,Ts(65535),x]),Me=Mt($,ue,Re,null,x,te),re[C>>2]=Me,0)}function Dd(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var v=new Uint8Array(1);return function(){return crypto.getRandomValues(v),v[0]}}else if(W)try{var j=require("crypto");return function(){return j.randomBytes(1)[0]}}catch(D){}return function(){Dt("randomDevice")}}function ps(v,j){ps.randomDevice||(ps.randomDevice=Dd());for(var D=0;D<j;D++)Tn[v+D>>0]=ps.randomDevice();return 0}function Fd(v,j,D,C,x,te,J){var $=iu(v,j);if($.errno)return-6;var ue=$.port,Re=$.addr,Me=!1;if(D&&C){var Mt;if(J&1||!(Mt=Wt.lookup_addr(Re))){if(J&8)return-2}else Re=Mt;var T=as(Re,D,C);T+1>=C&&(Me=!0)}if(x&&te){ue=""+ue;var T=as(ue,x,te);T+1>=te&&(Me=!0)}return Me?-12:0}function _s(v){return v%4===0&&(v%100!==0||v%400===0)}function Go(v,j){for(var D=0,C=0;C<=j;D+=v[C++]);return D}var ys=[31,29,31,30,31,30,31,31,30,31,30,31],ms=[31,28,31,30,31,30,31,31,30,31,30,31];function bs(v,j){for(var D=new Date(v.getTime());j>0;){var C=_s(D.getFullYear()),x=D.getMonth(),te=(C?ys:ms)[x];if(j>te-D.getDate())j-=te-D.getDate()+1,D.setDate(1),x<11?D.setMonth(x+1):(D.setMonth(0),D.setFullYear(D.getFullYear()+1));else return D.setDate(D.getDate()+j),D}return D}function Od(v,j,D,C){var x=re[C+40>>2],te={tm_sec:re[C>>2],tm_min:re[C+4>>2],tm_hour:re[C+8>>2],tm_mday:re[C+12>>2],tm_mon:re[C+16>>2],tm_year:re[C+20>>2],tm_wday:re[C+24>>2],tm_yday:re[C+28>>2],tm_isdst:re[C+32>>2],tm_gmtoff:re[C+36>>2],tm_zone:x?Ar(x):""},J=Ar(D),$={"%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 ue in $)J=J.replace(new RegExp(ue,"g"),$[ue]);var Re=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Me=["January","February","March","April","May","June","July","August","September","October","November","December"];function Mt(q,ce,xe){for(var Ve=typeof q=="number"?q.toString():q||"";Ve.length<ce;)Ve=xe[0]+Ve;return Ve}function T(q,ce){return Mt(q,ce,"0")}function A(q,ce){function xe(Xt){return Xt<0?-1:Xt>0?1:0}var Ve;return(Ve=xe(q.getFullYear()-ce.getFullYear()))===0&&(Ve=xe(q.getMonth()-ce.getMonth()))===0&&(Ve=xe(q.getDate()-ce.getDate())),Ve}function S(q){switch(q.getDay()){case 0:return new Date(q.getFullYear()-1,11,29);case 1:return q;case 2:return new Date(q.getFullYear(),0,3);case 3:return new Date(q.getFullYear(),0,2);case 4:return new Date(q.getFullYear(),0,1);case 5:return new Date(q.getFullYear()-1,11,31);case 6:return new Date(q.getFullYear()-1,11,30)}}function Nt(q){var ce=bs(new Date(q.tm_year+1900,0,1),q.tm_yday),xe=new Date(ce.getFullYear(),0,4),Ve=new Date(ce.getFullYear()+1,0,4),Xt=S(xe),Fr=S(Ve);return A(Xt,ce)<=0?A(Fr,ce)<=0?ce.getFullYear()+1:ce.getFullYear():ce.getFullYear()-1}var Ut={"%a":function(q){return Re[q.tm_wday].substring(0,3)},"%A":function(q){return Re[q.tm_wday]},"%b":function(q){return Me[q.tm_mon].substring(0,3)},"%B":function(q){return Me[q.tm_mon]},"%C":function(q){var ce=q.tm_year+1900;return T(ce/100|0,2)},"%d":function(q){return T(q.tm_mday,2)},"%e":function(q){return Mt(q.tm_mday,2," ")},"%g":function(q){return Nt(q).toString().substring(2)},"%G":function(q){return Nt(q)},"%H":function(q){return T(q.tm_hour,2)},"%I":function(q){var ce=q.tm_hour;return ce==0?ce=12:ce>12&&(ce-=12),T(ce,2)},"%j":function(q){return T(q.tm_mday+Go(_s(q.tm_year+1900)?ys:ms,q.tm_mon-1),3)},"%m":function(q){return T(q.tm_mon+1,2)},"%M":function(q){return T(q.tm_min,2)},"%n":function(){return`
|
|
31
|
+
`},"%p":function(P){return P.tm_hour>=0&&P.tm_hour<12?"AM":"PM"},"%S":function(P){return k(P.tm_sec,2)},"%t":function(){return" "},"%u":function(P){return P.tm_wday||7},"%U":function(P){var oe=new Date(P.tm_year+1900,0,1),Ue=oe.getDay()===0?oe:Bs(oe,7-oe.getDay()),Oe=new Date(P.tm_year+1900,P.tm_mon,P.tm_mday);if(E(Ue,Oe)<0){var Pt=Ko(vs(Oe.getFullYear())?ws:js,Oe.getMonth()-1)-31,Mi=31-Ue.getDate(),Un=Mi+Pt+Oe.getDate();return k(Math.ceil(Un/7),2)}return E(Ue,oe)===0?"01":"00"},"%V":function(P){var oe=new Date(P.tm_year+1900,0,4),Ue=new Date(P.tm_year+1901,0,4),Oe=Y(oe),Pt=Y(Ue),Mi=Bs(new Date(P.tm_year+1900,0,1),P.tm_yday);if(E(Mi,Oe)<0)return"53";if(E(Pt,Mi)<=0)return"01";var Un;return Oe.getFullYear()<P.tm_year+1900?Un=P.tm_yday+32-Oe.getDate():Un=P.tm_yday+1-Oe.getDate(),k(Math.ceil(Un/7),2)},"%w":function(P){return P.tm_wday},"%W":function(P){var oe=new Date(P.tm_year,0,1),Ue=oe.getDay()===1?oe:Bs(oe,oe.getDay()===0?1:7-oe.getDay()+1),Oe=new Date(P.tm_year+1900,P.tm_mon,P.tm_mday);if(E(Ue,Oe)<0){var Pt=Ko(vs(Oe.getFullYear())?ws:js,Oe.getMonth()-1)-31,Mi=31-Ue.getDate(),Un=Mi+Pt+Oe.getDate();return k(Math.ceil(Un/7),2)}return E(Ue,oe)===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 oe=P.tm_gmtoff,Ue=oe>=0;return oe=Math.abs(oe)/60,oe=oe/60*100+oe%60,(Ue?"+":"-")+String("0000"+oe).slice(-4)},"%Z":function(P){return P.tm_zone},"%%":function(){return"%"}};for(var y in Fe)h.includes(y)&&(h=h.replace(new RegExp(y,"g"),Fe[y](f)));var tt=$d(h,!1);return tt.length>a?0:(Mo(tt,o),tt.length-1)}function Gd(o,a,c,l){return Yd(o,a,c,l)}function $d(o,a,c){var l=c>0?c:Sl(o)+1,d=new Array(l),f=ko(o,d,0,d.length);return a&&(d.length=f),d}var Kd={p:xl,j:Vl,A:iu,F:Wt,b:Nl,n:Pl,H:Ll,W:ql,i:Fn,da:Hl,v:zl,E:Wl,e:nu,Ca:qo,Qe:Yl,Ea:Kl,Da:Jl,Q:Xl,Sa:Wo,Qa:Zl,Na:Ql,Oa:ed,ya:td,Ba:rd,Ua:id,Pa:nd,Ta:sd,oa:od,za:ad,Oe:ud,ma:cd,Aa:ld,ga:dd,Ra:fd,na:hd,ha:pd,Ga:_d,_:yd,la:Cn,Ge:bd,He:gd,Ee:vd,Fe:wd,ta:jd,Ce:Bd,Je:Td,De:Sd,Ke:Id,fa:Ad,Ie:Dd,ua:ps,Be:Fd,sa:_s,Le:Go,Va:ys,kb:ms,ed:Od,Xa:Q_,Ya:Cd,U:Md,pe:Ud,qb:Ed,qa:Rd,ye:xd,Pe:Vd,ea:Nd,a:Pd,Fa:Ld,Ma:gs,xa:Hd,ia:QB,N:HB,Ja:KB,T:gB,yc:aI,ja:ZB,X:WB,ra:bB,zc:oI,u:SB,Ha:tT,Ka:EB,Z:VB,Ia:eT,La:UB,d:dB,aa:nT,D:NB,Ib:XI,c:fB,Y:zB,va:oT,h:pB,Gb:QI,m:mB,pa:CB,o:_B,w:AB,z:BB,S:xB,y:TB,x:DB,q:$B,O:iT,J:rT,cc:FI,fc:II,ic:BI,oc:mI,dc:DI,Hb:ZI,xc:uI,gc:SI,pc:yI,Pb:zI,ue:pT,Qd:WT,Jd:ZT,te:_T,Ub:NI,jd:TS,Lb:$I,Kb:KI,Xd:VT,Pd:YT,yb:aA,Xc:xS,Wd:NT,Ec:rI,Vb:VI,Jb:JI,ke:BT,Td:qT,Ac:sI,Kd:XT,vd:fS,Hd:eS,mb:bA,Ud:LT,me:wT,Rd:zT,id:SS,gb:BA,Ob:WI,se:yT,Yd:xT,xd:lS,wb:cA,Ld:JT,hb:jA,Fb:eA,Sd:HT,Dd:nS,Gd:tS,Fd:rS,Ed:iS,Ad:aS,mc:gI,$b:CI,ee:FT,qc:_I,ae:MT,qe:bT,tc:fI,sc:hI,xe:dT,we:fT,Od:GT,Ae:cT,qd:mS,rc:pI,ec:AI,Fc:tI,vc:lI,Uc:PS,vb:lA,Cc:nI,sd:_S,md:wS,Mc:$S,wc:cI,zb:oA,ac:kI,od:gS,dd:FS,Pc:WS,Oc:YS,Lc:KS,Nc:GS,td:pS,ad:CS,Mb:GI,kc:wI,ob:yA,_c:US,uc:dI,Cb:iA,Yb:EI,Db:rA,Wb:xI,t:cB,k:hB,C:qB,ba:GB,sb:hA,K:LB,ca:YB,tb:fA,f:lB,V:wB,R:PB,Bc:vB,g:jB,l:yB,Ne:aT,s:RB,r:kB,wa:sT,B:IB,L:MB,P:XB,M:FB,Me:uT,ka:JB,$:OB,Cd:sS,rb:pA,kd:BS,bc:OI,Dc:iI,nc:bI,Qb:HI,Za:CA,jb:vA,ie:ST,Vd:PT,xb:uA,eb:SA,yd:cS,zd:uS,Zb:UI,Yc:RS,Sb:LI,Rb:qI,_a:kA,Qc:zS,he:IT,_d:ET,Bd:oS,Wc:VS,Ic:ZS,Ab:sA,Nb:YI,Bb:nA,ib:wA,ce:kT,ud:hS,Tb:PI,Gc:eI,Tc:LS,ge:AT,fb:TA,oe:gT,re:mT,ve:hT,Id:QT,db:IA,cd:OS,Kc:JS,Jc:XS,bd:kS,Zc:ES,nd:vS,lb:gA,hd:IS,cb:AA,Hc:QS,nb:mA,ze:lT,le:jT,fd:DS,Rc:HS,be:CT,hc:TI,je:TT,de:OT,gd:AS,Nd:$T,Md:KT,$c:MS,ub:dA,ld:jS,lc:vI,fe:DT,bb:DA,Sc:qS,pb:_A,$d:UT,Vc:NS,$a:OA,ab:FA,jc:jI,ne:vT,rd:yS,Zd:RT,Xb:RI,_b:MI,Eb:tA,wd:dS,pd:bS,G:zd,I:Wd,Wa:Gd},ey=ru(),Jd=t.___wasm_call_ctors=function(){return(Jd=t.___wasm_call_ctors=t.asm.Se).apply(null,arguments)},Xd=t._main=function(){return(Xd=t._main=t.asm.Te).apply(null,arguments)},Zd=t._duckdb_web_fs_glob_add_path=function(){return(Zd=t._duckdb_web_fs_glob_add_path=t.asm.Ve).apply(null,arguments)},Qd=t._duckdb_web_clear_response=function(){return(Qd=t._duckdb_web_clear_response=t.asm.We).apply(null,arguments)},ef=t._duckdb_web_fail_with=function(){return(ef=t._duckdb_web_fail_with=t.asm.Xe).apply(null,arguments)},tf=t._duckdb_web_reset=function(){return(tf=t._duckdb_web_reset=t.asm.Ye).apply(null,arguments)},rf=t._duckdb_web_connect=function(){return(rf=t._duckdb_web_connect=t.asm.Ze).apply(null,arguments)},nf=t._duckdb_web_disconnect=function(){return(nf=t._duckdb_web_disconnect=t.asm._e).apply(null,arguments)},sf=t._duckdb_web_flush_files=function(){return(sf=t._duckdb_web_flush_files=t.asm.$e).apply(null,arguments)},of=t._duckdb_web_flush_file=function(){return(of=t._duckdb_web_flush_file=t.asm.af).apply(null,arguments)},af=t._duckdb_web_open=function(){return(af=t._duckdb_web_open=t.asm.bf).apply(null,arguments)},uf=t._duckdb_web_get_global_file_info=function(){return(uf=t._duckdb_web_get_global_file_info=t.asm.cf).apply(null,arguments)},cf=t._duckdb_web_collect_file_stats=function(){return(cf=t._duckdb_web_collect_file_stats=t.asm.df).apply(null,arguments)},lf=t._duckdb_web_export_file_stats=function(){return(lf=t._duckdb_web_export_file_stats=t.asm.ef).apply(null,arguments)},lu=t._duckdb_web_fs_drop_file=function(){return(lu=t._duckdb_web_fs_drop_file=t.asm.ff).apply(null,arguments)},Ts=t._duckdb_web_fs_drop_files=function(){return(Ts=t._duckdb_web_fs_drop_files=t.asm.gf).apply(null,arguments)},Ss=t._duckdb_web_fs_glob_file_infos=function(){return(Ss=t._duckdb_web_fs_glob_file_infos=t.asm.hf).apply(null,arguments)},Jo=t._duckdb_web_fs_get_file_info_by_id=function(){return(Jo=t._duckdb_web_fs_get_file_info_by_id=t.asm.jf).apply(null,arguments)},du=t._duckdb_web_fs_get_file_info_by_name=function(){return(du=t._duckdb_web_fs_get_file_info_by_name=t.asm.kf).apply(null,arguments)},fu=t._duckdb_web_fs_set_file_descriptor=function(){return(fu=t._duckdb_web_fs_set_file_descriptor=t.asm.lf).apply(null,arguments)},Xo=t._duckdb_web_fs_register_file_url=function(){return(Xo=t._duckdb_web_fs_register_file_url=t.asm.mf).apply(null,arguments)},Zo=t._duckdb_web_fs_register_file_buffer=function(){return(Zo=t._duckdb_web_fs_register_file_buffer=t.asm.nf).apply(null,arguments)},df=t._duckdb_web_copy_file_to_buffer=function(){return(df=t._duckdb_web_copy_file_to_buffer=t.asm.of).apply(null,arguments)},Is=t._duckdb_web_copy_file_to_path=function(){return(Is=t._duckdb_web_copy_file_to_path=t.asm.pf).apply(null,arguments)},As=t._duckdb_web_get_version=function(){return(As=t._duckdb_web_get_version=t.asm.qf).apply(null,arguments)},ff=t._duckdb_web_get_feature_flags=function(){return(ff=t._duckdb_web_get_feature_flags=t.asm.rf).apply(null,arguments)},hf=t._duckdb_web_tokenize=function(){return(hf=t._duckdb_web_tokenize=t.asm.sf).apply(null,arguments)},Qo=t._duckdb_web_udf_scalar_create=function(){return(Qo=t._duckdb_web_udf_scalar_create=t.asm.tf).apply(null,arguments)},pf=t._duckdb_web_prepared_create=function(){return(pf=t._duckdb_web_prepared_create=t.asm.uf).apply(null,arguments)},_f=t._duckdb_web_prepared_close=function(){return(_f=t._duckdb_web_prepared_close=t.asm.vf).apply(null,arguments)},hu=t._duckdb_web_prepared_run=function(){return(hu=t._duckdb_web_prepared_run=t.asm.wf).apply(null,arguments)},v=t._duckdb_web_prepared_send=function(){return(v=t._duckdb_web_prepared_send=t.asm.xf).apply(null,arguments)},j=t._duckdb_web_query_run=function(){return(j=t._duckdb_web_query_run=t.asm.yf).apply(null,arguments)},D=t._duckdb_web_query_send=function(){return(D=t._duckdb_web_query_send=t.asm.zf).apply(null,arguments)},C=t._duckdb_web_query_fetch_results=function(){return(C=t._duckdb_web_query_fetch_results=t.asm.Af).apply(null,arguments)},x=t._duckdb_web_get_tablenames=function(){return(x=t._duckdb_web_get_tablenames=t.asm.Bf).apply(null,arguments)},te=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(te=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.Cf).apply(null,arguments)},J=t._duckdb_web_insert_csv_from_path=function(){return(J=t._duckdb_web_insert_csv_from_path=t.asm.Df).apply(null,arguments)},$=t._duckdb_web_insert_json_from_path=function(){return($=t._duckdb_web_insert_json_from_path=t.asm.Ef).apply(null,arguments)},ue=t.___errno_location=function(){return(ue=t.___errno_location=t.asm.Ff).apply(null,arguments)},Re=t._htonl=function(){return(Re=t._htonl=t.asm.Gf).apply(null,arguments)},Me=t._htons=function(){return(Me=t._htons=t.asm.Hf).apply(null,arguments)},Mt=t._ntohs=function(){return(Mt=t._ntohs=t.asm.If).apply(null,arguments)},T=t._setThrew=function(){return(T=t._setThrew=t.asm.Jf).apply(null,arguments)},A=t.stackSave=function(){return(A=t.stackSave=t.asm.Kf).apply(null,arguments)},S=t.stackRestore=function(){return(S=t.stackRestore=t.asm.Lf).apply(null,arguments)},Nt=t.stackAlloc=function(){return(Nt=t.stackAlloc=t.asm.Mf).apply(null,arguments)},Ut=t.___cxa_can_catch=function(){return(Ut=t.___cxa_can_catch=t.asm.Nf).apply(null,arguments)},Ci=t.___cxa_is_pointer_type=function(){return(Ci=t.___cxa_is_pointer_type=t.asm.Of).apply(null,arguments)},q=t._malloc=function(){return(q=t._malloc=t.asm.Pf).apply(null,arguments)},ce=t._free=function(){return(ce=t._free=t.asm.Qf).apply(null,arguments)},xe=t.dynCall_jiiii=function(){return(xe=t.dynCall_jiiii=t.asm.Rf).apply(null,arguments)},Ve=t.dynCall_iiiiij=function(){return(Ve=t.dynCall_iiiiij=t.asm.Sf).apply(null,arguments)},Xt=t.dynCall_iiiiijj=function(){return(Xt=t.dynCall_iiiiijj=t.asm.Tf).apply(null,arguments)},Fr=t.dynCall_viijii=function(){return(Fr=t.dynCall_viijii=t.asm.Uf).apply(null,arguments)},zr=t.dynCall_j=function(){return(zr=t.dynCall_j=t.asm.Vf).apply(null,arguments)},ty=t.dynCall_ji=function(){return(ty=t.dynCall_ji=t.asm.Wf).apply(null,arguments)},ry=t.dynCall_iij=function(){return(ry=t.dynCall_iij=t.asm.Xf).apply(null,arguments)},iy=t.dynCall_viij=function(){return(iy=t.dynCall_viij=t.asm.Yf).apply(null,arguments)},ny=t.dynCall_viijji=function(){return(ny=t.dynCall_viijji=t.asm.Zf).apply(null,arguments)},sy=t.dynCall_viijj=function(){return(sy=t.dynCall_viijj=t.asm._f).apply(null,arguments)},oy=t.dynCall_viiijj=function(){return(oy=t.dynCall_viiijj=t.asm.$f).apply(null,arguments)},ay=t.dynCall_viiji=function(){return(ay=t.dynCall_viiji=t.asm.ag).apply(null,arguments)},uy=t.dynCall_vijjj=function(){return(uy=t.dynCall_vijjj=t.asm.bg).apply(null,arguments)},cy=t.dynCall_iiijj=function(){return(cy=t.dynCall_iiijj=t.asm.cg).apply(null,arguments)},ly=t.dynCall_viiij=function(){return(ly=t.dynCall_viiij=t.asm.dg).apply(null,arguments)},dy=t.dynCall_viijij=function(){return(dy=t.dynCall_viijij=t.asm.eg).apply(null,arguments)},fy=t.dynCall_viiijjj=function(){return(fy=t.dynCall_viiijjj=t.asm.fg).apply(null,arguments)},hy=t.dynCall_iiij=function(){return(hy=t.dynCall_iiij=t.asm.gg).apply(null,arguments)},py=t.dynCall_vijijj=function(){return(py=t.dynCall_vijijj=t.asm.hg).apply(null,arguments)},_y=t.dynCall_iji=function(){return(_y=t.dynCall_iji=t.asm.ig).apply(null,arguments)},yy=t.dynCall_viji=function(){return(yy=t.dynCall_viji=t.asm.jg).apply(null,arguments)},my=t.dynCall_vij=function(){return(my=t.dynCall_vij=t.asm.kg).apply(null,arguments)},by=t.dynCall_viiiij=function(){return(by=t.dynCall_viiiij=t.asm.lg).apply(null,arguments)},gy=t.dynCall_jii=function(){return(gy=t.dynCall_jii=t.asm.mg).apply(null,arguments)},vy=t.dynCall_viiiji=function(){return(vy=t.dynCall_viiiji=t.asm.ng).apply(null,arguments)},wy=t.dynCall_vijj=function(){return(wy=t.dynCall_vijj=t.asm.og).apply(null,arguments)},jy=t.dynCall_vj=function(){return(jy=t.dynCall_vj=t.asm.pg).apply(null,arguments)},By=t.dynCall_iiji=function(){return(By=t.dynCall_iiji=t.asm.qg).apply(null,arguments)},Ty=t.dynCall_iiiij=function(){return(Ty=t.dynCall_iiiij=t.asm.rg).apply(null,arguments)},Sy=t.dynCall_iiiiiji=function(){return(Sy=t.dynCall_iiiiiji=t.asm.sg).apply(null,arguments)},Iy=t.dynCall_iiiji=function(){return(Iy=t.dynCall_iiiji=t.asm.tg).apply(null,arguments)},Ay=t.dynCall_iiiiji=function(){return(Ay=t.dynCall_iiiiji=t.asm.ug).apply(null,arguments)},Dy=t.dynCall_jiii=function(){return(Dy=t.dynCall_jiii=t.asm.vg).apply(null,arguments)},Fy=t.dynCall_jij=function(){return(Fy=t.dynCall_jij=t.asm.wg).apply(null,arguments)},Oy=t.dynCall_iijjijj=function(){return(Oy=t.dynCall_iijjijj=t.asm.xg).apply(null,arguments)},ky=t.dynCall_viiiijiiiii=function(){return(ky=t.dynCall_viiiijiiiii=t.asm.yg).apply(null,arguments)},Cy=t.dynCall_viiiijiiii=function(){return(Cy=t.dynCall_viiiijiiii=t.asm.zg).apply(null,arguments)},My=t.dynCall_viiijii=function(){return(My=t.dynCall_viiijii=t.asm.Ag).apply(null,arguments)},Uy=t.dynCall_viiiiiij=function(){return(Uy=t.dynCall_viiiiiij=t.asm.Bg).apply(null,arguments)},Ey=t.dynCall_iiijiii=function(){return(Ey=t.dynCall_iiijiii=t.asm.Cg).apply(null,arguments)},Ry=t.dynCall_iiiiijii=function(){return(Ry=t.dynCall_iiiiijii=t.asm.Dg).apply(null,arguments)},xy=t.dynCall_viijiii=function(){return(xy=t.dynCall_viijiii=t.asm.Eg).apply(null,arguments)},Vy=t.dynCall_iiijiij=function(){return(Vy=t.dynCall_iiijiij=t.asm.Fg).apply(null,arguments)},Ny=t.dynCall_vijiii=function(){return(Ny=t.dynCall_vijiii=t.asm.Gg).apply(null,arguments)},Py=t.dynCall_iijjii=function(){return(Py=t.dynCall_iijjii=t.asm.Hg).apply(null,arguments)},Ly=t.dynCall_iijjiii=function(){return(Ly=t.dynCall_iijjiii=t.asm.Ig).apply(null,arguments)},qy=t.dynCall_iijjiiii=function(){return(qy=t.dynCall_iijjiiii=t.asm.Jg).apply(null,arguments)},Hy=t.dynCall_iijji=function(){return(Hy=t.dynCall_iijji=t.asm.Kg).apply(null,arguments)},zy=t.dynCall_vijiiii=function(){return(zy=t.dynCall_vijiiii=t.asm.Lg).apply(null,arguments)},Wy=t.dynCall_iijiiii=function(){return(Wy=t.dynCall_iijiiii=t.asm.Mg).apply(null,arguments)},Yy=t.dynCall_iijii=function(){return(Yy=t.dynCall_iijii=t.asm.Ng).apply(null,arguments)},Gy=t.dynCall_vijij=function(){return(Gy=t.dynCall_vijij=t.asm.Og).apply(null,arguments)},$y=t.dynCall_iiijiiii=function(){return($y=t.dynCall_iiijiiii=t.asm.Pg).apply(null,arguments)},Ky=t.dynCall_jiiij=function(){return(Ky=t.dynCall_jiiij=t.asm.Qg).apply(null,arguments)},Jy=t.dynCall_jiiiii=function(){return(Jy=t.dynCall_jiiiii=t.asm.Rg).apply(null,arguments)},Xy=t.dynCall_iiiiijjiijj=function(){return(Xy=t.dynCall_iiiiijjiijj=t.asm.Sg).apply(null,arguments)},Zy=t.dynCall_viijiiji=function(){return(Zy=t.dynCall_viijiiji=t.asm.Tg).apply(null,arguments)},Qy=t.dynCall_vjjijij=function(){return(Qy=t.dynCall_vjjijij=t.asm.Ug).apply(null,arguments)},em=t.dynCall_vijjji=function(){return(em=t.dynCall_vijjji=t.asm.Vg).apply(null,arguments)},tm=t.dynCall_vjjii=function(){return(tm=t.dynCall_vjjii=t.asm.Wg).apply(null,arguments)},rm=t.dynCall_viiiiiji=function(){return(rm=t.dynCall_viiiiiji=t.asm.Xg).apply(null,arguments)},im=t.dynCall_jiiiji=function(){return(im=t.dynCall_jiiiji=t.asm.Yg).apply(null,arguments)},nm=t.dynCall_iijj=function(){return(nm=t.dynCall_iijj=t.asm.Zg).apply(null,arguments)},sm=t.dynCall_iiijjii=function(){return(sm=t.dynCall_iiijjii=t.asm._g).apply(null,arguments)},om=t.dynCall_vijii=function(){return(om=t.dynCall_vijii=t.asm.$g).apply(null,arguments)},am=t.dynCall_viijjii=function(){return(am=t.dynCall_viijjii=t.asm.ah).apply(null,arguments)},um=t.dynCall_viiiijj=function(){return(um=t.dynCall_viiiijj=t.asm.bh).apply(null,arguments)},cm=t.dynCall_jijjij=function(){return(cm=t.dynCall_jijjij=t.asm.ch).apply(null,arguments)},lm=t.dynCall_jiijii=function(){return(lm=t.dynCall_jiijii=t.asm.dh).apply(null,arguments)},dm=t.dynCall_jijiii=function(){return(dm=t.dynCall_jijiii=t.asm.eh).apply(null,arguments)},fm=t.dynCall_viijiiiii=function(){return(fm=t.dynCall_viijiiiii=t.asm.fh).apply(null,arguments)},hm=t.dynCall_viijiiij=function(){return(hm=t.dynCall_viijiiij=t.asm.gh).apply(null,arguments)},pm=t.dynCall_vijiiiji=function(){return(pm=t.dynCall_vijiiiji=t.asm.hh).apply(null,arguments)},_m=t.dynCall_jiiji=function(){return(_m=t.dynCall_jiiji=t.asm.ih).apply(null,arguments)},ym=t.dynCall_viiijij=function(){return(ym=t.dynCall_viiijij=t.asm.jh).apply(null,arguments)},mm=t.dynCall_viijiij=function(){return(mm=t.dynCall_viijiij=t.asm.kh).apply(null,arguments)},bm=t.dynCall_viiiiijj=function(){return(bm=t.dynCall_viiiiijj=t.asm.lh).apply(null,arguments)},gm=t.dynCall_viiijji=function(){return(gm=t.dynCall_viiijji=t.asm.mh).apply(null,arguments)},vm=t.dynCall_iiiijiii=function(){return(vm=t.dynCall_iiiijiii=t.asm.nh).apply(null,arguments)},wm=t.dynCall_iiijij=function(){return(wm=t.dynCall_iiijij=t.asm.oh).apply(null,arguments)},jm=t.dynCall_iiijji=function(){return(jm=t.dynCall_iiijji=t.asm.ph).apply(null,arguments)},Bm=t.dynCall_iiiijj=function(){return(Bm=t.dynCall_iiiijj=t.asm.qh).apply(null,arguments)},Tm=t.dynCall_viiijiii=function(){return(Tm=t.dynCall_viiijiii=t.asm.rh).apply(null,arguments)},Sm=t.dynCall_vijji=function(){return(Sm=t.dynCall_vijji=t.asm.sh).apply(null,arguments)},Im=t.dynCall_jiiiij=function(){return(Im=t.dynCall_jiiiij=t.asm.th).apply(null,arguments)},Am=t.dynCall_jiijiiiii=function(){return(Am=t.dynCall_jiijiiiii=t.asm.uh).apply(null,arguments)},Dm=t.dynCall_jiijiijiii=function(){return(Dm=t.dynCall_jiijiijiii=t.asm.vh).apply(null,arguments)},Fm=t.dynCall_jiijjiii=function(){return(Fm=t.dynCall_jiijjiii=t.asm.wh).apply(null,arguments)},Om=t.dynCall_jiiijii=function(){return(Om=t.dynCall_jiiijii=t.asm.xh).apply(null,arguments)},km=t.dynCall_jiijijii=function(){return(km=t.dynCall_jiijijii=t.asm.yh).apply(null,arguments)},Cm=t.dynCall_viiijjij=function(){return(Cm=t.dynCall_viiijjij=t.asm.zh).apply(null,arguments)},Mm=t.dynCall_vijijjiij=function(){return(Mm=t.dynCall_vijijjiij=t.asm.Ah).apply(null,arguments)},Um=t.dynCall_viijjij=function(){return(Um=t.dynCall_viijjij=t.asm.Bh).apply(null,arguments)},Em=t.dynCall_viiijjiij=function(){return(Em=t.dynCall_viiijjiij=t.asm.Ch).apply(null,arguments)},Rm=t.dynCall_viiiijjjj=function(){return(Rm=t.dynCall_viiiijjjj=t.asm.Dh).apply(null,arguments)},xm=t.dynCall_viijiiiiij=function(){return(xm=t.dynCall_viijiiiiij=t.asm.Eh).apply(null,arguments)},Vm=t.dynCall_viijiiiijj=function(){return(Vm=t.dynCall_viijiiiijj=t.asm.Fh).apply(null,arguments)},Nm=t.dynCall_viiijiiiijjj=function(){return(Nm=t.dynCall_viiijiiiijjj=t.asm.Gh).apply(null,arguments)},Pm=t.dynCall_viijijiiiijjj=function(){return(Pm=t.dynCall_viijijiiiijjj=t.asm.Hh).apply(null,arguments)},Lm=t.dynCall_viiiiijiiii=function(){return(Lm=t.dynCall_viiiiijiiii=t.asm.Ih).apply(null,arguments)},qm=t.dynCall_iiijii=function(){return(qm=t.dynCall_iiijii=t.asm.Jh).apply(null,arguments)},Hm=t.dynCall_fiijii=function(){return(Hm=t.dynCall_fiijii=t.asm.Kh).apply(null,arguments)},zm=t.dynCall_diijii=function(){return(zm=t.dynCall_diijii=t.asm.Lh).apply(null,arguments)},Wm=t.dynCall_iiiiiiijii=function(){return(Wm=t.dynCall_iiiiiiijii=t.asm.Mh).apply(null,arguments)},Ym=t.dynCall_viiiiji=function(){return(Ym=t.dynCall_viiiiji=t.asm.Nh).apply(null,arguments)},Gm=t.dynCall_jiiiijii=function(){return(Gm=t.dynCall_jiiiijii=t.asm.Oh).apply(null,arguments)},$m=t.dynCall_jiiijiii=function(){return($m=t.dynCall_jiiijiii=t.asm.Ph).apply(null,arguments)},Km=t.dynCall_jiiiiijiiii=function(){return(Km=t.dynCall_jiiiiijiiii=t.asm.Qh).apply(null,arguments)},Jm=t.dynCall_jj=function(){return(Jm=t.dynCall_jj=t.asm.Rh).apply(null,arguments)},Xm=t.dynCall_jd=function(){return(Xm=t.dynCall_jd=t.asm.Sh).apply(null,arguments)},Zm=t.dynCall_jf=function(){return(Zm=t.dynCall_jf=t.asm.Th).apply(null,arguments)},Qm=t.dynCall_iijjj=function(){return(Qm=t.dynCall_iijjj=t.asm.Uh).apply(null,arguments)},eb=t.dynCall_vijijiiiijjj=function(){return(eb=t.dynCall_vijijiiiijjj=t.asm.Vh).apply(null,arguments)},tb=t.dynCall_iiiiiiji=function(){return(tb=t.dynCall_iiiiiiji=t.asm.Wh).apply(null,arguments)},rb=t.dynCall_iiiiiiiiji=function(){return(rb=t.dynCall_iiiiiiiiji=t.asm.Xh).apply(null,arguments)},ib=t.dynCall_jijijjij=function(){return(ib=t.dynCall_jijijjij=t.asm.Yh).apply(null,arguments)},nb=t.dynCall_viijjj=function(){return(nb=t.dynCall_viijjj=t.asm.Zh).apply(null,arguments)},sb=t.dynCall_vijjij=function(){return(sb=t.dynCall_vijjij=t.asm._h).apply(null,arguments)},ob=t.dynCall_viijjji=function(){return(ob=t.dynCall_viijjji=t.asm.$h).apply(null,arguments)},ab=t.dynCall_iiiiiij=function(){return(ab=t.dynCall_iiiiiij=t.asm.ai).apply(null,arguments)},ub=t.dynCall_iiiiiiiiiiji=function(){return(ub=t.dynCall_iiiiiiiiiiji=t.asm.bi).apply(null,arguments)},cb=t.dynCall_jiiiiiii=function(){return(cb=t.dynCall_jiiiiiii=t.asm.ci).apply(null,arguments)},lb=t.dynCall_jijj=function(){return(lb=t.dynCall_jijj=t.asm.di).apply(null,arguments)},db=t.dynCall_viiiijiiiiiiii=function(){return(db=t.dynCall_viiiijiiiiiiii=t.asm.ei).apply(null,arguments)},fb=t.dynCall_ij=function(){return(fb=t.dynCall_ij=t.asm.fi).apply(null,arguments)},hb=t.dynCall_jjj=function(){return(hb=t.dynCall_jjj=t.asm.gi).apply(null,arguments)},pb=t.dynCall_vjii=function(){return(pb=t.dynCall_vjii=t.asm.hi).apply(null,arguments)},_b=t.dynCall_jjjjjjd=function(){return(_b=t.dynCall_jjjjjjd=t.asm.ii).apply(null,arguments)},yb=t.dynCall_vjiiii=function(){return(yb=t.dynCall_vjiiii=t.asm.ji).apply(null,arguments)},mb=t.dynCall_viiiiijiii=function(){return(mb=t.dynCall_viiiiijiii=t.asm.ki).apply(null,arguments)},bb=t.dynCall_jiij=function(){return(bb=t.dynCall_jiij=t.asm.li).apply(null,arguments)},gb=t.dynCall_iiiijjii=function(){return(gb=t.dynCall_iiiijjii=t.asm.mi).apply(null,arguments)},vb=t.dynCall_iiiiijji=function(){return(vb=t.dynCall_iiiiijji=t.asm.ni).apply(null,arguments)},wb=t.dynCall_viiijjii=function(){return(wb=t.dynCall_viiijjii=t.asm.oi).apply(null,arguments)},jb=t.dynCall_viiiijji=function(){return(jb=t.dynCall_viiiijji=t.asm.pi).apply(null,arguments)},Bb=t.dynCall_viiiijjii=function(){return(Bb=t.dynCall_viiiijjii=t.asm.qi).apply(null,arguments)},Tb=t.dynCall_viiiiijji=function(){return(Tb=t.dynCall_viiiiijji=t.asm.ri).apply(null,arguments)},Sb=t.dynCall_iiiiiijji=function(){return(Sb=t.dynCall_iiiiiijji=t.asm.si).apply(null,arguments)},Ib=t.dynCall_iiiiijjj=function(){return(Ib=t.dynCall_iiiiijjj=t.asm.ti).apply(null,arguments)},Ab=t.dynCall_jijiiii=function(){return(Ab=t.dynCall_jijiiii=t.asm.ui).apply(null,arguments)},Db=t.dynCall_viiijiji=function(){return(Db=t.dynCall_viiijiji=t.asm.vi).apply(null,arguments)},Fb=t.dynCall_iiijjjii=function(){return(Fb=t.dynCall_iiijjjii=t.asm.wi).apply(null,arguments)},Ob=t.dynCall_iiiiijjji=function(){return(Ob=t.dynCall_iiiiijjji=t.asm.xi).apply(null,arguments)},kb=t.dynCall_iiiijjj=function(){return(kb=t.dynCall_iiiijjj=t.asm.yi).apply(null,arguments)},Cb=t.dynCall_iidj=function(){return(Cb=t.dynCall_iidj=t.asm.zi).apply(null,arguments)},Mb=t.dynCall_ijji=function(){return(Mb=t.dynCall_ijji=t.asm.Ai).apply(null,arguments)},Ub=t.dynCall_iiiiiiiij=function(){return(Ub=t.dynCall_iiiiiiiij=t.asm.Bi).apply(null,arguments)},Eb=t.dynCall_iiiiiiij=function(){return(Eb=t.dynCall_iiiiiiij=t.asm.Ci).apply(null,arguments)},Rb=t.dynCall_iiiiiiiiiiiij=function(){return(Rb=t.dynCall_iiiiiiiiiiiij=t.asm.Di).apply(null,arguments)},xb=t.dynCall_iiiiiiiji=function(){return(xb=t.dynCall_iiiiiiiji=t.asm.Ei).apply(null,arguments)},Vb=t.dynCall_iiiidjj=function(){return(Vb=t.dynCall_iiiidjj=t.asm.Fi).apply(null,arguments)},Nb=t.dynCall_jiiiiiijii=function(){return(Nb=t.dynCall_jiiiiiijii=t.asm.Gi).apply(null,arguments)},Pb=t.dynCall_iiiijji=function(){return(Pb=t.dynCall_iiiijji=t.asm.Hi).apply(null,arguments)},Lb=t.dynCall_jiiiiii=function(){return(Lb=t.dynCall_jiiiiii=t.asm.Ii).apply(null,arguments)},qb=t.dynCall_iijiji=function(){return(qb=t.dynCall_iijiji=t.asm.Ji).apply(null,arguments)},Hb=t.dynCall_vjiiiji=function(){return(Hb=t.dynCall_vjiiiji=t.asm.Ki).apply(null,arguments)},zb=t.dynCall_jjjii=function(){return(zb=t.dynCall_jjjii=t.asm.Li).apply(null,arguments)},Wb=t.dynCall_jji=function(){return(Wb=t.dynCall_jji=t.asm.Mi).apply(null,arguments)},Yb=t.dynCall_viiijijiji=function(){return(Yb=t.dynCall_viiijijiji=t.asm.Ni).apply(null,arguments)},Gb=t.dynCall_jiiijj=function(){return(Gb=t.dynCall_jiiijj=t.asm.Oi).apply(null,arguments)},$b=t.dynCall_iiiijii=function(){return($b=t.dynCall_iiiijii=t.asm.Pi).apply(null,arguments)},Kb=t.dynCall_viiiijii=function(){return(Kb=t.dynCall_viiiijii=t.asm.Qi).apply(null,arguments)},Jb=t.dynCall_iijiii=function(){return(Jb=t.dynCall_iijiii=t.asm.Ri).apply(null,arguments)},Xb=t.dynCall_jiiiiji=function(){return(Xb=t.dynCall_jiiiiji=t.asm.Si).apply(null,arguments)},Zb=t.dynCall_vijiijj=function(){return(Zb=t.dynCall_vijiijj=t.asm.Ti).apply(null,arguments)},Qb=t.dynCall_vifiijj=function(){return(Qb=t.dynCall_vifiijj=t.asm.Ui).apply(null,arguments)},eg=t.dynCall_vidiijj=function(){return(eg=t.dynCall_vidiijj=t.asm.Vi).apply(null,arguments)},tg=t.dynCall_viiiiij=function(){return(tg=t.dynCall_viiiiij=t.asm.Wi).apply(null,arguments)},rg=t.dynCall_ijjiii=function(){return(rg=t.dynCall_ijjiii=t.asm.Xi).apply(null,arguments)},ig=t.dynCall_vijijjji=function(){return(ig=t.dynCall_vijijjji=t.asm.Yi).apply(null,arguments)},ng=t.dynCall_viijiijj=function(){return(ng=t.dynCall_viijiijj=t.asm.Zi).apply(null,arguments)},sg=t.dynCall_viijijj=function(){return(sg=t.dynCall_viijijj=t.asm._i).apply(null,arguments)},og=t.dynCall_viiiiijjji=function(){return(og=t.dynCall_viiiiijjji=t.asm.$i).apply(null,arguments)},ag=t.dynCall_iiijiijj=function(){return(ag=t.dynCall_iiijiijj=t.asm.aj).apply(null,arguments)},ug=t.dynCall_viiijijjj=function(){return(ug=t.dynCall_viiijijjj=t.asm.bj).apply(null,arguments)},cg=t.dynCall_iijiijj=function(){return(cg=t.dynCall_iijiijj=t.asm.cj).apply(null,arguments)},lg=t.dynCall_viiijjjji=function(){return(lg=t.dynCall_viiijjjji=t.asm.dj).apply(null,arguments)},dg=t.dynCall_viiiijiii=function(){return(dg=t.dynCall_viiiijiii=t.asm.ej).apply(null,arguments)},fg=t.dynCall_viijiiii=function(){return(fg=t.dynCall_viijiiii=t.asm.fj).apply(null,arguments)},hg=t.dynCall_vijjiiii=function(){return(hg=t.dynCall_vijjiiii=t.asm.gj).apply(null,arguments)},pg=t.dynCall_vijijjiiiii=function(){return(pg=t.dynCall_vijijjiiiii=t.asm.hj).apply(null,arguments)},_g=t.dynCall_vijjiiiii=function(){return(_g=t.dynCall_vijjiiiii=t.asm.ij).apply(null,arguments)},yg=t.dynCall_iiijjji=function(){return(yg=t.dynCall_iiijjji=t.asm.jj).apply(null,arguments)},mg=t.dynCall_viiiijjj=function(){return(mg=t.dynCall_viiiijjj=t.asm.kj).apply(null,arguments)},bg=t.dynCall_viiiiijjj=function(){return(bg=t.dynCall_viiiiijjj=t.asm.lj).apply(null,arguments)},gg=t.dynCall_viijiji=function(){return(gg=t.dynCall_viijiji=t.asm.mj).apply(null,arguments)};function cB(o){var a=A();try{X(o)()}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function lB(o,a,c){var l=A();try{X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function dB(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function fB(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function hB(o,a){var c=A();try{X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function pB(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function _B(o,a,c,l,d,f){var h=A();try{return X(o)(a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function yB(o,a,c,l,d){var f=A();try{X(o)(a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function mB(o,a,c,l,d){var f=A();try{return X(o)(a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function bB(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function gB(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function vB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function wB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function jB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function BB(o,a,c,l,d,f,h,_){var y=A();try{return X(o)(a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function TB(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function SB(o){var a=A();try{return X(o)()}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function IB(o,a,c,l,d,f,h,_){var y=A();try{X(o)(a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function AB(o,a,c,l,d,f,h){var _=A();try{return X(o)(a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function DB(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function FB(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{X(o)(a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function OB(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve){var Fe=A();try{X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve)}catch(tt){if(S(Fe),tt!==tt+0&&tt!=="longjmp")throw tt;T(1,0)}}function kB(o,a,c,l,d,f,h){var _=A();try{X(o)(a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function CB(o,a,c,l,d,f){var h=A();try{return X(o)(a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function MB(o,a,c,l,d,f,h,_,y){var b=A();try{X(o)(a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function UB(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function EB(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function RB(o,a,c,l,d,f){var h=A();try{X(o)(a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function xB(o,a,c,l,d,f,h,_,y){var b=A();try{return X(o)(a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function VB(o,a,c,l,d){var f=A();try{return X(o)(a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function NB(o,a,c,l,d){var f=A();try{return X(o)(a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function PB(o,a,c,l,d,f){var h=A();try{X(o)(a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function LB(o,a,c){var l=A();try{X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function qB(o,a,c){var l=A();try{X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function HB(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function zB(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function WB(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function YB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function GB(o,a,c,l){var d=A();try{X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function $B(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y){var ve=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E,Y)}catch(Fe){if(S(ve),Fe!==Fe+0&&Fe!=="longjmp")throw Fe;T(1,0)}}function KB(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function JB(o,a,c,l,d,f,h,_,y,b,g,I,k,E){var Y=A();try{X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E)}catch(ve){if(S(Y),ve!==ve+0&&ve!=="longjmp")throw ve;T(1,0)}}function XB(o,a,c,l,d,f,h,_,y,b){var g=A();try{X(o)(a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function ZB(o){var a=A();try{return X(o)()}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function QB(o){var a=A();try{return X(o)()}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function eT(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function tT(o,a){var c=A();try{return X(o)(a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function rT(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt,P,oe,Ue){var Oe=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt,P,oe,Ue)}catch(Pt){if(S(Oe),Pt!==Pt+0&&Pt!=="longjmp")throw Pt;T(1,0)}}function iT(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt,P,oe){var Ue=A();try{return X(o)(a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt,P,oe)}catch(Oe){if(S(Ue),Oe!==Oe+0&&Oe!=="longjmp")throw Oe;T(1,0)}}function nT(o,a,c){var l=A();try{return X(o)(a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function sT(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{X(o)(a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function oT(o,a,c,l){var d=A();try{return X(o)(a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function aT(o,a,c,l,d,f,h,_,y,b){var g=A();try{X(o)(a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function uT(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{X(o)(a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function cT(o,a,c,l,d){var f=A();try{return xe(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function lT(o,a,c,l,d,f,h){var _=A();try{sy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function dT(o,a){var c=A();try{return ty(o,a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function fT(o,a,c){var l=A();try{return gy(o,a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function hT(o,a,c,l,d,f,h){var _=A();try{Fr(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function pT(o,a,c,l,d,f,h){var _=A();try{return Ve(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function _T(o,a,c,l,d,f,h,_,y){var b=A();try{return Xt(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function yT(o,a,c,l){var d=A();try{return ry(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function mT(o,a,c,l,d,f){var h=A();try{ay(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function bT(o){var a=A();try{return zr(o)}catch(c){if(S(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function gT(o,a,c,l,d){var f=A();try{iy(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function vT(o,a,c,l,d,f,h,_){var y=A();try{uy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function wT(o,a,c,l,d,f,h){var _=A();try{return cy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function jT(o,a,c,l,d,f,h,_){var y=A();try{ny(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function BT(o,a,c,l,d){var f=A();try{return hy(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function TT(o,a,c,l){var d=A();try{my(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function ST(o,a,c,l,d,f,h){var _=A();try{by(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function IT(o,a,c,l,d,f){var h=A();try{ly(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function AT(o,a,c,l,d,f,h,_,y,b){var g=A();try{fy(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function DT(o,a,c,l,d,f,h,_,y){var b=A();try{py(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function FT(o,a,c,l){var d=A();try{return _y(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function OT(o,a,c,l,d){var f=A();try{yy(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function kT(o,a,c,l,d,f,h,_){var y=A();try{oy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function CT(o,a,c,l,d,f,h,_,y){var b=A();try{nb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function MT(o,a,c,l,d,f,h,_){var y=A();try{return rg(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function UT(o,a,c,l,d,f){var h=A();try{wy(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function ET(o,a,c,l,d,f,h){var _=A();try{vy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function RT(o,a,c){var l=A();try{jy(o,a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function xT(o,a,c,l,d){var f=A();try{return By(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function VT(o,a,c,l,d,f){var h=A();try{return Ty(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function NT(o,a,c,l,d,f,h,_){var y=A();try{return Bm(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function PT(o,a,c,l,d,f,h,_){var y=A();try{Ym(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function LT(o,a,c,l,d,f,h,_){var y=A();try{return wm(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function qT(o,a,c,l,d,f){var h=A();try{return Iy(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function HT(o,a,c,l,d,f){var h=A();try{return nm(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function zT(o,a,c,l,d,f,h,_){var y=A();try{return jm(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function WT(o,a,c,l,d,f,h,_){var y=A();try{return Sy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function YT(o,a,c,l,d,f,h){var _=A();try{return Ay(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function GT(o,a,c,l){var d=A();try{return Dy(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function $T(o,a,c,l,d,f,h){var _=A();try{Ny(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function KT(o,a,c,l,d,f,h,_){var y=A();try{zy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function JT(o,a,c,l,d,f,h,_){var y=A();try{return Wy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function XT(o,a,c,l,d,f,h,_){var y=A();try{return Ey(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function ZT(o,a,c,l,d,f,h,_,y){var b=A();try{return Ry(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function QT(o,a,c,l,d,f,h,_){var y=A();try{xy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function eS(o,a,c,l,d,f,h,_,y){var b=A();try{return Vy(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function tS(o,a,c,l,d,f,h,_){var y=A();try{return Py(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function rS(o,a,c,l,d,f,h,_,y){var b=A();try{return Ly(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function iS(o,a,c,l,d,f,h,_,y,b){var g=A();try{return qy(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function nS(o,a,c,l,d,f,h){var _=A();try{return Hy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function sS(o,a,c,l,d,f,h,_,y){var b=A();try{Uy(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function oS(o,a,c,l,d,f,h,_){var y=A();try{My(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function aS(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Oy(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function uS(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{ky(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function cS(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Cy(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function lS(o,a,c,l,d,f){var h=A();try{return Yy(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function dS(o,a,c,l,d,f,h){var _=A();try{tm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function fS(o,a,c,l,d,f,h,_,y){var b=A();try{return $y(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function hS(o,a,c,l,d,f,h,_,y){var b=A();try{gm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function pS(o,a,c,l){var d=A();try{return Fy(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function _S(o,a,c,l,d,f){var h=A();try{return Ky(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function yS(o,a,c,l,d,f,h,_,y){var b=A();try{em(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function mS(o,a,c,l,d,f){var h=A();try{return Jy(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function bS(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Qy(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function gS(o,a,c,l,d,f){var h=A();try{return _m(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function vS(o,a,c,l,d,f,h,_,y,b){var g=A();try{Zy(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function wS(o,a,c,l,d,f,h){var _=A();try{return im(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function jS(o,a,c,l,d,f,h){var _=A();try{Gy(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function BS(o,a,c,l,d,f,h,_,y){var b=A();try{rm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function TS(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y){var ve=A();try{return Xy(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y)}catch(Fe){if(S(ve),Fe!==Fe+0&&Fe!=="longjmp")throw Fe;T(1,0)}}function SS(o,a,c,l,d,f,h,_,y){var b=A();try{return sm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function IS(o,a,c,l,d,f,h,_){var y=A();try{dy(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function AS(o,a,c,l,d,f){var h=A();try{om(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function DS(o,a,c,l,d,f,h,_,y){var b=A();try{am(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function FS(o,a,c,l,d,f,h){var _=A();try{return lm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function OS(o,a,c,l,d,f,h,_,y,b){var g=A();try{fm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function kS(o,a,c,l,d,f,h,_,y,b){var g=A();try{hm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function CS(o,a,c,l,d,f,h){var _=A();try{return dm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function MS(o,a,c,l,d,f,h,_,y,b){var g=A();try{pm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function US(o,a,c,l,d,f,h,_,y){var b=A();try{return cm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function ES(o,a,c,l,d,f,h,_,y){var b=A();try{mm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function RS(o,a,c,l,d,f,h,_,y){var b=A();try{um(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function xS(o,a,c,l,d,f,h,_,y){var b=A();try{return vm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function VS(o,a,c,l,d,f,h,_,y){var b=A();try{Tm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function NS(o,a,c,l,d,f,h){var _=A();try{Sm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function PS(o,a,c,l,d,f,h){var _=A();try{return Im(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function LS(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Cm(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function qS(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{Mm(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function HS(o,a,c,l,d,f,h,_,y,b){var g=A();try{Um(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function zS(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{Rm(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function WS(o,a,c,l,d,f,h,_,y,b){var g=A();try{return Am(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function YS(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return Dm(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function GS(o,a,c,l,d,f,h,_,y,b){var g=A();try{return Fm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function $S(o,a,c,l,d,f,h,_){var y=A();try{return Om(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function KS(o,a,c,l,d,f,h,_,y,b){var g=A();try{return km(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function JS(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{xm(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function XS(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{Vm(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function ZS(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve){var Fe=A();try{Nm(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve)}catch(tt){if(S(Fe),tt!==tt+0&&tt!=="longjmp")throw tt;T(1,0)}}function QS(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt){var P=A();try{Pm(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe,tt)}catch(oe){if(S(P),oe!==oe+0&&oe!=="longjmp")throw oe;T(1,0)}}function eI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{Em(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function tI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Nb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function rI(o,a,c,l,d,f,h,_,y){var b=A();try{return Pb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function iI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{Lm(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function nI(o,a,c,l,d,f,h,_,y){var b=A();try{return Gm(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function sI(o,a,c,l,d,f,h){var _=A();try{return qm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function oI(o,a,c,l,d,f,h){var _=A();try{return Hm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function aI(o,a,c,l,d,f,h){var _=A();try{return zm(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function uI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Wm(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function cI(o,a,c,l,d,f,h,_,y){var b=A();try{return $m(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function lI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return Km(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function dI(o,a,c){var l=A();try{return Jm(o,a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function fI(o,a){var c=A();try{return Xm(o,a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function hI(o,a){var c=A();try{return Zm(o,a)}catch(l){if(S(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function pI(o,a,c,l,d,f,h){var _=A();try{return Lb(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function _I(o,a,c,l,d,f){var h=A();try{return Mb(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function yI(o,a,c,l,d,f,h,_,y){var b=A();try{return tb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function mI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return rb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function bI(o,a,c,l,d,f,h,_,y,b){var g=A();try{bm(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function gI(o,a,c,l,d,f,h,_){var y=A();try{return Qm(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function vI(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe){var tt=A();try{eb(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y,ve,Fe)}catch(P){if(S(tt),P!==P+0&&P!=="longjmp")throw P;T(1,0)}}function wI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return ib(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function jI(o,a,c,l,d,f,h,_,y){var b=A();try{sb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function BI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return Ub(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function TI(o,a,c,l,d,f,h,_,y,b){var g=A();try{ob(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function SI(o,a,c,l,d,f,h,_){var y=A();try{return ab(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function II(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{return ub(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function AI(o,a,c,l,d,f,h,_){var y=A();try{return cb(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function DI(o,a,c,l,d,f,h,_,y){var b=A();try{return Eb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function FI(o,a,c,l,d,f,h,_,y,b,g,I,k,E){var Y=A();try{return Rb(o,a,c,l,d,f,h,_,y,b,g,I,k,E)}catch(ve){if(S(Y),ve!==ve+0&&ve!=="longjmp")throw ve;T(1,0)}}function OI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{mb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function kI(o,a,c,l,d){var f=A();try{return bb(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function CI(o,a,c){var l=A();try{return fb(o,a,c)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function MI(o,a,c,l,d,f,h){var _=A();try{yb(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function UI(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y){var ve=A();try{db(o,a,c,l,d,f,h,_,y,b,g,I,k,E,Y)}catch(Fe){if(S(ve),Fe!==Fe+0&&Fe!=="longjmp")throw Fe;T(1,0)}}function EI(o,a,c,l,d){var f=A();try{return hb(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function RI(o,a,c,l,d){var f=A();try{pb(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function xI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return _b(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function VI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return gb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function NI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return vb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function PI(o,a,c,l,d,f,h,_,y,b){var g=A();try{wb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function LI(o,a,c,l,d,f,h,_,y,b){var g=A();try{jb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function qI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Bb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function HI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{Tb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function zI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Sb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function WI(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Fb(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function YI(o,a,c,l,d,f,h,_,y,b){var g=A();try{Db(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function GI(o,a,c,l,d,f,h,_){var y=A();try{return Ab(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function $I(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return Ib(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function KI(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{return Ob(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function JI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return kb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function XI(o,a,c,l,d){var f=A();try{return Cb(o,a,c,l,d)}catch(h){if(S(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function ZI(o,a,c,l,d,f,h,_,y,b){var g=A();try{return xb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function QI(o,a,c,l,d,f,h,_,y){var b=A();try{return Vb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function eA(o,a,c,l,d,f,h,_){var y=A();try{return qb(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function tA(o,a,c,l,d,f,h,_,y){var b=A();try{Hb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function rA(o,a,c,l,d,f,h){var _=A();try{return zb(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function iA(o,a,c,l){var d=A();try{return Wb(o,a,c,l)}catch(f){if(S(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function nA(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{Yb(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function sA(o,a,c,l,d,f,h,_,y){var b=A();try{ym(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function oA(o,a,c,l,d,f,h,_){var y=A();try{return Gb(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function aA(o,a,c,l,d,f,h,_){var y=A();try{return $b(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function uA(o,a,c,l,d,f,h,_,y){var b=A();try{Kb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function cA(o,a,c,l,d,f,h){var _=A();try{return Jb(o,a,c,l,d,f,h)}catch(y){if(S(_),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function lA(o,a,c,l,d,f,h,_){var y=A();try{return Xb(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function dA(o,a,c,l,d,f,h,_,y,b){var g=A();try{Zb(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function fA(o,a,c,l,d,f,h,_,y){var b=A();try{Qb(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function hA(o,a,c,l,d,f,h,_,y){var b=A();try{eg(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function pA(o,a,c,l,d,f,h,_){var y=A();try{tg(o,a,c,l,d,f,h,_)}catch(b){if(S(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function _A(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{ig(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function yA(o,a,c,l,d,f){var h=A();try{return lb(o,a,c,l,d,f)}catch(_){if(S(h),_!==_+0&&_!=="longjmp")throw _;T(1,0)}}function mA(o,a,c,l,d,f,h,_,y,b){var g=A();try{sg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function bA(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{return ag(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function gA(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{ng(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function vA(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{og(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function wA(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{ug(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function jA(o,a,c,l,d,f,h,_,y,b){var g=A();try{return cg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function BA(o,a,c,l,d,f,h,_,y,b){var g=A();try{return yg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function TA(o,a,c,l,d,f,h,_,y,b,g,I,k){var E=A();try{lg(o,a,c,l,d,f,h,_,y,b,g,I,k)}catch(Y){if(S(E),Y!==Y+0&&Y!=="longjmp")throw Y;T(1,0)}}function SA(o,a,c,l,d,f,h,_,y,b){var g=A();try{dg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function IA(o,a,c,l,d,f,h,_,y){var b=A();try{fg(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function AA(o,a,c,l,d,f,h,_,y){var b=A();try{gg(o,a,c,l,d,f,h,_,y)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;T(1,0)}}function DA(o,a,c,l,d,f,h,_,y,b,g,I,k,E){var Y=A();try{pg(o,a,c,l,d,f,h,_,y,b,g,I,k,E)}catch(ve){if(S(Y),ve!==ve+0&&ve!=="longjmp")throw ve;T(1,0)}}function FA(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{_g(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function OA(o,a,c,l,d,f,h,_,y,b){var g=A();try{hg(o,a,c,l,d,f,h,_,y,b)}catch(I){if(S(g),I!==I+0&&I!=="longjmp")throw I;T(1,0)}}function kA(o,a,c,l,d,f,h,_,y,b,g){var I=A();try{mg(o,a,c,l,d,f,h,_,y,b,g)}catch(k){if(S(I),k!==k+0&&k!=="longjmp")throw k;T(1,0)}}function CA(o,a,c,l,d,f,h,_,y,b,g,I){var k=A();try{bg(o,a,c,l,d,f,h,_,y,b,g,I)}catch(E){if(S(k),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}t.ccall=Ar;var pu;function _u(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var MA=!1;Dt=function o(){pu||yf(),pu||(Dt=o)};function UA(o){var a=t._main,c=0,l=0;try{var d=a(c,l);return EA(d,!0),d}catch(f){return Rl(f)}finally{MA=!0}}function yf(o){if(o=o||p,_i>0||(Ol(),_i>0))return;function a(){pu||(pu=!0,t.calledRun=!0,!Ye&&(kl(),Cl(),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),vg&&UA(o),Ul()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),a()},1)):a()}t.run=yf;function EA(o,a){Jt=o,xo()||Ml(),RA(o)}function RA(o){Jt=o,xo()||(t.onExit&&t.onExit(o),Ye=!0),B(o,new _u(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var vg=!0;return t.noInitialRun&&(vg=!1),yf(),e.ready}})(),oB=fE;var Wa=class extends jl{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){globalThis.DUCKDB_RUNTIME=this._runtime;let i=this.onInstantiationProgress;if(typeof TransformStream=="function"&&ReadableStream.prototype.pipeThrough&&WebAssembly.instantiateStreaming){let s=(async()=>{var Se;let u=new Request(this.mainModuleURL),p=await fetch(u),m=p.headers.get("content-length"),B=m&&parseInt(m,10)||0,O=new Date,R={startedAt:O,updatedAt:O,bytesTotal:B||0,bytesLoaded:0},W={transform(ye,Ee){R.bytesLoaded+=ye.byteLength;let He=new Date;if(He.getTime()-R.updatedAt.getTime()<20){R.updatedAt=He,Ee.enqueue(ye);return}for(let Tt of i)Tt(R);Ee.enqueue(ye)}},N=new TransformStream(W);return new Response((Se=p.body)==null?void 0:Se.pipeThrough(N),p)})();WebAssembly.instantiateStreaming(s,e).then(u=>{t(u.instance,u.module)})}else{let n=new XMLHttpRequest,s=this.mainModuleURL,u=new Date,p={startedAt:u,updatedAt:u,bytesTotal:0,bytesLoaded:0};n.open("GET",s),n.responseType="arraybuffer",n.onerror=m=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+m}),new Error(m.toString())},n.onprogress=m=>{p.bytesTotal=m.total,p.bytesLoaded=m.loaded;let B=new Date;if(B.getTime()-p.updatedAt.getTime()<20){p.updatedAt=B;return}for(let O of i)O(p)},n.onload=()=>{WebAssembly.instantiate(n.response,e).then(m=>{t(m.instance,m.module)}).catch(m=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+m}),new Error(m)})},n.send()}return[]}};var J_=class extends Wa{constructor(e,t,i,n=null){super(e,t,i,n)}instantiateImpl(e){return oB(En(Wr({},e),{instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)}))}};var aB={},hE=(()=>{var r=aB.url;return function(e){e=e||{};var t=typeof e<"u"?e:{},i=Object.assign,n,s;t.ready=new Promise(function(v,j){n=v,s=j});var u=i({},t),p=[],m="./this.program",B=(v,j)=>{throw j},O=typeof window=="object",R=typeof importScripts=="function",W=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",N="";function Se(v){return t.locateFile?t.locateFile(v,N):N+v}var ye,Ee,He,Tt;function Pr(v){if(v instanceof As)return;ge("exiting due to exception: "+v)}var Sr,Ir,Lr;W?(R?N=za().dirname(N)+"/":N=__dirname+"/",Lr=function(){Ir||(Sr=K_(),Ir=za())},ye=function(j,D){return Lr(),j=Ir.normalize(j),Sr.readFileSync(j,D?null:"utf8")},He=function(j){var D=ye(j,!0);return D.buffer||(D=new Uint8Array(D)),D},Ee=function(j,D,C){Lr(),j=Ir.normalize(j),Sr.readFile(j,function(x,te){x?C(x):D(te.buffer)})},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),p=process.argv.slice(2),process.on("uncaughtException",function(v){if(!(v instanceof As))throw v}),process.on("unhandledRejection",function(v){throw v}),B=(v,j)=>{if(Ro())throw process.exitCode=v,j;Pr(j),process.exit(v)},t.inspect=function(){return"[Emscripten Module object]"}):(O||R)&&(R?N=self.location.href:typeof document<"u"&&document.currentScript&&(N=document.currentScript.src),r&&(N=r),N.indexOf("blob:")!==0?N=N.substr(0,N.replace(/[?#].*/,"").lastIndexOf("/")+1):N="",ye=function(v){var j=new XMLHttpRequest;return j.open("GET",v,!1),j.send(null),j.responseText},R&&(He=function(v){var j=new XMLHttpRequest;return j.open("GET",v,!1),j.responseType="arraybuffer",j.send(null),new Uint8Array(j.response)}),Ee=function(v,j,D){var C=new XMLHttpRequest;C.open("GET",v,!0),C.responseType="arraybuffer",C.onload=function(){if(C.status==200||C.status==0&&C.response){j(C.response);return}D()},C.onerror=D,C.send(null)},Tt=v=>document.title=v);var jn=t.print||console.log.bind(console),ge=t.printErr||console.warn.bind(console);i(t,u),u=null,t.arguments&&(p=t.arguments),t.thisProgram&&(m=t.thisProgram),t.quit&&(B=t.quit);var Ne;t.wasmBinary&&(Ne=t.wasmBinary);var ze=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Dt("no native wasm support detected");var tr,Vt=!1,rr;function Kt(v,j){v||Dt(j)}function Ye(v){var j=t["_"+v];return j}function Jt(v,j,D,C,x){var te={string:function(S){var Nt=0;if(S!=null&&S!==0){var Ut=(S.length<<2)+1;Nt=Xo(Ut),as(S,Nt,Ut)}return Nt},array:function(S){var Nt=Xo(S.length);return ko(S,Nt),Nt}};function J(S){return j==="string"?Ar(S):j==="boolean"?Boolean(S):S}var $=Ye(v),ue=[],Re=0;if(C)for(var Me=0;Me<C.length;Me++){var Mt=te[D[Me]];Mt?(Re===0&&(Re=du()),ue[Me]=Mt(C[Me])):ue[Me]=C[Me]}var T=$.apply(null,ue);function A(S){return Re!==0&&fu(Re),J(S)}return T=A(T),T}var Bn=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Ya(v,j,D){for(var C=j+D,x=j;v[x]&&!(x>=C);)++x;if(x-j>16&&v.subarray&&Bn)return Bn.decode(v.subarray(j,x));for(var te="";j<x;){var J=v[j++];if(!(J&128)){te+=String.fromCharCode(J);continue}var $=v[j++]&63;if((J&224)==192){te+=String.fromCharCode((J&31)<<6|$);continue}var ue=v[j++]&63;if((J&240)==224?J=(J&15)<<12|$<<6|ue:J=(J&7)<<18|$<<12|ue<<6|v[j++]&63,J<65536)te+=String.fromCharCode(J);else{var Re=J-65536;te+=String.fromCharCode(55296|Re>>10,56320|Re&1023)}}return te}function Ar(v,j){return v?Ya(qr,v,j):""}function Oo(v,j,D,C){if(!(C>0))return 0;for(var x=D,te=D+C-1,J=0;J<v.length;++J){var $=v.charCodeAt(J);if($>=55296&&$<=57343){var ue=v.charCodeAt(++J);$=65536+(($&1023)<<10)|ue&1023}if($<=127){if(D>=te)break;j[D++]=$}else if($<=2047){if(D+1>=te)break;j[D++]=192|$>>6,j[D++]=128|$&63}else if($<=65535){if(D+2>=te)break;j[D++]=224|$>>12,j[D++]=128|$>>6&63,j[D++]=128|$&63}else{if(D+3>=te)break;j[D++]=240|$>>18,j[D++]=128|$>>12&63,j[D++]=128|$>>6&63,j[D++]=128|$&63}}return j[D]=0,D-x}function as(v,j,D){return Oo(v,qr,j,D)}function Dr(v){for(var j=0,D=0;D<v.length;++D){var C=v.charCodeAt(D);C>=55296&&C<=57343&&(C=65536+((C&1023)<<10)|v.charCodeAt(++D)&1023),C<=127?++j:C<=2047?j+=2:C<=65535?j+=3:j+=4}return j}function ko(v,j){Tn.set(v,j)}function Co(v,j,D){for(var C=0;C<v.length;++C)Tn[j++>>0]=v.charCodeAt(C);D||(Tn[j>>0]=0)}function Sl(v,j){return v%j>0&&(v+=j-v%j),v}var Mo,Tn,qr,ki,ir,re,Sn,Ga,Q;function $a(v){Mo=v,t.HEAP8=Tn=new Int8Array(v),t.HEAP16=ki=new Int16Array(v),t.HEAP32=re=new Int32Array(v),t.HEAPU8=qr=new Uint8Array(v),t.HEAPU16=ir=new Uint16Array(v),t.HEAPU32=Sn=new Uint32Array(v),t.HEAPF32=Ga=new Float32Array(v),t.HEAPF64=Q=new Float64Array(v)}var Z_=t.INITIAL_MEMORY||16777216,Ka,Uo=[],Il=[],Ja=[],Eo=[],Xa=!1,Al=!1,Za=0;function Ro(){return ze||Za>0}function Dl(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Cl(t.preRun.shift());An(Uo)}function Fl(){Xa=!0,An(Il)}function xo(){An(Ja)}function Ol(){Al=!0}function kl(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Ul(t.postRun.shift());An(Eo)}function Cl(v){Uo.unshift(v)}function Ml(v){Il.unshift(v)}function Ul(v){Eo.unshift(v)}var pi=0,Vo=null,In=null;function _i(v){pi++,t.monitorRunDependencies&&t.monitorRunDependencies(pi)}function No(v){if(pi--,t.monitorRunDependencies&&t.monitorRunDependencies(pi),pi==0&&(Vo!==null&&(clearInterval(Vo),Vo=null),In)){var j=In;In=null,j()}}t.preloadedImages={},t.preloadedAudios={};function Dt(v){t.onAbort&&t.onAbort(v),v="Aborted("+v+")",ge(v),Vt=!0,rr=1,v+=". Build with -s ASSERTIONS=1 for more info.";var j=new WebAssembly.RuntimeError(v);throw s(j),j}var El="data:application/octet-stream;base64,";function Qa(v){return v.startsWith(El)}var Je;t.locateFile?(Je="./duckdb-eh.wasm",Qa(Je)||(Je=Se(Je))):Je=new URL("./duckdb-eh.wasm",aB.url).toString();function eu(v){try{if(v==Je&&Ne)return new Uint8Array(Ne);if(He)return He(v);throw"both async and sync fetching of the wasm failed"}catch(j){Dt(j)}}function tu(){return!Ne&&(O||R)&&typeof fetch=="function"?fetch(Je,{credentials:"same-origin"}).then(function(v){if(!v.ok)throw"failed to load wasm binary file at '"+Je+"'";return v.arrayBuffer()}).catch(function(){return eu(Je)}):Promise.resolve().then(function(){return eu(Je)})}function Ht(){var v={a:Mn};function j(J,$){var ue=J.exports;t.asm=ue,tr=t.asm.ea,$a(tr.buffer),Ka=t.asm.ha,Ml(t.asm.fa),No("wasm-instantiate")}_i("wasm-instantiate");function D(J){j(J.instance)}function C(J){return tu().then(function($){return WebAssembly.instantiate($,v)}).then(function($){return $}).then(J,function($){ge("failed to asynchronously prepare wasm: "+$),Dt($)})}function x(){return!Ne&&typeof WebAssembly.instantiateStreaming=="function"&&!Qa(Je)&&typeof fetch=="function"?fetch(Je,{credentials:"same-origin"}).then(function(J){var $=WebAssembly.instantiateStreaming(J,v);return $.then(D,function(ue){return ge("wasm streaming compile failed: "+ue),ge("falling back to ArrayBuffer instantiation"),C(D)})}):C(D)}if(t.instantiateWasm)try{var te=t.instantiateWasm(v,j);return te}catch(J){return ge("Module.instantiateWasm callback failed with error: "+J),!1}return x().catch(s),{}}function An(v){for(;v.length>0;){var j=v.shift();if(typeof j=="function"){j(t);continue}var D=j.func;typeof D=="number"?j.arg===void 0?ru(D)():ru(D)(j.arg):D(j.arg===void 0?null:j.arg)}}var us=[];function ru(v){var j=us[v];return j||(v>=us.length&&(us.length=v+1),us[v]=j=Ka.get(v)),j}function cs(v){if(v instanceof As||v=="unwind")return rr;B(1,v)}function ls(v,j,D,C){Dt("Assertion failed: "+Ar(v)+", at: "+[j?Ar(j):"unknown filename",D,C?Ar(C):"unknown function"])}var X={mappings:{},buffers:[null,[],[]],printChar:function(v,j){var D=X.buffers[v];j===0||j===10?((v===1?jn:ge)(Ya(D,0)),D.length=0):D.push(j)},varargs:void 0,get:function(){X.varargs+=4;var v=re[X.varargs-4>>2];return v},getStr:function(v){var j=Ar(v);return j},get64:function(v,j){return v}};function Rl(v,j,D,C,x){}function xl(v,j){return v=X.getStr(v),X.doAccess(v,j)}function Vl(){ge("missing function: $SOCKFS"),Dt(-1)}function Hr(){ge("missing function: $FS"),Dt(-1)}function nr(v){var j=Vl.getSocket(v);if(!j)throw new Hr.ErrnoError(8);return j}function ds(v){return re[lu()>>2]=v,v}function Po(v){return(v&255)+"."+(v>>8&255)+"."+(v>>16&255)+"."+(v>>24&255)}function Dn(v){var j="",D=0,C=0,x=0,te=0,J=0,$=0,ue=[v[0]&65535,v[0]>>16,v[1]&65535,v[1]>>16,v[2]&65535,v[2]>>16,v[3]&65535,v[3]>>16],Re=!0,Me="";for($=0;$<5;$++)if(ue[$]!==0){Re=!1;break}if(Re){if(Me=Po(ue[6]|ue[7]<<16),ue[5]===-1)return j="::ffff:",j+=Me,j;if(ue[5]===0)return j="::",Me==="0.0.0.0"&&(Me=""),Me==="0.0.0.1"&&(Me="1"),j+=Me,j}for(D=0;D<8;D++)ue[D]===0&&(D-x>1&&(J=0),x=D,J++),J>C&&(C=J,te=D-C+1);for(D=0;D<8;D++){if(C>1&&ue[D]===0&&D>=te&&D<te+C){D===te&&(j+=":",te===0&&(j+=":"));continue}j+=Number(Jo(ue[D]&65535)).toString(16),j+=D<7?":":""}return j}function iu(v,j){var D=ki[v>>1],C=Jo(ir[v+2>>1]),x;switch(D){case 2:if(j!==16)return{errno:28};x=re[v+4>>2],x=Po(x);break;case 10:if(j!==28)return{errno:28};x=[re[v+8>>2],re[v+12>>2],re[v+16>>2],re[v+20>>2]],x=Dn(x);break;default:return{errno:5}}return{family:D,addr:x,port:C}}function zt(v){for(var j=v.split("."),D=0;D<4;D++){var C=Number(j[D]);if(isNaN(C))return null;j[D]=C}return(j[0]|j[1]<<8|j[2]<<16|j[3]<<24)>>>0}function Fn(v){return parseInt(v)}function Lo(v){var j,D,C,x,te=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,J=[];if(!te.test(v))return null;if(v==="::")return[0,0,0,0,0,0,0,0];for(v.startsWith("::")?v=v.replace("::","Z:"):v=v.replace("::",":Z:"),v.indexOf(".")>0?(v=v.replace(new RegExp("[.]","g"),":"),j=v.split(":"),j[j.length-4]=Fn(j[j.length-4])+Fn(j[j.length-3])*256,j[j.length-3]=Fn(j[j.length-2])+Fn(j[j.length-1])*256,j=j.slice(0,j.length-2)):j=v.split(":"),C=0,x=0,D=0;D<j.length;D++)if(typeof j[D]=="string")if(j[D]==="Z"){for(x=0;x<8-j.length+1;x++)J[D+x]=0;C=x-1}else J[D+C]=Ss(parseInt(j[D],16));else J[D+C]=j[D];return[J[1]<<16|J[0],J[3]<<16|J[2],J[5]<<16|J[4],J[7]<<16|J[6]]}var Wt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(v){var j=zt(v);if(j!==null||(j=Lo(v),j!==null))return v;var D;if(Wt.address_map.addrs[v])D=Wt.address_map.addrs[v];else{var C=Wt.address_map.id++;Kt(C<65535,"exceeded max address mappings of 65535"),D="172.29."+(C&255)+"."+(C&65280),Wt.address_map.names[D]=v,Wt.address_map.addrs[v]=D}return D},lookup_addr:function(v){return Wt.address_map.names[v]?Wt.address_map.names[v]:null}};function nu(v,j,D){if(D&&v===0)return null;var C=iu(v,j);if(C.errno)throw new Hr.ErrnoError(C.errno);return C.addr=Wt.lookup_addr(C.addr)||C.addr,C}function Nl(v,j,D){var C=nr(v),x=nu(j,D);return C.sock_ops.bind(C,x.addr,x.port),0}function Pl(v,j,D){var C=nr(v),x=nu(j,D);return C.sock_ops.connect(C,x.addr,x.port),0}function Ll(v,j,D){return X.varargs=D,0}function ql(v,j){}function Hl(v,j,D,C){}function zl(v,j,D){}function Wl(v,j,D){}function lt(v,j){qr.fill(0,v,v+j)}function qo(v,j,D,C,x){switch(j){case 2:D=zt(D),lt(v,16),x&&(re[x>>2]=16),ki[v>>1]=j,re[v+4>>2]=D,ki[v+2>>1]=Ss(C);break;case 10:D=Lo(D),lt(v,28),x&&(re[x>>2]=28),re[v>>2]=j,re[v+8>>2]=D[0],re[v+12>>2]=D[1],re[v+16>>2]=D[2],re[v+20>>2]=D[3],ki[v+2>>1]=Ss(C);break;default:return 5}return 0}function Yl(v,j,D){var C=nr(v);if(!C.daddr)return-53;var x=qo(j,C.family,Wt.lookup_name(C.daddr),C.dport,D);return 0}function Gl(v,j,D,C,x){var te=nr(v);return j===1&&D===4?(re[C>>2]=te.error,re[x>>2]=4,te.error=null,0):-50}function su(v,j,D){return X.varargs=D,0}function On(v,j){}function $l(v,j){return v=X.getStr(v),X.doMkdir(v,j)}function Ho(v,j,D){X.varargs=D}function ou(v,j,D,C,x,te){var J=nr(v),$=J.sock_ops.recvmsg(J,D);if(!$)return 0;if(x)var ue=qo(x,J.family,Wt.lookup_name($.addr),$.port,te);return qr.set($.buffer,j),$.buffer.byteLength}function au(v,j){}function fs(v){}function hs(v,j,D,C,x,te){}function zo(v,j,D){}function Yt(v,j){}function uu(v){}function Kl(v,j){Dt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Jl(v,j){Dt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Xl(){Dt("")}var Wo;W?Wo=()=>{var v=process.hrtime();return v[0]*1e3+v[1]/1e6}:Wo=()=>performance.now();var Zl=!0;function Ql(v,j){var D;if(v===0)D=Date.now();else if((v===1||v===4)&&Zl)D=Wo();else return ds(28),-1;return re[j>>2]=D/1e3|0,re[j+4>>2]=D%1e3*1e3*1e3|0,0}function ed(v,j){return globalThis.DUCKDB_RUNTIME.createDirectory(t,v,j)}function cu(v,j){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,v,j)}function Yo(v,j){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,v,j)}function td(v,j){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,v,j)}function rd(v){return globalThis.DUCKDB_RUNTIME.closeFile(t,v)}function id(v,j){return globalThis.DUCKDB_RUNTIME.checkFile(t,v,j)}function nd(v){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,v)}function sd(v,j,D,C){return globalThis.DUCKDB_RUNTIME.moveFile(t,v,j,D,C)}function od(v,j){return globalThis.DUCKDB_RUNTIME.openFile(t,v,j)}function ad(v,j,D,C){return globalThis.DUCKDB_RUNTIME.readFile(t,v,j,D,C)}function ud(v,j){return globalThis.DUCKDB_RUNTIME.truncateFile(t,v,j)}function cd(v,j,D,C){return globalThis.DUCKDB_RUNTIME.writeFile(t,v,j,D,C)}function ld(v,j){return globalThis.DUCKDB_RUNTIME.glob(t,v,j)}function dd(v){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,v)}function fd(v,j,D,C,x,te){return globalThis.DUCKDB_RUNTIME.callScalarUDF(t,v,j,D,C,x,te)}function hd(){return 2147483648}function pd(v,j,D){qr.copyWithin(v,j,j+D)}function _d(v){try{return tr.grow(v-Mo.byteLength+65535>>>16),$a(tr.buffer),1}catch(j){}}function yd(v){var j=qr.length;v=v>>>0;var D=2147483648;if(v>D)return!1;for(var C=1;C<=4;C*=2){var x=j*(1+.2/C);x=Math.min(x,v+100663296);var te=Math.min(D,Sl(Math.max(v,x),65536)),J=_d(te);if(J)return!0}return!1}var kn={};function md(){return m||"./this.program"}function Cn(){if(!Cn.strings){var v=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",j={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:v,_:md()};for(var D in kn)kn[D]===void 0?delete j[D]:j[D]=kn[D];var C=[];for(var D in j)C.push(D+"="+j[D]);Cn.strings=C}return Cn.strings}function bd(v,j){var D=0;return Cn().forEach(function(C,x){var te=j+D;re[v+x*4>>2]=te,Co(C,te),D+=C.length+1}),0}function gd(v,j){var D=Cn();re[v>>2]=D.length;var C=0;return D.forEach(function(x){C+=x.length+1}),re[j>>2]=C,0}function vd(v){return 0}function wd(v,j,D,C,x,te){var J=X.getStreamFromFD(v),$=X.doReadv(J,j,D,C);return re[te>>2]=$,0}function jd(v,j,D,C,x,te){var J=X.getStreamFromFD(v),$=X.doWritev(J,j,D,C);return re[te>>2]=$,0}function Bd(v,j,D,C){var x=X.getStreamFromFD(v),te=X.doReadv(x,j,D);return re[C>>2]=te,0}function Td(v,j,D,C,x){}function Sd(v){var j=X.getStreamFromFD(v);return j.stream_ops&&j.stream_ops.fsync?-j.stream_ops.fsync(j):0}function Id(v,j,D,C){for(var x=0,te=0;te<D;te++){var J=re[j>>2],$=re[j+4>>2];j+=8;for(var ue=0;ue<$;ue++)X.printChar(v,qr[J+ue]);x+=$}return re[C>>2]=x,0}function Ad(v,j,D,C){var x=0,te=0,J=0,$=0,ue=0,Re=0,Me;function Mt(T,A,S,Nt,Ut,Ci){var q,ce,xe,Ve;return ce=T===10?28:16,Ut=T===10?Dn(Ut):Po(Ut),q=Zo(ce),Ve=qo(q,T,Ut,Ci),Kt(!Ve),xe=Zo(32),re[xe+4>>2]=T,re[xe+8>>2]=A,re[xe+12>>2]=S,re[xe+24>>2]=Nt,re[xe+20>>2]=q,T===10?re[xe+16>>2]=28:re[xe+16>>2]=16,re[xe+28>>2]=0,xe}if(D&&(J=re[D>>2],$=re[D+4>>2],ue=re[D+8>>2],Re=re[D+12>>2]),ue&&!Re&&(Re=ue===2?17:6),!ue&&Re&&(ue=Re===17?2:1),Re===0&&(Re=6),ue===0&&(ue=1),!v&&!j)return-2;if(J&-1088||D!==0&&re[D>>2]&2&&!v)return-1;if(J&32)return-2;if(ue!==0&&ue!==1&&ue!==2)return-7;if($!==0&&$!==2&&$!==10)return-6;if(j&&(j=Ar(j),te=parseInt(j,10),isNaN(te)))return J&1024?-2:-8;if(!v)return $===0&&($=2),(J&1)===0&&($===2?x=Ts(2130706433):x=[0,0,0,1]),Me=Mt($,ue,Re,null,x,te),re[C>>2]=Me,0;if(v=Ar(v),x=zt(v),x!==null)if($===0||$===2)$=2;else if($===10&&J&8)x=[0,0,Ts(65535),x],$=10;else return-2;else if(x=Lo(v),x!==null)if($===0||$===10)$=10;else return-2;return x!=null?(Me=Mt($,ue,Re,v,x,te),re[C>>2]=Me,0):J&4?-2:(v=Wt.lookup_name(v),x=zt(v),$===0?$=2:$===10&&(x=[0,0,Ts(65535),x]),Me=Mt($,ue,Re,null,x,te),re[C>>2]=Me,0)}function Dd(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var v=new Uint8Array(1);return function(){return crypto.getRandomValues(v),v[0]}}else if(W)try{var j=require("crypto");return function(){return j.randomBytes(1)[0]}}catch(D){}return function(){Dt("randomDevice")}}function ps(v,j){ps.randomDevice||(ps.randomDevice=Dd());for(var D=0;D<j;D++)Tn[v+D>>0]=ps.randomDevice();return 0}function Fd(v,j,D,C,x,te,J){var $=iu(v,j);if($.errno)return-6;var ue=$.port,Re=$.addr,Me=!1;if(D&&C){var Mt;if(J&1||!(Mt=Wt.lookup_addr(Re))){if(J&8)return-2}else Re=Mt;var T=as(Re,D,C);T+1>=C&&(Me=!0)}if(x&&te){ue=""+ue;var T=as(ue,x,te);T+1>=te&&(Me=!0)}return Me?-12:0}function _s(v){return v%4===0&&(v%100!==0||v%400===0)}function Go(v,j){for(var D=0,C=0;C<=j;D+=v[C++]);return D}var ys=[31,29,31,30,31,30,31,31,30,31,30,31],ms=[31,28,31,30,31,30,31,31,30,31,30,31];function bs(v,j){for(var D=new Date(v.getTime());j>0;){var C=_s(D.getFullYear()),x=D.getMonth(),te=(C?ys:ms)[x];if(j>te-D.getDate())j-=te-D.getDate()+1,D.setDate(1),x<11?D.setMonth(x+1):(D.setMonth(0),D.setFullYear(D.getFullYear()+1));else return D.setDate(D.getDate()+j),D}return D}function Od(v,j,D,C){var x=re[C+40>>2],te={tm_sec:re[C>>2],tm_min:re[C+4>>2],tm_hour:re[C+8>>2],tm_mday:re[C+12>>2],tm_mon:re[C+16>>2],tm_year:re[C+20>>2],tm_wday:re[C+24>>2],tm_yday:re[C+28>>2],tm_isdst:re[C+32>>2],tm_gmtoff:re[C+36>>2],tm_zone:x?Ar(x):""},J=Ar(D),$={"%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 ue in $)J=J.replace(new RegExp(ue,"g"),$[ue]);var Re=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Me=["January","February","March","April","May","June","July","August","September","October","November","December"];function Mt(q,ce,xe){for(var Ve=typeof q=="number"?q.toString():q||"";Ve.length<ce;)Ve=xe[0]+Ve;return Ve}function T(q,ce){return Mt(q,ce,"0")}function A(q,ce){function xe(Xt){return Xt<0?-1:Xt>0?1:0}var Ve;return(Ve=xe(q.getFullYear()-ce.getFullYear()))===0&&(Ve=xe(q.getMonth()-ce.getMonth()))===0&&(Ve=xe(q.getDate()-ce.getDate())),Ve}function S(q){switch(q.getDay()){case 0:return new Date(q.getFullYear()-1,11,29);case 1:return q;case 2:return new Date(q.getFullYear(),0,3);case 3:return new Date(q.getFullYear(),0,2);case 4:return new Date(q.getFullYear(),0,1);case 5:return new Date(q.getFullYear()-1,11,31);case 6:return new Date(q.getFullYear()-1,11,30)}}function Nt(q){var ce=bs(new Date(q.tm_year+1900,0,1),q.tm_yday),xe=new Date(ce.getFullYear(),0,4),Ve=new Date(ce.getFullYear()+1,0,4),Xt=S(xe),Fr=S(Ve);return A(Xt,ce)<=0?A(Fr,ce)<=0?ce.getFullYear()+1:ce.getFullYear():ce.getFullYear()-1}var Ut={"%a":function(q){return Re[q.tm_wday].substring(0,3)},"%A":function(q){return Re[q.tm_wday]},"%b":function(q){return Me[q.tm_mon].substring(0,3)},"%B":function(q){return Me[q.tm_mon]},"%C":function(q){var ce=q.tm_year+1900;return T(ce/100|0,2)},"%d":function(q){return T(q.tm_mday,2)},"%e":function(q){return Mt(q.tm_mday,2," ")},"%g":function(q){return Nt(q).toString().substring(2)},"%G":function(q){return Nt(q)},"%H":function(q){return T(q.tm_hour,2)},"%I":function(q){var ce=q.tm_hour;return ce==0?ce=12:ce>12&&(ce-=12),T(ce,2)},"%j":function(q){return T(q.tm_mday+Go(_s(q.tm_year+1900)?ys:ms,q.tm_mon-1),3)},"%m":function(q){return T(q.tm_mon+1,2)},"%M":function(q){return T(q.tm_min,2)},"%n":function(){return`
|
|
32
32
|
`},"%p":function(q){return q.tm_hour>=0&&q.tm_hour<12?"AM":"PM"},"%S":function(q){return T(q.tm_sec,2)},"%t":function(){return" "},"%u":function(q){return q.tm_wday||7},"%U":function(q){var ce=new Date(q.tm_year+1900,0,1),xe=ce.getDay()===0?ce:bs(ce,7-ce.getDay()),Ve=new Date(q.tm_year+1900,q.tm_mon,q.tm_mday);if(A(xe,Ve)<0){var Xt=Go(_s(Ve.getFullYear())?ys:ms,Ve.getMonth()-1)-31,Fr=31-xe.getDate(),zr=Fr+Xt+Ve.getDate();return T(Math.ceil(zr/7),2)}return A(xe,ce)===0?"01":"00"},"%V":function(q){var ce=new Date(q.tm_year+1900,0,4),xe=new Date(q.tm_year+1901,0,4),Ve=S(ce),Xt=S(xe),Fr=bs(new Date(q.tm_year+1900,0,1),q.tm_yday);if(A(Fr,Ve)<0)return"53";if(A(Xt,Fr)<=0)return"01";var zr;return Ve.getFullYear()<q.tm_year+1900?zr=q.tm_yday+32-Ve.getDate():zr=q.tm_yday+1-Ve.getDate(),T(Math.ceil(zr/7),2)},"%w":function(q){return q.tm_wday},"%W":function(q){var ce=new Date(q.tm_year,0,1),xe=ce.getDay()===1?ce:bs(ce,ce.getDay()===0?1:7-ce.getDay()+1),Ve=new Date(q.tm_year+1900,q.tm_mon,q.tm_mday);if(A(xe,Ve)<0){var Xt=Go(_s(Ve.getFullYear())?ys:ms,Ve.getMonth()-1)-31,Fr=31-xe.getDate(),zr=Fr+Xt+Ve.getDate();return T(Math.ceil(zr/7),2)}return A(xe,ce)===0?"01":"00"},"%y":function(q){return(q.tm_year+1900).toString().substring(2)},"%Y":function(q){return q.tm_year+1900},"%z":function(q){var ce=q.tm_gmtoff,xe=ce>=0;return ce=Math.abs(ce)/60,ce=ce/60*100+ce%60,(xe?"+":"-")+String("0000"+ce).slice(-4)},"%Z":function(q){return q.tm_zone},"%%":function(){return"%"}};for(var ue in Ut)J.includes(ue)&&(J=J.replace(new RegExp(ue,"g"),Ut[ue](te)));var Ci=kd(J,!1);return Ci.length>j?0:(ko(Ci,v),Ci.length-1)}function $o(v,j,D,C){return Od(v,j,D,C)}function kd(v,j,D){var C=D>0?D:Dr(v)+1,x=new Array(C),te=Oo(v,x,0,x.length);return j&&(x.length=te),x}var Mn={a:ls,R:Rl,L:xl,T:Nl,S:Pl,b:Ll,$:ql,Z:Hl,W:zl,X:Wl,N:Yl,Q:Gl,ba:su,Y:On,aa:$l,q:Ho,O:ou,J:au,o:fs,P:hs,k:zo,_:Yt,p:uu,m:Kl,U:Jl,d:Xl,n:Ql,D:ed,E:cu,B:Yo,C:td,h:rd,z:id,G:nd,A:sd,H:od,f:ad,F:ud,i:cd,y:ld,g:dd,I:fd,r:hd,ca:pd,da:yd,t:bd,u:gd,c:vd,w:wd,v:jd,j:Bd,x:Td,K:Sd,e:Id,l:Ad,V:ps,M:Fd,s:$o},Q_=Ht(),Cd=t.___wasm_call_ctors=function(){return(Cd=t.___wasm_call_ctors=t.asm.fa).apply(null,arguments)},Md=t._main=function(){return(Md=t._main=t.asm.ga).apply(null,arguments)},Ud=t._duckdb_web_fs_glob_add_path=function(){return(Ud=t._duckdb_web_fs_glob_add_path=t.asm.ia).apply(null,arguments)},Ed=t._duckdb_web_clear_response=function(){return(Ed=t._duckdb_web_clear_response=t.asm.ja).apply(null,arguments)},Rd=t._duckdb_web_fail_with=function(){return(Rd=t._duckdb_web_fail_with=t.asm.ka).apply(null,arguments)},xd=t._duckdb_web_reset=function(){return(xd=t._duckdb_web_reset=t.asm.la).apply(null,arguments)},Vd=t._duckdb_web_connect=function(){return(Vd=t._duckdb_web_connect=t.asm.ma).apply(null,arguments)},Nd=t._duckdb_web_disconnect=function(){return(Nd=t._duckdb_web_disconnect=t.asm.na).apply(null,arguments)},Pd=t._duckdb_web_flush_files=function(){return(Pd=t._duckdb_web_flush_files=t.asm.oa).apply(null,arguments)},Ld=t._duckdb_web_flush_file=function(){return(Ld=t._duckdb_web_flush_file=t.asm.pa).apply(null,arguments)},qd=t._duckdb_web_open=function(){return(qd=t._duckdb_web_open=t.asm.qa).apply(null,arguments)},gs=t._duckdb_web_get_global_file_info=function(){return(gs=t._duckdb_web_get_global_file_info=t.asm.ra).apply(null,arguments)},Hd=t._duckdb_web_collect_file_stats=function(){return(Hd=t._duckdb_web_collect_file_stats=t.asm.sa).apply(null,arguments)},zd=t._duckdb_web_export_file_stats=function(){return(zd=t._duckdb_web_export_file_stats=t.asm.ta).apply(null,arguments)},Wd=t._duckdb_web_fs_drop_file=function(){return(Wd=t._duckdb_web_fs_drop_file=t.asm.ua).apply(null,arguments)},vs=t._duckdb_web_fs_drop_files=function(){return(vs=t._duckdb_web_fs_drop_files=t.asm.va).apply(null,arguments)},Ko=t._duckdb_web_fs_glob_file_infos=function(){return(Ko=t._duckdb_web_fs_glob_file_infos=t.asm.wa).apply(null,arguments)},ws=t._duckdb_web_fs_get_file_info_by_id=function(){return(ws=t._duckdb_web_fs_get_file_info_by_id=t.asm.xa).apply(null,arguments)},js=t._duckdb_web_fs_get_file_info_by_name=function(){return(js=t._duckdb_web_fs_get_file_info_by_name=t.asm.ya).apply(null,arguments)},Bs=t._duckdb_web_fs_set_file_descriptor=function(){return(Bs=t._duckdb_web_fs_set_file_descriptor=t.asm.za).apply(null,arguments)},Yd=t._duckdb_web_fs_register_file_url=function(){return(Yd=t._duckdb_web_fs_register_file_url=t.asm.Aa).apply(null,arguments)},Gd=t._duckdb_web_fs_register_file_buffer=function(){return(Gd=t._duckdb_web_fs_register_file_buffer=t.asm.Ba).apply(null,arguments)},$d=t._duckdb_web_copy_file_to_buffer=function(){return($d=t._duckdb_web_copy_file_to_buffer=t.asm.Ca).apply(null,arguments)},Kd=t._duckdb_web_copy_file_to_path=function(){return(Kd=t._duckdb_web_copy_file_to_path=t.asm.Da).apply(null,arguments)},ey=t._duckdb_web_get_version=function(){return(ey=t._duckdb_web_get_version=t.asm.Ea).apply(null,arguments)},Jd=t._duckdb_web_get_feature_flags=function(){return(Jd=t._duckdb_web_get_feature_flags=t.asm.Fa).apply(null,arguments)},Xd=t._duckdb_web_tokenize=function(){return(Xd=t._duckdb_web_tokenize=t.asm.Ga).apply(null,arguments)},Zd=t._duckdb_web_udf_scalar_create=function(){return(Zd=t._duckdb_web_udf_scalar_create=t.asm.Ha).apply(null,arguments)},Qd=t._duckdb_web_prepared_create=function(){return(Qd=t._duckdb_web_prepared_create=t.asm.Ia).apply(null,arguments)},ef=t._duckdb_web_prepared_close=function(){return(ef=t._duckdb_web_prepared_close=t.asm.Ja).apply(null,arguments)},tf=t._duckdb_web_prepared_run=function(){return(tf=t._duckdb_web_prepared_run=t.asm.Ka).apply(null,arguments)},rf=t._duckdb_web_prepared_send=function(){return(rf=t._duckdb_web_prepared_send=t.asm.La).apply(null,arguments)},nf=t._duckdb_web_query_run=function(){return(nf=t._duckdb_web_query_run=t.asm.Ma).apply(null,arguments)},sf=t._duckdb_web_query_send=function(){return(sf=t._duckdb_web_query_send=t.asm.Na).apply(null,arguments)},of=t._duckdb_web_query_fetch_results=function(){return(of=t._duckdb_web_query_fetch_results=t.asm.Oa).apply(null,arguments)},af=t._duckdb_web_get_tablenames=function(){return(af=t._duckdb_web_get_tablenames=t.asm.Pa).apply(null,arguments)},uf=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(uf=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.Qa).apply(null,arguments)},cf=t._duckdb_web_insert_csv_from_path=function(){return(cf=t._duckdb_web_insert_csv_from_path=t.asm.Ra).apply(null,arguments)},lf=t._duckdb_web_insert_json_from_path=function(){return(lf=t._duckdb_web_insert_json_from_path=t.asm.Sa).apply(null,arguments)},lu=t.___errno_location=function(){return(lu=t.___errno_location=t.asm.Ta).apply(null,arguments)},Ts=t._htonl=function(){return(Ts=t._htonl=t.asm.Ua).apply(null,arguments)},Ss=t._htons=function(){return(Ss=t._htons=t.asm.Va).apply(null,arguments)},Jo=t._ntohs=function(){return(Jo=t._ntohs=t.asm.Wa).apply(null,arguments)},du=t.stackSave=function(){return(du=t.stackSave=t.asm.Xa).apply(null,arguments)},fu=t.stackRestore=function(){return(fu=t.stackRestore=t.asm.Ya).apply(null,arguments)},Xo=t.stackAlloc=function(){return(Xo=t.stackAlloc=t.asm.Za).apply(null,arguments)},Zo=t._malloc=function(){return(Zo=t._malloc=t.asm._a).apply(null,arguments)},df=t._free=function(){return(df=t._free=t.asm.$a).apply(null,arguments)};t.ccall=Jt;var Is;function As(v){this.name="ExitStatus",this.message="Program terminated with exit("+v+")",this.status=v}var ff=!1;In=function v(){Is||Qo(),Is||(In=v)};function hf(v){var j=t._main,D=0,C=0;try{var x=j(D,C);return pf(x,!0),x}catch(te){return cs(te)}finally{ff=!0}}function Qo(v){if(v=v||p,pi>0||(Dl(),pi>0))return;function j(){Is||(Is=!0,t.calledRun=!0,!Vt&&(Fl(),xo(),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),hu&&hf(v),kl()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),j()},1)):j()}t.run=Qo;function pf(v,j){rr=v,Ro()||Ol(),_f(v)}function _f(v){rr=v,Ro()||(t.onExit&&t.onExit(v),Vt=!0),B(v,new As(v))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var hu=!0;return t.noInitialRun&&(hu=!1),Qo(),e.ready}})(),uB=hE;var X_=class extends Wa{constructor(e,t,i,n=null){super(e,t,i,n)}instantiateImpl(e){return uB(En(Wr({},e),{instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)}))}};async function pE(r,e,t){return(await Tl()).wasmExceptions&&r.eh?new X_(e,t,r.eh.mainModule):new J_(e,t,r.mvp.mainModule)}module.exports=WA(_E);
|
|
33
33
|
/*! *****************************************************************************
|
|
34
34
|
Copyright (c) Microsoft Corporation.
|