@duckdb/duckdb-wasm 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -3
- package/dist/duckdb-browser-async-next-coi.worker.js +1 -1
- package/dist/duckdb-browser-async-next-coi.worker.js.map +2 -2
- package/dist/duckdb-browser-async-next.worker.js +1 -1
- package/dist/duckdb-browser-async-next.worker.js.map +2 -2
- package/dist/duckdb-browser-async.js +1 -1
- package/dist/duckdb-browser-async.js.map +2 -2
- package/dist/duckdb-browser-async.worker.js +1 -1
- package/dist/duckdb-browser-async.worker.js.map +2 -2
- package/dist/duckdb-browser-sync-next.js +1 -1
- package/dist/duckdb-browser-sync-next.js.map +2 -2
- package/dist/duckdb-browser-sync.js +1 -1
- package/dist/duckdb-browser-sync.js.map +2 -2
- package/dist/duckdb-esm.js +1 -1
- package/dist/duckdb-esm.js.map +2 -2
- package/dist/duckdb-node-async-next.worker.js +1 -1
- package/dist/duckdb-node-async-next.worker.js.map +2 -2
- package/dist/duckdb-node-async.js +1 -1
- package/dist/duckdb-node-async.js.map +2 -2
- package/dist/duckdb-node-async.worker.js +1 -1
- package/dist/duckdb-node-async.worker.js.map +2 -2
- package/dist/duckdb-node-sync-next.js +1 -1
- package/dist/duckdb-node-sync-next.js.map +2 -2
- package/dist/duckdb-node-sync.js +1 -1
- package/dist/duckdb-node-sync.js.map +2 -2
- package/dist/tests-browser.js +19 -99
- package/dist/tests-browser.js.map +2 -2
- package/dist/tests-node.js +4 -4
- package/dist/tests-node.js.map +2 -2
- package/dist/types/src/bindings/connection.d.ts +2 -2
- package/dist/types/src/parallel/async_connection.d.ts +2 -2
- package/package.json +1 -1
|
@@ -15,5 +15,5 @@ return true;`)}ua.createIsValidFunction=cO;function lO(r){return typeof r!="bigi
|
|
|
15
15
|
`),this._write(`${xD(this._recordBatches[e])}`),this._recordBatchBlocks.push(new ln.FileBlock(0,0,0));this._write(`
|
|
16
16
|
]`)}return this._schema&&this._write(`
|
|
17
17
|
}`),this._dictionaries=[],this._recordBatches=[],super.close()}};ur.RecordBatchJSONWriter=no;function Yc(r,e){let t=e;e instanceof Lc.Table&&(t=e.chunks,r.reset(void 0,e.schema));for(let i of t)r.write(i);return r.finish()}async function Hc(r,e){for await(let t of e)r.write(t);return r.finish()}function hb({name:r,type:e,nullable:t}){let i=new PD.JSONTypeAssembler;return{name:r,nullable:t,type:i.visit(e),children:(e.children||[]).map(hb),dictionary:kD.DataType.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:i.visit(e.indices)}:void 0}}function LD(r,e,t=!1){let i=new MD.Field(`${e}`,r.type,r.nullCount>0),n=fb.JSONVectorAssembler.assemble(new UD.Column(i,[r]));return JSON.stringify({id:e,isDelta:t,data:{count:r.length,columns:n}},null,2)}function xD(r){return JSON.stringify({count:r.length,columns:fb.JSONVectorAssembler.assemble(r)},null,2)}});var Jc=U(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.distributeVectorsIntoRecordBatches=Qr.distributeColumnsIntoRecordBatches=Qr.ensureSameLengthData=void 0;var pb=Nt(),Gc=Qe(),qD=kr(),WD=Tr(),$c=new Uint8Array(0),yb=r=>[$c,$c,new Uint8Array(r),$c];function zD(r,e,t=e.reduce((i,n)=>Math.max(i,n.length),0)){let i,n,a=-1,c=e.length,f=[...r.fields],j=[],s=(t+63&~63)>>3;for(;++a<c;)(i=e[a])&&i.length===t?j[a]=i:((n=f[a]).nullable||(f[a]=f[a].clone({nullable:!0})),j[a]=i?i._changeLengthAndBackfillNullBitmap(t):pb.Data.new(n.type,0,t,t,yb(s)));return[new Gc.Schema(f),t,j]}Qr.ensureSameLengthData=zD;function YD(r){return mb(new Gc.Schema(r.map(({field:e})=>e)),r)}Qr.distributeColumnsIntoRecordBatches=YD;function mb(r,e){return HD(r,e.map(t=>t instanceof qD.Chunked?t.chunks.map(i=>i.data):[t.data]))}Qr.distributeVectorsIntoRecordBatches=mb;function HD(r,e){let t=[...r.fields],i=[],n={numBatches:e.reduce((R,$)=>Math.max(R,$.length),0)},a=0,c=0,f=-1,j=e.length,s,m=[];for(;n.numBatches-- >0;){for(c=Number.POSITIVE_INFINITY,f=-1;++f<j;)m[f]=s=e[f].shift(),c=Math.min(c,s?s.length:c);isFinite(c)&&(m=GD(t,c,m,e,n),c>0&&(i[a++]=[c,m.slice()]))}return[r=new Gc.Schema(t,r.metadata),i.map(R=>new WD.RecordBatch(r,...R))]}function GD(r,e,t,i,n){let a,c,f=0,j=-1,s=i.length,m=(e+63&~63)>>3;for(;++j<s;)(a=t[j])&&(f=a.length)>=e?f===e?t[j]=a:(t[j]=a.slice(0,e),a=a.slice(e,f-e),n.numBatches=Math.max(n.numBatches,i[j].unshift(a))):((c=r[j]).nullable||(r[j]=c.clone({nullable:!0})),t[j]=a?a._changeLengthAndBackfillNullBitmap(e):pb.Data.new(c.type,0,e,e,yb(m)));return t}});var Ve=U(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.BaseVector=void 0;var $D=Ie(),JD=kr(),KD=$n(),Kc=Pe(),Qc=class extends Kc.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`${$D.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 Kc.Vector.new(e,t)}concat(...e){return JD.Chunked.concat(this,...e)}slice(e,t){return KD.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]=Kc.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){}};ao.BaseVector=Qc;Qc.prototype[Symbol.isConcatSpreadable]=!0});var Zc=U(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.BinaryVector=void 0;var QD=Pe(),ZD=Ve(),XD=ve(),_b=class extends ZD.BaseVector{asUtf8(){return QD.Vector.new(this.data.clone(new XD.Utf8))}};oo.BinaryVector=_b});var Xc=U(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.BoolVector=void 0;var eF=ve(),tF=Ve(),rF=cr(),bb=class extends tF.BaseVector{static from(e){return rF.vectorFromValuesWithType(()=>new eF.Bool,e)}};uo.BoolVector=bb});var tl=U(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.DateMillisecondVector=Zr.DateDayVector=Zr.DateVector=void 0;var iF=Ie(),nF=Ve(),gb=cr(),el=ve(),co=class extends nF.BaseVector{static from(...e){return e.length===2?gb.vectorFromValuesWithType(()=>e[1]===iF.DateUnit.DAY?new el.DateDay:new el.DateMillisecond,e[0]):gb.vectorFromValuesWithType(()=>new el.DateMillisecond,e[0])}};Zr.DateVector=co;var vb=class extends co{};Zr.DateDayVector=vb;var wb=class extends co{};Zr.DateMillisecondVector=wb});var rl=U(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.DecimalVector=void 0;var sF=Ve(),jb=class extends sF.BaseVector{};lo.DecimalVector=jb});var ho=U(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.DictionaryVector=void 0;var aF=Nt(),Tb=Pe(),oF=Ve(),uF=cr(),cF=ve(),il=class extends oF.BaseVector{constructor(e){super(e);this.indices=Tb.Vector.new(e.clone(this.type.indices))}static from(...e){if(e.length===3){let[t,i,n]=e,a=new cF.Dictionary(t.type,i,null,null);return Tb.Vector.new(aF.Data.Dictionary(a,0,n.length,0,null,n,t))}return uF.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)}};fo.DictionaryVector=il;il.prototype.indices=null});var nl=U(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.FixedSizeBinaryVector=void 0;var lF=Ve(),Bb=class extends lF.BaseVector{};po.FixedSizeBinaryVector=Bb});var sl=U(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.FixedSizeListVector=void 0;var dF=Ve(),Ib=class extends dF.BaseVector{};yo.FixedSizeListVector=Ib});var cl=U(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.Float64Vector=lr.Float32Vector=lr.Float16Vector=lr.FloatVector=void 0;var fF=Nt(),hF=Pe(),pF=Ve(),yF=cr(),wi=ve(),os=class extends pF.BaseVector{static from(e){let t=bF(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let i=_F(e.constructor)||t;if(t===null&&(t=i),t&&t===i){let n=new t,a=e.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!mF(t,e.constructor))return hF.Vector.new(fF.Data.Float(n,0,a,0,null,e))}}if(t)return yF.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")}};lr.FloatVector=os;var al=class extends os{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}};lr.Float16Vector=al;var ol=class extends os{};lr.Float32Vector=ol;var ul=class extends os{};lr.Float64Vector=ul;var mF=(r,e)=>r===wi.Float16&&e!==Uint16Array,_F=r=>{switch(r){case Uint16Array:return wi.Float16;case Float32Array:return wi.Float32;case Float64Array:return wi.Float64;default:return null}},bF=r=>{switch(r){case al:return wi.Float16;case ol:return wi.Float32;case ul:return wi.Float64;default:return null}}});var ll=U(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.IntervalYearMonthVector=Xr.IntervalDayTimeVector=Xr.IntervalVector=void 0;var gF=Ve(),mo=class extends gF.BaseVector{};Xr.IntervalVector=mo;var Sb=class extends mo{};Xr.IntervalDayTimeVector=Sb;var Ob=class extends mo{};Xr.IntervalYearMonthVector=Ob});var _o=U(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.Uint64Vector=We.Uint32Vector=We.Uint16Vector=We.Uint8Vector=We.Int64Vector=We.Int32Vector=We.Int16Vector=We.Int8Vector=We.IntVector=void 0;var vF=Nt(),wF=Pe(),jF=Ve(),TF=cr(),Ab=ut(),Db=Ne(),Me=ve(),dr=class extends jF.BaseVector{static from(...e){let[t,i=!1]=e,n=SF(this,i);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let a=IF(t.constructor,i)||n;if(n===null&&(n=a),n&&n===a){let c=new n,f=t.byteLength/c.ArrayType.BYTES_PER_ELEMENT;return BF(n,t.constructor)&&(f*=.5),wF.Vector.new(vF.Data.Int(c,0,f,0,null,t))}}if(n)return TF.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")}};We.IntVector=dr;var dl=class extends dr{};We.Int8Vector=dl;var fl=class extends dr{};We.Int16Vector=fl;var hl=class extends dr{};We.Int32Vector=hl;var pl=class extends dr{toBigInt64Array(){return Db.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}};We.Int64Vector=pl;var yl=class extends dr{};We.Uint8Vector=yl;var ml=class extends dr{};We.Uint16Vector=ml;var _l=class extends dr{};We.Uint32Vector=_l;var bl=class extends dr{toBigUint64Array(){return Db.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}};We.Uint64Vector=bl;var BF=(r,e)=>(r===Me.Int64||r===Me.Uint64)&&(e===Int32Array||e===Uint32Array),IF=(r,e)=>{switch(r){case Int8Array:return Me.Int8;case Int16Array:return Me.Int16;case Int32Array:return e?Me.Int64:Me.Int32;case Ab.BigInt64Array:return Me.Int64;case Uint8Array:return Me.Uint8;case Uint16Array:return Me.Uint16;case Uint32Array:return e?Me.Uint64:Me.Uint32;case Ab.BigUint64Array:return Me.Uint64;default:return null}},SF=(r,e)=>{switch(r){case dl:return Me.Int8;case fl:return Me.Int16;case hl:return e?Me.Int64:Me.Int32;case pl:return Me.Int64;case yl:return Me.Uint8;case ml:return Me.Uint16;case _l:return e?Me.Uint64:Me.Uint32;case bl:return Me.Uint64;default:return null}}});var gl=U(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.ListVector=void 0;var OF=Ve(),Fb=class extends OF.BaseVector{};bo.ListVector=Fb});var vl=U(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.MapVector=void 0;var AF=Hn(),DF=Pe(),FF=Ve(),RF=ve(),Rb=class extends FF.BaseVector{asList(){let e=this.type.children[0];return DF.Vector.new(this.data.clone(new RF.List(e)))}bind(e){let t=this.getChildAt(0),{[e]:i,[e+1]:n}=this.valueOffsets;return new AF.MapRow(t.slice(i,n))}};go.MapVector=Rb});var wl=U(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.NullVector=void 0;var EF=Ve(),Eb=class extends EF.BaseVector{};vo.NullVector=Eb});var jl=U(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.StructVector=void 0;var CF=Hn(),UF=Ve(),kF=Symbol.for("rowIndex"),Cb=class extends UF.BaseVector{bind(e){let t=this._row||(this._row=new CF.StructRow(this)),i=Object.create(t);return i[kF]=e,i}};wo.StructVector=Cb});var Tl=U(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.TimestampNanosecondVector=Rt.TimestampMicrosecondVector=Rt.TimestampMillisecondVector=Rt.TimestampSecondVector=Rt.TimestampVector=void 0;var MF=Ve(),dn=class extends MF.BaseVector{};Rt.TimestampVector=dn;var Ub=class extends dn{};Rt.TimestampSecondVector=Ub;var kb=class extends dn{};Rt.TimestampMillisecondVector=kb;var Mb=class extends dn{};Rt.TimestampMicrosecondVector=Mb;var Pb=class extends dn{};Rt.TimestampNanosecondVector=Pb});var Bl=U(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.TimeNanosecondVector=Et.TimeMicrosecondVector=Et.TimeMillisecondVector=Et.TimeSecondVector=Et.TimeVector=void 0;var PF=Ve(),fn=class extends PF.BaseVector{};Et.TimeVector=fn;var Vb=class extends fn{};Et.TimeSecondVector=Vb;var Nb=class extends fn{};Et.TimeMillisecondVector=Nb;var Lb=class extends fn{};Et.TimeMicrosecondVector=Lb;var xb=class extends fn{};Et.TimeNanosecondVector=xb});var Il=U(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.SparseUnionVector=ei.DenseUnionVector=ei.UnionVector=void 0;var VF=Ve(),jo=class extends VF.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}};ei.UnionVector=jo;var qb=class extends jo{get valueOffsets(){return this.data.valueOffsets}};ei.DenseUnionVector=qb;var Wb=class extends jo{};ei.SparseUnionVector=Wb});var Sl=U(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.Utf8Vector=void 0;var NF=Pe(),LF=Ve(),zb=ve(),xF=cr(),Yb=class extends LF.BaseVector{static from(e){return xF.vectorFromValuesWithType(()=>new zb.Utf8,e)}asBinary(){return NF.Vector.new(this.data.clone(new zb.Binary))}};To.Utf8Vector=Yb});var Hb=U(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.partial2=ti.partial1=ti.partial0=void 0;function qF(r){return function(){return r(this)}}ti.partial0=qF;function WF(r){return function(e){return r(this,e)}}ti.partial1=WF;function zF(r){return function(e,t){return r(this,e,t)}}ti.partial2=zF});var Dl=U(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.instance=hn.GetVisitor=void 0;var Bo=Yn(),YF=it(),HF=ci(),GF=xn(),Ct=Ie(),K=class extends YF.Visitor{};hn.GetVisitor=K;var $F=(r,e)=>864e5*r[e],Ol=(r,e)=>4294967296*r[e+1]+(r[e]>>>0),JF=(r,e)=>4294967296*(r[e+1]/1e3)+(r[e]>>>0)/1e3,KF=(r,e)=>4294967296*(r[e+1]/1e6)+(r[e]>>>0)/1e6,Gb=r=>new Date(r),QF=(r,e)=>Gb($F(r,e)),ZF=(r,e)=>Gb(Ol(r,e)),XF=(r,e)=>null,$b=(r,e,t)=>{let{[t]:i,[t+1]:n}=e;return i!=null&&n!=null?r.subarray(i,n):null},eR=({offset:r,values:e},t)=>{let i=r+t;return(e[i>>3]&1<<i%8)!=0},Jb=({values:r},e)=>QF(r,e),Kb=({values:r},e)=>ZF(r,e*2),fr=({stride:r,values:e},t)=>e[r*t],Qb=({stride:r,values:e},t)=>GF.uint16ToFloat64(e[r*t]),Al=({stride:r,values:e,type:t},i)=>Bo.BN.new(e.subarray(r*i,r*(i+1)),t.isSigned),tR=({stride:r,values:e},t)=>e.subarray(r*t,r*(t+1)),rR=({values:r,valueOffsets:e},t)=>$b(r,e,t),iR=({values:r,valueOffsets:e},t)=>{let i=$b(r,e,t);return i!==null?HF.decodeUtf8(i):null},nR=(r,e)=>r.type.bitWidth<64?fr(r,e):Al(r,e),sR=(r,e)=>r.type.precision!==Ct.Precision.HALF?fr(r,e):Qb(r,e),aR=(r,e)=>r.type.unit===Ct.DateUnit.DAY?Jb(r,e):Kb(r,e),Zb=({values:r},e)=>1e3*Ol(r,e*2),Xb=({values:r},e)=>Ol(r,e*2),eg=({values:r},e)=>JF(r,e*2),tg=({values:r},e)=>KF(r,e*2),oR=(r,e)=>{switch(r.type.unit){case Ct.TimeUnit.SECOND:return Zb(r,e);case Ct.TimeUnit.MILLISECOND:return Xb(r,e);case Ct.TimeUnit.MICROSECOND:return eg(r,e);case Ct.TimeUnit.NANOSECOND:return tg(r,e)}},rg=({values:r,stride:e},t)=>r[e*t],ig=({values:r,stride:e},t)=>r[e*t],ng=({values:r},e)=>Bo.BN.signed(r.subarray(2*e,2*(e+1))),sg=({values:r},e)=>Bo.BN.signed(r.subarray(2*e,2*(e+1))),uR=(r,e)=>{switch(r.type.unit){case Ct.TimeUnit.SECOND:return rg(r,e);case Ct.TimeUnit.MILLISECOND:return ig(r,e);case Ct.TimeUnit.MICROSECOND:return ng(r,e);case Ct.TimeUnit.NANOSECOND:return sg(r,e)}},cR=({values:r},e)=>Bo.BN.decimal(r.subarray(4*e,4*(e+1))),lR=(r,e)=>{let t=r.getChildAt(0),{valueOffsets:i,stride:n}=r;return t.slice(i[e*n],i[e*n+1])},dR=(r,e)=>r.bind(e),fR=(r,e)=>r.bind(e),hR=(r,e)=>r.type.mode===Ct.UnionMode.Dense?ag(r,e):og(r,e),ag=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(r.valueOffsets[e]):null},og=(r,e)=>{let t=r.typeIdToChildIndex[r.typeIds[e]],i=r.getChildAt(t);return i?i.get(e):null},pR=(r,e)=>r.getValue(r.getKey(e)),yR=(r,e)=>r.type.unit===Ct.IntervalUnit.DAY_TIME?ug(r,e):cg(r,e),ug=({values:r},e)=>r.subarray(2*e,2*(e+1)),cg=({values:r},e)=>{let t=r[e],i=new Int32Array(2);return i[0]=t/12|0,i[1]=t%12|0,i},mR=(r,e)=>{let t=r.getChildAt(0),{stride:i}=r;return t.slice(e*i,(e+1)*i)};K.prototype.visitNull=XF;K.prototype.visitBool=eR;K.prototype.visitInt=nR;K.prototype.visitInt8=fr;K.prototype.visitInt16=fr;K.prototype.visitInt32=fr;K.prototype.visitInt64=Al;K.prototype.visitUint8=fr;K.prototype.visitUint16=fr;K.prototype.visitUint32=fr;K.prototype.visitUint64=Al;K.prototype.visitFloat=sR;K.prototype.visitFloat16=Qb;K.prototype.visitFloat32=fr;K.prototype.visitFloat64=fr;K.prototype.visitUtf8=iR;K.prototype.visitBinary=rR;K.prototype.visitFixedSizeBinary=tR;K.prototype.visitDate=aR;K.prototype.visitDateDay=Jb;K.prototype.visitDateMillisecond=Kb;K.prototype.visitTimestamp=oR;K.prototype.visitTimestampSecond=Zb;K.prototype.visitTimestampMillisecond=Xb;K.prototype.visitTimestampMicrosecond=eg;K.prototype.visitTimestampNanosecond=tg;K.prototype.visitTime=uR;K.prototype.visitTimeSecond=rg;K.prototype.visitTimeMillisecond=ig;K.prototype.visitTimeMicrosecond=ng;K.prototype.visitTimeNanosecond=sg;K.prototype.visitDecimal=cR;K.prototype.visitList=lR;K.prototype.visitStruct=fR;K.prototype.visitUnion=hR;K.prototype.visitDenseUnion=ag;K.prototype.visitSparseUnion=og;K.prototype.visitDictionary=pR;K.prototype.visitInterval=yR;K.prototype.visitIntervalDayTime=ug;K.prototype.visitIntervalYearMonth=cg;K.prototype.visitFixedSizeList=mR;K.prototype.visitMap=dR;hn.instance=new K});var hg=U(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.instance=pn.IndexOfVisitor=void 0;var _R=it(),lg=Kt(),dg=$n(),Q=class extends _R.Visitor{};pn.IndexOfVisitor=Q;function bR(r,e){return e===null&&r.length>0?0:-1}function gR(r,e){let{nullBitmap:t}=r.data;if(!t||r.nullCount<=0)return-1;let i=0;for(let n of lg.iterateBits(t,r.data.offset+(e||0),r.length,t,lg.getBool)){if(!n)return i;++i}return-1}function le(r,e,t){if(e===void 0)return-1;if(e===null)return gR(r,t);let i=dg.createElementComparator(e);for(let n=(t||0)-1,a=r.length;++n<a;)if(i(r.get(n)))return n;return-1}function fg(r,e,t){let i=dg.createElementComparator(e);for(let n=(t||0)-1,a=r.length;++n<a;)if(i(r.get(n)))return n;return-1}Q.prototype.visitNull=bR;Q.prototype.visitBool=le;Q.prototype.visitInt=le;Q.prototype.visitInt8=le;Q.prototype.visitInt16=le;Q.prototype.visitInt32=le;Q.prototype.visitInt64=le;Q.prototype.visitUint8=le;Q.prototype.visitUint16=le;Q.prototype.visitUint32=le;Q.prototype.visitUint64=le;Q.prototype.visitFloat=le;Q.prototype.visitFloat16=le;Q.prototype.visitFloat32=le;Q.prototype.visitFloat64=le;Q.prototype.visitUtf8=le;Q.prototype.visitBinary=le;Q.prototype.visitFixedSizeBinary=le;Q.prototype.visitDate=le;Q.prototype.visitDateDay=le;Q.prototype.visitDateMillisecond=le;Q.prototype.visitTimestamp=le;Q.prototype.visitTimestampSecond=le;Q.prototype.visitTimestampMillisecond=le;Q.prototype.visitTimestampMicrosecond=le;Q.prototype.visitTimestampNanosecond=le;Q.prototype.visitTime=le;Q.prototype.visitTimeSecond=le;Q.prototype.visitTimeMillisecond=le;Q.prototype.visitTimeMicrosecond=le;Q.prototype.visitTimeNanosecond=le;Q.prototype.visitDecimal=le;Q.prototype.visitList=le;Q.prototype.visitStruct=le;Q.prototype.visitUnion=le;Q.prototype.visitDenseUnion=fg;Q.prototype.visitSparseUnion=fg;Q.prototype.visitDictionary=le;Q.prototype.visitInterval=le;Q.prototype.visitIntervalDayTime=le;Q.prototype.visitIntervalYearMonth=le;Q.prototype.visitFixedSizeList=le;Q.prototype.visitMap=le;pn.instance=new Q});var Fl=U(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.instance=yn.IteratorVisitor=void 0;var Io=Ie(),vR=it(),wR=Kt(),pg=Dl(),Z=class extends vR.Visitor{};yn.IteratorVisitor=Z;function jR(r){let e=pg.instance.getVisitFn(r);return wR.iterateBits(r.data.nullBitmap,r.data.offset,r.length,r,(t,i,n,a)=>(n&1<<a)!=0?e(t,i):null)}function ae(r){if(r.nullCount>0)return jR(r);let{type:e,typeId:t,length:i}=r;return r.stride===1&&(t===Io.Type.Timestamp||t===Io.Type.Int&&e.bitWidth!==64||t===Io.Type.Time&&e.bitWidth!==64||t===Io.Type.Float&&e.precision>0)?r.data.values.subarray(0,i)[Symbol.iterator]():function*(n){for(let a=-1;++a<i;)yield n(r,a)}(pg.instance.getVisitFn(r))}Z.prototype.visitNull=ae;Z.prototype.visitBool=ae;Z.prototype.visitInt=ae;Z.prototype.visitInt8=ae;Z.prototype.visitInt16=ae;Z.prototype.visitInt32=ae;Z.prototype.visitInt64=ae;Z.prototype.visitUint8=ae;Z.prototype.visitUint16=ae;Z.prototype.visitUint32=ae;Z.prototype.visitUint64=ae;Z.prototype.visitFloat=ae;Z.prototype.visitFloat16=ae;Z.prototype.visitFloat32=ae;Z.prototype.visitFloat64=ae;Z.prototype.visitUtf8=ae;Z.prototype.visitBinary=ae;Z.prototype.visitFixedSizeBinary=ae;Z.prototype.visitDate=ae;Z.prototype.visitDateDay=ae;Z.prototype.visitDateMillisecond=ae;Z.prototype.visitTimestamp=ae;Z.prototype.visitTimestampSecond=ae;Z.prototype.visitTimestampMillisecond=ae;Z.prototype.visitTimestampMicrosecond=ae;Z.prototype.visitTimestampNanosecond=ae;Z.prototype.visitTime=ae;Z.prototype.visitTimeSecond=ae;Z.prototype.visitTimeMillisecond=ae;Z.prototype.visitTimeMicrosecond=ae;Z.prototype.visitTimeNanosecond=ae;Z.prototype.visitDecimal=ae;Z.prototype.visitList=ae;Z.prototype.visitStruct=ae;Z.prototype.visitUnion=ae;Z.prototype.visitDenseUnion=ae;Z.prototype.visitSparseUnion=ae;Z.prototype.visitDictionary=ae;Z.prototype.visitInterval=ae;Z.prototype.visitIntervalDayTime=ae;Z.prototype.visitIntervalYearMonth=ae;Z.prototype.visitFixedSizeList=ae;Z.prototype.visitMap=ae;yn.instance=new Z});var yg=U(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.instance=mn.ToArrayVisitor=void 0;var us=Ie(),TR=it(),BR=Fl(),X=class extends TR.Visitor{};mn.ToArrayVisitor=X;function oe(r){let{type:e,length:t,stride:i}=r;switch(e.typeId){case us.Type.Int:case us.Type.Float:case us.Type.Decimal:case us.Type.Time:case us.Type.Timestamp:return r.data.values.subarray(0,t*i)}return[...BR.instance.visit(r)]}X.prototype.visitNull=oe;X.prototype.visitBool=oe;X.prototype.visitInt=oe;X.prototype.visitInt8=oe;X.prototype.visitInt16=oe;X.prototype.visitInt32=oe;X.prototype.visitInt64=oe;X.prototype.visitUint8=oe;X.prototype.visitUint16=oe;X.prototype.visitUint32=oe;X.prototype.visitUint64=oe;X.prototype.visitFloat=oe;X.prototype.visitFloat16=oe;X.prototype.visitFloat32=oe;X.prototype.visitFloat64=oe;X.prototype.visitUtf8=oe;X.prototype.visitBinary=oe;X.prototype.visitFixedSizeBinary=oe;X.prototype.visitDate=oe;X.prototype.visitDateDay=oe;X.prototype.visitDateMillisecond=oe;X.prototype.visitTimestamp=oe;X.prototype.visitTimestampSecond=oe;X.prototype.visitTimestampMillisecond=oe;X.prototype.visitTimestampMicrosecond=oe;X.prototype.visitTimestampNanosecond=oe;X.prototype.visitTime=oe;X.prototype.visitTimeSecond=oe;X.prototype.visitTimeMillisecond=oe;X.prototype.visitTimeMicrosecond=oe;X.prototype.visitTimeNanosecond=oe;X.prototype.visitDecimal=oe;X.prototype.visitList=oe;X.prototype.visitStruct=oe;X.prototype.visitUnion=oe;X.prototype.visitDenseUnion=oe;X.prototype.visitSparseUnion=oe;X.prototype.visitDictionary=oe;X.prototype.visitInterval=oe;X.prototype.visitIntervalDayTime=oe;X.prototype.visitIntervalYearMonth=oe;X.prototype.visitFixedSizeList=oe;X.prototype.visitMap=oe;mn.instance=new X});var mg=U(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.instance=_n.ByteWidthVisitor=void 0;var IR=it(),SR=Ie(),cs=(r,e)=>r+e,Rl=r=>`Cannot compute the byte width of variable-width column ${r}`,El=class extends IR.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(Rl(e))}visitUtf8(e){throw new Error(Rl(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===SR.TimeUnit.SECOND?4:8}visitInterval(e){return(e.unit+1)*4}visitList(e){throw new Error(Rl(e))}visitStruct(e){return this.visitFields(e.children).reduce(cs,0)}visitUnion(e){return this.visitFields(e.children).reduce(cs,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(cs,0)}visitMap(e){return this.visitFields(e.children).reduce(cs,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(cs,0)}};_n.ByteWidthVisitor=El;_n.instance=new El});var _g=U(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.instance=bn.GetVectorConstructor=void 0;var OR=it(),AR=Zc(),DR=Xc(),Cl=tl(),FR=rl(),RR=ho(),ER=nl(),CR=sl(),So=cl(),Ul=ll(),Br=_o(),UR=gl(),kR=vl(),MR=wl(),PR=jl(),ls=Tl(),ds=Bl(),kl=Il(),VR=Sl(),Ml=class extends OR.Visitor{visitNull(){return MR.NullVector}visitBool(){return DR.BoolVector}visitInt(){return Br.IntVector}visitInt8(){return Br.Int8Vector}visitInt16(){return Br.Int16Vector}visitInt32(){return Br.Int32Vector}visitInt64(){return Br.Int64Vector}visitUint8(){return Br.Uint8Vector}visitUint16(){return Br.Uint16Vector}visitUint32(){return Br.Uint32Vector}visitUint64(){return Br.Uint64Vector}visitFloat(){return So.FloatVector}visitFloat16(){return So.Float16Vector}visitFloat32(){return So.Float32Vector}visitFloat64(){return So.Float64Vector}visitUtf8(){return VR.Utf8Vector}visitBinary(){return AR.BinaryVector}visitFixedSizeBinary(){return ER.FixedSizeBinaryVector}visitDate(){return Cl.DateVector}visitDateDay(){return Cl.DateDayVector}visitDateMillisecond(){return Cl.DateMillisecondVector}visitTimestamp(){return ls.TimestampVector}visitTimestampSecond(){return ls.TimestampSecondVector}visitTimestampMillisecond(){return ls.TimestampMillisecondVector}visitTimestampMicrosecond(){return ls.TimestampMicrosecondVector}visitTimestampNanosecond(){return ls.TimestampNanosecondVector}visitTime(){return ds.TimeVector}visitTimeSecond(){return ds.TimeSecondVector}visitTimeMillisecond(){return ds.TimeMillisecondVector}visitTimeMicrosecond(){return ds.TimeMicrosecondVector}visitTimeNanosecond(){return ds.TimeNanosecondVector}visitDecimal(){return FR.DecimalVector}visitList(){return UR.ListVector}visitStruct(){return PR.StructVector}visitUnion(){return kl.UnionVector}visitDenseUnion(){return kl.DenseUnionVector}visitSparseUnion(){return kl.SparseUnionVector}visitDictionary(){return RR.DictionaryVector}visitInterval(){return Ul.IntervalVector}visitIntervalDayTime(){return Ul.IntervalDayTimeVector}visitIntervalYearMonth(){return Ul.IntervalYearMonthVector}visitFixedSizeList(){return CR.FixedSizeListVector}visitMap(){return kR.MapVector}};bn.GetVectorConstructor=Ml;bn.instance=new Ml});var cr=U(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.vectorFromValuesWithType=k.StructRow=k.MapRow=k.Utf8Vector=k.SparseUnionVector=k.DenseUnionVector=k.UnionVector=k.TimeNanosecondVector=k.TimeMicrosecondVector=k.TimeMillisecondVector=k.TimeSecondVector=k.TimeVector=k.TimestampNanosecondVector=k.TimestampMicrosecondVector=k.TimestampMillisecondVector=k.TimestampSecondVector=k.TimestampVector=k.StructVector=k.NullVector=k.MapVector=k.ListVector=k.Uint64Vector=k.Uint32Vector=k.Uint16Vector=k.Uint8Vector=k.Int64Vector=k.Int32Vector=k.Int16Vector=k.Int8Vector=k.IntVector=k.IntervalYearMonthVector=k.IntervalDayTimeVector=k.IntervalVector=k.Float64Vector=k.Float32Vector=k.Float16Vector=k.FloatVector=k.FixedSizeListVector=k.FixedSizeBinaryVector=k.DictionaryVector=k.DecimalVector=k.DateMillisecondVector=k.DateDayVector=k.DateVector=k.Chunked=k.BoolVector=k.BinaryVector=k.BaseVector=k.Vector=void 0;var NR=Pe();Object.defineProperty(k,"Vector",{enumerable:!0,get:function(){return NR.Vector}});var LR=Ve();Object.defineProperty(k,"BaseVector",{enumerable:!0,get:function(){return LR.BaseVector}});var xR=Zc();Object.defineProperty(k,"BinaryVector",{enumerable:!0,get:function(){return xR.BinaryVector}});var qR=Xc();Object.defineProperty(k,"BoolVector",{enumerable:!0,get:function(){return qR.BoolVector}});var WR=kr();Object.defineProperty(k,"Chunked",{enumerable:!0,get:function(){return WR.Chunked}});var Pl=tl();Object.defineProperty(k,"DateVector",{enumerable:!0,get:function(){return Pl.DateVector}});Object.defineProperty(k,"DateDayVector",{enumerable:!0,get:function(){return Pl.DateDayVector}});Object.defineProperty(k,"DateMillisecondVector",{enumerable:!0,get:function(){return Pl.DateMillisecondVector}});var zR=rl();Object.defineProperty(k,"DecimalVector",{enumerable:!0,get:function(){return zR.DecimalVector}});var YR=ho();Object.defineProperty(k,"DictionaryVector",{enumerable:!0,get:function(){return YR.DictionaryVector}});var HR=nl();Object.defineProperty(k,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return HR.FixedSizeBinaryVector}});var GR=sl();Object.defineProperty(k,"FixedSizeListVector",{enumerable:!0,get:function(){return GR.FixedSizeListVector}});var Oo=cl();Object.defineProperty(k,"FloatVector",{enumerable:!0,get:function(){return Oo.FloatVector}});Object.defineProperty(k,"Float16Vector",{enumerable:!0,get:function(){return Oo.Float16Vector}});Object.defineProperty(k,"Float32Vector",{enumerable:!0,get:function(){return Oo.Float32Vector}});Object.defineProperty(k,"Float64Vector",{enumerable:!0,get:function(){return Oo.Float64Vector}});var Vl=ll();Object.defineProperty(k,"IntervalVector",{enumerable:!0,get:function(){return Vl.IntervalVector}});Object.defineProperty(k,"IntervalDayTimeVector",{enumerable:!0,get:function(){return Vl.IntervalDayTimeVector}});Object.defineProperty(k,"IntervalYearMonthVector",{enumerable:!0,get:function(){return Vl.IntervalYearMonthVector}});var Ir=_o();Object.defineProperty(k,"IntVector",{enumerable:!0,get:function(){return Ir.IntVector}});Object.defineProperty(k,"Int8Vector",{enumerable:!0,get:function(){return Ir.Int8Vector}});Object.defineProperty(k,"Int16Vector",{enumerable:!0,get:function(){return Ir.Int16Vector}});Object.defineProperty(k,"Int32Vector",{enumerable:!0,get:function(){return Ir.Int32Vector}});Object.defineProperty(k,"Int64Vector",{enumerable:!0,get:function(){return Ir.Int64Vector}});Object.defineProperty(k,"Uint8Vector",{enumerable:!0,get:function(){return Ir.Uint8Vector}});Object.defineProperty(k,"Uint16Vector",{enumerable:!0,get:function(){return Ir.Uint16Vector}});Object.defineProperty(k,"Uint32Vector",{enumerable:!0,get:function(){return Ir.Uint32Vector}});Object.defineProperty(k,"Uint64Vector",{enumerable:!0,get:function(){return Ir.Uint64Vector}});var $R=gl();Object.defineProperty(k,"ListVector",{enumerable:!0,get:function(){return $R.ListVector}});var JR=vl();Object.defineProperty(k,"MapVector",{enumerable:!0,get:function(){return JR.MapVector}});var KR=wl();Object.defineProperty(k,"NullVector",{enumerable:!0,get:function(){return KR.NullVector}});var QR=jl();Object.defineProperty(k,"StructVector",{enumerable:!0,get:function(){return QR.StructVector}});var fs=Tl();Object.defineProperty(k,"TimestampVector",{enumerable:!0,get:function(){return fs.TimestampVector}});Object.defineProperty(k,"TimestampSecondVector",{enumerable:!0,get:function(){return fs.TimestampSecondVector}});Object.defineProperty(k,"TimestampMillisecondVector",{enumerable:!0,get:function(){return fs.TimestampMillisecondVector}});Object.defineProperty(k,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return fs.TimestampMicrosecondVector}});Object.defineProperty(k,"TimestampNanosecondVector",{enumerable:!0,get:function(){return fs.TimestampNanosecondVector}});var hs=Bl();Object.defineProperty(k,"TimeVector",{enumerable:!0,get:function(){return hs.TimeVector}});Object.defineProperty(k,"TimeSecondVector",{enumerable:!0,get:function(){return hs.TimeSecondVector}});Object.defineProperty(k,"TimeMillisecondVector",{enumerable:!0,get:function(){return hs.TimeMillisecondVector}});Object.defineProperty(k,"TimeMicrosecondVector",{enumerable:!0,get:function(){return hs.TimeMicrosecondVector}});Object.defineProperty(k,"TimeNanosecondVector",{enumerable:!0,get:function(){return hs.TimeNanosecondVector}});var Nl=Il();Object.defineProperty(k,"UnionVector",{enumerable:!0,get:function(){return Nl.UnionVector}});Object.defineProperty(k,"DenseUnionVector",{enumerable:!0,get:function(){return Nl.DenseUnionVector}});Object.defineProperty(k,"SparseUnionVector",{enumerable:!0,get:function(){return Nl.SparseUnionVector}});var ZR=Sl();Object.defineProperty(k,"Utf8Vector",{enumerable:!0,get:function(){return ZR.Utf8Vector}});var bg=Hn();Object.defineProperty(k,"MapRow",{enumerable:!0,get:function(){return bg.MapRow}});Object.defineProperty(k,"StructRow",{enumerable:!0,get:function(){return bg.StructRow}});var ps=Hb(),Ll=Ie(),gn=Pe(),gg=kr(),ji=Ve(),XR=Kt(),Ao=ut(),vg=Ue(),wg=Dl(),jg=nc(),Tg=hg(),Bg=yg(),Ig=Fl(),Sg=mg(),Og=_g();gn.Vector.new=eE;gn.Vector.from=rE;function eE(r,...e){return new(Og.instance.getVisitFn(r)())(r,...e)}function tE(r,e){if(Ao.isIterable(e))return gn.Vector.from({nullValues:[null,void 0],type:r(),values:e});if(Ao.isAsyncIterable(e))return gn.Vector.from({nullValues:[null,void 0],type:r(),values:e});let{values:t=[],type:i=r(),nullValues:n=[null,void 0]}={...e};return Ao.isIterable(t)?gn.Vector.from({nullValues:n,...e,type:i}):gn.Vector.from({nullValues:n,...e,type:i})}k.vectorFromValuesWithType=tE;function rE(r){let{values:e=[],...t}={nullValues:[null,void 0],...r};if(Ao.isIterable(e)){let i=[...vg.Builder.throughIterable(t)(e)];return i.length===1?i[0]:gg.Chunked.concat(i)}return(async i=>{let n=vg.Builder.throughAsyncIterable(t);for await(let a of n(e))i.push(a);return i.length===1?i[0]:gg.Chunked.concat(i)})([])}ji.BaseVector.prototype.get=function(e){return wg.instance.visit(this,e)};ji.BaseVector.prototype.set=function(e,t){return jg.instance.visit(this,e,t)};ji.BaseVector.prototype.indexOf=function(e,t){return Tg.instance.visit(this,e,t)};ji.BaseVector.prototype.toArray=function(){return Bg.instance.visit(this)};ji.BaseVector.prototype.getByteWidth=function(){return Sg.instance.visit(this.type)};ji.BaseVector.prototype[Symbol.iterator]=function(){return Ig.instance.visit(this)};ji.BaseVector.prototype._bindDataAccessors=aE;Object.keys(Ll.Type).map(r=>Ll.Type[r]).filter(r=>typeof r=="number").filter(r=>r!==Ll.Type.NONE).forEach(r=>{let e=Og.instance.visit(r);e.prototype.get=ps.partial1(wg.instance.getVisitFn(r)),e.prototype.set=ps.partial2(jg.instance.getVisitFn(r)),e.prototype.indexOf=ps.partial2(Tg.instance.getVisitFn(r)),e.prototype.toArray=ps.partial0(Bg.instance.getVisitFn(r)),e.prototype.getByteWidth=iE(Sg.instance.getVisitFn(r)),e.prototype[Symbol.iterator]=ps.partial0(Ig.instance.getVisitFn(r))});function iE(r){return function(){return r(this.type)}}function nE(r){return function(e){return this.isValid(e)?r.call(this,e):null}}function sE(r){return function(e,t){XR.setBool(this.nullBitmap,this.offset+e,t!=null)&&r.call(this,e,t)}}function aE(){let r=this.nullBitmap;r&&r.byteLength>0&&(this.get=nE(this.get),this.set=sE(this.set))}});var as=U(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.Table=void 0;var oE=$i(),Ag=Qe(),xl=Tr(),uE=ys(),ql=ve(),Dg=Mr(),Wl=ut(),Fg=so(),Rg=Jc(),zl=cr(),et=class extends zl.Chunked{constructor(...e){let t=null;e[0]instanceof Ag.Schema&&(t=e.shift());let i=Dg.selectArgs(xl.RecordBatch,e);if(!t&&!(t=i[0]&&i[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");i[0]||(i[0]=new xl._InternalEmptyPlaceholderRecordBatch(t));super(new ql.Struct(t.fields),i);this._schema=t,this._chunks=i}static empty(e=new Ag.Schema([])){return new et(e,[])}static from(e){if(!e)return et.empty();if(typeof e=="object"){let i=Wl.isIterable(e.values)?cE(e):Wl.isAsyncIterable(e.values)?lE(e):null;if(i!==null)return i}let t=uE.RecordBatchReader.from(e);return Wl.isPromise(t)?(async()=>await et.from(await t))():t.isSync()&&(t=t.open())?t.schema?new et(t.schema,[...t]):et.empty():(async i=>{let n=await i,a=n.schema,c=[];if(a){for await(let f of n)c.push(f);return new et(a,c)}return et.empty()})(t.open())}static async fromAsync(e){return await et.from(e)}static fromStruct(e){return et.new(e.data.childData,e.type.children)}static new(...e){return new et(...Rg.distributeColumnsIntoRecordBatches(Dg.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 et(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,a=this._children||(this._children=[]);if(i=a[e])return i;if(t=n[e]){let c=this._chunks.map(f=>f.getChildAt(e)).filter(f=>f!=null);if(c.length>0)return a[e]=new oE.Column(t,c)}return null}serialize(e="binary",t=!0){return(t?Fg.RecordBatchStreamWriter:Fg.RecordBatchFileWriter).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...e){let t=this._schema.fields.reduce((i,n,a)=>i.set(n.name,a),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 et(t,this._chunks.map(({length:i,data:{childData:n}})=>new xl.RecordBatch(t,i,e.map(a=>n[a]).filter(Boolean))))}assign(e){let t=this._schema.fields,[i,n]=e.schema.fields.reduce((f,j,s)=>{let[m,R]=f,$=t.findIndex(ue=>ue.name===j.name);return~$?R[$]=s:m.push(s),f},[[],[]]),a=this._schema.assign(e.schema),c=[...t.map((f,j,s,m=n[j])=>m===void 0?this.getColumnAt(j):e.getColumnAt(m)),...i.map(f=>e.getColumnAt(f))].filter(Boolean);return new et(...Rg.distributeVectorsIntoRecordBatches(a,c))}};Do.Table=et;function cE(r){let{type:e}=r;return e instanceof ql.Struct?et.fromStruct(zl.StructVector.from(r)):null}function lE(r){let{type:e}=r;return e instanceof ql.Struct?zl.StructVector.from(r).then(t=>et.fromStruct(t)):null}});var Tr=U(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn._InternalEmptyPlaceholderRecordBatch=vn.RecordBatch=void 0;var Yl=Nt(),Hl=as(),dE=Pe(),fE=it(),hE=Qe(),pE=ut(),yE=kr(),mE=Mr(),Gl=ve(),_E=Jc(),bE=cr(),ri=class extends bE.StructVector{constructor(...e){let t,i=e[0],n;if(e[1]instanceof Yl.Data)[,t,n]=e;else{let a=i.fields,[,c,f]=e;t=Yl.Data.Struct(new Gl.Struct(a),0,c,0,null,f)}super(t,n);this._schema=i}static from(e){return pE.isIterable(e.values),Hl.Table.from(e)}static new(...e){let[t,i]=mE.selectFieldArgs(e),n=i.filter(a=>a instanceof dE.Vector);return new ri(..._E.ensureSameLengthData(new hE.Schema(t),n.map(a=>a.data)))}clone(e,t=this._children){return new ri(this._schema,e,t)}concat(...e){let t=this._schema,i=yE.Chunked.flatten(this,...e);return new Hl.Table(t,i.map(({data:n})=>new ri(t,n)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=Fo.collect(this))}select(...e){let t=this._schema.fields.reduce((i,n,a)=>i.set(n.name,a),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 ri(t,this.length,i)}};vn.RecordBatch=ri;var Eg=class extends ri{constructor(e){super(e,0,e.fields.map(t=>Yl.Data.new(t.type,0,0,0)))}};vn._InternalEmptyPlaceholderRecordBatch=Eg;var Fo=class extends fE.Visitor{constructor(){super(...arguments);this.dictionaries=new Map}static collect(e){return new Fo().visit(e.data,new Gl.Struct(e.schema.fields)).dictionaries}visit(e,t){return Gl.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 ys=U(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.AsyncRecordBatchFileReader=Mt.RecordBatchFileReader=Mt.AsyncRecordBatchStreamReader=Mt.RecordBatchStreamReader=Mt.RecordBatchReader=void 0;var Cg=Pe(),Ro=Ie(),Ug=mc(),kg=kn(),Mg=zr(),ms=gc(),Pg=F_(),$l=Tr(),Ti=Ei(),Ut=Ja(),kt=ut(),hr=class extends Ti.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 kt.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 kg.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return kg.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 hr?e:kt.isArrowJSON(e)?gE(e):kt.isFileHandle(e)?jE(e):kt.isPromise(e)?(async()=>await hr.from(await e))():kt.isFetchResponse(e)||kt.isReadableDOMStream(e)||kt.isReadableNodeStream(e)||kt.isAsyncIterable(e)?wE(new Mg.AsyncByteStream(e)):vE(new Mg.ByteStream(e))}static readAll(e){return e instanceof hr?e.isSync()?xg(e):qg(e):kt.isArrowJSON(e)||ArrayBuffer.isView(e)||kt.isIterable(e)||kt.isIteratorResult(e)?xg(e):qg(e)}};Mt.RecordBatchReader=hr;var wn=class extends hr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}async*[Symbol.asyncIterator](){yield*this[Symbol.iterator]()}};Mt.RecordBatchStreamReader=wn;var jn=class extends hr{constructor(e){super(e);this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}};Mt.AsyncRecordBatchStreamReader=jn;var Eo=class extends wn{constructor(e){super(e);this._impl=e}};Mt.RecordBatchFileReader=Eo;var Jl=class extends jn{constructor(e){super(e);this._impl=e}};Mt.AsyncRecordBatchFileReader=Jl;var Kl=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 $l.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){let{id:i,isDelta:n,data:a}=e,{dictionaries:c,schema:f}=this,j=c.get(i);if(n||!j){let s=f.dictionaries.get(i);return j&&n?j.concat(Cg.Vector.new(this._loadVectors(a,t,[s])[0])):Cg.Vector.new(this._loadVectors(a,t,[s])[0])}return j}_loadVectors(e,t,i){return new Pg.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}},_s=class extends Kl{constructor(e,t){super(t);this._reader=kt.isArrowJSON(e)?new Ut.JSONMessageReader(this._handle=e):new Ut.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=Lg(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):Ti.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Ti.ITERATOR_DONE}next(){if(this.closed)return Ti.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),a=this._loadRecordBatch(i,n);return{done:!1,value:a}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=t.readMessageBody(e.bodyLength),a=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,a)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new $l._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},bs=class extends Kl{constructor(e,t){super(t);this._reader=new Ut.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}async cancel(){!this.closed&&(this.closed=!0)&&(await this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}async open(e){return this.closed||(this.autoDestroy=Lg(this,e),this.schema||(this.schema=await this._reader.readSchema())||await this.cancel()),this}async throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.throw(e):Ti.ITERATOR_DONE}async return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.return(e):Ti.ITERATOR_DONE}async next(){if(this.closed)return Ti.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=await this._readNextMessageAndValidate();)if(e.isSchema())await this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),a=this._loadRecordBatch(i,n);return{done:!1,value:a}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=await t.readMessageBody(e.bodyLength),a=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,a)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new $l._InternalEmptyPlaceholderRecordBatch(this.schema)}):await this.return()}async _readNextMessageAndValidate(e){return await this._reader.readMessage(e)}},Ql=class extends _s{constructor(e,t){super(e instanceof ms.RandomAccessFile?e:new ms.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(Ro.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),a=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,a)}}return null}_readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){let i=this._reader.readMessage(Ro.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),a=this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,a);this.dictionaries.set(n.id,c)}}}_readFooter(){let{_handle:e}=this,t=e.size-Ut.magicAndPadding,i=e.readInt32(t),n=e.readAt(t-i,i);return Ug.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}},Vg=class extends bs{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 ms.AsyncRandomAccessFile?e:new ms.AsyncRandomAccessFile(e,i),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}async open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=await this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&await this._readDictionaryBatch(this._dictionaryIndex++)}return await super.open(e)}async readRecordBatch(e){if(this.closed)return null;this._footer||await this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Ro.MessageHeader.RecordBatch);if(i&&i.isRecordBatch()){let n=i.header(),a=await this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(n,a)}}return null}async _readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&await this._handle.seek(t.offset)){let i=await this._reader.readMessage(Ro.MessageHeader.DictionaryBatch);if(i&&i.isDictionaryBatch()){let n=i.header(),a=await this._reader.readMessageBody(i.bodyLength),c=this._loadDictionaryBatch(n,a);this.dictionaries.set(n.id,c)}}}async _readFooter(){let{_handle:e}=this;e._pending&&await e._pending;let t=e.size-Ut.magicAndPadding,i=await e.readInt32(t),n=await e.readAt(t-i,i);return Ug.Footer.decode(n)}async _readNextMessageAndValidate(e){if(this._footer||await this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&await this._handle.seek(t.offset))return await this._reader.readMessage(e)}return null}},Ng=class extends _s{constructor(e,t){super(e,t)}_loadVectors(e,t,i){return new Pg.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(i)}};function Lg(r,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:r.autoDestroy}function*xg(r){let e=hr.from(r);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}async function*qg(r){let e=await hr.from(r);try{if(!(await e.open({autoDestroy:!1})).closed)do yield e;while(!(await e.reset().open()).closed)}finally{await e.cancel()}}function gE(r){return new wn(new Ng(r))}function vE(r){let e=r.peek(Ut.magicLength+7&~7);return e&&e.byteLength>=4?Ut.checkForMagicArrowString(e)?new Eo(new Ql(r.read())):new wn(new _s(r)):new wn(new _s(function*(){}()))}async function wE(r){let e=await r.peek(Ut.magicLength+7&~7);return e&&e.byteLength>=4?Ut.checkForMagicArrowString(e)?new Eo(new Ql(await r.read())):new jn(new bs(r)):new jn(new bs(async function*(){}()))}async function jE(r){let{size:e}=await r.stat(),t=new ms.AsyncRandomAccessFile(r,e);return e>=Ut.magicX2AndPadding&&Ut.checkForMagicArrowString(await t.readAt(0,Ut.magicLength+7&~7))?new Jl(new Vg(t)):new jn(new bs(t))}});var Yg=U(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.toDOMStream=void 0;var Wg=Ne(),zg=ut();function TE(r,e){if(zg.isAsyncIterable(r))return IE(r,e);if(zg.isIterable(r))return BE(r,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}Co.toDOMStream=TE;function BE(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,start(c){a(c,t||(t=r[Symbol.iterator]()))},pull(c){t?a(c,t):c.close()},cancel(){(t&&t.return&&t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});function a(c,f){let j,s=null,m=c.desiredSize||null;for(;!(s=f.next(i?m:null)).done;)if(ArrayBuffer.isView(s.value)&&(j=Wg.toUint8Array(s.value))&&(m!=null&&i&&(m=m-j.byteLength+1),s.value=j),c.enqueue(s.value),m!=null&&--m<=0)return;c.close()}}function IE(r,e){let t=null,i=e&&e.type==="bytes"||!1,n=e&&e.highWaterMark||2**24;return new ReadableStream({...e,async start(c){await a(c,t||(t=r[Symbol.asyncIterator]()))},async pull(c){t?await a(c,t):c.close()},async cancel(){(t&&t.return&&await t.return()||!0)&&(t=null)}},{highWaterMark:i?n:void 0,...e});async function a(c,f){let j,s=null,m=c.desiredSize||null;for(;!(s=await f.next(i?m:null)).done;)if(ArrayBuffer.isView(s.value)&&(j=Wg.toUint8Array(s.value))&&(m!=null&&i&&(m=m-j.byteLength+1),s.value=j),c.enqueue(s.value),m!=null&&--m<=0)return;c.close()}}});var $g=U(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.BuilderTransform=Tn.builderThroughDOMStream=void 0;var SE=Ma();function OE(r){return new Zl(r)}Tn.builderThroughDOMStream=OE;var Zl=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:t,["writableStrategy"]:i,["queueingStrategy"]:n="count",...a}=e;this._controller=null,this._builder=SE.Builder.new(a),this._getSize=n!=="bytes"?Hg:Gg;let{["highWaterMark"]:c=n==="bytes"?2**14:1e3}={...t},{["highWaterMark"]:f=n==="bytes"?2**14:1e3}={...i};this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:j=>{this._maybeFlush(this._builder,this._controller=j)},start:j=>{this._maybeFlush(this._builder,this._controller=j)}},{highWaterMark:c,size:n!=="bytes"?Hg:Gg}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:f,size:j=>this._writeValueAndReturnChunkSize(j)})}_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)}};Tn.BuilderTransform=Zl;var Hg=r=>r.length,Gg=r=>r.byteLength});var Jg=U(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.recordBatchReaderThroughDOMStream=void 0;var AE=zr(),DE=ys();function FE(r,e){let t=new AE.AsyncByteQueue,i=null,n=new ReadableStream({async cancel(){await t.close()},async start(f){await c(f,i||(i=await a()))},async pull(f){i?await c(f,i):f.close()}});return{writable:new WritableStream(t,{highWaterMark:2**14,...r}),readable:n};async function a(){return await(await DE.RecordBatchReader.from(t)).open(e)}async function c(f,j){let s=f.desiredSize,m=null;for(;!(m=await j.next()).done;)if(f.enqueue(m.value),s!=null&&--s<=0)return;f.close()}}Uo.recordBatchReaderThroughDOMStream=FE});var Kg=U(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.recordBatchWriterThroughDOMStream=void 0;var RE=zr();function EE(r,e){let t=new this(r),i=new RE.AsyncByteStream(t),n=new ReadableStream({type:"bytes",async cancel(){await i.cancel()},async pull(c){await a(c)},async start(c){await a(c)}},{highWaterMark:2**14,...e});return{writable:new WritableStream(t,r),readable:n};async function a(c){let f=null,j=c.desiredSize;for(;f=await i.read(j||null);)if(c.enqueue(f),j!=null&&(j-=f.byteLength)<=0)return;c.close()}}ko.recordBatchWriterThroughDOMStream=EE});var nd=U(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.custom=fe.or=fe.and=fe.col=fe.lit=fe.CustomPredicate=fe.Not=fe.GTeq=fe.LTeq=fe.Equals=fe.Or=fe.And=fe.CombinationPredicate=fe.ComparisonPredicate=fe.Predicate=fe.Col=fe.Literal=fe.Value=void 0;var CE=ho(),ii=class{eq(e){return e instanceof ii||(e=new Sr(e)),new ed(this,e)}le(e){return e instanceof ii||(e=new Sr(e)),new td(this,e)}ge(e){return e instanceof ii||(e=new Sr(e)),new rd(this,e)}lt(e){return new On(this.ge(e))}gt(e){return new On(this.le(e))}ne(e){return new On(this.eq(e))}};fe.Value=ii;var Sr=class extends ii{constructor(e){super();this.v=e}};fe.Literal=Sr;var Xl=class extends ii{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)}};fe.Col=Xl;var Bn=class{and(...e){return new In(this,...e)}or(...e){return new Sn(this,...e)}not(){return new On(this)}};fe.Predicate=Bn;var gs=class extends Bn{constructor(e,t){super();this.left=e,this.right=t}bind(e){return this.left instanceof Sr?this.right instanceof Sr?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Sr?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}};fe.ComparisonPredicate=gs;var vs=class extends Bn{constructor(...e){super();this.children=e}};fe.CombinationPredicate=vs;vs.prototype.children=Object.freeze([]);var In=class extends vs{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof In?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.every(a=>a(i,n))}};fe.And=In;var Sn=class extends vs{constructor(...e){e=e.reduce((t,i)=>t.concat(i instanceof Sn?i.children:i),[]);super(...e)}bind(e){let t=this.children.map(i=>i.bind(e));return(i,n)=>t.some(a=>a(i,n))}};fe.Or=Sn;var ed=class extends gs{_bindLitLit(e,t,i){let n=t.v==i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),a=i.bind(e);return(c,f)=>n(c,f)==a(c,f)}_bindColLit(e,t,i){let n=t.bind(e);if(t.vector instanceof CE.DictionaryVector){let a,c=t.vector;return c.dictionary!==this.lastDictionary?(a=c.reverseLookup(i.v),this.lastDictionary=c.dictionary,this.lastKey=a):a=this.lastKey,a===-1?()=>!1:f=>c.getKey(f)===a}else return(a,c)=>n(a,c)==i.v}_bindLitCol(e,t,i){return this._bindColLit(e,i,t)}};fe.Equals=ed;var td=class extends gs{_bindLitLit(e,t,i){let n=t.v<=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),a=i.bind(e);return(c,f)=>n(c,f)<=a(c,f)}_bindColLit(e,t,i){let n=t.bind(e);return(a,c)=>n(a,c)<=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(a,c)=>t.v<=n(a,c)}};fe.LTeq=td;var rd=class extends gs{_bindLitLit(e,t,i){let n=t.v>=i.v;return()=>n}_bindColCol(e,t,i){let n=t.bind(e),a=i.bind(e);return(c,f)=>n(c,f)>=a(c,f)}_bindColLit(e,t,i){let n=t.bind(e);return(a,c)=>n(a,c)>=i.v}_bindLitCol(e,t,i){let n=i.bind(e);return(a,c)=>t.v>=n(a,c)}};fe.GTeq=rd;var On=class extends Bn{constructor(e){super();this.child=e}bind(e){let t=this.child.bind(e);return(i,n)=>!t(i,n)}};fe.Not=On;var id=class extends Bn{constructor(e,t){super();this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}};fe.CustomPredicate=id;function UE(r){return new Sr(r)}fe.lit=UE;function kE(r){return new Xl(r)}fe.col=kE;function ME(...r){return new In(...r)}fe.and=ME;function PE(...r){return new Sn(...r)}fe.or=PE;function VE(r,e){return new id(r,e)}fe.custom=VE});var ev=U(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.FilteredDataFrame=ni.CountByResult=ni.DataFrame=void 0;var An=as(),Qg=_o(),sd=Qe(),Zg=nd(),NE=Tr(),Xg=ve();An.Table.prototype.countBy=function(r){return new Bi(this.chunks).countBy(r)};An.Table.prototype.scan=function(r,e){return new Bi(this.chunks).scan(r,e)};An.Table.prototype.scanReverse=function(r,e){return new Bi(this.chunks).scanReverse(r,e)};An.Table.prototype.filter=function(r){return new Bi(this.chunks).filter(r)};var Bi=class extends An.Table{filter(e){return new ws(this.chunks,e)}scan(e,t){let i=this.chunks,n=i.length;for(let a=-1;++a<n;){let c=i[a];t&&t(c);for(let f=-1,j=c.length;++f<j;)e(f,c)}}scanReverse(e,t){let i=this.chunks,n=i.length;for(let a=n;--a>=0;){let c=i[a];t&&t(c);for(let f=c.length;--f>=0;)e(f,c)}}countBy(e){let t=this.chunks,i=t.length,n=typeof e=="string"?new Zg.Col(e):e;n.bind(t[i-1]);let a=n.vector;if(!Xg.DataType.isDictionary(a.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(a.length)/Math.log(256)),f=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,j=new f(a.dictionary.length);for(let s=-1;++s<i;){let m=t[s];n.bind(m);let R=n.vector.indices;for(let $=-1,ue=m.length;++$<ue;){let pt=R.get($);pt!==null&&j[pt]++}}return new Mo(a.dictionary,Qg.IntVector.from(j))}};ni.DataFrame=Bi;var Mo=class extends An.Table{constructor(e,t){let i=new sd.Schema([new sd.Field("values",e.type),new sd.Field("counts",t.type)]);super(new NE.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}};ni.CountByResult=Mo;var ws=class extends Bi{constructor(e,t){super(e);this._predicate=t}scan(e,t){let i=this._chunks,n=i.length;for(let a=-1;++a<n;){let c=i[a],f=this._predicate.bind(c),j=!1;for(let s=-1,m=c.length;++s<m;)f(s,c)&&(t&&!j&&(t(c),j=!0),e(s,c))}}scanReverse(e,t){let i=this._chunks,n=i.length;for(let a=n;--a>=0;){let c=i[a],f=this._predicate.bind(c),j=!1;for(let s=c.length;--s>=0;)f(s,c)&&(t&&!j&&(t(c),j=!0),e(s,c))}}count(){let e=0,t=this._chunks,i=t.length;for(let n=-1;++n<i;){let a=t[n],c=this._predicate.bind(a);for(let f=-1,j=a.length;++f<j;)c(f,a)&&++e}return e}*[Symbol.iterator](){let e=this._chunks,t=e.length;for(let i=-1;++i<t;){let n=e[i],a=this._predicate.bind(n);for(let c=-1,f=n.length;++c<f;)a(c,n)&&(yield n.get(c))}}filter(e){return new ws(this._chunks,this._predicate.and(e))}countBy(e){let t=this._chunks,i=t.length,n=typeof e=="string"?new Zg.Col(e):e;n.bind(t[i-1]);let a=n.vector;if(!Xg.DataType.isDictionary(a.type))throw new Error("countBy currently only supports dictionary-encoded columns");let c=Math.ceil(Math.log(a.length)/Math.log(256)),f=c==4?Uint32Array:c>=2?Uint16Array:Uint8Array,j=new f(a.dictionary.length);for(let s=-1;++s<i;){let m=t[s],R=this._predicate.bind(m);n.bind(m);let $=n.vector.indices;for(let ue=-1,pt=m.length;++ue<pt;){let Ht=$.get(ue);Ht!==null&&R(ue,m)&&j[Ht]++}}return new Mo(a.dictionary,Qg.IntVector.from(j))}};ni.FilteredDataFrame=ws});var rv=U(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.util=v.predicate=v.CountByResult=v.FilteredDataFrame=v.DataFrame=v.RecordBatch=v.Message=v.JSONMessageReader=v.AsyncMessageReader=v.MessageReader=v.RecordBatchJSONWriter=v.RecordBatchStreamWriter=v.RecordBatchFileWriter=v.RecordBatchWriter=v.AsyncRecordBatchStreamReader=v.AsyncRecordBatchFileReader=v.RecordBatchStreamReader=v.RecordBatchFileReader=v.RecordBatchReader=v.AsyncByteQueue=v.AsyncByteStream=v.ByteStream=v.Utf8Builder=v.SparseUnionBuilder=v.DenseUnionBuilder=v.UnionBuilder=v.TimeNanosecondBuilder=v.TimeMicrosecondBuilder=v.TimeMillisecondBuilder=v.TimeSecondBuilder=v.TimeBuilder=v.TimestampNanosecondBuilder=v.TimestampMicrosecondBuilder=v.TimestampMillisecondBuilder=v.TimestampSecondBuilder=v.TimestampBuilder=v.StructBuilder=v.NullBuilder=v.MapBuilder=v.ListBuilder=v.Uint64Builder=v.Uint32Builder=v.Uint16Builder=v.Uint8Builder=v.Int64Builder=v.Int32Builder=v.Int16Builder=v.Int8Builder=v.IntBuilder=v.IntervalYearMonthBuilder=v.IntervalDayTimeBuilder=v.IntervalBuilder=v.Float64Builder=v.Float32Builder=v.Float16Builder=v.FloatBuilder=v.FixedSizeListBuilder=v.FixedSizeBinaryBuilder=v.DictionaryBuilder=v.DecimalBuilder=v.DateMillisecondBuilder=v.DateDayBuilder=v.DateBuilder=v.BoolBuilder=v.BinaryBuilder=v.Builder=v.Utf8Vector=v.SparseUnionVector=v.DenseUnionVector=v.UnionVector=v.TimeNanosecondVector=v.TimeMicrosecondVector=v.TimeMillisecondVector=v.TimeSecondVector=v.TimeVector=v.TimestampNanosecondVector=v.TimestampMicrosecondVector=v.TimestampMillisecondVector=v.TimestampSecondVector=v.TimestampVector=v.StructVector=v.NullVector=v.MapVector=v.ListVector=v.Uint64Vector=v.Uint32Vector=v.Uint16Vector=v.Uint8Vector=v.Int64Vector=v.Int32Vector=v.Int16Vector=v.Int8Vector=v.IntVector=v.IntervalYearMonthVector=v.IntervalDayTimeVector=v.IntervalVector=v.Float64Vector=v.Float32Vector=v.Float16Vector=v.FloatVector=v.FixedSizeListVector=v.FixedSizeBinaryVector=v.DictionaryVector=v.DecimalVector=v.DateMillisecondVector=v.DateDayVector=v.DateVector=v.Chunked=v.BoolVector=v.BinaryVector=v.BaseVector=v.Vector=v.Field=v.Schema=v.Visitor=v.Column=v.Table=v.Map_=v.FixedSizeList=v.IntervalYearMonth=v.IntervalDayTime=v.Interval=v.Dictionary=v.SparseUnion=v.DenseUnion=v.Union=v.Struct=v.List=v.Decimal=v.TimeNanosecond=v.TimeMicrosecond=v.TimeMillisecond=v.TimeSecond=v.Time=v.TimestampNanosecond=v.TimestampMicrosecond=v.TimestampMillisecond=v.TimestampSecond=v.Timestamp=v.DateMillisecond=v.DateDay=v.Date_=v.FixedSizeBinary=v.Binary=v.Utf8=v.Float64=v.Float32=v.Float16=v.Float=v.Uint64=v.Uint32=v.Uint16=v.Uint8=v.Int64=v.Int32=v.Int16=v.Int8=v.Int=v.Bool=v.Null=v.DataType=v.Data=v.BufferType=v.UnionMode=v.Type=v.TimeUnit=v.Precision=v.MetadataVersion=v.MessageHeader=v.IntervalUnit=v.DateUnit=v.ArrowType=void 0;var pr=Ie();Object.defineProperty(v,"ArrowType",{enumerable:!0,get:function(){return pr.ArrowType}});Object.defineProperty(v,"DateUnit",{enumerable:!0,get:function(){return pr.DateUnit}});Object.defineProperty(v,"IntervalUnit",{enumerable:!0,get:function(){return pr.IntervalUnit}});Object.defineProperty(v,"MessageHeader",{enumerable:!0,get:function(){return pr.MessageHeader}});Object.defineProperty(v,"MetadataVersion",{enumerable:!0,get:function(){return pr.MetadataVersion}});Object.defineProperty(v,"Precision",{enumerable:!0,get:function(){return pr.Precision}});Object.defineProperty(v,"TimeUnit",{enumerable:!0,get:function(){return pr.TimeUnit}});Object.defineProperty(v,"Type",{enumerable:!0,get:function(){return pr.Type}});Object.defineProperty(v,"UnionMode",{enumerable:!0,get:function(){return pr.UnionMode}});Object.defineProperty(v,"BufferType",{enumerable:!0,get:function(){return pr.BufferType}});var LE=Nt();Object.defineProperty(v,"Data",{enumerable:!0,get:function(){return LE.Data}});var ne=ve();Object.defineProperty(v,"DataType",{enumerable:!0,get:function(){return ne.DataType}});Object.defineProperty(v,"Null",{enumerable:!0,get:function(){return ne.Null}});Object.defineProperty(v,"Bool",{enumerable:!0,get:function(){return ne.Bool}});Object.defineProperty(v,"Int",{enumerable:!0,get:function(){return ne.Int}});Object.defineProperty(v,"Int8",{enumerable:!0,get:function(){return ne.Int8}});Object.defineProperty(v,"Int16",{enumerable:!0,get:function(){return ne.Int16}});Object.defineProperty(v,"Int32",{enumerable:!0,get:function(){return ne.Int32}});Object.defineProperty(v,"Int64",{enumerable:!0,get:function(){return ne.Int64}});Object.defineProperty(v,"Uint8",{enumerable:!0,get:function(){return ne.Uint8}});Object.defineProperty(v,"Uint16",{enumerable:!0,get:function(){return ne.Uint16}});Object.defineProperty(v,"Uint32",{enumerable:!0,get:function(){return ne.Uint32}});Object.defineProperty(v,"Uint64",{enumerable:!0,get:function(){return ne.Uint64}});Object.defineProperty(v,"Float",{enumerable:!0,get:function(){return ne.Float}});Object.defineProperty(v,"Float16",{enumerable:!0,get:function(){return ne.Float16}});Object.defineProperty(v,"Float32",{enumerable:!0,get:function(){return ne.Float32}});Object.defineProperty(v,"Float64",{enumerable:!0,get:function(){return ne.Float64}});Object.defineProperty(v,"Utf8",{enumerable:!0,get:function(){return ne.Utf8}});Object.defineProperty(v,"Binary",{enumerable:!0,get:function(){return ne.Binary}});Object.defineProperty(v,"FixedSizeBinary",{enumerable:!0,get:function(){return ne.FixedSizeBinary}});Object.defineProperty(v,"Date_",{enumerable:!0,get:function(){return ne.Date_}});Object.defineProperty(v,"DateDay",{enumerable:!0,get:function(){return ne.DateDay}});Object.defineProperty(v,"DateMillisecond",{enumerable:!0,get:function(){return ne.DateMillisecond}});Object.defineProperty(v,"Timestamp",{enumerable:!0,get:function(){return ne.Timestamp}});Object.defineProperty(v,"TimestampSecond",{enumerable:!0,get:function(){return ne.TimestampSecond}});Object.defineProperty(v,"TimestampMillisecond",{enumerable:!0,get:function(){return ne.TimestampMillisecond}});Object.defineProperty(v,"TimestampMicrosecond",{enumerable:!0,get:function(){return ne.TimestampMicrosecond}});Object.defineProperty(v,"TimestampNanosecond",{enumerable:!0,get:function(){return ne.TimestampNanosecond}});Object.defineProperty(v,"Time",{enumerable:!0,get:function(){return ne.Time}});Object.defineProperty(v,"TimeSecond",{enumerable:!0,get:function(){return ne.TimeSecond}});Object.defineProperty(v,"TimeMillisecond",{enumerable:!0,get:function(){return ne.TimeMillisecond}});Object.defineProperty(v,"TimeMicrosecond",{enumerable:!0,get:function(){return ne.TimeMicrosecond}});Object.defineProperty(v,"TimeNanosecond",{enumerable:!0,get:function(){return ne.TimeNanosecond}});Object.defineProperty(v,"Decimal",{enumerable:!0,get:function(){return ne.Decimal}});Object.defineProperty(v,"List",{enumerable:!0,get:function(){return ne.List}});Object.defineProperty(v,"Struct",{enumerable:!0,get:function(){return ne.Struct}});Object.defineProperty(v,"Union",{enumerable:!0,get:function(){return ne.Union}});Object.defineProperty(v,"DenseUnion",{enumerable:!0,get:function(){return ne.DenseUnion}});Object.defineProperty(v,"SparseUnion",{enumerable:!0,get:function(){return ne.SparseUnion}});Object.defineProperty(v,"Dictionary",{enumerable:!0,get:function(){return ne.Dictionary}});Object.defineProperty(v,"Interval",{enumerable:!0,get:function(){return ne.Interval}});Object.defineProperty(v,"IntervalDayTime",{enumerable:!0,get:function(){return ne.IntervalDayTime}});Object.defineProperty(v,"IntervalYearMonth",{enumerable:!0,get:function(){return ne.IntervalYearMonth}});Object.defineProperty(v,"FixedSizeList",{enumerable:!0,get:function(){return ne.FixedSizeList}});Object.defineProperty(v,"Map_",{enumerable:!0,get:function(){return ne.Map_}});var xE=as();Object.defineProperty(v,"Table",{enumerable:!0,get:function(){return xE.Table}});var qE=$i();Object.defineProperty(v,"Column",{enumerable:!0,get:function(){return qE.Column}});var WE=it();Object.defineProperty(v,"Visitor",{enumerable:!0,get:function(){return WE.Visitor}});var tv=Qe();Object.defineProperty(v,"Schema",{enumerable:!0,get:function(){return tv.Schema}});Object.defineProperty(v,"Field",{enumerable:!0,get:function(){return tv.Field}});var ee=cr();Object.defineProperty(v,"Vector",{enumerable:!0,get:function(){return ee.Vector}});Object.defineProperty(v,"BaseVector",{enumerable:!0,get:function(){return ee.BaseVector}});Object.defineProperty(v,"BinaryVector",{enumerable:!0,get:function(){return ee.BinaryVector}});Object.defineProperty(v,"BoolVector",{enumerable:!0,get:function(){return ee.BoolVector}});Object.defineProperty(v,"Chunked",{enumerable:!0,get:function(){return ee.Chunked}});Object.defineProperty(v,"DateVector",{enumerable:!0,get:function(){return ee.DateVector}});Object.defineProperty(v,"DateDayVector",{enumerable:!0,get:function(){return ee.DateDayVector}});Object.defineProperty(v,"DateMillisecondVector",{enumerable:!0,get:function(){return ee.DateMillisecondVector}});Object.defineProperty(v,"DecimalVector",{enumerable:!0,get:function(){return ee.DecimalVector}});Object.defineProperty(v,"DictionaryVector",{enumerable:!0,get:function(){return ee.DictionaryVector}});Object.defineProperty(v,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return ee.FixedSizeBinaryVector}});Object.defineProperty(v,"FixedSizeListVector",{enumerable:!0,get:function(){return ee.FixedSizeListVector}});Object.defineProperty(v,"FloatVector",{enumerable:!0,get:function(){return ee.FloatVector}});Object.defineProperty(v,"Float16Vector",{enumerable:!0,get:function(){return ee.Float16Vector}});Object.defineProperty(v,"Float32Vector",{enumerable:!0,get:function(){return ee.Float32Vector}});Object.defineProperty(v,"Float64Vector",{enumerable:!0,get:function(){return ee.Float64Vector}});Object.defineProperty(v,"IntervalVector",{enumerable:!0,get:function(){return ee.IntervalVector}});Object.defineProperty(v,"IntervalDayTimeVector",{enumerable:!0,get:function(){return ee.IntervalDayTimeVector}});Object.defineProperty(v,"IntervalYearMonthVector",{enumerable:!0,get:function(){return ee.IntervalYearMonthVector}});Object.defineProperty(v,"IntVector",{enumerable:!0,get:function(){return ee.IntVector}});Object.defineProperty(v,"Int8Vector",{enumerable:!0,get:function(){return ee.Int8Vector}});Object.defineProperty(v,"Int16Vector",{enumerable:!0,get:function(){return ee.Int16Vector}});Object.defineProperty(v,"Int32Vector",{enumerable:!0,get:function(){return ee.Int32Vector}});Object.defineProperty(v,"Int64Vector",{enumerable:!0,get:function(){return ee.Int64Vector}});Object.defineProperty(v,"Uint8Vector",{enumerable:!0,get:function(){return ee.Uint8Vector}});Object.defineProperty(v,"Uint16Vector",{enumerable:!0,get:function(){return ee.Uint16Vector}});Object.defineProperty(v,"Uint32Vector",{enumerable:!0,get:function(){return ee.Uint32Vector}});Object.defineProperty(v,"Uint64Vector",{enumerable:!0,get:function(){return ee.Uint64Vector}});Object.defineProperty(v,"ListVector",{enumerable:!0,get:function(){return ee.ListVector}});Object.defineProperty(v,"MapVector",{enumerable:!0,get:function(){return ee.MapVector}});Object.defineProperty(v,"NullVector",{enumerable:!0,get:function(){return ee.NullVector}});Object.defineProperty(v,"StructVector",{enumerable:!0,get:function(){return ee.StructVector}});Object.defineProperty(v,"TimestampVector",{enumerable:!0,get:function(){return ee.TimestampVector}});Object.defineProperty(v,"TimestampSecondVector",{enumerable:!0,get:function(){return ee.TimestampSecondVector}});Object.defineProperty(v,"TimestampMillisecondVector",{enumerable:!0,get:function(){return ee.TimestampMillisecondVector}});Object.defineProperty(v,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return ee.TimestampMicrosecondVector}});Object.defineProperty(v,"TimestampNanosecondVector",{enumerable:!0,get:function(){return ee.TimestampNanosecondVector}});Object.defineProperty(v,"TimeVector",{enumerable:!0,get:function(){return ee.TimeVector}});Object.defineProperty(v,"TimeSecondVector",{enumerable:!0,get:function(){return ee.TimeSecondVector}});Object.defineProperty(v,"TimeMillisecondVector",{enumerable:!0,get:function(){return ee.TimeMillisecondVector}});Object.defineProperty(v,"TimeMicrosecondVector",{enumerable:!0,get:function(){return ee.TimeMicrosecondVector}});Object.defineProperty(v,"TimeNanosecondVector",{enumerable:!0,get:function(){return ee.TimeNanosecondVector}});Object.defineProperty(v,"UnionVector",{enumerable:!0,get:function(){return ee.UnionVector}});Object.defineProperty(v,"DenseUnionVector",{enumerable:!0,get:function(){return ee.DenseUnionVector}});Object.defineProperty(v,"SparseUnionVector",{enumerable:!0,get:function(){return ee.SparseUnionVector}});Object.defineProperty(v,"Utf8Vector",{enumerable:!0,get:function(){return ee.Utf8Vector}});var se=Ma();Object.defineProperty(v,"Builder",{enumerable:!0,get:function(){return se.Builder}});Object.defineProperty(v,"BinaryBuilder",{enumerable:!0,get:function(){return se.BinaryBuilder}});Object.defineProperty(v,"BoolBuilder",{enumerable:!0,get:function(){return se.BoolBuilder}});Object.defineProperty(v,"DateBuilder",{enumerable:!0,get:function(){return se.DateBuilder}});Object.defineProperty(v,"DateDayBuilder",{enumerable:!0,get:function(){return se.DateDayBuilder}});Object.defineProperty(v,"DateMillisecondBuilder",{enumerable:!0,get:function(){return se.DateMillisecondBuilder}});Object.defineProperty(v,"DecimalBuilder",{enumerable:!0,get:function(){return se.DecimalBuilder}});Object.defineProperty(v,"DictionaryBuilder",{enumerable:!0,get:function(){return se.DictionaryBuilder}});Object.defineProperty(v,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return se.FixedSizeBinaryBuilder}});Object.defineProperty(v,"FixedSizeListBuilder",{enumerable:!0,get:function(){return se.FixedSizeListBuilder}});Object.defineProperty(v,"FloatBuilder",{enumerable:!0,get:function(){return se.FloatBuilder}});Object.defineProperty(v,"Float16Builder",{enumerable:!0,get:function(){return se.Float16Builder}});Object.defineProperty(v,"Float32Builder",{enumerable:!0,get:function(){return se.Float32Builder}});Object.defineProperty(v,"Float64Builder",{enumerable:!0,get:function(){return se.Float64Builder}});Object.defineProperty(v,"IntervalBuilder",{enumerable:!0,get:function(){return se.IntervalBuilder}});Object.defineProperty(v,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return se.IntervalDayTimeBuilder}});Object.defineProperty(v,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return se.IntervalYearMonthBuilder}});Object.defineProperty(v,"IntBuilder",{enumerable:!0,get:function(){return se.IntBuilder}});Object.defineProperty(v,"Int8Builder",{enumerable:!0,get:function(){return se.Int8Builder}});Object.defineProperty(v,"Int16Builder",{enumerable:!0,get:function(){return se.Int16Builder}});Object.defineProperty(v,"Int32Builder",{enumerable:!0,get:function(){return se.Int32Builder}});Object.defineProperty(v,"Int64Builder",{enumerable:!0,get:function(){return se.Int64Builder}});Object.defineProperty(v,"Uint8Builder",{enumerable:!0,get:function(){return se.Uint8Builder}});Object.defineProperty(v,"Uint16Builder",{enumerable:!0,get:function(){return se.Uint16Builder}});Object.defineProperty(v,"Uint32Builder",{enumerable:!0,get:function(){return se.Uint32Builder}});Object.defineProperty(v,"Uint64Builder",{enumerable:!0,get:function(){return se.Uint64Builder}});Object.defineProperty(v,"ListBuilder",{enumerable:!0,get:function(){return se.ListBuilder}});Object.defineProperty(v,"MapBuilder",{enumerable:!0,get:function(){return se.MapBuilder}});Object.defineProperty(v,"NullBuilder",{enumerable:!0,get:function(){return se.NullBuilder}});Object.defineProperty(v,"StructBuilder",{enumerable:!0,get:function(){return se.StructBuilder}});Object.defineProperty(v,"TimestampBuilder",{enumerable:!0,get:function(){return se.TimestampBuilder}});Object.defineProperty(v,"TimestampSecondBuilder",{enumerable:!0,get:function(){return se.TimestampSecondBuilder}});Object.defineProperty(v,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return se.TimestampMillisecondBuilder}});Object.defineProperty(v,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return se.TimestampMicrosecondBuilder}});Object.defineProperty(v,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return se.TimestampNanosecondBuilder}});Object.defineProperty(v,"TimeBuilder",{enumerable:!0,get:function(){return se.TimeBuilder}});Object.defineProperty(v,"TimeSecondBuilder",{enumerable:!0,get:function(){return se.TimeSecondBuilder}});Object.defineProperty(v,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return se.TimeMillisecondBuilder}});Object.defineProperty(v,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return se.TimeMicrosecondBuilder}});Object.defineProperty(v,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return se.TimeNanosecondBuilder}});Object.defineProperty(v,"UnionBuilder",{enumerable:!0,get:function(){return se.UnionBuilder}});Object.defineProperty(v,"DenseUnionBuilder",{enumerable:!0,get:function(){return se.DenseUnionBuilder}});Object.defineProperty(v,"SparseUnionBuilder",{enumerable:!0,get:function(){return se.SparseUnionBuilder}});Object.defineProperty(v,"Utf8Builder",{enumerable:!0,get:function(){return se.Utf8Builder}});var ad=zr();Object.defineProperty(v,"ByteStream",{enumerable:!0,get:function(){return ad.ByteStream}});Object.defineProperty(v,"AsyncByteStream",{enumerable:!0,get:function(){return ad.AsyncByteStream}});Object.defineProperty(v,"AsyncByteQueue",{enumerable:!0,get:function(){return ad.AsyncByteQueue}});var js=ys();Object.defineProperty(v,"RecordBatchReader",{enumerable:!0,get:function(){return js.RecordBatchReader}});Object.defineProperty(v,"RecordBatchFileReader",{enumerable:!0,get:function(){return js.RecordBatchFileReader}});Object.defineProperty(v,"RecordBatchStreamReader",{enumerable:!0,get:function(){return js.RecordBatchStreamReader}});Object.defineProperty(v,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return js.AsyncRecordBatchFileReader}});Object.defineProperty(v,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return js.AsyncRecordBatchStreamReader}});var Po=so();Object.defineProperty(v,"RecordBatchWriter",{enumerable:!0,get:function(){return Po.RecordBatchWriter}});Object.defineProperty(v,"RecordBatchFileWriter",{enumerable:!0,get:function(){return Po.RecordBatchFileWriter}});Object.defineProperty(v,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return Po.RecordBatchStreamWriter}});Object.defineProperty(v,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return Po.RecordBatchJSONWriter}});var od=Ja();Object.defineProperty(v,"MessageReader",{enumerable:!0,get:function(){return od.MessageReader}});Object.defineProperty(v,"AsyncMessageReader",{enumerable:!0,get:function(){return od.AsyncMessageReader}});Object.defineProperty(v,"JSONMessageReader",{enumerable:!0,get:function(){return od.JSONMessageReader}});var zE=_i();Object.defineProperty(v,"Message",{enumerable:!0,get:function(){return zE.Message}});var YE=Tr();Object.defineProperty(v,"RecordBatch",{enumerable:!0,get:function(){return YE.RecordBatch}});var ud=ev();Object.defineProperty(v,"DataFrame",{enumerable:!0,get:function(){return ud.DataFrame}});Object.defineProperty(v,"FilteredDataFrame",{enumerable:!0,get:function(){return ud.FilteredDataFrame}});Object.defineProperty(v,"CountByResult",{enumerable:!0,get:function(){return ud.CountByResult}});var HE=Yn(),GE=wc(),$E=Kt(),JE=xn(),KE=Ne(),QE=$n(),ZE=nd();v.predicate=ZE;v.util={...HE,...GE,...$E,...JE,...KE,...QE}});var Ts=U(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});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.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.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.Visitor=w.Field=w.Schema=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.UnionMode=w.Type=w.TimeUnit=w.Precision=w.MetadataVersion=w.MessageHeader=w.IntervalUnit=w.DateUnit=w.ArrowType=void 0;var XE=kn(),eC=Ma(),tC=ys(),rC=so(),iC=Yg(),nC=$g(),sC=Jg(),aC=Kg();XE.default.toDOMStream=iC.toDOMStream;eC.Builder.throughDOM=nC.builderThroughDOMStream;tC.RecordBatchReader.throughDOM=sC.recordBatchReaderThroughDOMStream;rC.RecordBatchWriter.throughDOM=aC.recordBatchWriterThroughDOMStream;var D=rv();Object.defineProperty(w,"ArrowType",{enumerable:!0,get:function(){return D.ArrowType}});Object.defineProperty(w,"DateUnit",{enumerable:!0,get:function(){return D.DateUnit}});Object.defineProperty(w,"IntervalUnit",{enumerable:!0,get:function(){return D.IntervalUnit}});Object.defineProperty(w,"MessageHeader",{enumerable:!0,get:function(){return D.MessageHeader}});Object.defineProperty(w,"MetadataVersion",{enumerable:!0,get:function(){return D.MetadataVersion}});Object.defineProperty(w,"Precision",{enumerable:!0,get:function(){return D.Precision}});Object.defineProperty(w,"TimeUnit",{enumerable:!0,get:function(){return D.TimeUnit}});Object.defineProperty(w,"Type",{enumerable:!0,get:function(){return D.Type}});Object.defineProperty(w,"UnionMode",{enumerable:!0,get:function(){return D.UnionMode}});Object.defineProperty(w,"BufferType",{enumerable:!0,get:function(){return D.BufferType}});Object.defineProperty(w,"Data",{enumerable:!0,get:function(){return D.Data}});Object.defineProperty(w,"DataType",{enumerable:!0,get:function(){return D.DataType}});Object.defineProperty(w,"Null",{enumerable:!0,get:function(){return D.Null}});Object.defineProperty(w,"Bool",{enumerable:!0,get:function(){return D.Bool}});Object.defineProperty(w,"Int",{enumerable:!0,get:function(){return D.Int}});Object.defineProperty(w,"Int8",{enumerable:!0,get:function(){return D.Int8}});Object.defineProperty(w,"Int16",{enumerable:!0,get:function(){return D.Int16}});Object.defineProperty(w,"Int32",{enumerable:!0,get:function(){return D.Int32}});Object.defineProperty(w,"Int64",{enumerable:!0,get:function(){return D.Int64}});Object.defineProperty(w,"Uint8",{enumerable:!0,get:function(){return D.Uint8}});Object.defineProperty(w,"Uint16",{enumerable:!0,get:function(){return D.Uint16}});Object.defineProperty(w,"Uint32",{enumerable:!0,get:function(){return D.Uint32}});Object.defineProperty(w,"Uint64",{enumerable:!0,get:function(){return D.Uint64}});Object.defineProperty(w,"Float",{enumerable:!0,get:function(){return D.Float}});Object.defineProperty(w,"Float16",{enumerable:!0,get:function(){return D.Float16}});Object.defineProperty(w,"Float32",{enumerable:!0,get:function(){return D.Float32}});Object.defineProperty(w,"Float64",{enumerable:!0,get:function(){return D.Float64}});Object.defineProperty(w,"Utf8",{enumerable:!0,get:function(){return D.Utf8}});Object.defineProperty(w,"Binary",{enumerable:!0,get:function(){return D.Binary}});Object.defineProperty(w,"FixedSizeBinary",{enumerable:!0,get:function(){return D.FixedSizeBinary}});Object.defineProperty(w,"Date_",{enumerable:!0,get:function(){return D.Date_}});Object.defineProperty(w,"DateDay",{enumerable:!0,get:function(){return D.DateDay}});Object.defineProperty(w,"DateMillisecond",{enumerable:!0,get:function(){return D.DateMillisecond}});Object.defineProperty(w,"Timestamp",{enumerable:!0,get:function(){return D.Timestamp}});Object.defineProperty(w,"TimestampSecond",{enumerable:!0,get:function(){return D.TimestampSecond}});Object.defineProperty(w,"TimestampMillisecond",{enumerable:!0,get:function(){return D.TimestampMillisecond}});Object.defineProperty(w,"TimestampMicrosecond",{enumerable:!0,get:function(){return D.TimestampMicrosecond}});Object.defineProperty(w,"TimestampNanosecond",{enumerable:!0,get:function(){return D.TimestampNanosecond}});Object.defineProperty(w,"Time",{enumerable:!0,get:function(){return D.Time}});Object.defineProperty(w,"TimeSecond",{enumerable:!0,get:function(){return D.TimeSecond}});Object.defineProperty(w,"TimeMillisecond",{enumerable:!0,get:function(){return D.TimeMillisecond}});Object.defineProperty(w,"TimeMicrosecond",{enumerable:!0,get:function(){return D.TimeMicrosecond}});Object.defineProperty(w,"TimeNanosecond",{enumerable:!0,get:function(){return D.TimeNanosecond}});Object.defineProperty(w,"Decimal",{enumerable:!0,get:function(){return D.Decimal}});Object.defineProperty(w,"List",{enumerable:!0,get:function(){return D.List}});Object.defineProperty(w,"Struct",{enumerable:!0,get:function(){return D.Struct}});Object.defineProperty(w,"Union",{enumerable:!0,get:function(){return D.Union}});Object.defineProperty(w,"DenseUnion",{enumerable:!0,get:function(){return D.DenseUnion}});Object.defineProperty(w,"SparseUnion",{enumerable:!0,get:function(){return D.SparseUnion}});Object.defineProperty(w,"Dictionary",{enumerable:!0,get:function(){return D.Dictionary}});Object.defineProperty(w,"Interval",{enumerable:!0,get:function(){return D.Interval}});Object.defineProperty(w,"IntervalDayTime",{enumerable:!0,get:function(){return D.IntervalDayTime}});Object.defineProperty(w,"IntervalYearMonth",{enumerable:!0,get:function(){return D.IntervalYearMonth}});Object.defineProperty(w,"FixedSizeList",{enumerable:!0,get:function(){return D.FixedSizeList}});Object.defineProperty(w,"Map_",{enumerable:!0,get:function(){return D.Map_}});Object.defineProperty(w,"Table",{enumerable:!0,get:function(){return D.Table}});Object.defineProperty(w,"Column",{enumerable:!0,get:function(){return D.Column}});Object.defineProperty(w,"Schema",{enumerable:!0,get:function(){return D.Schema}});Object.defineProperty(w,"Field",{enumerable:!0,get:function(){return D.Field}});Object.defineProperty(w,"Visitor",{enumerable:!0,get:function(){return D.Visitor}});Object.defineProperty(w,"Vector",{enumerable:!0,get:function(){return D.Vector}});Object.defineProperty(w,"BaseVector",{enumerable:!0,get:function(){return D.BaseVector}});Object.defineProperty(w,"BinaryVector",{enumerable:!0,get:function(){return D.BinaryVector}});Object.defineProperty(w,"BoolVector",{enumerable:!0,get:function(){return D.BoolVector}});Object.defineProperty(w,"Chunked",{enumerable:!0,get:function(){return D.Chunked}});Object.defineProperty(w,"DateVector",{enumerable:!0,get:function(){return D.DateVector}});Object.defineProperty(w,"DateDayVector",{enumerable:!0,get:function(){return D.DateDayVector}});Object.defineProperty(w,"DateMillisecondVector",{enumerable:!0,get:function(){return D.DateMillisecondVector}});Object.defineProperty(w,"DecimalVector",{enumerable:!0,get:function(){return D.DecimalVector}});Object.defineProperty(w,"DictionaryVector",{enumerable:!0,get:function(){return D.DictionaryVector}});Object.defineProperty(w,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return D.FixedSizeBinaryVector}});Object.defineProperty(w,"FixedSizeListVector",{enumerable:!0,get:function(){return D.FixedSizeListVector}});Object.defineProperty(w,"FloatVector",{enumerable:!0,get:function(){return D.FloatVector}});Object.defineProperty(w,"Float16Vector",{enumerable:!0,get:function(){return D.Float16Vector}});Object.defineProperty(w,"Float32Vector",{enumerable:!0,get:function(){return D.Float32Vector}});Object.defineProperty(w,"Float64Vector",{enumerable:!0,get:function(){return D.Float64Vector}});Object.defineProperty(w,"IntervalVector",{enumerable:!0,get:function(){return D.IntervalVector}});Object.defineProperty(w,"IntervalDayTimeVector",{enumerable:!0,get:function(){return D.IntervalDayTimeVector}});Object.defineProperty(w,"IntervalYearMonthVector",{enumerable:!0,get:function(){return D.IntervalYearMonthVector}});Object.defineProperty(w,"IntVector",{enumerable:!0,get:function(){return D.IntVector}});Object.defineProperty(w,"Int8Vector",{enumerable:!0,get:function(){return D.Int8Vector}});Object.defineProperty(w,"Int16Vector",{enumerable:!0,get:function(){return D.Int16Vector}});Object.defineProperty(w,"Int32Vector",{enumerable:!0,get:function(){return D.Int32Vector}});Object.defineProperty(w,"Int64Vector",{enumerable:!0,get:function(){return D.Int64Vector}});Object.defineProperty(w,"Uint8Vector",{enumerable:!0,get:function(){return D.Uint8Vector}});Object.defineProperty(w,"Uint16Vector",{enumerable:!0,get:function(){return D.Uint16Vector}});Object.defineProperty(w,"Uint32Vector",{enumerable:!0,get:function(){return D.Uint32Vector}});Object.defineProperty(w,"Uint64Vector",{enumerable:!0,get:function(){return D.Uint64Vector}});Object.defineProperty(w,"ListVector",{enumerable:!0,get:function(){return D.ListVector}});Object.defineProperty(w,"MapVector",{enumerable:!0,get:function(){return D.MapVector}});Object.defineProperty(w,"NullVector",{enumerable:!0,get:function(){return D.NullVector}});Object.defineProperty(w,"StructVector",{enumerable:!0,get:function(){return D.StructVector}});Object.defineProperty(w,"TimestampVector",{enumerable:!0,get:function(){return D.TimestampVector}});Object.defineProperty(w,"TimestampSecondVector",{enumerable:!0,get:function(){return D.TimestampSecondVector}});Object.defineProperty(w,"TimestampMillisecondVector",{enumerable:!0,get:function(){return D.TimestampMillisecondVector}});Object.defineProperty(w,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return D.TimestampMicrosecondVector}});Object.defineProperty(w,"TimestampNanosecondVector",{enumerable:!0,get:function(){return D.TimestampNanosecondVector}});Object.defineProperty(w,"TimeVector",{enumerable:!0,get:function(){return D.TimeVector}});Object.defineProperty(w,"TimeSecondVector",{enumerable:!0,get:function(){return D.TimeSecondVector}});Object.defineProperty(w,"TimeMillisecondVector",{enumerable:!0,get:function(){return D.TimeMillisecondVector}});Object.defineProperty(w,"TimeMicrosecondVector",{enumerable:!0,get:function(){return D.TimeMicrosecondVector}});Object.defineProperty(w,"TimeNanosecondVector",{enumerable:!0,get:function(){return D.TimeNanosecondVector}});Object.defineProperty(w,"UnionVector",{enumerable:!0,get:function(){return D.UnionVector}});Object.defineProperty(w,"DenseUnionVector",{enumerable:!0,get:function(){return D.DenseUnionVector}});Object.defineProperty(w,"SparseUnionVector",{enumerable:!0,get:function(){return D.SparseUnionVector}});Object.defineProperty(w,"Utf8Vector",{enumerable:!0,get:function(){return D.Utf8Vector}});Object.defineProperty(w,"ByteStream",{enumerable:!0,get:function(){return D.ByteStream}});Object.defineProperty(w,"AsyncByteStream",{enumerable:!0,get:function(){return D.AsyncByteStream}});Object.defineProperty(w,"AsyncByteQueue",{enumerable:!0,get:function(){return D.AsyncByteQueue}});Object.defineProperty(w,"RecordBatchReader",{enumerable:!0,get:function(){return D.RecordBatchReader}});Object.defineProperty(w,"RecordBatchFileReader",{enumerable:!0,get:function(){return D.RecordBatchFileReader}});Object.defineProperty(w,"RecordBatchStreamReader",{enumerable:!0,get:function(){return D.RecordBatchStreamReader}});Object.defineProperty(w,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return D.AsyncRecordBatchFileReader}});Object.defineProperty(w,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return D.AsyncRecordBatchStreamReader}});Object.defineProperty(w,"RecordBatchWriter",{enumerable:!0,get:function(){return D.RecordBatchWriter}});Object.defineProperty(w,"RecordBatchFileWriter",{enumerable:!0,get:function(){return D.RecordBatchFileWriter}});Object.defineProperty(w,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return D.RecordBatchStreamWriter}});Object.defineProperty(w,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return D.RecordBatchJSONWriter}});Object.defineProperty(w,"MessageReader",{enumerable:!0,get:function(){return D.MessageReader}});Object.defineProperty(w,"AsyncMessageReader",{enumerable:!0,get:function(){return D.AsyncMessageReader}});Object.defineProperty(w,"JSONMessageReader",{enumerable:!0,get:function(){return D.JSONMessageReader}});Object.defineProperty(w,"Message",{enumerable:!0,get:function(){return D.Message}});Object.defineProperty(w,"RecordBatch",{enumerable:!0,get:function(){return D.RecordBatch}});Object.defineProperty(w,"DataFrame",{enumerable:!0,get:function(){return D.DataFrame}});Object.defineProperty(w,"FilteredDataFrame",{enumerable:!0,get:function(){return D.FilteredDataFrame}});Object.defineProperty(w,"CountByResult",{enumerable:!0,get:function(){return D.CountByResult}});Object.defineProperty(w,"predicate",{enumerable:!0,get:function(){return D.predicate}});Object.defineProperty(w,"util",{enumerable:!0,get:function(){return D.util}});Object.defineProperty(w,"Builder",{enumerable:!0,get:function(){return D.Builder}});Object.defineProperty(w,"BinaryBuilder",{enumerable:!0,get:function(){return D.BinaryBuilder}});Object.defineProperty(w,"BoolBuilder",{enumerable:!0,get:function(){return D.BoolBuilder}});Object.defineProperty(w,"DateBuilder",{enumerable:!0,get:function(){return D.DateBuilder}});Object.defineProperty(w,"DateDayBuilder",{enumerable:!0,get:function(){return D.DateDayBuilder}});Object.defineProperty(w,"DateMillisecondBuilder",{enumerable:!0,get:function(){return D.DateMillisecondBuilder}});Object.defineProperty(w,"DecimalBuilder",{enumerable:!0,get:function(){return D.DecimalBuilder}});Object.defineProperty(w,"DictionaryBuilder",{enumerable:!0,get:function(){return D.DictionaryBuilder}});Object.defineProperty(w,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return D.FixedSizeBinaryBuilder}});Object.defineProperty(w,"FixedSizeListBuilder",{enumerable:!0,get:function(){return D.FixedSizeListBuilder}});Object.defineProperty(w,"FloatBuilder",{enumerable:!0,get:function(){return D.FloatBuilder}});Object.defineProperty(w,"Float16Builder",{enumerable:!0,get:function(){return D.Float16Builder}});Object.defineProperty(w,"Float32Builder",{enumerable:!0,get:function(){return D.Float32Builder}});Object.defineProperty(w,"Float64Builder",{enumerable:!0,get:function(){return D.Float64Builder}});Object.defineProperty(w,"IntervalBuilder",{enumerable:!0,get:function(){return D.IntervalBuilder}});Object.defineProperty(w,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return D.IntervalDayTimeBuilder}});Object.defineProperty(w,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return D.IntervalYearMonthBuilder}});Object.defineProperty(w,"IntBuilder",{enumerable:!0,get:function(){return D.IntBuilder}});Object.defineProperty(w,"Int8Builder",{enumerable:!0,get:function(){return D.Int8Builder}});Object.defineProperty(w,"Int16Builder",{enumerable:!0,get:function(){return D.Int16Builder}});Object.defineProperty(w,"Int32Builder",{enumerable:!0,get:function(){return D.Int32Builder}});Object.defineProperty(w,"Int64Builder",{enumerable:!0,get:function(){return D.Int64Builder}});Object.defineProperty(w,"Uint8Builder",{enumerable:!0,get:function(){return D.Uint8Builder}});Object.defineProperty(w,"Uint16Builder",{enumerable:!0,get:function(){return D.Uint16Builder}});Object.defineProperty(w,"Uint32Builder",{enumerable:!0,get:function(){return D.Uint32Builder}});Object.defineProperty(w,"Uint64Builder",{enumerable:!0,get:function(){return D.Uint64Builder}});Object.defineProperty(w,"ListBuilder",{enumerable:!0,get:function(){return D.ListBuilder}});Object.defineProperty(w,"MapBuilder",{enumerable:!0,get:function(){return D.MapBuilder}});Object.defineProperty(w,"NullBuilder",{enumerable:!0,get:function(){return D.NullBuilder}});Object.defineProperty(w,"StructBuilder",{enumerable:!0,get:function(){return D.StructBuilder}});Object.defineProperty(w,"TimestampBuilder",{enumerable:!0,get:function(){return D.TimestampBuilder}});Object.defineProperty(w,"TimestampSecondBuilder",{enumerable:!0,get:function(){return D.TimestampSecondBuilder}});Object.defineProperty(w,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return D.TimestampMillisecondBuilder}});Object.defineProperty(w,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return D.TimestampMicrosecondBuilder}});Object.defineProperty(w,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return D.TimestampNanosecondBuilder}});Object.defineProperty(w,"TimeBuilder",{enumerable:!0,get:function(){return D.TimeBuilder}});Object.defineProperty(w,"TimeSecondBuilder",{enumerable:!0,get:function(){return D.TimeSecondBuilder}});Object.defineProperty(w,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return D.TimeMillisecondBuilder}});Object.defineProperty(w,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return D.TimeMicrosecondBuilder}});Object.defineProperty(w,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return D.TimeNanosecondBuilder}});Object.defineProperty(w,"UnionBuilder",{enumerable:!0,get:function(){return D.UnionBuilder}});Object.defineProperty(w,"DenseUnionBuilder",{enumerable:!0,get:function(){return D.DenseUnionBuilder}});Object.defineProperty(w,"SparseUnionBuilder",{enumerable:!0,get:function(){return D.SparseUnionBuilder}});Object.defineProperty(w,"Utf8Builder",{enumerable:!0,get:function(){return D.Utf8Builder}})});var No=U(()=>{});var yd=U(()=>{});var nv=U(()=>{});var fC={};yS(fC,{registerWorker:()=>lv});var hd=Ps(Ts());var iv=Ps(Ts()),Vo=class extends iv.AsyncByteQueue{flush(){let e=super.toUint8Array(!0);return this._values.length=0,e}};var cd;(function(a){a[a.NONE=0]="NONE",a[a.DEBUG=1]="DEBUG",a[a.INFO=2]="INFO",a[a.WARNING=3]="WARNING",a[a.ERROR=4]="ERROR"})(cd||(cd={}));var ld;(function(a){a[a.NONE=0]="NONE",a[a.CONNECT=1]="CONNECT",a[a.DISCONNECT=2]="DISCONNECT",a[a.OPEN=3]="OPEN",a[a.QUERY=4]="QUERY"})(ld||(ld={}));var dd;(function(c){c[c.NONE=0]="NONE",c[c.OK=1]="OK",c[c.ERROR=2]="ERROR",c[c.START=3]="START",c[c.RUN=4]="RUN",c[c.CAPTURE=5]="CAPTURE"})(dd||(dd={}));var fd;(function(a){a[a.NONE=0]="NONE",a[a.WEB_WORKER=1]="WEB_WORKER",a[a.NODE_WORKER=2]="NODE_WORKER",a[a.BINDINGS=3]="BINDINGS",a[a.ASYNC_DUCKDB=4]="ASYNC_DUCKDB"})(fd||(fd={}));var oC=class{constructor(e,t,i){this.db=e;this.conn=t;this.header=i;this._first=!0,this._depleted=!1,this._inFlight=null}async next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e;return this._inFlight!=null?(e=await this._inFlight,this._inFlight=null):e=await this.db.fetchQueryResults(this.conn),this._depleted=e.length==0,this._depleted||(this._inFlight=this.db.fetchQueryResults(this.conn)),{done:this._depleted,value:e}}[Symbol.asyncIterator](){return this}};var ge;(function(W){W.CLOSE_PREPARED="CLOSE_PREPARED",W.COLLECT_FILE_STATISTICS="COLLECT_FILE_STATISTICS",W.CONNECT="CONNECT",W.COPY_FILE_TO_BUFFER="COPY_FILE_TO_BUFFER",W.COPY_FILE_TO_PATH="COPY_FILE_TO_PATH",W.CREATE_PREPARED="CREATE_PREPARED",W.DISCONNECT="DISCONNECT",W.DROP_FILE="DROP_FILE",W.DROP_FILES="DROP_FILES",W.EXPORT_FILE_STATISTICS="EXPORT_FILE_STATISTICS",W.FETCH_QUERY_RESULTS="FETCH_QUERY_RESULTS",W.FLUSH_FILES="FLUSH_FILES",W.GET_FEATURE_FLAGS="GET_FEATURE_FLAGS",W.GET_VERSION="GET_VERSION",W.INSERT_ARROW_FROM_IPC_STREAM="INSERT_ARROW_FROM_IPC_STREAM",W.INSERT_CSV_FROM_PATH="IMPORT_CSV_FROM_PATH",W.INSERT_JSON_FROM_PATH="IMPORT_JSON_FROM_PATH",W.INSTANTIATE="INSTANTIATE",W.OPEN="OPEN",W.PING="PING",W.REGISTER_FILE_BUFFER="REGISTER_FILE_BUFFER",W.REGISTER_FILE_HANDLE="REGISTER_FILE_HANDLE",W.REGISTER_FILE_URL="REGISTER_FILE_URL",W.RESET="RESET",W.RUN_PREPARED="RUN_PREPARED",W.RUN_QUERY="RUN_QUERY",W.SEND_PREPARED="SEND_PREPARED",W.SEND_QUERY="SEND_QUERY",W.TOKENIZE="TOKENIZE"})(ge||(ge={}));var ze;(function(ce){ce.CONNECTION_INFO="CONNECTION_INFO",ce.ERROR="ERROR",ce.FEATURE_FLAGS="FEATURE_FLAGS",ce.FILE_BUFFER="FILE_BUFFER",ce.FILE_SIZE="FILE_SIZE",ce.FILE_STATISTICS="FILE_STATISTICS",ce.LOG="LOG",ce.OK="OK",ce.PREPARED_STATEMENT_ID="PREPARED_STATEMENT_ID",ce.QUERY_PLAN="QUERY_PLAN",ce.QUERY_RESULT="QUERY_RESULT",ce.QUERY_RESULT_CHUNK="QUERY_RESULT_CHUNK",ce.QUERY_START="QUERY_START",ce.REGISTERED_FILE="REGISTERED_FILE",ce.SCRIPT_TOKENS="SCRIPT_TOKENS",ce.SUCCESS="SUCCESS",ce.VERSION_STRING="VERSION_STRING"})(ze||(ze={}));var he=Ps(Ts());function Dn(r,e){switch(e.typeId){case he.Type.Binary:return{name:r,type:"binary"};case he.Type.Bool:return{name:r,type:"bool"};case he.Type.Date:return{name:r,type:"date"};case he.Type.DateDay:return{name:r,type:"date32[d]"};case he.Type.DateMillisecond:return{name:r,type:"date64[ms]"};case he.Type.Decimal:{let t=e;return{name:r,type:"decimal",precision:t.precision,scale:t.scale}}case he.Type.Float:return{name:r,type:"float"};case he.Type.Float16:return{name:r,type:"float16"};case he.Type.Float32:return{name:r,type:"float32"};case he.Type.Float64:return{name:r,type:"float64"};case he.Type.Int:return{name:r,type:"int32"};case he.Type.Int16:return{name:r,type:"int16"};case he.Type.Int32:return{name:r,type:"int32"};case he.Type.Int64:return{name:r,type:"int64"};case he.Type.Uint16:return{name:r,type:"uint16"};case he.Type.Uint32:return{name:r,type:"uint32"};case he.Type.Uint64:return{name:r,type:"uint64"};case he.Type.Uint8:return{name:r,type:"uint8"};case he.Type.IntervalDayTime:return{name:r,type:"interval[dt]"};case he.Type.IntervalYearMonth:return{name:r,type:"interval[m]"};case he.Type.List:{let t=e;return{name:r,type:"list",children:[Dn(t.valueField.name,t.valueField.type)]}}case he.Type.FixedSizeBinary:return{name:r,type:"fixedsizebinary",byteWidth:e.byteWidth};case he.Type.Null:return{name:r,type:"null"};case he.Type.Utf8:return{name:r,type:"utf8"};case he.Type.Struct:return{name:r,type:"struct",children:e.children.map(i=>Dn(i.name,i.type))};case he.Type.Time:return{name:r,type:"time[s]"};case he.Type.TimeMicrosecond:return{name:r,type:"time[us]"};case he.Type.TimeMillisecond:return{name:r,type:"time[ms]"};case he.Type.TimeNanosecond:return{name:r,type:"time[ns]"};case he.Type.TimeSecond:return{name:r,type:"time[s]"};case he.Type.Timestamp:return{name:r,type:"timestamp",timezone:e.timezone||void 0};case he.Type.TimestampSecond:return{name:r,type:"timestamp[s]",timezone:e.timezone||void 0};case he.Type.TimestampMicrosecond:return{name:r,type:"timestamp[us]",timezone:e.timezone||void 0};case he.Type.TimestampNanosecond:return{name:r,type:"timestamp[ns]",timezone:e.timezone||void 0};case he.Type.TimestampMillisecond:return{name:r,type:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error(`unsupported arrow type: ${e.toString()}`)}var Ek=new TextEncoder;var pd=class{constructor(){this._bindings=null;this._nextMessageId=0}log(e){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:ze.LOG,data:e},[])}sendOK(e){this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.OK,data:null},[])}failWith(e,t){let i={name:t.name,message:t.message,stack:t.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.ERROR,data:i},[])}async onMessage(e){switch(e.type){case ge.PING:this.sendOK(e);return;case ge.INSTANTIATE:this._bindings!=null&&this.failWith(e,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(e.data[0],e.data[1]),this.sendOK(e)}catch(t){this._bindings=null,this.failWith(e,t)}return;default:break}if(!this._bindings)return this.failWith(e,new Error("duckdb is not initialized"));try{switch(e.type){case ge.GET_VERSION:this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.VERSION_STRING,data:this._bindings.getVersion()},[]);break;case ge.GET_FEATURE_FLAGS:this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.FEATURE_FLAGS,data:this._bindings.getFeatureFlags()},[]);break;case ge.RESET:this._bindings.reset(),this.sendOK(e);break;case ge.OPEN:this._bindings.open(e.data),this.sendOK(e);break;case ge.DROP_FILE:this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.SUCCESS,data:this._bindings.dropFile(e.data)},[]);break;case ge.DROP_FILES:this._bindings.dropFiles(),this.sendOK(e);break;case ge.FLUSH_FILES:this._bindings.flushFiles(),this.sendOK(e);break;case ge.CONNECT:{let t=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.CONNECTION_INFO,data:t.useUnsafe((i,n)=>n)},[]);break}case ge.DISCONNECT:this._bindings.disconnect(e.data),this.sendOK(e);break;case ge.CREATE_PREPARED:{let t=this._bindings.createPrepared(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.PREPARED_STATEMENT_ID,data:t},[]);break}case ge.CLOSE_PREPARED:{this._bindings.closePrepared(e.data[0],e.data[1]),this.sendOK(e);break}case ge.RUN_PREPARED:{let t=this._bindings.runPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.QUERY_RESULT,data:t},[t.buffer]);break}case ge.RUN_QUERY:{let t=this._bindings.runQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.QUERY_RESULT,data:t},[t.buffer]);break}case ge.SEND_PREPARED:{let t=this._bindings.sendPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.QUERY_START,data:t},[t.buffer]);break}case ge.SEND_QUERY:{let t=this._bindings.sendQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.QUERY_START,data:t},[t.buffer]);break}case ge.FETCH_QUERY_RESULTS:{let t=this._bindings.fetchQueryResults(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.QUERY_RESULT_CHUNK,data:t},[t.buffer]);break}case ge.REGISTER_FILE_URL:this._bindings.registerFileURL(e.data[0],e.data[1]),this.sendOK(e);break;case ge.REGISTER_FILE_BUFFER:this._bindings.registerFileBuffer(e.data[0],e.data[1]),this.sendOK(e);break;case ge.REGISTER_FILE_HANDLE:this._bindings.registerFileHandle(e.data[0],e.data[1]),this.sendOK(e);break;case ge.COPY_FILE_TO_PATH:this._bindings.copyFileToPath(e.data[0],e.data[1]),this.sendOK(e);break;case ge.COPY_FILE_TO_BUFFER:{let t=this._bindings.copyFileToBuffer(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.FILE_BUFFER,data:t},[]);break}case ge.COLLECT_FILE_STATISTICS:this._bindings.collectFileStatistics(e.data[0],e.data[1]),this.sendOK(e);break;case ge.EXPORT_FILE_STATISTICS:{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.FILE_STATISTICS,data:this._bindings.exportFileStatistics(e.data)},[]);break}case ge.INSERT_ARROW_FROM_IPC_STREAM:{this._bindings.insertArrowFromIPCStream(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case ge.INSERT_CSV_FROM_PATH:{this._bindings.insertCSVFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case ge.INSERT_JSON_FROM_PATH:{this._bindings.insertJSONFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case ge.TOKENIZE:{let t=this._bindings.tokenize(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:ze.SCRIPT_TOKENS,data:t},[]);break}}}catch(t){return this.failWith(e,t)}}};var av={},uC=function(){var r=av.url;return function(e){e=e||{};var t=typeof e!="undefined"?e:{},i,n;t.ready=new Promise(function(o,u){i=o,n=u});var a={},c;for(c in t)t.hasOwnProperty(c)&&(a[c]=t[c]);var f=[],j="./this.program",s=function(o,u){throw u},m=typeof window=="object",R=typeof importScripts=="function",$=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",ue="";function pt(o){return t.locateFile?t.locateFile(o,ue):ue+o}var Ht,Pt,ce,dv;function fv(o){if(!(o instanceof ks)){var u=o;si("exiting due to exception: "+u)}}var Ii,Si;$?(R?ue=No().dirname(ue)+"/":ue=__dirname+"/",Ht=function(u,l){return Ii||(Ii=yd()),Si||(Si=No()),u=Si.normalize(u),Ii.readFileSync(u,l?null:"utf8")},ce=function(u){var l=Ht(u,!0);return l.buffer||(l=new Uint8Array(l)),Td(l.buffer),l},Pt=function(u,l,d){Ii||(Ii=yd()),Si||(Si=No()),u=Si.normalize(u),Ii.readFile(u,function(h,p){h?d(h):l(p.buffer)})},process.argv.length>1&&(j=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),process.on("uncaughtException",function(o){if(!(o instanceof ks))throw o}),process.on("unhandledRejection",function(o){throw o}),s=function(o,u){if(xo())throw process.exitCode=o,u;fv(u),process.exit(o)},t.inspect=function(){return"[Emscripten Module object]"}):(m||R)&&(R?ue=self.location.href:typeof document!="undefined"&&document.currentScript&&(ue=document.currentScript.src),r&&(ue=r),ue.indexOf("blob:")!==0?ue=ue.substr(0,ue.replace(/[?#].*/,"").lastIndexOf("/")+1):ue="",Ht=function(o){var u=new XMLHttpRequest;return u.open("GET",o,!1),u.send(null),u.responseText},R&&(ce=function(o){var u=new XMLHttpRequest;return u.open("GET",o,!1),u.responseType="arraybuffer",u.send(null),new Uint8Array(u.response)}),Pt=function(o,u,l){var d=new XMLHttpRequest;d.open("GET",o,!0),d.responseType="arraybuffer",d.onload=function(){if(d.status==200||d.status==0&&d.response){u(d.response);return}l()},d.onerror=l,d.send(null)},dv=function(o){document.title=o});var hv=t.print||console.log.bind(console),si=t.printErr||console.warn.bind(console);for(c in a)a.hasOwnProperty(c)&&(t[c]=a[c]);a=null,t.arguments&&(f=t.arguments),t.thisProgram&&(j=t.thisProgram),t.quit&&(s=t.quit);var jd=0,tt=function(o){jd=o},pv=function(){return jd},Rn;t.wasmBinary&&(Rn=t.wasmBinary);var yv=t.noExitRuntime||!0;typeof WebAssembly!="object"&&$t("no native wasm support detected");var W,Lo=!1,Bs;function Td(o,u){o||$t("Assertion failed: "+u)}function mv(o){var u=t["_"+o];return Td(u,"Cannot call unknown function "+o+", make sure it is exported"),u}function _v(o,u,l,d,h){var p={string:function(N){var ie=0;if(N!=null&&N!==0){var me=(N.length<<2)+1;ie=Ho(me),bv(N,ie,me)}return ie},array:function(N){var ie=Ho(N.length);return Od(N,ie),ie}};function y(N){return u==="string"?Is(N):u==="boolean"?Boolean(N):N}var _=mv(o),b=[],g=0;if(d)for(var T=0;T<d.length;T++){var B=p[l[T]];B?(g===0&&(g=I()),b[T]=B(d[T])):b[T]=d[T]}var A=_.apply(null,b);function C(N){return g!==0&&S(g),y(N)}return A=C(A),A}var Bd=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function Id(o,u,l){for(var d=u+l,h=u;o[h]&&!(h>=d);)++h;if(h-u>16&&o.subarray&&Bd)return Bd.decode(o.subarray(u,h));for(var p="";u<h;){var y=o[u++];if(!(y&128)){p+=String.fromCharCode(y);continue}var _=o[u++]&63;if((y&224)==192){p+=String.fromCharCode((y&31)<<6|_);continue}var b=o[u++]&63;if((y&240)==224?y=(y&15)<<12|_<<6|b:y=(y&7)<<18|_<<12|b<<6|o[u++]&63,y<65536)p+=String.fromCharCode(y);else{var g=y-65536;p+=String.fromCharCode(55296|g>>10,56320|g&1023)}}return p}function Is(o,u){return o?Id(Oi,o,u):""}function Sd(o,u,l,d){if(!(d>0))return 0;for(var h=l,p=l+d-1,y=0;y<o.length;++y){var _=o.charCodeAt(y);if(_>=55296&&_<=57343){var b=o.charCodeAt(++y);_=65536+((_&1023)<<10)|b&1023}if(_<=127){if(l>=p)break;u[l++]=_}else if(_<=2047){if(l+1>=p)break;u[l++]=192|_>>6,u[l++]=128|_&63}else if(_<=65535){if(l+2>=p)break;u[l++]=224|_>>12,u[l++]=128|_>>6&63,u[l++]=128|_&63}else{if(l+3>=p)break;u[l++]=240|_>>18,u[l++]=128|_>>12&63,u[l++]=128|_>>6&63,u[l++]=128|_&63}}return u[l]=0,l-h}function bv(o,u,l){return Sd(o,Oi,u,l)}function gv(o){for(var u=0,l=0;l<o.length;++l){var d=o.charCodeAt(l);d>=55296&&d<=57343&&(d=65536+((d&1023)<<10)|o.charCodeAt(++l)&1023),d<=127?++u:d<=2047?u+=2:d<=65535?u+=3:u+=4}return u}function Od(o,u){Gt.set(o,u)}function vv(o,u,l){for(var d=0;d<o.length;++d)Gt[u++>>0]=o.charCodeAt(d);l||(Gt[u>>0]=0)}function wv(o,u){return o%u>0&&(o+=u-o%u),o}var Ad,Gt,Oi,jv,Tv,de,Bv,Iv,Sv;function Dd(o){Ad=o,t.HEAP8=Gt=new Int8Array(o),t.HEAP16=jv=new Int16Array(o),t.HEAP32=de=new Int32Array(o),t.HEAPU8=Oi=new Uint8Array(o),t.HEAPU16=Tv=new Uint16Array(o),t.HEAPU32=Bv=new Uint32Array(o),t.HEAPF32=Iv=new Float32Array(o),t.HEAPF64=Sv=new Float64Array(o)}var hC=t.INITIAL_MEMORY||16777216,H,Fd=[],Rd=[],Ov=[],Ed=[],Av=!1,Dv=!1,Fv=0;function xo(){return yv||Fv>0}function Rv(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Mv(t.preRun.shift());Ss(Fd)}function Ev(){Av=!0,Ss(Rd)}function Cv(){Ss(Ov)}function Uv(){Dv=!0}function kv(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Vv(t.postRun.shift());Ss(Ed)}function Mv(o){Fd.unshift(o)}function Pv(o){Rd.unshift(o)}function Vv(o){Ed.unshift(o)}var ai=0,qo=null,En=null;function Nv(o){ai++,t.monitorRunDependencies&&t.monitorRunDependencies(ai)}function Lv(o){if(ai--,t.monitorRunDependencies&&t.monitorRunDependencies(ai),ai==0&&(qo!==null&&(clearInterval(qo),qo=null),En)){var u=En;En=null,u()}}t.preloadedImages={},t.preloadedAudios={};function $t(o){t.onAbort&&t.onAbort(o),o="Aborted("+o+")",si(o),Lo=!0,Bs=1,o+=". Build with -s ASSERTIONS=1 for more info.";var u=new WebAssembly.RuntimeError(o);throw n(u),u}var xv="data:application/octet-stream;base64,";function Cd(o){return o.startsWith(xv)}var jt;t.locateFile?(jt="duckdb_wasm.wasm",Cd(jt)||(jt=pt(jt))):jt=new URL("duckdb_wasm.wasm",av.url).toString();function Ud(o){try{if(o==jt&&Rn)return new Uint8Array(Rn);if(ce)return ce(o);throw"both async and sync fetching of the wasm failed"}catch(u){$t(u)}}function qv(){return!Rn&&(m||R)&&typeof fetch=="function"?fetch(jt,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+jt+"'";return o.arrayBuffer()}).catch(function(){return Ud(jt)}):Promise.resolve().then(function(){return Ud(jt)})}function Wv(){var o={a:oj};function u(y,_){var b=y.exports;t.asm=b,W=t.asm.Be,Dd(W.buffer),H=t.asm.Ee,Pv(t.asm.Ce),Lv("wasm-instantiate")}Nv("wasm-instantiate");function l(y){u(y.instance)}function d(y){return qv().then(function(_){return WebAssembly.instantiate(_,o)}).then(function(_){return _}).then(y,function(_){si("failed to asynchronously prepare wasm: "+_),$t(_)})}function h(){return!Rn&&typeof WebAssembly.instantiateStreaming=="function"&&!Cd(jt)&&typeof fetch=="function"?fetch(jt,{credentials:"same-origin"}).then(function(y){var _=WebAssembly.instantiateStreaming(y,o);return _.then(l,function(b){return si("wasm streaming compile failed: "+b),si("falling back to ArrayBuffer instantiation"),d(l)})}):d(l)}if(t.instantiateWasm)try{var p=t.instantiateWasm(o,u);return p}catch(y){return si("Module.instantiateWasm callback failed with error: "+y),!1}return h().catch(n),{}}function Ss(o){for(;o.length>0;){var u=o.shift();if(typeof u=="function"){u(t);continue}var l=u.func;typeof l=="number"?u.arg===void 0?H.get(l)():H.get(l)(u.arg):l(u.arg===void 0?null:u.arg)}}function zv(o){if(o instanceof ks||o=="unwind")return Bs;s(1,o)}function Yv(o){return Go(o+16)+16}function oi(o){this.excPtr=o,this.ptr=o-16,this.set_type=function(u){de[this.ptr+4>>2]=u},this.get_type=function(){return de[this.ptr+4>>2]},this.set_destructor=function(u){de[this.ptr+8>>2]=u},this.get_destructor=function(){return de[this.ptr+8>>2]},this.set_refcount=function(u){de[this.ptr>>2]=u},this.set_caught=function(u){u=u?1:0,Gt[this.ptr+12>>0]=u},this.get_caught=function(){return Gt[this.ptr+12>>0]!=0},this.set_rethrown=function(u){u=u?1:0,Gt[this.ptr+13>>0]=u},this.get_rethrown=function(){return Gt[this.ptr+13>>0]!=0},this.init=function(u,l){this.set_type(u),this.set_destructor(l),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var u=de[this.ptr>>2];de[this.ptr>>2]=u+1},this.release_ref=function(){var u=de[this.ptr>>2];return de[this.ptr>>2]=u-1,u===1}}function Ai(o){this.free=function(){$o(this.ptr),this.ptr=0},this.set_base_ptr=function(u){de[this.ptr>>2]=u},this.get_base_ptr=function(){return de[this.ptr>>2]},this.set_adjusted_ptr=function(u){de[this.ptr+4>>2]=u},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return de[this.ptr+4>>2]},this.get_exception_ptr=function(){var u=Pd(this.get_exception_info().get_type());if(u)return de[this.get_base_ptr()>>2];var l=this.get_adjusted_ptr();return l!==0?l:this.get_base_ptr()},this.get_exception_info=function(){return new oi(this.get_base_ptr())},o===void 0?(this.ptr=Go(8),this.set_adjusted_ptr(0)):this.ptr=o}var Os=[];function Hv(o){o.add_ref()}var As=0;function Gv(o){var u=new Ai(o),l=u.get_exception_info();return l.get_caught()||(l.set_caught(!0),As--),l.set_rethrown(!1),Os.push(u),Hv(l),u.get_exception_ptr()}var yr=0;function kd(o){return $o(new oi(o).ptr)}function $v(o){if(o.release_ref()&&!o.get_rethrown()){var u=o.get_destructor();u&&H.get(u)(o.excPtr),kd(o.excPtr)}}function Jv(){O(0);var o=Os.pop();$v(o.get_exception_info()),o.free(),yr=0}function Kv(o){var u=new Ai(o),l=u.get_base_ptr();throw yr||(yr=l),u.free(),l}function Qv(){var o=yr;if(!o)return tt(0),0|0;var u=new oi(o),l=u.get_type(),d=new Ai;if(d.set_base_ptr(o),d.set_adjusted_ptr(o),!l)return tt(0),d.ptr|0;for(var h=Array.prototype.slice.call(arguments),p=0;p<h.length;p++){var y=h[p];if(y===0||y===l)break;if(Un(y,l,d.get_adjusted_ptr_addr()))return tt(y),d.ptr|0}return tt(l),d.ptr|0}function Zv(){var o=yr;if(!o)return tt(0),0|0;var u=new oi(o),l=u.get_type(),d=new Ai;if(d.set_base_ptr(o),d.set_adjusted_ptr(o),!l)return tt(0),d.ptr|0;for(var h=Array.prototype.slice.call(arguments),p=0;p<h.length;p++){var y=h[p];if(y===0||y===l)break;if(Un(y,l,d.get_adjusted_ptr_addr()))return tt(y),d.ptr|0}return tt(l),d.ptr|0}function Xv(){var o=yr;if(!o)return tt(0),0|0;var u=new oi(o),l=u.get_type(),d=new Ai;if(d.set_base_ptr(o),d.set_adjusted_ptr(o),!l)return tt(0),d.ptr|0;for(var h=Array.prototype.slice.call(arguments),p=0;p<h.length;p++){var y=h[p];if(y===0||y===l)break;if(Un(y,l,d.get_adjusted_ptr_addr()))return tt(y),d.ptr|0}return tt(l),d.ptr|0}function ew(){var o=yr;if(!o)return tt(0),0|0;var u=new oi(o),l=u.get_type(),d=new Ai;if(d.set_base_ptr(o),d.set_adjusted_ptr(o),!l)return tt(0),d.ptr|0;for(var h=Array.prototype.slice.call(arguments),p=0;p<h.length;p++){var y=h[p];if(y===0||y===l)break;if(Un(y,l,d.get_adjusted_ptr_addr()))return tt(y),d.ptr|0}return tt(l),d.ptr|0}function tw(){var o=Os.pop();o||$t("no exception to throw");var u=o.get_exception_info(),l=o.get_base_ptr();throw u.get_rethrown()?o.free():(Os.push(o),u.set_rethrown(!0),u.set_caught(!1),As++),yr=l,l}function rw(o,u,l){var d=new oi(o);throw d.init(u,l),yr=o,As++,o}function iw(){return As}var Ke={mappings:{},buffers:[null,[],[]],printChar:function(o,u){var l=Ke.buffers[o];u===0||u===10?((o===1?hv:si)(Id(l,0)),l.length=0):l.push(u)},varargs:void 0,get:function(){Ke.varargs+=4;var o=de[Ke.varargs-4>>2];return o},getStr:function(o){var u=Is(o);return u},get64:function(o,u){return o}};function nw(o,u){return o=Ke.getStr(o),Ke.doAccess(o,u)}function sw(o){return de[Md()>>2]=o,o}function aw(o,u,l){return Ke.varargs=l,0}function ow(o,u){}function uw(o,u,l,d){}function cw(o,u,l){}function lw(){return 42}function dw(o,u,l){return Ke.varargs=l,0}function fw(o,u,l){return 0}function hw(o,u){return o=Ke.getStr(o),Ke.doMkdir(o,u)}function pw(o,u,l){Ke.varargs=l}function yw(o,u){}function mw(o){}function _w(o,u){}function bw(o){}function gw(o,u){$t("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function vw(o,u){$t("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function ww(){$t("")}var Wo;$?Wo=function(){var o=process.hrtime();return o[0]*1e3+o[1]/1e6}:Wo=function(){return performance.now()};var jw=!0;function Tw(o,u){var l;if(o===0)l=Date.now();else if((o===1||o===4)&&jw)l=Wo();else return sw(28),-1;return de[u>>2]=l/1e3|0,de[u+4>>2]=l%1e3*1e3*1e3|0,0}function Bw(o,u){return globalThis.DUCKDB_RUNTIME.createDirectory(t,o,u)}function Iw(o,u){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,o,u)}function Sw(o,u){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,o,u)}function Ow(o,u){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,o,u)}function Aw(o){return globalThis.DUCKDB_RUNTIME.closeFile(t,o)}function Dw(o,u){return globalThis.DUCKDB_RUNTIME.checkFile(t,o,u)}function Fw(o){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,o)}function Rw(o){return globalThis.DUCKDB_RUNTIME.getFileSize(t,o)}function Ew(o,u,l,d){return globalThis.DUCKDB_RUNTIME.moveFile(t,o,u,l,d)}function Cw(o){return globalThis.DUCKDB_RUNTIME.openFile(t,o)}function Uw(o,u,l,d){return globalThis.DUCKDB_RUNTIME.readFile(t,o,u,l,d)}function kw(o,u){return globalThis.DUCKDB_RUNTIME.truncateFile(t,o,u)}function Mw(o,u,l,d){return globalThis.DUCKDB_RUNTIME.writeFile(t,o,u,l,d)}function Pw(o,u){return globalThis.DUCKDB_RUNTIME.glob(t,o,u)}function Vw(o){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,o)}function Nw(){return 2147483648}function Lw(o,u,l){Oi.copyWithin(o,u,u+l)}function xw(o){try{return W.grow(o-Ad.byteLength+65535>>>16),Dd(W.buffer),1}catch{}}function qw(o){var u=Oi.length;o=o>>>0;var l=2147483648;if(o>l)return!1;for(var d=1;d<=4;d*=2){var h=u*(1+.2/d);h=Math.min(h,o+100663296);var p=Math.min(l,wv(Math.max(o,h),65536)),y=xw(p);if(y)return!0}return!1}var zo={};function Ww(){return j||"./this.program"}function Cn(){if(!Cn.strings){var o=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",u={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:o,_:Ww()};for(var l in zo)zo[l]===void 0?delete u[l]:u[l]=zo[l];var d=[];for(var l in u)d.push(l+"="+u[l]);Cn.strings=d}return Cn.strings}function zw(o,u){var l=0;return Cn().forEach(function(d,h){var p=u+l;de[o+h*4>>2]=p,vv(d,p),l+=d.length+1}),0}function Yw(o,u){var l=Cn();de[o>>2]=l.length;var d=0;return l.forEach(function(h){d+=h.length+1}),de[u>>2]=d,0}function Hw(o){return 0}function Gw(o,u){var l=o==1||o==2?2:$t();return Gt[u>>0]=l,0}function $w(o,u,l,d,h,p){var y=Ke.getStreamFromFD(o),_=Ke.doReadv(y,u,l,d);return de[p>>2]=_,0}function Jw(o,u,l,d,h,p){var y=Ke.getStreamFromFD(o),_=Ke.doWritev(y,u,l,d);return de[p>>2]=_,0}function Kw(o,u,l,d){var h=Ke.getStreamFromFD(o),p=Ke.doReadv(h,u,l);return de[d>>2]=p,0}function Qw(o,u,l,d,h){}function Zw(o){var u=Ke.getStreamFromFD(o);return u.stream_ops&&u.stream_ops.fsync?-u.stream_ops.fsync(u):0}function Xw(o,u,l,d){for(var h=0,p=0;p<l;p++){for(var y=de[u+p*8>>2],_=de[u+(p*8+4)>>2],b=0;b<_;b++)Ke.printChar(o,Oi[y+b]);h+=_}return de[d>>2]=h,0}function ej(){return pv()}function tj(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var o=new Uint8Array(1);return function(){return crypto.getRandomValues(o),o[0]}}else if($)try{var u=nv();return function(){return u.randomBytes(1)[0]}}catch{}return function(){$t("randomDevice")}}function Ds(o,u){Ds.randomDevice||(Ds.randomDevice=tj());for(var l=0;l<u;l++)Gt[o+l>>0]=Ds.randomDevice();return 0}function rj(o){return o}function ij(o){tt(o)}function Fs(o){return o%4==0&&(o%100!=0||o%400==0)}function Yo(o,u){for(var l=0,d=0;d<=u;l+=o[d++]);return l}var Rs=[31,29,31,30,31,30,31,31,30,31,30,31],Es=[31,28,31,30,31,30,31,31,30,31,30,31];function Cs(o,u){for(var l=new Date(o.getTime());u>0;){var d=Fs(l.getFullYear()),h=l.getMonth(),p=(d?Rs:Es)[h];if(u>p-l.getDate())u-=p-l.getDate()+1,l.setDate(1),h<11?l.setMonth(h+1):(l.setMonth(0),l.setFullYear(l.getFullYear()+1));else return l.setDate(l.getDate()+u),l}return l}function nj(o,u,l,d){var h=de[d+40>>2],p={tm_sec:de[d>>2],tm_min:de[d+4>>2],tm_hour:de[d+8>>2],tm_mday:de[d+12>>2],tm_mon:de[d+16>>2],tm_year:de[d+20>>2],tm_wday:de[d+24>>2],tm_yday:de[d+28>>2],tm_isdst:de[d+32>>2],tm_gmtoff:de[d+36>>2],tm_zone:h?Is(h):""},y=Is(l),_={"%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 b in _)y=y.replace(new RegExp(b,"g"),_[b]);var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],T=["January","February","March","April","May","June","July","August","September","October","November","December"];function B(M,G,Re){for(var be=typeof M=="number"?M.toString():M||"";be.length<G;)be=Re[0]+be;return be}function A(M,G){return B(M,G,"0")}function C(M,G){function Re(lt){return lt<0?-1:lt>0?1:0}var be;return(be=Re(M.getFullYear()-G.getFullYear()))===0&&(be=Re(M.getMonth()-G.getMonth()))===0&&(be=Re(M.getDate()-G.getDate())),be}function N(M){switch(M.getDay()){case 0:return new Date(M.getFullYear()-1,11,29);case 1:return M;case 2:return new Date(M.getFullYear(),0,3);case 3:return new Date(M.getFullYear(),0,2);case 4:return new Date(M.getFullYear(),0,1);case 5:return new Date(M.getFullYear()-1,11,31);case 6:return new Date(M.getFullYear()-1,11,30)}}function ie(M){var G=Cs(new Date(M.tm_year+1900,0,1),M.tm_yday),Re=new Date(G.getFullYear(),0,4),be=new Date(G.getFullYear()+1,0,4),lt=N(Re),Or=N(be);return C(lt,G)<=0?C(Or,G)<=0?G.getFullYear()+1:G.getFullYear():G.getFullYear()-1}var me={"%a":function(M){return g[M.tm_wday].substring(0,3)},"%A":function(M){return g[M.tm_wday]},"%b":function(M){return T[M.tm_mon].substring(0,3)},"%B":function(M){return T[M.tm_mon]},"%C":function(M){var G=M.tm_year+1900;return A(G/100|0,2)},"%d":function(M){return A(M.tm_mday,2)},"%e":function(M){return B(M.tm_mday,2," ")},"%g":function(M){return ie(M).toString().substring(2)},"%G":function(M){return ie(M)},"%H":function(M){return A(M.tm_hour,2)},"%I":function(M){var G=M.tm_hour;return G==0?G=12:G>12&&(G-=12),A(G,2)},"%j":function(M){return A(M.tm_mday+Yo(Fs(M.tm_year+1900)?Rs:Es,M.tm_mon-1),3)},"%m":function(M){return A(M.tm_mon+1,2)},"%M":function(M){return A(M.tm_min,2)},"%n":function(){return`
|
|
18
|
-
`},"%p":function(M){return M.tm_hour>=0&&M.tm_hour<12?"AM":"PM"},"%S":function(M){return A(M.tm_sec,2)},"%t":function(){return" "},"%u":function(M){return M.tm_wday||7},"%U":function(M){var G=new Date(M.tm_year+1900,0,1),Re=G.getDay()===0?G:Cs(G,7-G.getDay()),be=new Date(M.tm_year+1900,M.tm_mon,M.tm_mday);if(C(Re,be)<0){var lt=Yo(Fs(be.getFullYear())?Rs:Es,be.getMonth()-1)-31,Or=31-Re.getDate(),ui=Or+lt+be.getDate();return A(Math.ceil(ui/7),2)}return C(Re,G)===0?"01":"00"},"%V":function(M){var G=new Date(M.tm_year+1900,0,4),Re=new Date(M.tm_year+1901,0,4),be=N(G),lt=N(Re),Or=Cs(new Date(M.tm_year+1900,0,1),M.tm_yday);if(C(Or,be)<0)return"53";if(C(lt,Or)<=0)return"01";var ui;return be.getFullYear()<M.tm_year+1900?ui=M.tm_yday+32-be.getDate():ui=M.tm_yday+1-be.getDate(),A(Math.ceil(ui/7),2)},"%w":function(M){return M.tm_wday},"%W":function(M){var G=new Date(M.tm_year,0,1),Re=G.getDay()===1?G:Cs(G,G.getDay()===0?1:7-G.getDay()+1),be=new Date(M.tm_year+1900,M.tm_mon,M.tm_mday);if(C(Re,be)<0){var lt=Yo(Fs(be.getFullYear())?Rs:Es,be.getMonth()-1)-31,Or=31-Re.getDate(),ui=Or+lt+be.getDate();return A(Math.ceil(ui/7),2)}return C(Re,G)===0?"01":"00"},"%y":function(M){return(M.tm_year+1900).toString().substring(2)},"%Y":function(M){return M.tm_year+1900},"%z":function(M){var G=M.tm_gmtoff,Re=G>=0;return G=Math.abs(G)/60,G=G/60*100+G%60,(Re?"+":"-")+String("0000"+G).slice(-4)},"%Z":function(M){return M.tm_zone},"%%":function(){return"%"}};for(var b in me)y.includes(b)&&(y=y.replace(new RegExp(b,"g"),me[b](p)));var Be=aj(y,!1);return Be.length>u?0:(Od(Be,o),Be.length-1)}function sj(o,u,l,d){return nj(o,u,l,d)}function aj(o,u,l){var d=l>0?l:gv(o)+1,h=new Array(d),p=Sd(o,h,0,h.length);return u&&(h.length=p),h}var oj={i:Yv,A:Gv,G:Jv,b:Qv,n:Zv,J:Xv,ja:ew,j:kd,sa:tw,u:rw,E:iw,c:Kv,ze:nw,ea:aw,Oa:ow,Na:uw,Pa:cw,ma:lw,Ra:dw,Ma:fw,Qa:hw,pa:pw,xe:yw,la:mw,oa:_w,na:bw,wa:gw,va:vw,fa:ww,ka:Tw,Ea:Bw,Fa:Iw,Ca:Sw,Da:Ow,Wa:Aw,Aa:Dw,Ha:Fw,Ja:Rw,Ba:Ew,Ka:Cw,da:Uw,Ga:kw,Ia:Mw,za:Pw,ve:Vw,xb:Nw,Xa:Lw,Pc:qw,Ta:zw,Ua:Yw,Y:Hw,Va:Gw,je:$w,qb:Jw,ra:Kw,qe:Qw,ye:Zw,ga:Xw,a:ej,La:Ds,Z:kT,K:hT,R:Zj,bd:nB,_:UT,M:CT,ta:Qj,cd:iB,t:rT,U:LT,xa:mT,W:bT,V:NT,ya:yT,e:zj,$:RT,B:gT,hc:KB,d:Yj,ca:TT,ua:MT,h:Gj,fc:ZB,l:Kj,qa:dT,o:$j,z:aT,w:iT,Q:_T,x:nT,v:oT,p:DT,L:BT,I:IT,Ac:EB,Hc:IB,Kc:jB,Rc:mB,Bc:RB,gc:QB,ad:sB,Ic:BB,Sc:yB,oe:HT,Hd:S0,cc:tI,ne:GT,pc:WB,Pb:mI,Za:nS,Ya:sS,Ud:h0,Gd:O0,zb:EI,Xb:uI,Td:p0,jd:K0,qc:qB,ec:XB,be:n0,Ld:j0,fd:eB,dc:eI,Vb:lI,bc:rI,mb:WI,Md:w0,ge:XT,Jd:B0,Ob:_I,hb:$I,_a:iS,Fb:SI,me:$T,Zb:aI,eb:QI,wb:UI,Cd:R0,ib:GI,Eb:OI,Kd:T0,_b:sI,Nb:bI,ac:iI,$b:nI,Gc:SB,Oc:bB,yc:UB,$d:a0,Xd:l0,Tc:pB,Wd:d0,ke:KT,Xc:lB,Wc:dB,se:WT,re:zT,Fd:A0,ue:xT,md:G0,Vc:fB,Cc:FB,kd:J0,_c:oB,mc:HB,vb:kI,gd:X0,$c:aB,lc:GB,id:Q0,Zc:uB,Bb:FI,Qb:yI,xc:kB,Sb:hI,ed:tB,vd:V0,ud:N0,sd:x0,td:L0,vc:PB,Cb:DI,Jb:jI,$a:rS,Mc:vB,ob:xI,Hb:BI,Yc:cB,tc:NB,s:qj,k:Hj,C:jT,aa:OT,sb:VI,D:wT,ba:ST,tb:PI,f:Wj,T:eT,O:vT,kc:Xj,g:tT,m:Jj,Ae:PT,q:pT,r:lT,ha:ET,y:sT,P:fT,N:FT,S:uT,we:VT,ia:AT,X:cT,ld:$0,rb:NI,Dc:DB,zc:CB,Rd:m0,Qc:_B,ic:JB,lb:zI,Id:I0,hd:Z0,yb:CI,fb:KI,Ec:AB,Fc:OB,uc:VB,Sd:y0,nc:YB,jc:$B,wd:P0,de:r0,Uc:hB,dd:rB,Wb:cI,pd:z0,Nd:v0,Od:g0,jb:HI,_d:o0,Pd:b0,oc:zB,nd:H0,Ad:C0,ce:i0,gb:JI,ie:QT,le:JT,pe:YT,zd:U0,Ab:RI,Qd:_0,rd:q0,qd:W0,Kb:wI,kb:YI,Rb:pI,Bd:E0,ab:tS,od:Y0,nb:qI,te:qT,fe:e0,Lb:vI,xd:M0,Zd:u0,Jc:TB,ee:t0,Yd:c0,Mb:gI,Ed:D0,Dd:F0,Ib:TI,ub:MI,Gb:II,Nc:gB,ae:s0,db:ZI,yd:k0,pb:LI,Vd:f0,rc:xB,bb:eS,cb:XI,Lc:wB,he:ZT,Ub:dI,sc:LB,wc:MB,Db:AI,Yb:oI,Tb:fI,H:rj,F:ij,Sa:sj},pC=Wv(),uj=t.___wasm_call_ctors=function(){return(uj=t.___wasm_call_ctors=t.asm.Ce).apply(null,arguments)},cj=t._main=function(){return(cj=t._main=t.asm.De).apply(null,arguments)},lj=t._duckdb_web_fs_glob_add_path=function(){return(lj=t._duckdb_web_fs_glob_add_path=t.asm.Fe).apply(null,arguments)},dj=t._duckdb_web_clear_response=function(){return(dj=t._duckdb_web_clear_response=t.asm.Ge).apply(null,arguments)},fj=t._duckdb_web_fail_with=function(){return(fj=t._duckdb_web_fail_with=t.asm.He).apply(null,arguments)},hj=t._duckdb_web_reset=function(){return(hj=t._duckdb_web_reset=t.asm.Ie).apply(null,arguments)},pj=t._duckdb_web_connect=function(){return(pj=t._duckdb_web_connect=t.asm.Je).apply(null,arguments)},yj=t._duckdb_web_disconnect=function(){return(yj=t._duckdb_web_disconnect=t.asm.Ke).apply(null,arguments)},mj=t._duckdb_web_flush_files=function(){return(mj=t._duckdb_web_flush_files=t.asm.Le).apply(null,arguments)},_j=t._duckdb_web_flush_file=function(){return(_j=t._duckdb_web_flush_file=t.asm.Me).apply(null,arguments)},bj=t._duckdb_web_open=function(){return(bj=t._duckdb_web_open=t.asm.Ne).apply(null,arguments)},gj=t._duckdb_web_collect_file_stats=function(){return(gj=t._duckdb_web_collect_file_stats=t.asm.Oe).apply(null,arguments)},vj=t._duckdb_web_export_file_stats=function(){return(vj=t._duckdb_web_export_file_stats=t.asm.Pe).apply(null,arguments)},wj=t._duckdb_web_fs_drop_file=function(){return(wj=t._duckdb_web_fs_drop_file=t.asm.Qe).apply(null,arguments)},jj=t._duckdb_web_fs_drop_files=function(){return(jj=t._duckdb_web_fs_drop_files=t.asm.Re).apply(null,arguments)},Tj=t._duckdb_web_fs_get_file_info=function(){return(Tj=t._duckdb_web_fs_get_file_info=t.asm.Se).apply(null,arguments)},Bj=t._duckdb_web_fs_set_file_descriptor=function(){return(Bj=t._duckdb_web_fs_set_file_descriptor=t.asm.Te).apply(null,arguments)},Ij=t._duckdb_web_fs_register_file_url=function(){return(Ij=t._duckdb_web_fs_register_file_url=t.asm.Ue).apply(null,arguments)},Sj=t._duckdb_web_fs_register_file_buffer=function(){return(Sj=t._duckdb_web_fs_register_file_buffer=t.asm.Ve).apply(null,arguments)},Oj=t._duckdb_web_copy_file_to_buffer=function(){return(Oj=t._duckdb_web_copy_file_to_buffer=t.asm.We).apply(null,arguments)},Aj=t._duckdb_web_copy_file_to_path=function(){return(Aj=t._duckdb_web_copy_file_to_path=t.asm.Xe).apply(null,arguments)},Dj=t._duckdb_web_get_version=function(){return(Dj=t._duckdb_web_get_version=t.asm.Ye).apply(null,arguments)},Fj=t._duckdb_web_get_feature_flags=function(){return(Fj=t._duckdb_web_get_feature_flags=t.asm.Ze).apply(null,arguments)},Rj=t._duckdb_web_tokenize=function(){return(Rj=t._duckdb_web_tokenize=t.asm._e).apply(null,arguments)},Ej=t._duckdb_web_prepared_create=function(){return(Ej=t._duckdb_web_prepared_create=t.asm.$e).apply(null,arguments)},Cj=t._duckdb_web_prepared_close=function(){return(Cj=t._duckdb_web_prepared_close=t.asm.af).apply(null,arguments)},Uj=t._duckdb_web_prepared_run=function(){return(Uj=t._duckdb_web_prepared_run=t.asm.bf).apply(null,arguments)},kj=t._duckdb_web_prepared_send=function(){return(kj=t._duckdb_web_prepared_send=t.asm.cf).apply(null,arguments)},Mj=t._duckdb_web_query_run=function(){return(Mj=t._duckdb_web_query_run=t.asm.df).apply(null,arguments)},Pj=t._duckdb_web_query_send=function(){return(Pj=t._duckdb_web_query_send=t.asm.ef).apply(null,arguments)},Vj=t._duckdb_web_query_fetch_results=function(){return(Vj=t._duckdb_web_query_fetch_results=t.asm.ff).apply(null,arguments)},Nj=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(Nj=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.gf).apply(null,arguments)},Lj=t._duckdb_web_insert_csv_from_path=function(){return(Lj=t._duckdb_web_insert_csv_from_path=t.asm.hf).apply(null,arguments)},xj=t._duckdb_web_insert_json_from_path=function(){return(xj=t._duckdb_web_insert_json_from_path=t.asm.jf).apply(null,arguments)},Md=t.___errno_location=function(){return(Md=t.___errno_location=t.asm.kf).apply(null,arguments)},I=t.stackSave=function(){return(I=t.stackSave=t.asm.lf).apply(null,arguments)},S=t.stackRestore=function(){return(S=t.stackRestore=t.asm.mf).apply(null,arguments)},Ho=t.stackAlloc=function(){return(Ho=t.stackAlloc=t.asm.nf).apply(null,arguments)},O=t._setThrew=function(){return(O=t._setThrew=t.asm.of).apply(null,arguments)},Un=t.___cxa_can_catch=function(){return(Un=t.___cxa_can_catch=t.asm.pf).apply(null,arguments)},Pd=t.___cxa_is_pointer_type=function(){return(Pd=t.___cxa_is_pointer_type=t.asm.qf).apply(null,arguments)},Go=t._malloc=function(){return(Go=t._malloc=t.asm.rf).apply(null,arguments)},$o=t._free=function(){return($o=t._free=t.asm.sf).apply(null,arguments)},Vd=t.dynCall_jiji=function(){return(Vd=t.dynCall_jiji=t.asm.tf).apply(null,arguments)},Nd=t.dynCall_jiiii=function(){return(Nd=t.dynCall_jiiii=t.asm.uf).apply(null,arguments)},Ld=t.dynCall_iiiiij=function(){return(Ld=t.dynCall_iiiiij=t.asm.vf).apply(null,arguments)},xd=t.dynCall_iiiiijj=function(){return(xd=t.dynCall_iiiiijj=t.asm.wf).apply(null,arguments)},qd=t.dynCall_viijii=function(){return(qd=t.dynCall_viijii=t.asm.xf).apply(null,arguments)},Wd=t.dynCall_j=function(){return(Wd=t.dynCall_j=t.asm.yf).apply(null,arguments)},zd=t.dynCall_ji=function(){return(zd=t.dynCall_ji=t.asm.zf).apply(null,arguments)},Yd=t.dynCall_iij=function(){return(Yd=t.dynCall_iij=t.asm.Af).apply(null,arguments)},Hd=t.dynCall_viij=function(){return(Hd=t.dynCall_viij=t.asm.Bf).apply(null,arguments)},Gd=t.dynCall_viijji=function(){return(Gd=t.dynCall_viijji=t.asm.Cf).apply(null,arguments)},$d=t.dynCall_viijj=function(){return($d=t.dynCall_viijj=t.asm.Df).apply(null,arguments)},Jd=t.dynCall_viiijj=function(){return(Jd=t.dynCall_viiijj=t.asm.Ef).apply(null,arguments)},Kd=t.dynCall_viiji=function(){return(Kd=t.dynCall_viiji=t.asm.Ff).apply(null,arguments)},Qd=t.dynCall_vijjj=function(){return(Qd=t.dynCall_vijjj=t.asm.Gf).apply(null,arguments)},Zd=t.dynCall_iiijj=function(){return(Zd=t.dynCall_iiijj=t.asm.Hf).apply(null,arguments)},Xd=t.dynCall_viiij=function(){return(Xd=t.dynCall_viiij=t.asm.If).apply(null,arguments)},ef=t.dynCall_viijij=function(){return(ef=t.dynCall_viijij=t.asm.Jf).apply(null,arguments)},tf=t.dynCall_viiijjj=function(){return(tf=t.dynCall_viiijjj=t.asm.Kf).apply(null,arguments)},rf=t.dynCall_iiij=function(){return(rf=t.dynCall_iiij=t.asm.Lf).apply(null,arguments)},nf=t.dynCall_vijijj=function(){return(nf=t.dynCall_vijijj=t.asm.Mf).apply(null,arguments)},sf=t.dynCall_iji=function(){return(sf=t.dynCall_iji=t.asm.Nf).apply(null,arguments)},af=t.dynCall_vij=function(){return(af=t.dynCall_vij=t.asm.Of).apply(null,arguments)},of=t.dynCall_jii=function(){return(of=t.dynCall_jii=t.asm.Pf).apply(null,arguments)},uf=t.dynCall_vijj=function(){return(uf=t.dynCall_vijj=t.asm.Qf).apply(null,arguments)},cf=t.dynCall_viji=function(){return(cf=t.dynCall_viji=t.asm.Rf).apply(null,arguments)},lf=t.dynCall_iiiijj=function(){return(lf=t.dynCall_iiiijj=t.asm.Sf).apply(null,arguments)},df=t.dynCall_viijiiiii=function(){return(df=t.dynCall_viijiiiii=t.asm.Tf).apply(null,arguments)},ff=t.dynCall_viiiiijiiii=function(){return(ff=t.dynCall_viiiiijiiii=t.asm.Uf).apply(null,arguments)},hf=t.dynCall_viiiijj=function(){return(hf=t.dynCall_viiiijj=t.asm.Vf).apply(null,arguments)},pf=t.dynCall_viiiij=function(){return(pf=t.dynCall_viiiij=t.asm.Wf).apply(null,arguments)},yf=t.dynCall_iiiij=function(){return(yf=t.dynCall_iiiij=t.asm.Xf).apply(null,arguments)},mf=t.dynCall_iiiiiji=function(){return(mf=t.dynCall_iiiiiji=t.asm.Yf).apply(null,arguments)},_f=t.dynCall_iiiji=function(){return(_f=t.dynCall_iiiji=t.asm.Zf).apply(null,arguments)},bf=t.dynCall_iiiiji=function(){return(bf=t.dynCall_iiiiji=t.asm._f).apply(null,arguments)},gf=t.dynCall_jiii=function(){return(gf=t.dynCall_jiii=t.asm.$f).apply(null,arguments)},vf=t.dynCall_jij=function(){return(vf=t.dynCall_jij=t.asm.ag).apply(null,arguments)},wf=t.dynCall_jiijiiiii=function(){return(wf=t.dynCall_jiijiiiii=t.asm.bg).apply(null,arguments)},jf=t.dynCall_jiijiijiii=function(){return(jf=t.dynCall_jiijiijiii=t.asm.cg).apply(null,arguments)},Tf=t.dynCall_jiijjiii=function(){return(Tf=t.dynCall_jiijjiii=t.asm.dg).apply(null,arguments)},Bf=t.dynCall_jiijijii=function(){return(Bf=t.dynCall_jiijijii=t.asm.eg).apply(null,arguments)},If=t.dynCall_viiijjij=function(){return(If=t.dynCall_viiijjij=t.asm.fg).apply(null,arguments)},Sf=t.dynCall_viijiii=function(){return(Sf=t.dynCall_viijiii=t.asm.gg).apply(null,arguments)},Of=t.dynCall_vijijjiij=function(){return(Of=t.dynCall_vijijjiij=t.asm.hg).apply(null,arguments)},Af=t.dynCall_viijjij=function(){return(Af=t.dynCall_viijjij=t.asm.ig).apply(null,arguments)},Df=t.dynCall_viiijjiij=function(){return(Df=t.dynCall_viiijjiij=t.asm.jg).apply(null,arguments)},Ff=t.dynCall_viiiijjjj=function(){return(Ff=t.dynCall_viiiijjjj=t.asm.kg).apply(null,arguments)},Rf=t.dynCall_viijiiiiij=function(){return(Rf=t.dynCall_viijiiiiij=t.asm.lg).apply(null,arguments)},Ef=t.dynCall_viijiiiijj=function(){return(Ef=t.dynCall_viijiiiijj=t.asm.mg).apply(null,arguments)},Cf=t.dynCall_viiijiiiijjj=function(){return(Cf=t.dynCall_viiijiiiijjj=t.asm.ng).apply(null,arguments)},Uf=t.dynCall_viijijiiiijjj=function(){return(Uf=t.dynCall_viijijiiiijjj=t.asm.og).apply(null,arguments)},kf=t.dynCall_jiiijii=function(){return(kf=t.dynCall_jiiijii=t.asm.pg).apply(null,arguments)},Mf=t.dynCall_iiijii=function(){return(Mf=t.dynCall_iiijii=t.asm.qg).apply(null,arguments)},Pf=t.dynCall_jiijii=function(){return(Pf=t.dynCall_jiijii=t.asm.rg).apply(null,arguments)},Vf=t.dynCall_viiijii=function(){return(Vf=t.dynCall_viiijii=t.asm.sg).apply(null,arguments)},Nf=t.dynCall_fiijii=function(){return(Nf=t.dynCall_fiijii=t.asm.tg).apply(null,arguments)},Lf=t.dynCall_diijii=function(){return(Lf=t.dynCall_diijii=t.asm.ug).apply(null,arguments)},xf=t.dynCall_iiiiiiijii=function(){return(xf=t.dynCall_iiiiiiijii=t.asm.vg).apply(null,arguments)},qf=t.dynCall_viiiiji=function(){return(qf=t.dynCall_viiiiji=t.asm.wg).apply(null,arguments)},Wf=t.dynCall_jiiiijii=function(){return(Wf=t.dynCall_jiiiijii=t.asm.xg).apply(null,arguments)},zf=t.dynCall_jiiiijiiiiiiii=function(){return(zf=t.dynCall_jiiiijiiiiiiii=t.asm.yg).apply(null,arguments)},Yf=t.dynCall_jiiiiijiiii=function(){return(Yf=t.dynCall_jiiiiijiiii=t.asm.zg).apply(null,arguments)},Hf=t.dynCall_jiiijiii=function(){return(Hf=t.dynCall_jiiijiii=t.asm.Ag).apply(null,arguments)},Gf=t.dynCall_jj=function(){return(Gf=t.dynCall_jj=t.asm.Bg).apply(null,arguments)},$f=t.dynCall_jd=function(){return($f=t.dynCall_jd=t.asm.Cg).apply(null,arguments)},Jf=t.dynCall_jf=function(){return(Jf=t.dynCall_jf=t.asm.Dg).apply(null,arguments)},Kf=t.dynCall_iijjjj=function(){return(Kf=t.dynCall_iijjjj=t.asm.Eg).apply(null,arguments)},Qf=t.dynCall_iiijji=function(){return(Qf=t.dynCall_iiijji=t.asm.Fg).apply(null,arguments)},Zf=t.dynCall_vijijiiiijjj=function(){return(Zf=t.dynCall_vijijiiiijjj=t.asm.Gg).apply(null,arguments)},Xf=t.dynCall_viiiiiij=function(){return(Xf=t.dynCall_viiiiiij=t.asm.Hg).apply(null,arguments)},eh=t.dynCall_iiiiiiji=function(){return(eh=t.dynCall_iiiiiiji=t.asm.Ig).apply(null,arguments)},th=t.dynCall_iiiiiiiiji=function(){return(th=t.dynCall_iiiiiiiiji=t.asm.Jg).apply(null,arguments)},rh=t.dynCall_viiiiijj=function(){return(rh=t.dynCall_viiiiijj=t.asm.Kg).apply(null,arguments)},ih=t.dynCall_vijiii=function(){return(ih=t.dynCall_vijiii=t.asm.Lg).apply(null,arguments)},nh=t.dynCall_jijijjij=function(){return(nh=t.dynCall_jijijjij=t.asm.Mg).apply(null,arguments)},sh=t.dynCall_vijjij=function(){return(sh=t.dynCall_vijjij=t.asm.Ng).apply(null,arguments)},ah=t.dynCall_viijjj=function(){return(ah=t.dynCall_viijjj=t.asm.Og).apply(null,arguments)},oh=t.dynCall_viijjji=function(){return(oh=t.dynCall_viijjji=t.asm.Pg).apply(null,arguments)},uh=t.dynCall_iijjijj=function(){return(uh=t.dynCall_iijjijj=t.asm.Qg).apply(null,arguments)},ch=t.dynCall_viiiijiiiii=function(){return(ch=t.dynCall_viiiijiiiii=t.asm.Rg).apply(null,arguments)},lh=t.dynCall_viiiijiiii=function(){return(lh=t.dynCall_viiiijiiii=t.asm.Sg).apply(null,arguments)},dh=t.dynCall_iiiiiij=function(){return(dh=t.dynCall_iiiiiij=t.asm.Tg).apply(null,arguments)},fh=t.dynCall_iiiiiiiiiiji=function(){return(fh=t.dynCall_iiiiiiiiiiji=t.asm.Ug).apply(null,arguments)},hh=t.dynCall_viiiiiji=function(){return(hh=t.dynCall_viiiiiji=t.asm.Vg).apply(null,arguments)},ph=t.dynCall_jiiiiiii=function(){return(ph=t.dynCall_jiiiiiii=t.asm.Wg).apply(null,arguments)},yh=t.dynCall_viiiji=function(){return(yh=t.dynCall_viiiji=t.asm.Xg).apply(null,arguments)},mh=t.dynCall_jijj=function(){return(mh=t.dynCall_jijj=t.asm.Yg).apply(null,arguments)},_h=t.dynCall_viiiijiiiiiiii=function(){return(_h=t.dynCall_viiiijiiiiiiii=t.asm.Zg).apply(null,arguments)},bh=t.dynCall_ij=function(){return(bh=t.dynCall_ij=t.asm._g).apply(null,arguments)},gh=t.dynCall_jjj=function(){return(gh=t.dynCall_jjj=t.asm.$g).apply(null,arguments)},vh=t.dynCall_vjii=function(){return(vh=t.dynCall_vjii=t.asm.ah).apply(null,arguments)},wh=t.dynCall_vjiiii=function(){return(wh=t.dynCall_vjiiii=t.asm.bh).apply(null,arguments)},jh=t.dynCall_viiiiijiii=function(){return(jh=t.dynCall_viiiiijiii=t.asm.ch).apply(null,arguments)},Th=t.dynCall_vijji=function(){return(Th=t.dynCall_vijji=t.asm.dh).apply(null,arguments)},Bh=t.dynCall_jiij=function(){return(Bh=t.dynCall_jiij=t.asm.eh).apply(null,arguments)},Ih=t.dynCall_iiiijjii=function(){return(Ih=t.dynCall_iiiijjii=t.asm.fh).apply(null,arguments)},Sh=t.dynCall_iiiiijji=function(){return(Sh=t.dynCall_iiiiijji=t.asm.gh).apply(null,arguments)},Oh=t.dynCall_viiijjii=function(){return(Oh=t.dynCall_viiijjii=t.asm.hh).apply(null,arguments)},Ah=t.dynCall_viiiijji=function(){return(Ah=t.dynCall_viiiijji=t.asm.ih).apply(null,arguments)},Dh=t.dynCall_viiiijjii=function(){return(Dh=t.dynCall_viiiijjii=t.asm.jh).apply(null,arguments)},Fh=t.dynCall_viiiiijji=function(){return(Fh=t.dynCall_viiiiijji=t.asm.kh).apply(null,arguments)},Rh=t.dynCall_jiiiij=function(){return(Rh=t.dynCall_jiiiij=t.asm.lh).apply(null,arguments)},Eh=t.dynCall_iidj=function(){return(Eh=t.dynCall_iidj=t.asm.mh).apply(null,arguments)},Ch=t.dynCall_ijji=function(){return(Ch=t.dynCall_ijji=t.asm.nh).apply(null,arguments)},Uh=t.dynCall_iiiiiiiij=function(){return(Uh=t.dynCall_iiiiiiiij=t.asm.oh).apply(null,arguments)},kh=t.dynCall_iiiiiiij=function(){return(kh=t.dynCall_iiiiiiij=t.asm.ph).apply(null,arguments)},Mh=t.dynCall_iiiiiiiiiiiij=function(){return(Mh=t.dynCall_iiiiiiiiiiiij=t.asm.qh).apply(null,arguments)},Ph=t.dynCall_iiiiiiiji=function(){return(Ph=t.dynCall_iiiiiiiji=t.asm.rh).apply(null,arguments)},Vh=t.dynCall_iiiidjj=function(){return(Vh=t.dynCall_iiiidjj=t.asm.sh).apply(null,arguments)},Nh=t.dynCall_iiiijjj=function(){return(Nh=t.dynCall_iiiijjj=t.asm.th).apply(null,arguments)},Lh=t.dynCall_jiiiii=function(){return(Lh=t.dynCall_jiiiii=t.asm.uh).apply(null,arguments)},xh=t.dynCall_jiiiiiijii=function(){return(xh=t.dynCall_jiiiiiijii=t.asm.vh).apply(null,arguments)},qh=t.dynCall_iiiijji=function(){return(qh=t.dynCall_iiiijji=t.asm.wh).apply(null,arguments)},Wh=t.dynCall_viiijji=function(){return(Wh=t.dynCall_viiijji=t.asm.xh).apply(null,arguments)},zh=t.dynCall_jiiiiii=function(){return(zh=t.dynCall_jiiiiii=t.asm.yh).apply(null,arguments)},Yh=t.dynCall_iiijiii=function(){return(Yh=t.dynCall_iiijiii=t.asm.zh).apply(null,arguments)},Hh=t.dynCall_iiiiijii=function(){return(Hh=t.dynCall_iiiiijii=t.asm.Ah).apply(null,arguments)},Gh=t.dynCall_iiijiij=function(){return(Gh=t.dynCall_iiijiij=t.asm.Bh).apply(null,arguments)},$h=t.dynCall_iijjiii=function(){return($h=t.dynCall_iijjiii=t.asm.Ch).apply(null,arguments)},Jh=t.dynCall_iijjiiii=function(){return(Jh=t.dynCall_iijjiiii=t.asm.Dh).apply(null,arguments)},Kh=t.dynCall_iiji=function(){return(Kh=t.dynCall_iiji=t.asm.Eh).apply(null,arguments)},Qh=t.dynCall_iijji=function(){return(Qh=t.dynCall_iijji=t.asm.Fh).apply(null,arguments)},Zh=t.dynCall_vijiiii=function(){return(Zh=t.dynCall_vijiiii=t.asm.Gh).apply(null,arguments)},Xh=t.dynCall_iijiiii=function(){return(Xh=t.dynCall_iijiiii=t.asm.Hh).apply(null,arguments)},ep=t.dynCall_vjjii=function(){return(ep=t.dynCall_vjjii=t.asm.Ih).apply(null,arguments)},tp=t.dynCall_iiiijiii=function(){return(tp=t.dynCall_iiiijiii=t.asm.Jh).apply(null,arguments)},rp=t.dynCall_iiijij=function(){return(rp=t.dynCall_iiijij=t.asm.Kh).apply(null,arguments)},ip=t.dynCall_iijj=function(){return(ip=t.dynCall_iijj=t.asm.Lh).apply(null,arguments)},np=t.dynCall_viiijiii=function(){return(np=t.dynCall_viiijiii=t.asm.Mh).apply(null,arguments)},sp=t.dynCall_iiijiiii=function(){return(sp=t.dynCall_iiijiiii=t.asm.Nh).apply(null,arguments)},ap=t.dynCall_jiiij=function(){return(ap=t.dynCall_jiiij=t.asm.Oh).apply(null,arguments)},op=t.dynCall_iiiiijjiijj=function(){return(op=t.dynCall_iiiiijjiijj=t.asm.Ph).apply(null,arguments)},up=t.dynCall_viijiijji=function(){return(up=t.dynCall_viijiijji=t.asm.Qh).apply(null,arguments)},cp=t.dynCall_vjjijij=function(){return(cp=t.dynCall_vjjijij=t.asm.Rh).apply(null,arguments)},lp=t.dynCall_vijjji=function(){return(lp=t.dynCall_vijjji=t.asm.Sh).apply(null,arguments)},dp=t.dynCall_jiiijji=function(){return(dp=t.dynCall_jiiijji=t.asm.Th).apply(null,arguments)},fp=t.dynCall_iiijjii=function(){return(fp=t.dynCall_iiijjii=t.asm.Uh).apply(null,arguments)},hp=t.dynCall_iijjii=function(){return(hp=t.dynCall_iijjii=t.asm.Vh).apply(null,arguments)},pp=t.dynCall_vijii=function(){return(pp=t.dynCall_vijii=t.asm.Wh).apply(null,arguments)},yp=t.dynCall_viijjii=function(){return(yp=t.dynCall_viijjii=t.asm.Xh).apply(null,arguments)},mp=t.dynCall_jijjij=function(){return(mp=t.dynCall_jijjij=t.asm.Yh).apply(null,arguments)},_p=t.dynCall_jijiii=function(){return(_p=t.dynCall_jijiii=t.asm.Zh).apply(null,arguments)},bp=t.dynCall_viijiiij=function(){return(bp=t.dynCall_viijiiij=t.asm._h).apply(null,arguments)},gp=t.dynCall_vijiiiji=function(){return(gp=t.dynCall_vijiiiji=t.asm.$h).apply(null,arguments)},vp=t.dynCall_jiiji=function(){return(vp=t.dynCall_jiiji=t.asm.ai).apply(null,arguments)},wp=t.dynCall_viiijij=function(){return(wp=t.dynCall_viiijij=t.asm.bi).apply(null,arguments)},jp=t.dynCall_viijiijj=function(){return(jp=t.dynCall_viijiijj=t.asm.ci).apply(null,arguments)},Tp=t.dynCall_vijij=function(){return(Tp=t.dynCall_vijij=t.asm.di).apply(null,arguments)},Bp=t.dynCall_iiijjjj=function(){return(Bp=t.dynCall_iiijjjj=t.asm.ei).apply(null,arguments)},Ip=t.dynCall_iijiji=function(){return(Ip=t.dynCall_iijiji=t.asm.fi).apply(null,arguments)},Sp=t.dynCall_viiijijiji=function(){return(Sp=t.dynCall_viiijijiji=t.asm.gi).apply(null,arguments)},Op=t.dynCall_vjiiiji=function(){return(Op=t.dynCall_vjiiiji=t.asm.hi).apply(null,arguments)},Ap=t.dynCall_jiiijj=function(){return(Ap=t.dynCall_jiiijj=t.asm.ii).apply(null,arguments)},Dp=t.dynCall_viijiiii=function(){return(Dp=t.dynCall_viijiiii=t.asm.ji).apply(null,arguments)},Fp=t.dynCall_iiiijii=function(){return(Fp=t.dynCall_iiiijii=t.asm.ki).apply(null,arguments)},Rp=t.dynCall_viiiijii=function(){return(Rp=t.dynCall_viiiijii=t.asm.li).apply(null,arguments)},Ep=t.dynCall_iijiii=function(){return(Ep=t.dynCall_iijiii=t.asm.mi).apply(null,arguments)},Cp=t.dynCall_jiiiiji=function(){return(Cp=t.dynCall_jiiiiji=t.asm.ni).apply(null,arguments)},Up=t.dynCall_vijiijj=function(){return(Up=t.dynCall_vijiijj=t.asm.oi).apply(null,arguments)},kp=t.dynCall_vifiijj=function(){return(kp=t.dynCall_vifiijj=t.asm.pi).apply(null,arguments)},Mp=t.dynCall_vidiijj=function(){return(Mp=t.dynCall_vidiijj=t.asm.qi).apply(null,arguments)},Pp=t.dynCall_viiiiij=function(){return(Pp=t.dynCall_viiiiij=t.asm.ri).apply(null,arguments)},Vp=t.dynCall_ijj=function(){return(Vp=t.dynCall_ijj=t.asm.si).apply(null,arguments)},Np=t.dynCall_ijjiii=function(){return(Np=t.dynCall_ijjiii=t.asm.ti).apply(null,arguments)},Lp=t.dynCall_vijijjji=function(){return(Lp=t.dynCall_vijijjji=t.asm.ui).apply(null,arguments)},xp=t.dynCall_viiiiijjji=function(){return(xp=t.dynCall_viiiiijjji=t.asm.vi).apply(null,arguments)},qp=t.dynCall_viijijj=function(){return(qp=t.dynCall_viijijj=t.asm.wi).apply(null,arguments)},Wp=t.dynCall_iiijiijj=function(){return(Wp=t.dynCall_iiijiijj=t.asm.xi).apply(null,arguments)},zp=t.dynCall_viiijijjj=function(){return(zp=t.dynCall_viiijijjj=t.asm.yi).apply(null,arguments)},Yp=t.dynCall_iijiijj=function(){return(Yp=t.dynCall_iijiijj=t.asm.zi).apply(null,arguments)},Hp=t.dynCall_viiijjjji=function(){return(Hp=t.dynCall_viiijjjji=t.asm.Ai).apply(null,arguments)},Gp=t.dynCall_viiiijiii=function(){return(Gp=t.dynCall_viiiijiii=t.asm.Bi).apply(null,arguments)},$p=t.dynCall_iijii=function(){return($p=t.dynCall_iijii=t.asm.Ci).apply(null,arguments)},Jp=t.dynCall_vijjiiii=function(){return(Jp=t.dynCall_vijjiiii=t.asm.Di).apply(null,arguments)},Kp=t.dynCall_vijijjiiiii=function(){return(Kp=t.dynCall_vijijjiiiii=t.asm.Ei).apply(null,arguments)},Qp=t.dynCall_vijjiiiii=function(){return(Qp=t.dynCall_vijjiiiii=t.asm.Fi).apply(null,arguments)},Zp=t.dynCall_iiijjji=function(){return(Zp=t.dynCall_iiijjji=t.asm.Gi).apply(null,arguments)},Xp=t.dynCall_iiiiijjj=function(){return(Xp=t.dynCall_iiiiijjj=t.asm.Hi).apply(null,arguments)},ey=t.dynCall_jijiiii=function(){return(ey=t.dynCall_jijiiii=t.asm.Ii).apply(null,arguments)},ty=t.dynCall_iiijjjii=function(){return(ty=t.dynCall_iiijjjii=t.asm.Ji).apply(null,arguments)},ry=t.dynCall_iiiiijjji=function(){return(ry=t.dynCall_iiiiijjji=t.asm.Ki).apply(null,arguments)},iy=t.dynCall_viijiji=function(){return(iy=t.dynCall_viijiji=t.asm.Li).apply(null,arguments)};function qj(o){var u=I();try{H.get(o)()}catch(l){if(S(u),l!==l+0&&l!=="longjmp")throw l;O(1,0)}}function Wj(o,u,l){var d=I();try{H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function zj(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function Yj(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function Hj(o,u){var l=I();try{H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function Gj(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function $j(o,u,l,d,h,p){var y=I();try{return H.get(o)(u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function Jj(o,u,l,d,h){var p=I();try{H.get(o)(u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function Kj(o,u,l,d,h){var p=I();try{return H.get(o)(u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function Qj(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function Zj(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function Xj(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function eT(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function tT(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function rT(o){var u=I();try{return H.get(o)()}catch(l){if(S(u),l!==l+0&&l!=="longjmp")throw l;O(1,0)}}function iT(o,u,l,d,h,p,y,_){var b=I();try{return H.get(o)(u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function nT(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function sT(o,u,l,d,h,p,y,_){var b=I();try{H.get(o)(u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function aT(o,u,l,d,h,p,y){var _=I();try{return H.get(o)(u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function oT(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function uT(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function cT(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie){var me=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie)}catch(Be){if(S(me),Be!==Be+0&&Be!=="longjmp")throw Be;O(1,0)}}function lT(o,u,l,d,h,p,y){var _=I();try{H.get(o)(u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function dT(o,u,l,d,h,p){var y=I();try{return H.get(o)(u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function fT(o,u,l,d,h,p,y,_,b){var g=I();try{H.get(o)(u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function hT(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function pT(o,u,l,d,h,p){var y=I();try{H.get(o)(u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function yT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function mT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function _T(o,u,l,d,h,p,y,_,b){var g=I();try{return H.get(o)(u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function bT(o,u,l,d,h){var p=I();try{return H.get(o)(u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function gT(o,u,l,d,h){var p=I();try{return H.get(o)(u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function vT(o,u,l,d,h,p){var y=I();try{H.get(o)(u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function wT(o,u,l){var d=I();try{H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function jT(o,u,l){var d=I();try{H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function TT(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function BT(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be,M,G){var Re=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be,M,G)}catch(be){if(S(Re),be!==be+0&&be!=="longjmp")throw be;O(1,0)}}function IT(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be,M,G,Re){var be=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be,M,G,Re)}catch(lt){if(S(be),lt!==lt+0&<!=="longjmp")throw lt;O(1,0)}}function ST(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function OT(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function AT(o,u,l,d,h,p,y,_,b,g,T,B,A,C){var N=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C)}catch(ie){if(S(N),ie!==ie+0&&ie!=="longjmp")throw ie;O(1,0)}}function DT(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie){var me=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie)}catch(Be){if(S(me),Be!==Be+0&&Be!=="longjmp")throw Be;O(1,0)}}function FT(o,u,l,d,h,p,y,_,b,g){var T=I();try{H.get(o)(u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function RT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function ET(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function CT(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function UT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function kT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function MT(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function PT(o,u,l,d,h,p,y,_,b,g){var T=I();try{H.get(o)(u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function VT(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function NT(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function LT(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function xT(o,u,l,d,h){var p=I();try{return Nd(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function qT(o,u,l,d,h,p,y){var _=I();try{$d(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function WT(o,u){var l=I();try{return zd(o,u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function zT(o,u,l){var d=I();try{return of(o,u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function YT(o,u,l,d,h,p,y){var _=I();try{qd(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function HT(o,u,l,d,h,p,y){var _=I();try{return Ld(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function GT(o,u,l,d,h,p,y,_,b){var g=I();try{return xd(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function $T(o,u,l,d){var h=I();try{return Yd(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function JT(o,u,l,d,h,p){var y=I();try{Kd(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function KT(o){var u=I();try{return Wd(o)}catch(l){if(S(u),l!==l+0&&l!=="longjmp")throw l;O(1,0)}}function QT(o,u,l,d,h){var p=I();try{Hd(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function ZT(o,u,l,d,h,p,y,_){var b=I();try{Qd(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function XT(o,u,l,d,h,p,y){var _=I();try{return Zd(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function e0(o,u,l,d,h,p,y,_){var b=I();try{Gd(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function t0(o,u,l,d){var h=I();try{af(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function r0(o,u,l,d,h,p){var y=I();try{Xd(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function i0(o,u,l,d,h,p,y,_,b,g){var T=I();try{tf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function n0(o,u,l,d,h){var p=I();try{return rf(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function s0(o,u,l,d,h,p,y,_,b){var g=I();try{nf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function a0(o,u,l,d){var h=I();try{return sf(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function o0(o,u,l,d,h,p,y,_){var b=I();try{Jd(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function u0(o,u,l,d,h,p,y,_,b){var g=I();try{ah(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function c0(o,u,l,d,h){var p=I();try{cf(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function l0(o,u,l,d,h){var p=I();try{return Vp(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function d0(o,u,l,d,h,p,y,_){var b=I();try{return Np(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function f0(o,u,l,d,h,p){var y=I();try{uf(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function h0(o,u,l,d,h,p){var y=I();try{return yf(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function p0(o,u,l,d,h,p,y,_){var b=I();try{return lf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function y0(o,u,l,d,h,p,y,_,b){var g=I();try{hf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function m0(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{ff(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function _0(o,u,l,d,h,p,y,_,b,g){var T=I();try{df(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function b0(o,u,l,d,h,p,y,_,b){var g=I();try{Wh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function g0(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Sp(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function v0(o,u,l,d,h,p,y,_,b){var g=I();try{wp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function w0(o,u,l,d,h,p,y,_){var b=I();try{return rp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function j0(o,u,l,d,h,p){var y=I();try{return _f(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function T0(o,u,l,d,h,p){var y=I();try{return ip(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function B0(o,u,l,d,h,p,y,_){var b=I();try{return Qf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function I0(o,u,l,d,h,p,y){var _=I();try{pf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function S0(o,u,l,d,h,p,y,_){var b=I();try{return mf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function O0(o,u,l,d,h,p,y){var _=I();try{return bf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function A0(o,u,l,d){var h=I();try{return gf(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function D0(o,u,l,d,h,p,y){var _=I();try{ih(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function F0(o,u,l,d,h,p,y,_){var b=I();try{Zh(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function R0(o,u,l,d,h,p,y,_){var b=I();try{return Xh(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function E0(o,u,l,d,h,p,y,_){var b=I();try{ef(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function C0(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{If(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function U0(o,u,l,d,h,p,y,_){var b=I();try{Sf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function k0(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Of(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function M0(o,u,l,d,h,p,y,_,b,g){var T=I();try{Af(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function P0(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Ff(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function V0(o,u,l,d,h,p,y,_,b,g){var T=I();try{return wf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function N0(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return jf(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function L0(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Tf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function x0(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Bf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function q0(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{Rf(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function W0(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Ef(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function z0(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie){var me=I();try{Cf(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie)}catch(Be){if(S(me),Be!==Be+0&&Be!=="longjmp")throw Be;O(1,0)}}function Y0(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be){var M=I();try{Uf(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be)}catch(G){if(S(M),G!==G+0&&G!=="longjmp")throw G;O(1,0)}}function H0(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{Df(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function G0(o,u,l,d,h,p){var y=I();try{return Lh(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function $0(o,u,l,d,h,p,y,_,b){var g=I();try{Xf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function J0(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return xh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function K0(o,u,l,d,h,p,y,_,b){var g=I();try{return qh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function Q0(o,u,l,d,h,p,y,_){var b=I();try{return kf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function Z0(o,u,l,d,h,p,y,_){var b=I();try{qf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function X0(o,u,l,d,h,p,y,_,b){var g=I();try{return Wf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function eB(o,u,l,d,h,p,y){var _=I();try{return Mf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function tB(o,u,l,d,h,p,y){var _=I();try{return Pf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function rB(o,u,l,d,h,p,y,_){var b=I();try{Vf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function iB(o,u,l,d,h,p,y){var _=I();try{return Nf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function nB(o,u,l,d,h,p,y){var _=I();try{return Lf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function sB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return xf(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function aB(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N){var ie=I();try{return zf(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N)}catch(me){if(S(ie),me!==me+0&&me!=="longjmp")throw me;O(1,0)}}function oB(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return Yf(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function uB(o,u,l,d,h,p,y,_,b){var g=I();try{return Hf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function cB(o,u,l){var d=I();try{return Gf(o,u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function lB(o,u){var l=I();try{return $f(o,u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function dB(o,u){var l=I();try{return Jf(o,u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function fB(o,u,l,d,h,p,y){var _=I();try{return zh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function hB(o,u,l,d,h,p,y){var _=I();try{yh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function pB(o,u,l,d,h,p){var y=I();try{return Ch(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function yB(o,u,l,d,h,p,y,_,b){var g=I();try{return eh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function mB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return th(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function _B(o,u,l,d,h,p,y,_,b,g){var T=I();try{rh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function bB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Kf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function gB(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me){var Be=I();try{Zf(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me)}catch(M){if(S(Be),M!==M+0&&M!=="longjmp")throw M;O(1,0)}}function vB(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return nh(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function wB(o,u,l,d,h,p,y,_,b){var g=I();try{sh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function jB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Uh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function TB(o,u,l,d,h,p,y,_,b,g){var T=I();try{oh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function BB(o,u,l,d,h,p,y,_){var b=I();try{return dh(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function IB(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{return fh(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function SB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return uh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function OB(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{ch(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function AB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{lh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function DB(o,u,l,d,h,p,y,_,b){var g=I();try{hh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function FB(o,u,l,d,h,p,y,_){var b=I();try{return ph(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function RB(o,u,l,d,h,p,y,_,b){var g=I();try{return kh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function EB(o,u,l,d,h,p,y,_,b,g,T,B,A,C){var N=I();try{return Mh(o,u,l,d,h,p,y,_,b,g,T,B,A,C)}catch(ie){if(S(N),ie!==ie+0&&ie!=="longjmp")throw ie;O(1,0)}}function CB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{jh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function UB(o,u,l){var d=I();try{return bh(o,u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function kB(o,u,l,d,h){var p=I();try{return Bh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function MB(o,u,l,d,h,p,y){var _=I();try{wh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function PB(o,u,l,d){var h=I();try{return vf(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function VB(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N){var ie=I();try{_h(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N)}catch(me){if(S(ie),me!==me+0&&me!=="longjmp")throw me;O(1,0)}}function NB(o,u,l,d,h){var p=I();try{return gh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function LB(o,u,l,d,h){var p=I();try{vh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function xB(o,u,l,d,h,p,y){var _=I();try{Th(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function qB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Ih(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function WB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Sh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function zB(o,u,l,d,h,p,y,_,b,g){var T=I();try{Oh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function YB(o,u,l,d,h,p,y,_,b,g){var T=I();try{Ah(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function HB(o,u,l,d,h,p,y){var _=I();try{return Rh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function GB(o,u,l,d,h,p){var y=I();try{return ap(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function $B(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{Dh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function JB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{Fh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function KB(o,u,l,d,h){var p=I();try{return Eh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function QB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Ph(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function ZB(o,u,l,d,h,p,y,_,b){var g=I();try{return Vh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function XB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Nh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function eI(o,u,l,d,h,p,y,_){var b=I();try{return Yh(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function tI(o,u,l,d,h,p,y,_,b){var g=I();try{return Hh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function rI(o,u,l,d,h,p,y,_,b){var g=I();try{return Gh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function iI(o,u,l,d,h,p,y,_,b){var g=I();try{return $h(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function nI(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Jh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function sI(o,u,l,d,h,p,y){var _=I();try{return Qh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function aI(o,u,l,d,h){var p=I();try{return Kh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function oI(o,u,l,d,h,p,y){var _=I();try{ep(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function uI(o,u,l,d,h,p,y,_,b){var g=I();try{return tp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function cI(o,u,l,d,h,p,y,_,b){var g=I();try{np(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function lI(o,u,l,d,h,p,y,_,b){var g=I();try{return sp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function dI(o,u,l,d,h,p,y,_,b){var g=I();try{lp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function fI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{cp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function hI(o,u,l,d,h,p){var y=I();try{return vp(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function pI(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{up(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function yI(o,u,l,d,h,p,y,_,b){var g=I();try{return dp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function mI(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N){var ie=I();try{return op(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N)}catch(me){if(S(ie),me!==me+0&&me!=="longjmp")throw me;O(1,0)}}function _I(o,u,l,d,h,p,y,_,b){var g=I();try{return fp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function bI(o,u,l,d,h,p,y,_){var b=I();try{return hp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function gI(o,u,l,d,h,p){var y=I();try{pp(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function vI(o,u,l,d,h,p,y,_,b){var g=I();try{yp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function wI(o,u,l,d,h,p,y,_,b,g){var T=I();try{bp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function jI(o,u,l,d,h,p,y){var _=I();try{return _p(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function TI(o,u,l,d,h,p,y,_,b,g){var T=I();try{gp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function BI(o,u,l,d,h,p,y,_,b){var g=I();try{return mp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function II(o,u,l,d,h,p,y){var _=I();try{Tp(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function SI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return Bp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function OI(o,u,l,d,h,p,y,_){var b=I();try{return Ip(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function AI(o,u,l,d,h,p,y,_,b){var g=I();try{Op(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function DI(o,u,l,d,h){var p=I();try{return Vd(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function FI(o,u,l,d,h,p,y,_){var b=I();try{return Ap(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function RI(o,u,l,d,h,p,y,_,b){var g=I();try{Dp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function EI(o,u,l,d,h,p,y,_){var b=I();try{return Fp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function CI(o,u,l,d,h,p,y,_,b){var g=I();try{Rp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function UI(o,u,l,d,h,p,y){var _=I();try{return Ep(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function kI(o,u,l,d,h,p,y,_){var b=I();try{return Cp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function MI(o,u,l,d,h,p,y,_,b,g){var T=I();try{Up(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function PI(o,u,l,d,h,p,y,_,b){var g=I();try{kp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function VI(o,u,l,d,h,p,y,_,b){var g=I();try{Mp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function NI(o,u,l,d,h,p,y,_){var b=I();try{Pp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function LI(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{Lp(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function xI(o,u,l,d,h,p){var y=I();try{return mh(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function qI(o,u,l,d,h,p,y,_,b,g){var T=I();try{qp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function WI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return Wp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function zI(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{xp(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function YI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{jp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function HI(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{zp(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function GI(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Yp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function $I(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Zp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function JI(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Hp(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function KI(o,u,l,d,h,p,y,_,b,g){var T=I();try{Gp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function QI(o,u,l,d,h,p){var y=I();try{return $p(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function ZI(o,u,l,d,h,p,y,_,b,g,T,B,A,C){var N=I();try{Kp(o,u,l,d,h,p,y,_,b,g,T,B,A,C)}catch(ie){if(S(N),ie!==ie+0&&ie!=="longjmp")throw ie;O(1,0)}}function XI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{Qp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function eS(o,u,l,d,h,p,y,_,b,g){var T=I();try{Jp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function tS(o,u,l,d,h,p,y,_,b){var g=I();try{iy(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function rS(o,u,l,d,h,p,y,_){var b=I();try{return ey(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function iS(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return ty(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function nS(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return Xp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function sS(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return ry(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}t.ccall=_v;var Us;function ks(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var aS=!1;En=function o(){Us||Jo(),Us||(En=o)};function oS(o){var u=t._main,l=0,d=0;try{var h=u(l,d);return uS(h,!0),h}catch(p){return zv(p)}finally{aS=!0}}function Jo(o){if(o=o||f,ai>0||(Rv(),ai>0))return;function u(){Us||(Us=!0,t.calledRun=!0,!Lo&&(Ev(),Cv(),i(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),ny&&oS(o),kv()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),u()},1)):u()}t.run=Jo;function uS(o,u){Bs=o,xo()||Uv(),cS(o)}function cS(o){Bs=o,xo()||(t.onExit&&t.onExit(o),Lo=!0),s(o,new ks(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var ny=!0;return t.noInitialRun&&(ny=!1),Jo(),e.ready}}(),sv=uC;var Yt=Ps(Ts());var md=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=Yt.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),Yt.Table.from(i)}send(e){let t=this._bindings.sendQuery(this._conn,e),i=new _d(this._bindings,this._conn,t),n=Yt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new ov(this._bindings,this._conn,t)}insertArrowVectors(e,t){this.insertArrowTable(Yt.Table.new(e),t)}insertArrowTable(e,t){e.schema.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually"),this.insertArrowBatches(e.schema,e.chunks,t)}insertArrowBatches(e,t,i){e.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");let n=new Vo,a=new Yt.RecordBatchStreamWriter().reset(n,e),c=!0;for(let f of t)c||this._bindings.insertArrowFromIPCStream(this._conn,n.flush(),i),c=!1,a.write(f);a.finish(),this._bindings.insertArrowFromIPCStream(this._conn,n.flush(),i)}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)}},_d=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}},ov=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=Yt.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),Yt.Table.from(i)}send(e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),i=new _d(this.bindings,this.connectionId,t),n=Yt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}};var Se;(function(e){e[e.SUCCESS=0]="SUCCESS"})(Se||(Se={}));function cC(){let r=new TextDecoder;return e=>(typeof SharedArrayBuffer!="undefined"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),r.decode(e))}var lC=cC();function $e(r,e){console.error(e),r.ccall("duckdb_web_fail_with",null,["string"],[e])}function Fn(r,e,t){let i=r.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function je(r,e,t){return lC(r.HEAPU8.subarray(e,e+t))}var at;(function(i){i[i.BUFFER=0]="BUFFER",i[i.NATIVE=1]="NATIVE",i[i.HTTP=3]="HTTP"})(at||(at={}));function Fe(r,e,t,i){let n=r.stackSave(),a=r.stackAlloc(3*8);t.unshift("number"),i.unshift(a),r.ccall(e,null,t,i);let c=r.HEAPF64[(a>>3)+0],f=r.HEAPF64[(a>>3)+1],j=r.HEAPF64[(a>>3)+2];return r.stackRestore(n),[c,f,j]}function Je(r){r.ccall("duckdb_web_clear_response",null,[],[])}var bd=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),i=new Uint8Array(new ArrayBuffer(e.byteLength));i.set(e.subarray(7*8)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=i}getBlockStats(e,t){return t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},t.file_writes=this.blockStats[e*3+0]&15,t.file_reads_cold=this.blockStats[e*3+0]>>4,t.file_reads_ahead=this.blockStats[e*3+1]&15,t.file_reads_cached=this.blockStats[e*3+1]>>4,t.page_accesses=this.blockStats[e*3+1]&15,t.page_loads=this.blockStats[e*3+1]>>4,t}};var dC=new TextEncoder,uv;(function(a){a[a.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",a[a.WASM_THREADS=2]="WASM_THREADS",a[a.WASM_SIMD=4]="WASM_SIMD",a[a.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",a[a.EMIT_BIGINT=16]="EMIT_BIGINT"})(uv||(uv={}));var gd=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this._logger=e,this._runtime=t}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(){return this._instance!=null?this:(this._initPromise!=null&&await this._initPromise,this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this)}open(e){let[t,i,n]=Fe(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));Je(this.mod)}reset(){let[e,t,i]=Fe(this.mod,"duckdb_web_reset",[],[]);if(e!==Se.SUCCESS)throw new Error(je(this.mod,t,i));Je(this.mod)}getVersion(){let[e,t,i]=Fe(this.mod,"duckdb_web_get_version",[],[]);if(e!==Se.SUCCESS)throw new Error(je(this.mod,t,i));let n=je(this.mod,t,i);return Je(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,i,n]=Fe(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));let a=je(this.mod,i,n);return Je(this.mod),JSON.parse(a)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new md(this,e)}disconnect(e){this.mod.ccall("duckdb_web_disconnect",null,["number"],[e])}runQuery(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));let c=Fn(this.mod,n,a);return Je(this.mod),c}sendQuery(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));let c=Fn(this.mod,n,a);return Je(this.mod),c}fetchQueryResults(e){let[t,i,n]=Fe(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));let a=Fn(this.mod,i,n);return Je(this.mod),a}createPrepared(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_prepared_create",["number","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));return Je(this.mod),n}closePrepared(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));Je(this.mod)}runPrepared(e,t,i){let[n,a,c]=Fe(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==Se.SUCCESS)throw new Error(je(this.mod,a,c));let f=Fn(this.mod,a,c);return Je(this.mod),f}sendPrepared(e,t,i){let[n,a,c]=Fe(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==Se.SUCCESS)throw new Error(je(this.mod,a,c));let f=Fn(this.mod,a,c);return Je(this.mod),f}insertArrowFromIPCStream(e,t,i){let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let c=i?JSON.stringify(i):"",[f,j,s]=Fe(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,c]);if(f!==Se.SUCCESS)throw new Error(je(this.mod,j,s))}insertCSVFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let s in i.columns)i.columnsFlat.push(Dn(s,i.columns[s]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let a=JSON.stringify(n),[c,f,j]=Fe(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,a]);if(c!==Se.SUCCESS)throw new Error(je(this.mod,f,j))}insertJSONFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let s in i.columns)i.columnsFlat.push(Dn(s,i.columns[s]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let a=JSON.stringify(n),[c,f,j]=Fe(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,a]);if(c!==Se.SUCCESS)throw new Error(je(this.mod,f,j))}registerFileURL(e,t){t===void 0&&(t=e);let[i,n,a]=Fe(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));Je(this.mod)}registerFileText(e,t){let i=dC.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[a,c,f]=Fe(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,i,t.length]);if(a!==Se.SUCCESS)throw new Error(je(this.mod,c,f));Je(this.mod)}registerFileHandle(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,e]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));if(Je(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let c of this.pthread.runningWorkers)c.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let c of this.pthread.unusedWorkers)c.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){return this.mod.ccall("duckdb_web_fs_drop_file","boolean",["string"],[e])}dropFiles(){this.mod.ccall("duckdb_web_fs_drop_files",null,[],[])}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));Je(this.mod)}copyFileToBuffer(e){let[t,i,n]=Fe(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));let a=this.mod.HEAPU8.subarray(i,i+n),c=new Uint8Array(a.length);return c.set(a),Je(this.mod),c}collectFileStatistics(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a))}exportFileStatistics(e){let[t,i,n]=Fe(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));return new bd(this.mod.HEAPU8.subarray(i,i+n))}};var vd=class extends gd{constructor(e,t,i,n){super(e,t);this.mainModuleURL=i,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${t} path=${e}`)}instantiateWasm(e,t){return globalThis.DUCKDB_RUNTIME=this._runtime,WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(fetch(this.mainModuleURL),e).then(i=>{t(i.instance,i.module)}):fetch(this.mainModuleURL).then(i=>i.arrayBuffer()).then(i=>WebAssembly.instantiate(i,e).then(n=>{t(n.instance,n.module)})).catch(i=>{console.error("Failed to instantiate WASM:",i)}),[]}};var wd=class extends vd{constructor(e,t,i,n=null){super(e,t,i,n)}instantiateImpl(e){return sv({...e,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var ot={fileInfoCache:new Map,getFileInfo(r,e){try{let t=ot.fileInfoCache.get(e);if(t)return t;let[i,n,a]=Fe(r,"duckdb_web_fs_get_file_info",["number"],[e]);if(i!==Se.SUCCESS)throw new Error(je(r,n,a));let c=je(r,n,a);Je(r);let f=JSON.parse(c);if(f==null)return null;let j={...f,blob:null};return ot.fileInfoCache.set(e,j),j}catch(t){return $e(r,t.toString()),null}},testPlatformFeature:(r,e)=>{switch(e){case 1:return typeof BigInt64Array!="undefined";default:return console.warn(`test for unknown feature: ${e}`),!1}},openFile:(r,e)=>{try{ot.fileInfoCache.delete(e);let t=ot.getFileInfo(r,e);switch(t?.data_protocol){case at.HTTP:{let i=new XMLHttpRequest;i.open("HEAD",t.data_url,!1),i.setRequestHeader("Range","bytes=0-"),i.send(null);let n=!1;if(i.status==206?n=!0:i.status==200&&(n=i.getResponseHeader("Accept-Ranges")==="bytes"),!n)return $e(r,`File does not support range requests: ${t.file_name}`),0;break}case at.NATIVE:{if(!ot._files?.get(t.file_name))return $e(r,`No handle available for file: ${t.file_name}`),0;break}}}catch(t){$e(r,t.toString())}return 0},glob:(r,e,t)=>{try{let i=je(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let a=!1;if(n.status==206)a=!0;else if(n.status==200)a=n.getResponseHeader("Accept-Ranges")==="bytes";else{$e(r,`HEAD request failed: ${i}`);return}if(!a){$e(r,`File does not support range requests: ${i}`);return}r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(i){return $e(r,i.toString()),0}},checkFile:(r,e,t)=>{try{let i=je(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let a=!1;if(n.status==206)a=!0;else if(n.status==200)a=n.getResponseHeader("Accept-Ranges")==="bytes";else return!1;return!!a}}catch{return!1}return!1},syncFile:(r,e)=>{},closeFile:(r,e)=>{let t=ot.getFileInfo(r,e);switch(ot.fileInfoCache.delete(e),t?.data_protocol){case at.HTTP:break;case at.NATIVE:return}},truncateFile:(r,e,t)=>{switch(ot.getFileInfo(r,e)?.data_protocol){case at.HTTP:$e(r,"Cannot truncate a http file");return;case at.NATIVE:$e(r,"truncateFile not implemented");return}return 0},readFile(r,e,t,i,n){try{let a=ot.getFileInfo(r,e);switch(a?.data_protocol){case at.HTTP:{if(!a.data_url)return $e(r,`Missing data URL for file ${e}`),0;let c=new XMLHttpRequest;if(c.open("GET",a.data_url,!1),c.responseType="arraybuffer",c.setRequestHeader("Range",`bytes=${n}-${n+i-1}`),c.send(null),c.status==206||c.status==200&&i==c.response.byteLength&&n==0){let f=new Uint8Array(c.response,0,Math.min(c.response.byteLength,i));return r.HEAPU8.set(f,t),f.byteLength}else return c.status==200?($e(r,`Range request for ${a.data_url} did not return a partial response: ${c.status} "${c.statusText}"`),0):($e(r,`Range request for ${a.data_url} did returned non-success status: ${c.status} "${c.statusText}"`),0)}case at.NATIVE:{let c=ot._files?.get(a.file_name);if(!c)return $e(r,`No handle available for file: ${a.file_name}`),0;let f=c.slice(n,n+i),j=new Uint8Array(new FileReaderSync().readAsArrayBuffer(f));return r.HEAPU8.set(j,t),j.byteLength}}return 0}catch(a){return $e(r,a.toString()),0}},writeFile:(r,e,t,i,n)=>{switch(ot.getFileInfo(r,e)?.data_protocol){case at.HTTP:return $e(r,"Cannot write to HTTP file"),0;case at.NATIVE:return $e(r,"writefile not implemented"),0}return 0},getFileSize:(r,e)=>{try{let t=ot.getFileInfo(r,e);switch(t?.data_protocol){case at.NATIVE:{let i=ot._files?.get(t.file_name);return i?i.size:($e(r,`No handle available for file: ${t.file_name}`),0)}case at.HTTP:{if(!t.data_url)throw new Error(`Missing data URL for file ${e}`);let i=new XMLHttpRequest;if(i.open("HEAD",t.data_url,!1),i.send(null),i.status==200){let n=i.getResponseHeader("Content-Length");if(n)return parseInt(n);throw Error(`HEAD ${t.data_url} does not contain the HTTP header: Content-Length`)}else throw Error(`HEAD ${t.data_url} returned non-success status: ${i.status} "${i.statusText}"`)}}return 0}catch(t){return $e(r,t.toString()),0}},getLastFileModificationTime:(r,e)=>{let t=ot.getFileInfo(r,e);switch(t?.data_protocol){case at.NATIVE:{if(!ot._files?.get(t.file_name))throw Error(`No handle available for file: ${t.file_name}`);return 0}case at.HTTP:return new Date().getTime()}return 0},checkDirectory:(r,e,t)=>!1,createDirectory:(r,e,t)=>{},removeDirectory:(r,e,t)=>{},listDirectoryEntries:(r,e,t)=>!1,moveFile:(r,e,t,i,n)=>{},removeFile:(r,e,t)=>{}};var cv=class extends pd{postMessage(e,t){globalThis.postMessage(e,t)}async instantiate(e,t){return await new wd(this,ot,e,t).instantiate()}};function lv(){let r=new cv;globalThis.onmessage=async e=>{await r.onMessage(e.data)}}lv();return fC;})();
|
|
18
|
+
`},"%p":function(M){return M.tm_hour>=0&&M.tm_hour<12?"AM":"PM"},"%S":function(M){return A(M.tm_sec,2)},"%t":function(){return" "},"%u":function(M){return M.tm_wday||7},"%U":function(M){var G=new Date(M.tm_year+1900,0,1),Re=G.getDay()===0?G:Cs(G,7-G.getDay()),be=new Date(M.tm_year+1900,M.tm_mon,M.tm_mday);if(C(Re,be)<0){var lt=Yo(Fs(be.getFullYear())?Rs:Es,be.getMonth()-1)-31,Or=31-Re.getDate(),ui=Or+lt+be.getDate();return A(Math.ceil(ui/7),2)}return C(Re,G)===0?"01":"00"},"%V":function(M){var G=new Date(M.tm_year+1900,0,4),Re=new Date(M.tm_year+1901,0,4),be=N(G),lt=N(Re),Or=Cs(new Date(M.tm_year+1900,0,1),M.tm_yday);if(C(Or,be)<0)return"53";if(C(lt,Or)<=0)return"01";var ui;return be.getFullYear()<M.tm_year+1900?ui=M.tm_yday+32-be.getDate():ui=M.tm_yday+1-be.getDate(),A(Math.ceil(ui/7),2)},"%w":function(M){return M.tm_wday},"%W":function(M){var G=new Date(M.tm_year,0,1),Re=G.getDay()===1?G:Cs(G,G.getDay()===0?1:7-G.getDay()+1),be=new Date(M.tm_year+1900,M.tm_mon,M.tm_mday);if(C(Re,be)<0){var lt=Yo(Fs(be.getFullYear())?Rs:Es,be.getMonth()-1)-31,Or=31-Re.getDate(),ui=Or+lt+be.getDate();return A(Math.ceil(ui/7),2)}return C(Re,G)===0?"01":"00"},"%y":function(M){return(M.tm_year+1900).toString().substring(2)},"%Y":function(M){return M.tm_year+1900},"%z":function(M){var G=M.tm_gmtoff,Re=G>=0;return G=Math.abs(G)/60,G=G/60*100+G%60,(Re?"+":"-")+String("0000"+G).slice(-4)},"%Z":function(M){return M.tm_zone},"%%":function(){return"%"}};for(var b in me)y.includes(b)&&(y=y.replace(new RegExp(b,"g"),me[b](p)));var Be=aj(y,!1);return Be.length>u?0:(Od(Be,o),Be.length-1)}function sj(o,u,l,d){return nj(o,u,l,d)}function aj(o,u,l){var d=l>0?l:gv(o)+1,h=new Array(d),p=Sd(o,h,0,h.length);return u&&(h.length=p),h}var oj={i:Yv,A:Gv,G:Jv,b:Qv,n:Zv,J:Xv,ja:ew,j:kd,sa:tw,u:rw,E:iw,c:Kv,ze:nw,ea:aw,Oa:ow,Na:uw,Pa:cw,ma:lw,Ra:dw,Ma:fw,Qa:hw,pa:pw,xe:yw,la:mw,oa:_w,na:bw,wa:gw,va:vw,fa:ww,ka:Tw,Ea:Bw,Fa:Iw,Ca:Sw,Da:Ow,Wa:Aw,Aa:Dw,Ha:Fw,Ja:Rw,Ba:Ew,Ka:Cw,da:Uw,Ga:kw,Ia:Mw,za:Pw,ve:Vw,xb:Nw,Xa:Lw,Pc:qw,Ta:zw,Ua:Yw,Y:Hw,Va:Gw,je:$w,qb:Jw,ra:Kw,qe:Qw,ye:Zw,ga:Xw,a:ej,La:Ds,Z:kT,K:hT,R:Zj,bd:nB,_:UT,M:CT,ta:Qj,cd:iB,t:rT,U:LT,xa:mT,W:bT,V:NT,ya:yT,e:zj,$:RT,B:gT,hc:KB,d:Yj,ca:TT,ua:MT,h:Gj,fc:ZB,l:Kj,qa:dT,o:$j,z:aT,w:iT,Q:_T,x:nT,v:oT,p:DT,L:BT,I:IT,Ac:EB,Hc:IB,Kc:jB,Rc:mB,Bc:RB,gc:QB,ad:sB,Ic:BB,Sc:yB,oe:HT,Hd:S0,cc:tI,ne:GT,pc:WB,Pb:mI,Za:nS,Ya:sS,Ud:h0,Gd:O0,zb:EI,Xb:uI,Td:p0,jd:K0,qc:qB,ec:XB,be:n0,Ld:j0,fd:eB,dc:eI,Vb:lI,bc:rI,mb:WI,Md:w0,ge:XT,Jd:B0,Ob:_I,hb:$I,_a:iS,Fb:SI,me:$T,Zb:aI,eb:QI,wb:UI,Cd:R0,ib:GI,Eb:OI,Kd:T0,_b:sI,Nb:bI,ac:iI,$b:nI,Gc:SB,Oc:bB,yc:UB,$d:a0,Xd:l0,Tc:pB,Wd:d0,ke:KT,Xc:lB,Wc:dB,se:WT,re:zT,Fd:A0,ue:xT,md:G0,Vc:fB,Cc:FB,kd:J0,_c:oB,mc:HB,vb:kI,gd:X0,$c:aB,lc:GB,id:Q0,Zc:uB,Bb:FI,Qb:yI,xc:kB,Sb:hI,ed:tB,vd:V0,ud:N0,sd:x0,td:L0,vc:PB,Cb:DI,Jb:jI,$a:rS,Mc:vB,ob:xI,Hb:BI,Yc:cB,tc:NB,s:qj,k:Hj,C:jT,aa:OT,sb:VI,D:wT,ba:ST,tb:PI,f:Wj,T:eT,O:vT,kc:Xj,g:tT,m:Jj,Ae:PT,q:pT,r:lT,ha:ET,y:sT,P:fT,N:FT,S:uT,we:VT,ia:AT,X:cT,ld:$0,rb:NI,Dc:DB,zc:CB,Rd:m0,Qc:_B,ic:JB,lb:zI,Id:I0,hd:Z0,yb:CI,fb:KI,Ec:AB,Fc:OB,uc:VB,Sd:y0,nc:YB,jc:$B,wd:P0,de:r0,Uc:hB,dd:rB,Wb:cI,pd:z0,Nd:v0,Od:g0,jb:HI,_d:o0,Pd:b0,oc:zB,nd:H0,Ad:C0,ce:i0,gb:JI,ie:QT,le:JT,pe:YT,zd:U0,Ab:RI,Qd:_0,rd:q0,qd:W0,Kb:wI,kb:YI,Rb:pI,Bd:E0,ab:tS,od:Y0,nb:qI,te:qT,fe:e0,Lb:vI,xd:M0,Zd:u0,Jc:TB,ee:t0,Yd:c0,Mb:gI,Ed:D0,Dd:F0,Ib:TI,ub:MI,Gb:II,Nc:gB,ae:s0,db:ZI,yd:k0,pb:LI,Vd:f0,rc:xB,bb:eS,cb:XI,Lc:wB,he:ZT,Ub:dI,sc:LB,wc:MB,Db:AI,Yb:oI,Tb:fI,H:rj,F:ij,Sa:sj},pC=Wv(),uj=t.___wasm_call_ctors=function(){return(uj=t.___wasm_call_ctors=t.asm.Ce).apply(null,arguments)},cj=t._main=function(){return(cj=t._main=t.asm.De).apply(null,arguments)},lj=t._duckdb_web_fs_glob_add_path=function(){return(lj=t._duckdb_web_fs_glob_add_path=t.asm.Fe).apply(null,arguments)},dj=t._duckdb_web_clear_response=function(){return(dj=t._duckdb_web_clear_response=t.asm.Ge).apply(null,arguments)},fj=t._duckdb_web_fail_with=function(){return(fj=t._duckdb_web_fail_with=t.asm.He).apply(null,arguments)},hj=t._duckdb_web_reset=function(){return(hj=t._duckdb_web_reset=t.asm.Ie).apply(null,arguments)},pj=t._duckdb_web_connect=function(){return(pj=t._duckdb_web_connect=t.asm.Je).apply(null,arguments)},yj=t._duckdb_web_disconnect=function(){return(yj=t._duckdb_web_disconnect=t.asm.Ke).apply(null,arguments)},mj=t._duckdb_web_flush_files=function(){return(mj=t._duckdb_web_flush_files=t.asm.Le).apply(null,arguments)},_j=t._duckdb_web_flush_file=function(){return(_j=t._duckdb_web_flush_file=t.asm.Me).apply(null,arguments)},bj=t._duckdb_web_open=function(){return(bj=t._duckdb_web_open=t.asm.Ne).apply(null,arguments)},gj=t._duckdb_web_collect_file_stats=function(){return(gj=t._duckdb_web_collect_file_stats=t.asm.Oe).apply(null,arguments)},vj=t._duckdb_web_export_file_stats=function(){return(vj=t._duckdb_web_export_file_stats=t.asm.Pe).apply(null,arguments)},wj=t._duckdb_web_fs_drop_file=function(){return(wj=t._duckdb_web_fs_drop_file=t.asm.Qe).apply(null,arguments)},jj=t._duckdb_web_fs_drop_files=function(){return(jj=t._duckdb_web_fs_drop_files=t.asm.Re).apply(null,arguments)},Tj=t._duckdb_web_fs_get_file_info=function(){return(Tj=t._duckdb_web_fs_get_file_info=t.asm.Se).apply(null,arguments)},Bj=t._duckdb_web_fs_set_file_descriptor=function(){return(Bj=t._duckdb_web_fs_set_file_descriptor=t.asm.Te).apply(null,arguments)},Ij=t._duckdb_web_fs_register_file_url=function(){return(Ij=t._duckdb_web_fs_register_file_url=t.asm.Ue).apply(null,arguments)},Sj=t._duckdb_web_fs_register_file_buffer=function(){return(Sj=t._duckdb_web_fs_register_file_buffer=t.asm.Ve).apply(null,arguments)},Oj=t._duckdb_web_copy_file_to_buffer=function(){return(Oj=t._duckdb_web_copy_file_to_buffer=t.asm.We).apply(null,arguments)},Aj=t._duckdb_web_copy_file_to_path=function(){return(Aj=t._duckdb_web_copy_file_to_path=t.asm.Xe).apply(null,arguments)},Dj=t._duckdb_web_get_version=function(){return(Dj=t._duckdb_web_get_version=t.asm.Ye).apply(null,arguments)},Fj=t._duckdb_web_get_feature_flags=function(){return(Fj=t._duckdb_web_get_feature_flags=t.asm.Ze).apply(null,arguments)},Rj=t._duckdb_web_tokenize=function(){return(Rj=t._duckdb_web_tokenize=t.asm._e).apply(null,arguments)},Ej=t._duckdb_web_prepared_create=function(){return(Ej=t._duckdb_web_prepared_create=t.asm.$e).apply(null,arguments)},Cj=t._duckdb_web_prepared_close=function(){return(Cj=t._duckdb_web_prepared_close=t.asm.af).apply(null,arguments)},Uj=t._duckdb_web_prepared_run=function(){return(Uj=t._duckdb_web_prepared_run=t.asm.bf).apply(null,arguments)},kj=t._duckdb_web_prepared_send=function(){return(kj=t._duckdb_web_prepared_send=t.asm.cf).apply(null,arguments)},Mj=t._duckdb_web_query_run=function(){return(Mj=t._duckdb_web_query_run=t.asm.df).apply(null,arguments)},Pj=t._duckdb_web_query_send=function(){return(Pj=t._duckdb_web_query_send=t.asm.ef).apply(null,arguments)},Vj=t._duckdb_web_query_fetch_results=function(){return(Vj=t._duckdb_web_query_fetch_results=t.asm.ff).apply(null,arguments)},Nj=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(Nj=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.gf).apply(null,arguments)},Lj=t._duckdb_web_insert_csv_from_path=function(){return(Lj=t._duckdb_web_insert_csv_from_path=t.asm.hf).apply(null,arguments)},xj=t._duckdb_web_insert_json_from_path=function(){return(xj=t._duckdb_web_insert_json_from_path=t.asm.jf).apply(null,arguments)},Md=t.___errno_location=function(){return(Md=t.___errno_location=t.asm.kf).apply(null,arguments)},I=t.stackSave=function(){return(I=t.stackSave=t.asm.lf).apply(null,arguments)},S=t.stackRestore=function(){return(S=t.stackRestore=t.asm.mf).apply(null,arguments)},Ho=t.stackAlloc=function(){return(Ho=t.stackAlloc=t.asm.nf).apply(null,arguments)},O=t._setThrew=function(){return(O=t._setThrew=t.asm.of).apply(null,arguments)},Un=t.___cxa_can_catch=function(){return(Un=t.___cxa_can_catch=t.asm.pf).apply(null,arguments)},Pd=t.___cxa_is_pointer_type=function(){return(Pd=t.___cxa_is_pointer_type=t.asm.qf).apply(null,arguments)},Go=t._malloc=function(){return(Go=t._malloc=t.asm.rf).apply(null,arguments)},$o=t._free=function(){return($o=t._free=t.asm.sf).apply(null,arguments)},Vd=t.dynCall_jiji=function(){return(Vd=t.dynCall_jiji=t.asm.tf).apply(null,arguments)},Nd=t.dynCall_jiiii=function(){return(Nd=t.dynCall_jiiii=t.asm.uf).apply(null,arguments)},Ld=t.dynCall_iiiiij=function(){return(Ld=t.dynCall_iiiiij=t.asm.vf).apply(null,arguments)},xd=t.dynCall_iiiiijj=function(){return(xd=t.dynCall_iiiiijj=t.asm.wf).apply(null,arguments)},qd=t.dynCall_viijii=function(){return(qd=t.dynCall_viijii=t.asm.xf).apply(null,arguments)},Wd=t.dynCall_j=function(){return(Wd=t.dynCall_j=t.asm.yf).apply(null,arguments)},zd=t.dynCall_ji=function(){return(zd=t.dynCall_ji=t.asm.zf).apply(null,arguments)},Yd=t.dynCall_iij=function(){return(Yd=t.dynCall_iij=t.asm.Af).apply(null,arguments)},Hd=t.dynCall_viij=function(){return(Hd=t.dynCall_viij=t.asm.Bf).apply(null,arguments)},Gd=t.dynCall_viijji=function(){return(Gd=t.dynCall_viijji=t.asm.Cf).apply(null,arguments)},$d=t.dynCall_viijj=function(){return($d=t.dynCall_viijj=t.asm.Df).apply(null,arguments)},Jd=t.dynCall_viiijj=function(){return(Jd=t.dynCall_viiijj=t.asm.Ef).apply(null,arguments)},Kd=t.dynCall_viiji=function(){return(Kd=t.dynCall_viiji=t.asm.Ff).apply(null,arguments)},Qd=t.dynCall_vijjj=function(){return(Qd=t.dynCall_vijjj=t.asm.Gf).apply(null,arguments)},Zd=t.dynCall_iiijj=function(){return(Zd=t.dynCall_iiijj=t.asm.Hf).apply(null,arguments)},Xd=t.dynCall_viiij=function(){return(Xd=t.dynCall_viiij=t.asm.If).apply(null,arguments)},ef=t.dynCall_viijij=function(){return(ef=t.dynCall_viijij=t.asm.Jf).apply(null,arguments)},tf=t.dynCall_viiijjj=function(){return(tf=t.dynCall_viiijjj=t.asm.Kf).apply(null,arguments)},rf=t.dynCall_iiij=function(){return(rf=t.dynCall_iiij=t.asm.Lf).apply(null,arguments)},nf=t.dynCall_vijijj=function(){return(nf=t.dynCall_vijijj=t.asm.Mf).apply(null,arguments)},sf=t.dynCall_iji=function(){return(sf=t.dynCall_iji=t.asm.Nf).apply(null,arguments)},af=t.dynCall_vij=function(){return(af=t.dynCall_vij=t.asm.Of).apply(null,arguments)},of=t.dynCall_jii=function(){return(of=t.dynCall_jii=t.asm.Pf).apply(null,arguments)},uf=t.dynCall_vijj=function(){return(uf=t.dynCall_vijj=t.asm.Qf).apply(null,arguments)},cf=t.dynCall_viji=function(){return(cf=t.dynCall_viji=t.asm.Rf).apply(null,arguments)},lf=t.dynCall_iiiijj=function(){return(lf=t.dynCall_iiiijj=t.asm.Sf).apply(null,arguments)},df=t.dynCall_viijiiiii=function(){return(df=t.dynCall_viijiiiii=t.asm.Tf).apply(null,arguments)},ff=t.dynCall_viiiiijiiii=function(){return(ff=t.dynCall_viiiiijiiii=t.asm.Uf).apply(null,arguments)},hf=t.dynCall_viiiijj=function(){return(hf=t.dynCall_viiiijj=t.asm.Vf).apply(null,arguments)},pf=t.dynCall_viiiij=function(){return(pf=t.dynCall_viiiij=t.asm.Wf).apply(null,arguments)},yf=t.dynCall_iiiij=function(){return(yf=t.dynCall_iiiij=t.asm.Xf).apply(null,arguments)},mf=t.dynCall_iiiiiji=function(){return(mf=t.dynCall_iiiiiji=t.asm.Yf).apply(null,arguments)},_f=t.dynCall_iiiji=function(){return(_f=t.dynCall_iiiji=t.asm.Zf).apply(null,arguments)},bf=t.dynCall_iiiiji=function(){return(bf=t.dynCall_iiiiji=t.asm._f).apply(null,arguments)},gf=t.dynCall_jiii=function(){return(gf=t.dynCall_jiii=t.asm.$f).apply(null,arguments)},vf=t.dynCall_jij=function(){return(vf=t.dynCall_jij=t.asm.ag).apply(null,arguments)},wf=t.dynCall_jiijiiiii=function(){return(wf=t.dynCall_jiijiiiii=t.asm.bg).apply(null,arguments)},jf=t.dynCall_jiijiijiii=function(){return(jf=t.dynCall_jiijiijiii=t.asm.cg).apply(null,arguments)},Tf=t.dynCall_jiijjiii=function(){return(Tf=t.dynCall_jiijjiii=t.asm.dg).apply(null,arguments)},Bf=t.dynCall_jiijijii=function(){return(Bf=t.dynCall_jiijijii=t.asm.eg).apply(null,arguments)},If=t.dynCall_viiijjij=function(){return(If=t.dynCall_viiijjij=t.asm.fg).apply(null,arguments)},Sf=t.dynCall_viijiii=function(){return(Sf=t.dynCall_viijiii=t.asm.gg).apply(null,arguments)},Of=t.dynCall_vijijjiij=function(){return(Of=t.dynCall_vijijjiij=t.asm.hg).apply(null,arguments)},Af=t.dynCall_viijjij=function(){return(Af=t.dynCall_viijjij=t.asm.ig).apply(null,arguments)},Df=t.dynCall_viiijjiij=function(){return(Df=t.dynCall_viiijjiij=t.asm.jg).apply(null,arguments)},Ff=t.dynCall_viiiijjjj=function(){return(Ff=t.dynCall_viiiijjjj=t.asm.kg).apply(null,arguments)},Rf=t.dynCall_viijiiiiij=function(){return(Rf=t.dynCall_viijiiiiij=t.asm.lg).apply(null,arguments)},Ef=t.dynCall_viijiiiijj=function(){return(Ef=t.dynCall_viijiiiijj=t.asm.mg).apply(null,arguments)},Cf=t.dynCall_viiijiiiijjj=function(){return(Cf=t.dynCall_viiijiiiijjj=t.asm.ng).apply(null,arguments)},Uf=t.dynCall_viijijiiiijjj=function(){return(Uf=t.dynCall_viijijiiiijjj=t.asm.og).apply(null,arguments)},kf=t.dynCall_jiiijii=function(){return(kf=t.dynCall_jiiijii=t.asm.pg).apply(null,arguments)},Mf=t.dynCall_iiijii=function(){return(Mf=t.dynCall_iiijii=t.asm.qg).apply(null,arguments)},Pf=t.dynCall_jiijii=function(){return(Pf=t.dynCall_jiijii=t.asm.rg).apply(null,arguments)},Vf=t.dynCall_viiijii=function(){return(Vf=t.dynCall_viiijii=t.asm.sg).apply(null,arguments)},Nf=t.dynCall_fiijii=function(){return(Nf=t.dynCall_fiijii=t.asm.tg).apply(null,arguments)},Lf=t.dynCall_diijii=function(){return(Lf=t.dynCall_diijii=t.asm.ug).apply(null,arguments)},xf=t.dynCall_iiiiiiijii=function(){return(xf=t.dynCall_iiiiiiijii=t.asm.vg).apply(null,arguments)},qf=t.dynCall_viiiiji=function(){return(qf=t.dynCall_viiiiji=t.asm.wg).apply(null,arguments)},Wf=t.dynCall_jiiiijii=function(){return(Wf=t.dynCall_jiiiijii=t.asm.xg).apply(null,arguments)},zf=t.dynCall_jiiiijiiiiiiii=function(){return(zf=t.dynCall_jiiiijiiiiiiii=t.asm.yg).apply(null,arguments)},Yf=t.dynCall_jiiiiijiiii=function(){return(Yf=t.dynCall_jiiiiijiiii=t.asm.zg).apply(null,arguments)},Hf=t.dynCall_jiiijiii=function(){return(Hf=t.dynCall_jiiijiii=t.asm.Ag).apply(null,arguments)},Gf=t.dynCall_jj=function(){return(Gf=t.dynCall_jj=t.asm.Bg).apply(null,arguments)},$f=t.dynCall_jd=function(){return($f=t.dynCall_jd=t.asm.Cg).apply(null,arguments)},Jf=t.dynCall_jf=function(){return(Jf=t.dynCall_jf=t.asm.Dg).apply(null,arguments)},Kf=t.dynCall_iijjjj=function(){return(Kf=t.dynCall_iijjjj=t.asm.Eg).apply(null,arguments)},Qf=t.dynCall_iiijji=function(){return(Qf=t.dynCall_iiijji=t.asm.Fg).apply(null,arguments)},Zf=t.dynCall_vijijiiiijjj=function(){return(Zf=t.dynCall_vijijiiiijjj=t.asm.Gg).apply(null,arguments)},Xf=t.dynCall_viiiiiij=function(){return(Xf=t.dynCall_viiiiiij=t.asm.Hg).apply(null,arguments)},eh=t.dynCall_iiiiiiji=function(){return(eh=t.dynCall_iiiiiiji=t.asm.Ig).apply(null,arguments)},th=t.dynCall_iiiiiiiiji=function(){return(th=t.dynCall_iiiiiiiiji=t.asm.Jg).apply(null,arguments)},rh=t.dynCall_viiiiijj=function(){return(rh=t.dynCall_viiiiijj=t.asm.Kg).apply(null,arguments)},ih=t.dynCall_vijiii=function(){return(ih=t.dynCall_vijiii=t.asm.Lg).apply(null,arguments)},nh=t.dynCall_jijijjij=function(){return(nh=t.dynCall_jijijjij=t.asm.Mg).apply(null,arguments)},sh=t.dynCall_vijjij=function(){return(sh=t.dynCall_vijjij=t.asm.Ng).apply(null,arguments)},ah=t.dynCall_viijjj=function(){return(ah=t.dynCall_viijjj=t.asm.Og).apply(null,arguments)},oh=t.dynCall_viijjji=function(){return(oh=t.dynCall_viijjji=t.asm.Pg).apply(null,arguments)},uh=t.dynCall_iijjijj=function(){return(uh=t.dynCall_iijjijj=t.asm.Qg).apply(null,arguments)},ch=t.dynCall_viiiijiiiii=function(){return(ch=t.dynCall_viiiijiiiii=t.asm.Rg).apply(null,arguments)},lh=t.dynCall_viiiijiiii=function(){return(lh=t.dynCall_viiiijiiii=t.asm.Sg).apply(null,arguments)},dh=t.dynCall_iiiiiij=function(){return(dh=t.dynCall_iiiiiij=t.asm.Tg).apply(null,arguments)},fh=t.dynCall_iiiiiiiiiiji=function(){return(fh=t.dynCall_iiiiiiiiiiji=t.asm.Ug).apply(null,arguments)},hh=t.dynCall_viiiiiji=function(){return(hh=t.dynCall_viiiiiji=t.asm.Vg).apply(null,arguments)},ph=t.dynCall_jiiiiiii=function(){return(ph=t.dynCall_jiiiiiii=t.asm.Wg).apply(null,arguments)},yh=t.dynCall_viiiji=function(){return(yh=t.dynCall_viiiji=t.asm.Xg).apply(null,arguments)},mh=t.dynCall_jijj=function(){return(mh=t.dynCall_jijj=t.asm.Yg).apply(null,arguments)},_h=t.dynCall_viiiijiiiiiiii=function(){return(_h=t.dynCall_viiiijiiiiiiii=t.asm.Zg).apply(null,arguments)},bh=t.dynCall_ij=function(){return(bh=t.dynCall_ij=t.asm._g).apply(null,arguments)},gh=t.dynCall_jjj=function(){return(gh=t.dynCall_jjj=t.asm.$g).apply(null,arguments)},vh=t.dynCall_vjii=function(){return(vh=t.dynCall_vjii=t.asm.ah).apply(null,arguments)},wh=t.dynCall_vjiiii=function(){return(wh=t.dynCall_vjiiii=t.asm.bh).apply(null,arguments)},jh=t.dynCall_viiiiijiii=function(){return(jh=t.dynCall_viiiiijiii=t.asm.ch).apply(null,arguments)},Th=t.dynCall_vijji=function(){return(Th=t.dynCall_vijji=t.asm.dh).apply(null,arguments)},Bh=t.dynCall_jiij=function(){return(Bh=t.dynCall_jiij=t.asm.eh).apply(null,arguments)},Ih=t.dynCall_iiiijjii=function(){return(Ih=t.dynCall_iiiijjii=t.asm.fh).apply(null,arguments)},Sh=t.dynCall_iiiiijji=function(){return(Sh=t.dynCall_iiiiijji=t.asm.gh).apply(null,arguments)},Oh=t.dynCall_viiijjii=function(){return(Oh=t.dynCall_viiijjii=t.asm.hh).apply(null,arguments)},Ah=t.dynCall_viiiijji=function(){return(Ah=t.dynCall_viiiijji=t.asm.ih).apply(null,arguments)},Dh=t.dynCall_viiiijjii=function(){return(Dh=t.dynCall_viiiijjii=t.asm.jh).apply(null,arguments)},Fh=t.dynCall_viiiiijji=function(){return(Fh=t.dynCall_viiiiijji=t.asm.kh).apply(null,arguments)},Rh=t.dynCall_jiiiij=function(){return(Rh=t.dynCall_jiiiij=t.asm.lh).apply(null,arguments)},Eh=t.dynCall_iidj=function(){return(Eh=t.dynCall_iidj=t.asm.mh).apply(null,arguments)},Ch=t.dynCall_ijji=function(){return(Ch=t.dynCall_ijji=t.asm.nh).apply(null,arguments)},Uh=t.dynCall_iiiiiiiij=function(){return(Uh=t.dynCall_iiiiiiiij=t.asm.oh).apply(null,arguments)},kh=t.dynCall_iiiiiiij=function(){return(kh=t.dynCall_iiiiiiij=t.asm.ph).apply(null,arguments)},Mh=t.dynCall_iiiiiiiiiiiij=function(){return(Mh=t.dynCall_iiiiiiiiiiiij=t.asm.qh).apply(null,arguments)},Ph=t.dynCall_iiiiiiiji=function(){return(Ph=t.dynCall_iiiiiiiji=t.asm.rh).apply(null,arguments)},Vh=t.dynCall_iiiidjj=function(){return(Vh=t.dynCall_iiiidjj=t.asm.sh).apply(null,arguments)},Nh=t.dynCall_iiiijjj=function(){return(Nh=t.dynCall_iiiijjj=t.asm.th).apply(null,arguments)},Lh=t.dynCall_jiiiii=function(){return(Lh=t.dynCall_jiiiii=t.asm.uh).apply(null,arguments)},xh=t.dynCall_jiiiiiijii=function(){return(xh=t.dynCall_jiiiiiijii=t.asm.vh).apply(null,arguments)},qh=t.dynCall_iiiijji=function(){return(qh=t.dynCall_iiiijji=t.asm.wh).apply(null,arguments)},Wh=t.dynCall_viiijji=function(){return(Wh=t.dynCall_viiijji=t.asm.xh).apply(null,arguments)},zh=t.dynCall_jiiiiii=function(){return(zh=t.dynCall_jiiiiii=t.asm.yh).apply(null,arguments)},Yh=t.dynCall_iiijiii=function(){return(Yh=t.dynCall_iiijiii=t.asm.zh).apply(null,arguments)},Hh=t.dynCall_iiiiijii=function(){return(Hh=t.dynCall_iiiiijii=t.asm.Ah).apply(null,arguments)},Gh=t.dynCall_iiijiij=function(){return(Gh=t.dynCall_iiijiij=t.asm.Bh).apply(null,arguments)},$h=t.dynCall_iijjiii=function(){return($h=t.dynCall_iijjiii=t.asm.Ch).apply(null,arguments)},Jh=t.dynCall_iijjiiii=function(){return(Jh=t.dynCall_iijjiiii=t.asm.Dh).apply(null,arguments)},Kh=t.dynCall_iiji=function(){return(Kh=t.dynCall_iiji=t.asm.Eh).apply(null,arguments)},Qh=t.dynCall_iijji=function(){return(Qh=t.dynCall_iijji=t.asm.Fh).apply(null,arguments)},Zh=t.dynCall_vijiiii=function(){return(Zh=t.dynCall_vijiiii=t.asm.Gh).apply(null,arguments)},Xh=t.dynCall_iijiiii=function(){return(Xh=t.dynCall_iijiiii=t.asm.Hh).apply(null,arguments)},ep=t.dynCall_vjjii=function(){return(ep=t.dynCall_vjjii=t.asm.Ih).apply(null,arguments)},tp=t.dynCall_iiiijiii=function(){return(tp=t.dynCall_iiiijiii=t.asm.Jh).apply(null,arguments)},rp=t.dynCall_iiijij=function(){return(rp=t.dynCall_iiijij=t.asm.Kh).apply(null,arguments)},ip=t.dynCall_iijj=function(){return(ip=t.dynCall_iijj=t.asm.Lh).apply(null,arguments)},np=t.dynCall_viiijiii=function(){return(np=t.dynCall_viiijiii=t.asm.Mh).apply(null,arguments)},sp=t.dynCall_iiijiiii=function(){return(sp=t.dynCall_iiijiiii=t.asm.Nh).apply(null,arguments)},ap=t.dynCall_jiiij=function(){return(ap=t.dynCall_jiiij=t.asm.Oh).apply(null,arguments)},op=t.dynCall_iiiiijjiijj=function(){return(op=t.dynCall_iiiiijjiijj=t.asm.Ph).apply(null,arguments)},up=t.dynCall_viijiijji=function(){return(up=t.dynCall_viijiijji=t.asm.Qh).apply(null,arguments)},cp=t.dynCall_vjjijij=function(){return(cp=t.dynCall_vjjijij=t.asm.Rh).apply(null,arguments)},lp=t.dynCall_vijjji=function(){return(lp=t.dynCall_vijjji=t.asm.Sh).apply(null,arguments)},dp=t.dynCall_jiiijji=function(){return(dp=t.dynCall_jiiijji=t.asm.Th).apply(null,arguments)},fp=t.dynCall_iiijjii=function(){return(fp=t.dynCall_iiijjii=t.asm.Uh).apply(null,arguments)},hp=t.dynCall_iijjii=function(){return(hp=t.dynCall_iijjii=t.asm.Vh).apply(null,arguments)},pp=t.dynCall_vijii=function(){return(pp=t.dynCall_vijii=t.asm.Wh).apply(null,arguments)},yp=t.dynCall_viijjii=function(){return(yp=t.dynCall_viijjii=t.asm.Xh).apply(null,arguments)},mp=t.dynCall_jijjij=function(){return(mp=t.dynCall_jijjij=t.asm.Yh).apply(null,arguments)},_p=t.dynCall_jijiii=function(){return(_p=t.dynCall_jijiii=t.asm.Zh).apply(null,arguments)},bp=t.dynCall_viijiiij=function(){return(bp=t.dynCall_viijiiij=t.asm._h).apply(null,arguments)},gp=t.dynCall_vijiiiji=function(){return(gp=t.dynCall_vijiiiji=t.asm.$h).apply(null,arguments)},vp=t.dynCall_jiiji=function(){return(vp=t.dynCall_jiiji=t.asm.ai).apply(null,arguments)},wp=t.dynCall_viiijij=function(){return(wp=t.dynCall_viiijij=t.asm.bi).apply(null,arguments)},jp=t.dynCall_viijiijj=function(){return(jp=t.dynCall_viijiijj=t.asm.ci).apply(null,arguments)},Tp=t.dynCall_vijij=function(){return(Tp=t.dynCall_vijij=t.asm.di).apply(null,arguments)},Bp=t.dynCall_iiijjjj=function(){return(Bp=t.dynCall_iiijjjj=t.asm.ei).apply(null,arguments)},Ip=t.dynCall_iijiji=function(){return(Ip=t.dynCall_iijiji=t.asm.fi).apply(null,arguments)},Sp=t.dynCall_viiijijiji=function(){return(Sp=t.dynCall_viiijijiji=t.asm.gi).apply(null,arguments)},Op=t.dynCall_vjiiiji=function(){return(Op=t.dynCall_vjiiiji=t.asm.hi).apply(null,arguments)},Ap=t.dynCall_jiiijj=function(){return(Ap=t.dynCall_jiiijj=t.asm.ii).apply(null,arguments)},Dp=t.dynCall_viijiiii=function(){return(Dp=t.dynCall_viijiiii=t.asm.ji).apply(null,arguments)},Fp=t.dynCall_iiiijii=function(){return(Fp=t.dynCall_iiiijii=t.asm.ki).apply(null,arguments)},Rp=t.dynCall_viiiijii=function(){return(Rp=t.dynCall_viiiijii=t.asm.li).apply(null,arguments)},Ep=t.dynCall_iijiii=function(){return(Ep=t.dynCall_iijiii=t.asm.mi).apply(null,arguments)},Cp=t.dynCall_jiiiiji=function(){return(Cp=t.dynCall_jiiiiji=t.asm.ni).apply(null,arguments)},Up=t.dynCall_vijiijj=function(){return(Up=t.dynCall_vijiijj=t.asm.oi).apply(null,arguments)},kp=t.dynCall_vifiijj=function(){return(kp=t.dynCall_vifiijj=t.asm.pi).apply(null,arguments)},Mp=t.dynCall_vidiijj=function(){return(Mp=t.dynCall_vidiijj=t.asm.qi).apply(null,arguments)},Pp=t.dynCall_viiiiij=function(){return(Pp=t.dynCall_viiiiij=t.asm.ri).apply(null,arguments)},Vp=t.dynCall_ijj=function(){return(Vp=t.dynCall_ijj=t.asm.si).apply(null,arguments)},Np=t.dynCall_ijjiii=function(){return(Np=t.dynCall_ijjiii=t.asm.ti).apply(null,arguments)},Lp=t.dynCall_vijijjji=function(){return(Lp=t.dynCall_vijijjji=t.asm.ui).apply(null,arguments)},xp=t.dynCall_viiiiijjji=function(){return(xp=t.dynCall_viiiiijjji=t.asm.vi).apply(null,arguments)},qp=t.dynCall_viijijj=function(){return(qp=t.dynCall_viijijj=t.asm.wi).apply(null,arguments)},Wp=t.dynCall_iiijiijj=function(){return(Wp=t.dynCall_iiijiijj=t.asm.xi).apply(null,arguments)},zp=t.dynCall_viiijijjj=function(){return(zp=t.dynCall_viiijijjj=t.asm.yi).apply(null,arguments)},Yp=t.dynCall_iijiijj=function(){return(Yp=t.dynCall_iijiijj=t.asm.zi).apply(null,arguments)},Hp=t.dynCall_viiijjjji=function(){return(Hp=t.dynCall_viiijjjji=t.asm.Ai).apply(null,arguments)},Gp=t.dynCall_viiiijiii=function(){return(Gp=t.dynCall_viiiijiii=t.asm.Bi).apply(null,arguments)},$p=t.dynCall_iijii=function(){return($p=t.dynCall_iijii=t.asm.Ci).apply(null,arguments)},Jp=t.dynCall_vijjiiii=function(){return(Jp=t.dynCall_vijjiiii=t.asm.Di).apply(null,arguments)},Kp=t.dynCall_vijijjiiiii=function(){return(Kp=t.dynCall_vijijjiiiii=t.asm.Ei).apply(null,arguments)},Qp=t.dynCall_vijjiiiii=function(){return(Qp=t.dynCall_vijjiiiii=t.asm.Fi).apply(null,arguments)},Zp=t.dynCall_iiijjji=function(){return(Zp=t.dynCall_iiijjji=t.asm.Gi).apply(null,arguments)},Xp=t.dynCall_iiiiijjj=function(){return(Xp=t.dynCall_iiiiijjj=t.asm.Hi).apply(null,arguments)},ey=t.dynCall_jijiiii=function(){return(ey=t.dynCall_jijiiii=t.asm.Ii).apply(null,arguments)},ty=t.dynCall_iiijjjii=function(){return(ty=t.dynCall_iiijjjii=t.asm.Ji).apply(null,arguments)},ry=t.dynCall_iiiiijjji=function(){return(ry=t.dynCall_iiiiijjji=t.asm.Ki).apply(null,arguments)},iy=t.dynCall_viijiji=function(){return(iy=t.dynCall_viijiji=t.asm.Li).apply(null,arguments)};function qj(o){var u=I();try{H.get(o)()}catch(l){if(S(u),l!==l+0&&l!=="longjmp")throw l;O(1,0)}}function Wj(o,u,l){var d=I();try{H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function zj(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function Yj(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function Hj(o,u){var l=I();try{H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function Gj(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function $j(o,u,l,d,h,p){var y=I();try{return H.get(o)(u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function Jj(o,u,l,d,h){var p=I();try{H.get(o)(u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function Kj(o,u,l,d,h){var p=I();try{return H.get(o)(u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function Qj(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function Zj(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function Xj(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function eT(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function tT(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function rT(o){var u=I();try{return H.get(o)()}catch(l){if(S(u),l!==l+0&&l!=="longjmp")throw l;O(1,0)}}function iT(o,u,l,d,h,p,y,_){var b=I();try{return H.get(o)(u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function nT(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function sT(o,u,l,d,h,p,y,_){var b=I();try{H.get(o)(u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function aT(o,u,l,d,h,p,y){var _=I();try{return H.get(o)(u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function oT(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function uT(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function cT(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie){var me=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie)}catch(Be){if(S(me),Be!==Be+0&&Be!=="longjmp")throw Be;O(1,0)}}function lT(o,u,l,d,h,p,y){var _=I();try{H.get(o)(u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function dT(o,u,l,d,h,p){var y=I();try{return H.get(o)(u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function fT(o,u,l,d,h,p,y,_,b){var g=I();try{H.get(o)(u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function hT(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function pT(o,u,l,d,h,p){var y=I();try{H.get(o)(u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function yT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function mT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function _T(o,u,l,d,h,p,y,_,b){var g=I();try{return H.get(o)(u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function bT(o,u,l,d,h){var p=I();try{return H.get(o)(u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function gT(o,u,l,d,h){var p=I();try{return H.get(o)(u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function vT(o,u,l,d,h,p){var y=I();try{H.get(o)(u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function wT(o,u,l){var d=I();try{H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function jT(o,u,l){var d=I();try{H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function TT(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function BT(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be,M,G){var Re=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be,M,G)}catch(be){if(S(Re),be!==be+0&&be!=="longjmp")throw be;O(1,0)}}function IT(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be,M,G,Re){var be=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be,M,G,Re)}catch(lt){if(S(be),lt!==lt+0&<!=="longjmp")throw lt;O(1,0)}}function ST(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function OT(o,u,l,d){var h=I();try{H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function AT(o,u,l,d,h,p,y,_,b,g,T,B,A,C){var N=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C)}catch(ie){if(S(N),ie!==ie+0&&ie!=="longjmp")throw ie;O(1,0)}}function DT(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie){var me=I();try{return H.get(o)(u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie)}catch(Be){if(S(me),Be!==Be+0&&Be!=="longjmp")throw Be;O(1,0)}}function FT(o,u,l,d,h,p,y,_,b,g){var T=I();try{H.get(o)(u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function RT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function ET(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function CT(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function UT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function kT(o,u,l){var d=I();try{return H.get(o)(u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function MT(o,u,l,d){var h=I();try{return H.get(o)(u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function PT(o,u,l,d,h,p,y,_,b,g){var T=I();try{H.get(o)(u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function VT(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{H.get(o)(u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function NT(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function LT(o,u){var l=I();try{return H.get(o)(u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function xT(o,u,l,d,h){var p=I();try{return Nd(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function qT(o,u,l,d,h,p,y){var _=I();try{$d(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function WT(o,u){var l=I();try{return zd(o,u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function zT(o,u,l){var d=I();try{return of(o,u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function YT(o,u,l,d,h,p,y){var _=I();try{qd(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function HT(o,u,l,d,h,p,y){var _=I();try{return Ld(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function GT(o,u,l,d,h,p,y,_,b){var g=I();try{return xd(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function $T(o,u,l,d){var h=I();try{return Yd(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function JT(o,u,l,d,h,p){var y=I();try{Kd(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function KT(o){var u=I();try{return Wd(o)}catch(l){if(S(u),l!==l+0&&l!=="longjmp")throw l;O(1,0)}}function QT(o,u,l,d,h){var p=I();try{Hd(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function ZT(o,u,l,d,h,p,y,_){var b=I();try{Qd(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function XT(o,u,l,d,h,p,y){var _=I();try{return Zd(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function e0(o,u,l,d,h,p,y,_){var b=I();try{Gd(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function t0(o,u,l,d){var h=I();try{af(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function r0(o,u,l,d,h,p){var y=I();try{Xd(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function i0(o,u,l,d,h,p,y,_,b,g){var T=I();try{tf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function n0(o,u,l,d,h){var p=I();try{return rf(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function s0(o,u,l,d,h,p,y,_,b){var g=I();try{nf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function a0(o,u,l,d){var h=I();try{return sf(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function o0(o,u,l,d,h,p,y,_){var b=I();try{Jd(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function u0(o,u,l,d,h,p,y,_,b){var g=I();try{ah(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function c0(o,u,l,d,h){var p=I();try{cf(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function l0(o,u,l,d,h){var p=I();try{return Vp(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function d0(o,u,l,d,h,p,y,_){var b=I();try{return Np(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function f0(o,u,l,d,h,p){var y=I();try{uf(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function h0(o,u,l,d,h,p){var y=I();try{return yf(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function p0(o,u,l,d,h,p,y,_){var b=I();try{return lf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function y0(o,u,l,d,h,p,y,_,b){var g=I();try{hf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function m0(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{ff(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function _0(o,u,l,d,h,p,y,_,b,g){var T=I();try{df(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function b0(o,u,l,d,h,p,y,_,b){var g=I();try{Wh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function g0(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Sp(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function v0(o,u,l,d,h,p,y,_,b){var g=I();try{wp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function w0(o,u,l,d,h,p,y,_){var b=I();try{return rp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function j0(o,u,l,d,h,p){var y=I();try{return _f(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function T0(o,u,l,d,h,p){var y=I();try{return ip(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function B0(o,u,l,d,h,p,y,_){var b=I();try{return Qf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function I0(o,u,l,d,h,p,y){var _=I();try{pf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function S0(o,u,l,d,h,p,y,_){var b=I();try{return mf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function O0(o,u,l,d,h,p,y){var _=I();try{return bf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function A0(o,u,l,d){var h=I();try{return gf(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function D0(o,u,l,d,h,p,y){var _=I();try{ih(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function F0(o,u,l,d,h,p,y,_){var b=I();try{Zh(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function R0(o,u,l,d,h,p,y,_){var b=I();try{return Xh(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function E0(o,u,l,d,h,p,y,_){var b=I();try{ef(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function C0(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{If(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function U0(o,u,l,d,h,p,y,_){var b=I();try{Sf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function k0(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Of(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function M0(o,u,l,d,h,p,y,_,b,g){var T=I();try{Af(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function P0(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Ff(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function V0(o,u,l,d,h,p,y,_,b,g){var T=I();try{return wf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function N0(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return jf(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function L0(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Tf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function x0(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Bf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function q0(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{Rf(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function W0(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Ef(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function z0(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie){var me=I();try{Cf(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie)}catch(Be){if(S(me),Be!==Be+0&&Be!=="longjmp")throw Be;O(1,0)}}function Y0(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be){var M=I();try{Uf(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me,Be)}catch(G){if(S(M),G!==G+0&&G!=="longjmp")throw G;O(1,0)}}function H0(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{Df(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function G0(o,u,l,d,h,p){var y=I();try{return Lh(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function $0(o,u,l,d,h,p,y,_,b){var g=I();try{Xf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function J0(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return xh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function K0(o,u,l,d,h,p,y,_,b){var g=I();try{return qh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function Q0(o,u,l,d,h,p,y,_){var b=I();try{return kf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function Z0(o,u,l,d,h,p,y,_){var b=I();try{qf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function X0(o,u,l,d,h,p,y,_,b){var g=I();try{return Wf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function eB(o,u,l,d,h,p,y){var _=I();try{return Mf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function tB(o,u,l,d,h,p,y){var _=I();try{return Pf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function rB(o,u,l,d,h,p,y,_){var b=I();try{Vf(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function iB(o,u,l,d,h,p,y){var _=I();try{return Nf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function nB(o,u,l,d,h,p,y){var _=I();try{return Lf(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function sB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return xf(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function aB(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N){var ie=I();try{return zf(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N)}catch(me){if(S(ie),me!==me+0&&me!=="longjmp")throw me;O(1,0)}}function oB(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return Yf(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function uB(o,u,l,d,h,p,y,_,b){var g=I();try{return Hf(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function cB(o,u,l){var d=I();try{return Gf(o,u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function lB(o,u){var l=I();try{return $f(o,u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function dB(o,u){var l=I();try{return Jf(o,u)}catch(d){if(S(l),d!==d+0&&d!=="longjmp")throw d;O(1,0)}}function fB(o,u,l,d,h,p,y){var _=I();try{return zh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function hB(o,u,l,d,h,p,y){var _=I();try{yh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function pB(o,u,l,d,h,p){var y=I();try{return Ch(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function yB(o,u,l,d,h,p,y,_,b){var g=I();try{return eh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function mB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return th(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function _B(o,u,l,d,h,p,y,_,b,g){var T=I();try{rh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function bB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Kf(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function gB(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me){var Be=I();try{Zf(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N,ie,me)}catch(M){if(S(Be),M!==M+0&&M!=="longjmp")throw M;O(1,0)}}function vB(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return nh(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function wB(o,u,l,d,h,p,y,_,b){var g=I();try{sh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function jB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Uh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function TB(o,u,l,d,h,p,y,_,b,g){var T=I();try{oh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function BB(o,u,l,d,h,p,y,_){var b=I();try{return dh(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function IB(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{return fh(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function SB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return uh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function OB(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{ch(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function AB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{lh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function DB(o,u,l,d,h,p,y,_,b){var g=I();try{hh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function FB(o,u,l,d,h,p,y,_){var b=I();try{return ph(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function RB(o,u,l,d,h,p,y,_,b){var g=I();try{return kh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function EB(o,u,l,d,h,p,y,_,b,g,T,B,A,C){var N=I();try{return Mh(o,u,l,d,h,p,y,_,b,g,T,B,A,C)}catch(ie){if(S(N),ie!==ie+0&&ie!=="longjmp")throw ie;O(1,0)}}function CB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{jh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function UB(o,u,l){var d=I();try{return bh(o,u,l)}catch(h){if(S(d),h!==h+0&&h!=="longjmp")throw h;O(1,0)}}function kB(o,u,l,d,h){var p=I();try{return Bh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function MB(o,u,l,d,h,p,y){var _=I();try{wh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function PB(o,u,l,d){var h=I();try{return vf(o,u,l,d)}catch(p){if(S(h),p!==p+0&&p!=="longjmp")throw p;O(1,0)}}function VB(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N){var ie=I();try{_h(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N)}catch(me){if(S(ie),me!==me+0&&me!=="longjmp")throw me;O(1,0)}}function NB(o,u,l,d,h){var p=I();try{return gh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function LB(o,u,l,d,h){var p=I();try{vh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function xB(o,u,l,d,h,p,y){var _=I();try{Th(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function qB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Ih(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function WB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Sh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function zB(o,u,l,d,h,p,y,_,b,g){var T=I();try{Oh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function YB(o,u,l,d,h,p,y,_,b,g){var T=I();try{Ah(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function HB(o,u,l,d,h,p,y){var _=I();try{return Rh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function GB(o,u,l,d,h,p){var y=I();try{return ap(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function $B(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{Dh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function JB(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{Fh(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function KB(o,u,l,d,h){var p=I();try{return Eh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function QB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Ph(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function ZB(o,u,l,d,h,p,y,_,b){var g=I();try{return Vh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function XB(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Nh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function eI(o,u,l,d,h,p,y,_){var b=I();try{return Yh(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function tI(o,u,l,d,h,p,y,_,b){var g=I();try{return Hh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function rI(o,u,l,d,h,p,y,_,b){var g=I();try{return Gh(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function iI(o,u,l,d,h,p,y,_,b){var g=I();try{return $h(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function nI(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Jh(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function sI(o,u,l,d,h,p,y){var _=I();try{return Qh(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function aI(o,u,l,d,h){var p=I();try{return Kh(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function oI(o,u,l,d,h,p,y){var _=I();try{ep(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function uI(o,u,l,d,h,p,y,_,b){var g=I();try{return tp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function cI(o,u,l,d,h,p,y,_,b){var g=I();try{np(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function lI(o,u,l,d,h,p,y,_,b){var g=I();try{return sp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function dI(o,u,l,d,h,p,y,_,b){var g=I();try{lp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function fI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{cp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function hI(o,u,l,d,h,p){var y=I();try{return vp(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function pI(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{up(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function yI(o,u,l,d,h,p,y,_,b){var g=I();try{return dp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function mI(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N){var ie=I();try{return op(o,u,l,d,h,p,y,_,b,g,T,B,A,C,N)}catch(me){if(S(ie),me!==me+0&&me!=="longjmp")throw me;O(1,0)}}function _I(o,u,l,d,h,p,y,_,b){var g=I();try{return fp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function bI(o,u,l,d,h,p,y,_){var b=I();try{return hp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function gI(o,u,l,d,h,p){var y=I();try{pp(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function vI(o,u,l,d,h,p,y,_,b){var g=I();try{yp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function wI(o,u,l,d,h,p,y,_,b,g){var T=I();try{bp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function jI(o,u,l,d,h,p,y){var _=I();try{return _p(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function TI(o,u,l,d,h,p,y,_,b,g){var T=I();try{gp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function BI(o,u,l,d,h,p,y,_,b){var g=I();try{return mp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function II(o,u,l,d,h,p,y){var _=I();try{Tp(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function SI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return Bp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function OI(o,u,l,d,h,p,y,_){var b=I();try{return Ip(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function AI(o,u,l,d,h,p,y,_,b){var g=I();try{Op(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function DI(o,u,l,d,h){var p=I();try{return Vd(o,u,l,d,h)}catch(y){if(S(p),y!==y+0&&y!=="longjmp")throw y;O(1,0)}}function FI(o,u,l,d,h,p,y,_){var b=I();try{return Ap(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function RI(o,u,l,d,h,p,y,_,b){var g=I();try{Dp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function EI(o,u,l,d,h,p,y,_){var b=I();try{return Fp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function CI(o,u,l,d,h,p,y,_,b){var g=I();try{Rp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function UI(o,u,l,d,h,p,y){var _=I();try{return Ep(o,u,l,d,h,p,y)}catch(b){if(S(_),b!==b+0&&b!=="longjmp")throw b;O(1,0)}}function kI(o,u,l,d,h,p,y,_){var b=I();try{return Cp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function MI(o,u,l,d,h,p,y,_,b,g){var T=I();try{Up(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function PI(o,u,l,d,h,p,y,_,b){var g=I();try{kp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function VI(o,u,l,d,h,p,y,_,b){var g=I();try{Mp(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function NI(o,u,l,d,h,p,y,_){var b=I();try{Pp(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function LI(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{Lp(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}function xI(o,u,l,d,h,p){var y=I();try{return mh(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function qI(o,u,l,d,h,p,y,_,b,g){var T=I();try{qp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function WI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return Wp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function zI(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{xp(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function YI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{jp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function HI(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{zp(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function GI(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Yp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function $I(o,u,l,d,h,p,y,_,b,g){var T=I();try{return Zp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function JI(o,u,l,d,h,p,y,_,b,g,T,B,A){var C=I();try{Hp(o,u,l,d,h,p,y,_,b,g,T,B,A)}catch(N){if(S(C),N!==N+0&&N!=="longjmp")throw N;O(1,0)}}function KI(o,u,l,d,h,p,y,_,b,g){var T=I();try{Gp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function QI(o,u,l,d,h,p){var y=I();try{return $p(o,u,l,d,h,p)}catch(_){if(S(y),_!==_+0&&_!=="longjmp")throw _;O(1,0)}}function ZI(o,u,l,d,h,p,y,_,b,g,T,B,A,C){var N=I();try{Kp(o,u,l,d,h,p,y,_,b,g,T,B,A,C)}catch(ie){if(S(N),ie!==ie+0&&ie!=="longjmp")throw ie;O(1,0)}}function XI(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{Qp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function eS(o,u,l,d,h,p,y,_,b,g){var T=I();try{Jp(o,u,l,d,h,p,y,_,b,g)}catch(B){if(S(T),B!==B+0&&B!=="longjmp")throw B;O(1,0)}}function tS(o,u,l,d,h,p,y,_,b){var g=I();try{iy(o,u,l,d,h,p,y,_,b)}catch(T){if(S(g),T!==T+0&&T!=="longjmp")throw T;O(1,0)}}function rS(o,u,l,d,h,p,y,_){var b=I();try{return ey(o,u,l,d,h,p,y,_)}catch(g){if(S(b),g!==g+0&&g!=="longjmp")throw g;O(1,0)}}function iS(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return ty(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function nS(o,u,l,d,h,p,y,_,b,g,T){var B=I();try{return Xp(o,u,l,d,h,p,y,_,b,g,T)}catch(A){if(S(B),A!==A+0&&A!=="longjmp")throw A;O(1,0)}}function sS(o,u,l,d,h,p,y,_,b,g,T,B){var A=I();try{return ry(o,u,l,d,h,p,y,_,b,g,T,B)}catch(C){if(S(A),C!==C+0&&C!=="longjmp")throw C;O(1,0)}}t.ccall=_v;var Us;function ks(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var aS=!1;En=function o(){Us||Jo(),Us||(En=o)};function oS(o){var u=t._main,l=0,d=0;try{var h=u(l,d);return uS(h,!0),h}catch(p){return zv(p)}finally{aS=!0}}function Jo(o){if(o=o||f,ai>0||(Rv(),ai>0))return;function u(){Us||(Us=!0,t.calledRun=!0,!Lo&&(Ev(),Cv(),i(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),ny&&oS(o),kv()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),u()},1)):u()}t.run=Jo;function uS(o,u){Bs=o,xo()||Uv(),cS(o)}function cS(o){Bs=o,xo()||(t.onExit&&t.onExit(o),Lo=!0),s(o,new ks(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var ny=!0;return t.noInitialRun&&(ny=!1),Jo(),e.ready}}(),sv=uC;var Yt=Ps(Ts());var md=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=Yt.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),Yt.Table.from(i)}send(e){let t=this._bindings.sendQuery(this._conn,e),i=new _d(this._bindings,this._conn,t),n=Yt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new ov(this._bindings,this._conn,t)}insertArrowVectors(e,t){this.insertArrowTable(Yt.Table.new(e),t)}insertArrowTable(e,t){e.schema.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually"),this.insertArrowBatches(e.schema,e.chunks,t)}insertArrowBatches(e,t,i){e.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");let n=new Vo,a=new Yt.RecordBatchStreamWriter().reset(n,e),c=!0;for(let f of t)c||this._bindings.insertArrowFromIPCStream(this._conn,n.flush(),i),c=!1,a.write(f);a.finish(),this._bindings.insertArrowFromIPCStream(this._conn,n.flush(),i)}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)}},_d=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}},ov=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=Yt.RecordBatchReader.from(t);return console.assert(i.isSync()),console.assert(i.isFile()),Yt.Table.from(i)}send(...e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),i=new _d(this.bindings,this.connectionId,t),n=Yt.RecordBatchReader.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}};var Se;(function(e){e[e.SUCCESS=0]="SUCCESS"})(Se||(Se={}));function cC(){let r=new TextDecoder;return e=>(typeof SharedArrayBuffer!="undefined"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),r.decode(e))}var lC=cC();function $e(r,e){console.error(e),r.ccall("duckdb_web_fail_with",null,["string"],[e])}function Fn(r,e,t){let i=r.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function je(r,e,t){return lC(r.HEAPU8.subarray(e,e+t))}var at;(function(i){i[i.BUFFER=0]="BUFFER",i[i.NATIVE=1]="NATIVE",i[i.HTTP=3]="HTTP"})(at||(at={}));function Fe(r,e,t,i){let n=r.stackSave(),a=r.stackAlloc(3*8);t.unshift("number"),i.unshift(a),r.ccall(e,null,t,i);let c=r.HEAPF64[(a>>3)+0],f=r.HEAPF64[(a>>3)+1],j=r.HEAPF64[(a>>3)+2];return r.stackRestore(n),[c,f,j]}function Je(r){r.ccall("duckdb_web_clear_response",null,[],[])}var bd=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),i=new Uint8Array(new ArrayBuffer(e.byteLength));i.set(e.subarray(7*8)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=i}getBlockStats(e,t){return t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},t.file_writes=this.blockStats[e*3+0]&15,t.file_reads_cold=this.blockStats[e*3+0]>>4,t.file_reads_ahead=this.blockStats[e*3+1]&15,t.file_reads_cached=this.blockStats[e*3+1]>>4,t.page_accesses=this.blockStats[e*3+1]&15,t.page_loads=this.blockStats[e*3+1]>>4,t}};var dC=new TextEncoder,uv;(function(a){a[a.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",a[a.WASM_THREADS=2]="WASM_THREADS",a[a.WASM_SIMD=4]="WASM_SIMD",a[a.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",a[a.EMIT_BIGINT=16]="EMIT_BIGINT"})(uv||(uv={}));var gd=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this._logger=e,this._runtime=t}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(){return this._instance!=null?this:(this._initPromise!=null&&await this._initPromise,this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this)}open(e){let[t,i,n]=Fe(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));Je(this.mod)}reset(){let[e,t,i]=Fe(this.mod,"duckdb_web_reset",[],[]);if(e!==Se.SUCCESS)throw new Error(je(this.mod,t,i));Je(this.mod)}getVersion(){let[e,t,i]=Fe(this.mod,"duckdb_web_get_version",[],[]);if(e!==Se.SUCCESS)throw new Error(je(this.mod,t,i));let n=je(this.mod,t,i);return Je(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,i,n]=Fe(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));let a=je(this.mod,i,n);return Je(this.mod),JSON.parse(a)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new md(this,e)}disconnect(e){this.mod.ccall("duckdb_web_disconnect",null,["number"],[e])}runQuery(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));let c=Fn(this.mod,n,a);return Je(this.mod),c}sendQuery(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));let c=Fn(this.mod,n,a);return Je(this.mod),c}fetchQueryResults(e){let[t,i,n]=Fe(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));let a=Fn(this.mod,i,n);return Je(this.mod),a}createPrepared(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_prepared_create",["number","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));return Je(this.mod),n}closePrepared(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));Je(this.mod)}runPrepared(e,t,i){let[n,a,c]=Fe(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==Se.SUCCESS)throw new Error(je(this.mod,a,c));let f=Fn(this.mod,a,c);return Je(this.mod),f}sendPrepared(e,t,i){let[n,a,c]=Fe(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(i)]);if(n!==Se.SUCCESS)throw new Error(je(this.mod,a,c));let f=Fn(this.mod,a,c);return Je(this.mod),f}insertArrowFromIPCStream(e,t,i){let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let c=i?JSON.stringify(i):"",[f,j,s]=Fe(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,c]);if(f!==Se.SUCCESS)throw new Error(je(this.mod,j,s))}insertCSVFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let s in i.columns)i.columnsFlat.push(Dn(s,i.columns[s]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let a=JSON.stringify(n),[c,f,j]=Fe(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,a]);if(c!==Se.SUCCESS)throw new Error(je(this.mod,f,j))}insertJSONFromPath(e,t,i){if(i.columns!==void 0){i.columnsFlat=[];for(let s in i.columns)i.columnsFlat.push(Dn(s,i.columns[s]))}let n={...i};n.columns=n.columnsFlat,delete n.columnsFlat;let a=JSON.stringify(n),[c,f,j]=Fe(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,a]);if(c!==Se.SUCCESS)throw new Error(je(this.mod,f,j))}registerFileURL(e,t){t===void 0&&(t=e);let[i,n,a]=Fe(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));Je(this.mod)}registerFileText(e,t){let i=dC.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[a,c,f]=Fe(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,i,t.length]);if(a!==Se.SUCCESS)throw new Error(je(this.mod,c,f));Je(this.mod)}registerFileHandle(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,e]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));if(Je(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let c of this.pthread.runningWorkers)c.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let c of this.pthread.unusedWorkers)c.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){return this.mod.ccall("duckdb_web_fs_drop_file","boolean",["string"],[e])}dropFiles(){this.mod.ccall("duckdb_web_fs_drop_files",null,[],[])}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a));Je(this.mod)}copyFileToBuffer(e){let[t,i,n]=Fe(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));let a=this.mod.HEAPU8.subarray(i,i+n),c=new Uint8Array(a.length);return c.set(a),Je(this.mod),c}collectFileStatistics(e,t){let[i,n,a]=Fe(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(i!==Se.SUCCESS)throw new Error(je(this.mod,n,a))}exportFileStatistics(e){let[t,i,n]=Fe(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==Se.SUCCESS)throw new Error(je(this.mod,i,n));return new bd(this.mod.HEAPU8.subarray(i,i+n))}};var vd=class extends gd{constructor(e,t,i,n){super(e,t);this.mainModuleURL=i,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${t} path=${e}`)}instantiateWasm(e,t){return globalThis.DUCKDB_RUNTIME=this._runtime,WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(fetch(this.mainModuleURL),e).then(i=>{t(i.instance,i.module)}):fetch(this.mainModuleURL).then(i=>i.arrayBuffer()).then(i=>WebAssembly.instantiate(i,e).then(n=>{t(n.instance,n.module)})).catch(i=>{console.error("Failed to instantiate WASM:",i)}),[]}};var wd=class extends vd{constructor(e,t,i,n=null){super(e,t,i,n)}instantiateImpl(e){return sv({...e,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var ot={fileInfoCache:new Map,getFileInfo(r,e){try{let t=ot.fileInfoCache.get(e);if(t)return t;let[i,n,a]=Fe(r,"duckdb_web_fs_get_file_info",["number"],[e]);if(i!==Se.SUCCESS)throw new Error(je(r,n,a));let c=je(r,n,a);Je(r);let f=JSON.parse(c);if(f==null)return null;let j={...f,blob:null};return ot.fileInfoCache.set(e,j),j}catch(t){return $e(r,t.toString()),null}},testPlatformFeature:(r,e)=>{switch(e){case 1:return typeof BigInt64Array!="undefined";default:return console.warn(`test for unknown feature: ${e}`),!1}},openFile:(r,e)=>{try{ot.fileInfoCache.delete(e);let t=ot.getFileInfo(r,e);switch(t?.data_protocol){case at.HTTP:{let i=new XMLHttpRequest;i.open("HEAD",t.data_url,!1),i.setRequestHeader("Range","bytes=0-"),i.send(null);let n=!1;if(i.status==206?n=!0:i.status==200&&(n=i.getResponseHeader("Accept-Ranges")==="bytes"),!n)return $e(r,`File does not support range requests: ${t.file_name}`),0;break}case at.NATIVE:{if(!ot._files?.get(t.file_name))return $e(r,`No handle available for file: ${t.file_name}`),0;break}}}catch(t){$e(r,t.toString())}return 0},glob:(r,e,t)=>{try{let i=je(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let a=!1;if(n.status==206)a=!0;else if(n.status==200)a=n.getResponseHeader("Accept-Ranges")==="bytes";else{$e(r,`HEAD request failed: ${i}`);return}if(!a){$e(r,`File does not support range requests: ${i}`);return}r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(i){return $e(r,i.toString()),0}},checkFile:(r,e,t)=>{try{let i=je(r,e,t);if(i.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",i,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let a=!1;if(n.status==206)a=!0;else if(n.status==200)a=n.getResponseHeader("Accept-Ranges")==="bytes";else return!1;return!!a}}catch{return!1}return!1},syncFile:(r,e)=>{},closeFile:(r,e)=>{let t=ot.getFileInfo(r,e);switch(ot.fileInfoCache.delete(e),t?.data_protocol){case at.HTTP:break;case at.NATIVE:return}},truncateFile:(r,e,t)=>{switch(ot.getFileInfo(r,e)?.data_protocol){case at.HTTP:$e(r,"Cannot truncate a http file");return;case at.NATIVE:$e(r,"truncateFile not implemented");return}return 0},readFile(r,e,t,i,n){try{let a=ot.getFileInfo(r,e);switch(a?.data_protocol){case at.HTTP:{if(!a.data_url)return $e(r,`Missing data URL for file ${e}`),0;let c=new XMLHttpRequest;if(c.open("GET",a.data_url,!1),c.responseType="arraybuffer",c.setRequestHeader("Range",`bytes=${n}-${n+i-1}`),c.send(null),c.status==206||c.status==200&&i==c.response.byteLength&&n==0){let f=new Uint8Array(c.response,0,Math.min(c.response.byteLength,i));return r.HEAPU8.set(f,t),f.byteLength}else return c.status==200?($e(r,`Range request for ${a.data_url} did not return a partial response: ${c.status} "${c.statusText}"`),0):($e(r,`Range request for ${a.data_url} did returned non-success status: ${c.status} "${c.statusText}"`),0)}case at.NATIVE:{let c=ot._files?.get(a.file_name);if(!c)return $e(r,`No handle available for file: ${a.file_name}`),0;let f=c.slice(n,n+i),j=new Uint8Array(new FileReaderSync().readAsArrayBuffer(f));return r.HEAPU8.set(j,t),j.byteLength}}return 0}catch(a){return $e(r,a.toString()),0}},writeFile:(r,e,t,i,n)=>{switch(ot.getFileInfo(r,e)?.data_protocol){case at.HTTP:return $e(r,"Cannot write to HTTP file"),0;case at.NATIVE:return $e(r,"writefile not implemented"),0}return 0},getFileSize:(r,e)=>{try{let t=ot.getFileInfo(r,e);switch(t?.data_protocol){case at.NATIVE:{let i=ot._files?.get(t.file_name);return i?i.size:($e(r,`No handle available for file: ${t.file_name}`),0)}case at.HTTP:{if(!t.data_url)throw new Error(`Missing data URL for file ${e}`);let i=new XMLHttpRequest;if(i.open("HEAD",t.data_url,!1),i.send(null),i.status==200){let n=i.getResponseHeader("Content-Length");if(n)return parseInt(n);throw Error(`HEAD ${t.data_url} does not contain the HTTP header: Content-Length`)}else throw Error(`HEAD ${t.data_url} returned non-success status: ${i.status} "${i.statusText}"`)}}return 0}catch(t){return $e(r,t.toString()),0}},getLastFileModificationTime:(r,e)=>{let t=ot.getFileInfo(r,e);switch(t?.data_protocol){case at.NATIVE:{if(!ot._files?.get(t.file_name))throw Error(`No handle available for file: ${t.file_name}`);return 0}case at.HTTP:return new Date().getTime()}return 0},checkDirectory:(r,e,t)=>!1,createDirectory:(r,e,t)=>{},removeDirectory:(r,e,t)=>{},listDirectoryEntries:(r,e,t)=>!1,moveFile:(r,e,t,i,n)=>{},removeFile:(r,e,t)=>{}};var cv=class extends pd{postMessage(e,t){globalThis.postMessage(e,t)}async instantiate(e,t){return await new wd(this,ot,e,t).instantiate()}};function lv(){let r=new cv;globalThis.onmessage=async e=>{await r.onMessage(e.data)}}lv();return fC;})();
|
|
19
19
|
//# sourceMappingURL=duckdb-browser-async.worker.js.map
|