// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory(global.Arrow = global.Arrow || {})); }(this, (function (exports) {var g,k=k||{};k.scope={};k.wd=function(a){var b=0;return function(){return ba.jb&&(a.jb=b);for(var f=~(a.a.F.length-a.M+c)+1&b-1;a.Md||56320<=d)){var e=b.charCodeAt(f++);d=(d<<10)+e+-56613888}128>d?c.push(d):(2048>d?c.push(d>>6&31|192):(65536>d?c.push(d>>12&15|224):c.push(d>>18&7|240,d>>12&63|128),c.push(d>>6&63|128)),c.push(d&63|128))}}Ia(a,1,0);a.Pa(0);Ta(a,1,c.length,1);a.a.setPosition(a.M-=c.length);f=0;b=a.M;for(d=a.a.ma();f>16}g.v=function(a){return this.F[a]|this.F[a+1]<<8|this.F[a+2]<<16|this.F[a+3]<<24};function Xa(a,b){return new Da(a.v(b),a.v(b+4))}g.Pa=function(a,b){this.F[a]=b}; g.zc=function(a,b){this.F[a]=b;this.F[a+1]=b>>8};g.da=function(a,b){this.F[a]=b;this.F[a+1]=b>>8;this.F[a+2]=b>>16;this.F[a+3]=b>>24};g.qa=function(a,b){this.da(a,b.low);this.da(a+4,b.high)};function w(a,b,c){b-=a.v(b);return cc)){var h=Wa(a,b+e++);if(224>c)c=(c&31)<<6|h&63;else{var l=Wa(a,b+e++);if(240>c)c=(c&15)<<12|(h&63)<<6|l&63;else{var m=Wa(a,b+e++);c=(c&7)<<18|(h&63)<<12|(l&63)<<6|m&63}}}65536>c?d+=String.fromCharCode(c):(c-=65536,d+=String.fromCharCode((c>>10)+55296,(c&1023)+56320))}return d}function $a(a,b){return b+a.v(b)}function ab(a,b){return b+a.v(b)+4} function bb(a,b){return a.v(b+a.v(b))}g.oa=function(a,b){return 0==a&&0==b?Ea:new Da(a,b)};function cb(a){if(void 0===a)return{};if(a===Object(a))return a;throw TypeError("Could not convert argument to dictionary");}function db(a){this.Aa=[].slice.call(a)}db.prototype={endOfStream:function(){return!this.Aa.length},read:function(){return this.Aa.length?this.Aa.shift():-1},prepend:function(a){if(Array.isArray(a))for(;a.length;)this.Aa.unshift(a.pop());else this.Aa.unshift(a)},push:function(a){if(Array.isArray(a))for(;a.length;)this.Aa.push(a.shift());else this.Aa.push(a)}}; function eb(a){if(a)throw TypeError("Decoder error");return 65533}function fb(a,b){if(!(this instanceof fb))return new fb(a,b);a=void 0!==a?String(a).toLowerCase():"utf-8";if("utf-8"!==a)throw Error("Encoding not supported. Only utf-8 is supported");b=cb(b);this.pb=this.xa=!1;this.vb=null;this.Ic=!!b.fatal;this.Kc=!!b.ignoreBOM;Object.defineProperty(this,"encoding",{value:"utf-8"});Object.defineProperty(this,"fatal",{value:this.Ic});Object.defineProperty(this,"ignoreBOM",{value:this.Kc})} fb.prototype={decode:function(a,b){a="object"===typeof a&&a instanceof ArrayBuffer?new Uint8Array(a):"object"===typeof a&&"buffer"in a&&a.buffer instanceof ArrayBuffer?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(0);b=cb(b);this.xa||(this.vb=new gb({fatal:this.Ic}),this.pb=!1);this.xa=!!b.stream;a=new db(a);b=[];for(var c;!a.endOfStream();){c=this.vb.gb(a,a.read());if(-1===c)break;null!==c&&(Array.isArray(c)?b.push.apply(b,c):b.push(c))}if(!this.xa){do{c=this.vb.gb(a,a.read()); if(-1===c)break;null!==c&&(Array.isArray(c)?b.push.apply(b,c):b.push(c))}while(!a.endOfStream());this.vb=null}!b.length||-1===["utf-8"].indexOf(this.encoding)||this.Kc||this.pb||(65279===b[0]?(this.pb=!0,b.shift()):this.pb=!0);a="";for(c=0;c=f?a+=String.fromCharCode(f):(f-=65536,a+=String.fromCharCode((f>>10)+55296,(f&1023)+56320))}return a}}; function hb(a,b){if(!(this instanceof hb))return new hb(a,b);a=void 0!==a?String(a).toLowerCase():"utf-8";if("utf-8"!==a)throw Error("Encoding not supported. Only utf-8 is supported");cb(b);this.xa=!1;this.xb=null;Object.defineProperty(this,"encoding",{value:"utf-8"})} hb.prototype={encode:function(a,b){a=a?String(a):"";b=cb(b);this.xa||(this.xb=new ib);this.xa=!!b.stream;b=[];for(var c=String(a),f=c.length,d=0,e=[];dh||57343=h)e.push(65533);else if(55296<=h&&56319>=h)if(d===f-1)e.push(65533);else{var l=a.charCodeAt(d+1);56320<=l&&57343>=l?(e.push(65536+((h&1023)<<10)+(l&1023)),d+=1):e.push(65533)}d+=1}for(a=new db(e);!a.endOfStream();){c=this.xb.gb(a,a.read());if(-1===c)break;Array.isArray(c)? b.push.apply(b,c):b.push(c)}if(!this.xa){for(;;){c=this.xb.gb(a,a.read());if(-1===c)break;Array.isArray(c)?b.push.apply(b,c):b.push(c)}this.xb=null}return new Uint8Array(b)}}; function gb(a){var b=a.fatal,c=0,f=0,d=0,e=128,h=191;this.gb=function(l,m){if(-1===m&&0!==d)return d=0,eb(b);if(-1===m)return-1;if(0===d){if(0<=m&&127>=m)return m;if(194<=m&&223>=m)d=1,c=m-192;else if(224<=m&&239>=m)224===m&&(e=160),237===m&&(h=159),d=2,c=m-224;else if(240<=m&&244>=m)240===m&&(e=144),244===m&&(h=143),d=3,c=m-240;else return eb(b);c<<=6*d;return null}if(!(e<=m&&m<=h))return c=d=f=0,e=128,h=191,l.prepend(m),eb(b);e=128;h=191;f+=1;c+=m-128<<6*(d-f);if(f!==d)return null;l=c;c=d=f=0;return l}} function ib(){this.gb=function(a,b){if(-1===b)return-1;if(0<=b&&127>=b)return b;if(128<=b&&2047>=b){var c=1;var f=192}else 2048<=b&&65535>=b?(c=2,f=224):65536<=b&&1114111>=b&&(c=3,f=240);for(a=[(b>>6*c)+f];0>6*(c-1)&63),--c;return a}};var jb="function"===typeof Buffer?Buffer:null,kb="function"===typeof TextDecoder&&"function"===typeof TextEncoder,lb=function(a){if(kb||!jb){var b=new a("utf-8");return function(c){return b.decode(c)}}return function(c){c=x(c);return jb.from(c.buffer,c.byteOffset,c.length).toString()}}("undefined"!==typeof TextDecoder?TextDecoder:fb),mb=function(a){if(kb||!jb){var b=new a;return function(c){return b.encode(c)}}return function(c){return x(jb.from(void 0===c?"":c,"utf8"))}}("undefined"!==typeof TextEncoder? TextEncoder:hb);var nb=Object.freeze({done:!0,value:void 0});function ob(a){this.Ua=a}k.global.Object.defineProperties(ob.prototype,{schema:{configurable:!0,enumerable:!0,get:function(){return this.Ua.schema}},Ad:{configurable:!0,enumerable:!0,get:function(){return this.Ua.batches||[]}},dictionaries:{configurable:!0,enumerable:!0,get:function(){return this.Ua.dictionaries||[]}}});function pb(){}pb.prototype.tee=function(){return qb(this).tee()};function rb(a,b,c){return rb(a.Oc||(a.Oc=a.toNodeStream()),b,c)} pb.prototype.pipeTo=function(a,b){return qb(this).pipeTo(a,b)};pb.prototype.pipeThrough=function(a,b){return qb(this).pipeThrough(a,b)};function qb(a){return a.Ec||(a.Ec=a.toDOMStream())}k.l();k.N();function sb(){var a=this;this.B=[];this.Na=[];this.Tb=new Promise(function(b){return a.X=b})}k.b(sb,pb);sb.prototype.cancel=function(a){var b=this;return k.u(function(c){return p(c,b.return(a),0)})}; sb.prototype.write=function(a){if(!this.X)throw Error(this+" is closed");0>=this.Na.length?this.B.push(a):this.Na.shift().resolve({done:!1,value:a})};sb.prototype.abort=function(a){this.X&&(0>=this.Na.length?this.Vb={error:a}:this.Na.shift().reject({done:!0,value:a}))};sb.prototype.close=function(){if(this.X){for(var a=this.Na;0=b.byteLength?new a(0):new a(b.buffer,b.byteOffset,b.byteLength/a.BYTES_PER_ELEMENT):a.from(b)}function Ob(a){return z(Int32Array,a)}function Pb(a){return z(zb,a)} function x(a){return z(Uint8Array,a)}function Qb(a){return z(Bb,a)}function Rb(a){a.next();return a} function Tb(a,b){var c,f;return k.C.H(Tb,function(d){c=function l(h){return k.C.H(l,function(m){return p(m,h,0)})};f="string"===typeof b?c(b):ArrayBuffer.isView(b)?c(b):b instanceof ArrayBuffer?c(b):b instanceof Kb?c(b):Fb(b)?b:c(b);k.l();k.D();return ea(d,Rb(function m(l){var n,r,v;return k.C.H(m,function(y){1==y.j&&(n=null);if(5!=y.j)return r=l,v=r.next,p(y,z(a,n),5);n=v.call(r,y.m);if(!n.done)return y.i(2);y.j=0})}(f[Symbol.iterator]())),0)})}function Ub(a){return Tb(Uint8Array,a)} function Vb(a,b){return new wa(function f(){var d,e,h,l,m,n,r;return k.C.H(f,function(v){switch(v.j){case 1:if(!Eb(b)){v.i(2);break}d=q;e=1;h=Vb;l=a;return p(v,new q(2,b),4);case 4:return p(v,new d(e,h(l,v.m)),3);case 3:return v.return(v.m);case 2:return m=function(y){return new wa(function Z(){var fa,C;return k.C.H(Z,function(aa){return 1==aa.j?(fa=q,C=0,p(aa,new q(2,y),3)):p(aa,new fa(C,aa.m),0)})}())},n=function(y){return new wa(function Z(){return k.C.H(Z,function(fa){k.l();k.D();return p(fa, new q(1,Rb(function Sb(aa){var T,oa,Ie;return k.C.H(Sb,function(hc){1==hc.j&&(T=null);if(5!=hc.j)return oa=aa,Ie=oa.next,p(hc,T&&T.value,5);T=Ie.call(oa,hc.m);if(!T.done)return hc.i(2);hc.j=0})}(y[Symbol.iterator]()))),0)})}())},r="string"===typeof b?m(b):ArrayBuffer.isView(b)?m(b):b instanceof ArrayBuffer?m(b):b instanceof Kb?m(b):Fb(b)?n(b):Gb(b)?b:m(b),k.l(),k.N(),p(v,new q(1,Rb(function(y){return new wa(function Z(){var fa,C,aa,Sb,T;return k.C.H(Z,function(oa){switch(oa.j){case 1:fa=null;case 2:return C= q,aa=2,Sb=y,T=Sb.next,p(oa,new q(0,z(a,fa)),6);case 6:return p(oa,new C(aa,T.call(Sb,oa.m)),5);case 5:fa=oa.m,fa.done?oa.j=0:oa.i(2)}})}())}(r[Symbol.asyncIterator]()))),0)}})}())}function Wb(a){return Vb(Uint8Array,a)}function Xb(a,b,c){if(0!==a){c=c.slice(0,b+1);for(var f=-1;++f<=b;)c[f]+=a}return c}function Yb(a,b){var c=0,f=a.length;if(f!==b.length)return!1;if(0=f?l.return({done:!1,value:new Uint8Array(b,0,f)}):p(l,a.read(new Uint8Array(b,c,f-c)),2);case 2:d=l.m;e=d.done;h=d.value;if(!((c+=h.byteLength)>24):!1};d.ze=function(e){t(e,1)};d.hd=function(e,h){La(e,0,+h,0)};d.Pd=function(e){return u(e)};d.Gg=function(e,h){d.ze(e);d.hd(e,h);return d.Pd(e)};f.Map=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f|| (a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.qh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.mode=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.UnionMode.Sparse};d.prototype.typeIds=function(e){var h=w(this.a,this.c,6);return h?this.a.v(ab(this.a,this.c+h)+4*e):0};d.prototype.cg=function(){var e=w(this.a,this.c,6);return e?new Int32Array(this.a.ma().buffer, this.a.ma().byteOffset+ab(this.a,this.c+e),bb(this.a,this.c+e)):null};d.Ge=function(e){t(e,2)};d.ld=function(e,h){Ma(e,h,a.f.g.h.UnionMode.Sparse)};d.ud=function(e,h){Pa(e,1,h)};d.rf=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--){var m=e,n=h[l];Ia(m,4,0);m.da(n)}return Ua(e)};d.bg=function(e,h){Ta(e,4,h,4)};d.Wd=function(e){return u(e)};d.Og=function(e,h,l){d.Ge(e);d.ld(e,h);d.ud(e,l);return d.Wd(e)};f.Union=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.bh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.bitWidth=function(){var e=w(this.a,this.c,4);return e?this.a.v(this.c+e):0};d.prototype.isSigned=function(){var e=w(this.a,this.c,6);return e?!!(this.a.F[this.c+e]<<24>>24):!1};d.we=function(e){t(e,2)};d.ab=function(e,h){Na(e,0,h,0)};d.gd=function(e,h){La(e,1,+h,0)};d.Md= function(e){return u(e)};d.zg=function(e,h,l){d.we(e);d.ab(e,h);d.gd(e,l);return d.Md(e)};f.Int=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.ah=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.precision=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.Precision.HALF};d.ue=function(e){t(e,1)};d.cb=function(e,h){Ma(e,h,a.f.g.h.Precision.HALF)};d.Kd=function(e){return u(e)};d.xg=function(e,h){d.ue(e);d.cb(e,h);return d.Kd(e)};f.FloatingPoint= d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.rh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.He=function(e){t(e,0)};d.Xd=function(e){return u(e)};d.Pg=function(e){d.He(e);return d.Xd(e)};f.Utf8=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Rg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.ie=function(e){t(e,0)};d.Bd=function(e){return u(e)};d.ng=function(e){d.ie(e);return d.Bd(e)};f.Binary=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.hh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.Zf=function(e){t(e,0)};d.xf=function(e){return u(e)};d.Eg=function(e){d.Zf(e);return d.xf(e)};f.LargeUtf8=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.fh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.Xf=function(e){t(e,0)};d.vf=function(e){return u(e)};d.Cg=function(e){d.Xf(e);return d.vf(e)};f.LargeBinary=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Zg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.byteWidth=function(){var e=w(this.a,this.c,4);return e?this.a.v(this.c+e):0};d.se=function(e){t(e,1)};d.Uc=function(e,h){Na(e,0,h,0)};d.Id=function(e){return u(e)};d.vg=function(e,h){d.se(e);d.Uc(e,h);return d.Id(e)};f.FixedSizeBinary=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f|| (a.f={}))})(E||(E={}));(function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Sg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.je=function(e){t(e,0)};d.Cd=function(e){return u(e)};d.og=function(e){d.je(e);return d.Cd(e)};f.Bool=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Ug=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.precision=function(){var e=w(this.a,this.c,4);return e?this.a.v(this.c+e):0};d.prototype.scale=function(){var e=w(this.a,this.c,6);return e?this.a.v(this.c+e):0};d.oe=function(e){t(e,2)};d.cb=function(e,h){Na(e,0,h,0)};d.qd=function(e,h){Na(e,1,h,0)};d.Ed=function(e){return u(e)}; d.qg=function(e,h,l){d.oe(e);d.cb(e,h);d.qd(e,l);return d.Ed(e)};f.Decimal=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Tg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.DateUnit.MILLISECOND};d.me=function(e){t(e,1)};d.Z=function(e,h){Ma(e,h,a.f.g.h.DateUnit.MILLISECOND)};d.Dd=function(e){return u(e)};d.pg=function(e,h){d.me(e);d.Z(e,h);return d.Dd(e)};f.Date=d})(c.h|| (c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.oh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.TimeUnit.MILLISECOND};d.prototype.bitWidth=function(){var e=w(this.a,this.c,6);return e?this.a.v(this.c+e):32};d.startTime=function(e){t(e,2)};d.Z=function(e,h){Ma(e,h,a.f.g.h.TimeUnit.MILLISECOND)}; d.ab=function(e,h){Na(e,1,h,32)};d.endTime=function(e){return u(e)};d.Mg=function(e,h,l){d.startTime(e);d.Z(e,h);d.ab(e,l);return d.endTime(e)};f.Time=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.ph=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.TimeUnit.SECOND};d.prototype.timezone=function(e){var h=w(this.a,this.c,6);return h?Za(this.a,this.c+h,e):null};d.Fe=function(e){t(e,2)};d.Z=function(e,h){Ma(e,h,a.f.g.h.TimeUnit.SECOND)};d.sd= function(e,h){Pa(e,1,h)};d.Vd=function(e){return u(e)};d.Ng=function(e,h,l){d.Fe(e);d.Z(e,h);d.sd(e,l);return d.Vd(e)};f.Timestamp=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.dh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.IntervalUnit.YEAR_MONTH};d.xe=function(e){t(e,1)};d.Z=function(e,h){Ma(e,h,a.f.g.h.IntervalUnit.YEAR_MONTH)};d.Nd=function(e){return u(e)};d.Ag=function(e,h){d.xe(e);d.Z(e,h);return d.Nd(e)};f.Interval= d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Xg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.unit=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):a.f.g.h.TimeUnit.MILLISECOND};d.Vf=function(e){t(e,1)};d.Z=function(e,h){Ma(e,h,a.f.g.h.TimeUnit.MILLISECOND)};d.uf=function(e){return u(e)};d.tg=function(e,h){d.Vf(e);d.Z(e,h);return d.uf(e)};f.Duration= d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.eh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.key=function(e){var h=w(this.a,this.c,4);return h?Za(this.a,this.c+h,e):null};d.prototype.value=function(e){var h=w(this.a,this.c,6);return h?Za(this.a,this.c+h,e):null};d.wc=function(e){t(e,2)};d.ec=function(e,h){Pa(e,0,h)};d.fc=function(e,h){Pa(e,1,h)};d.mc=function(e){return u(e)}; d.Bg=function(e,h,l){d.wc(e);d.ec(e,h);d.fc(e,l);return d.mc(e)};f.ob=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Wg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.id=function(){var e=w(this.a,this.c,4);return e?Xa(this.a,this.c+e):this.a.oa(0,0)};d.prototype.ce=function(){var e=w(this.a,this.c,6);return e?(new a.f.g.h.Int).s($a(this.a,this.c+e),this.a):null};d.prototype.isOrdered=function(){var e=w(this.a,this.c,8);return e?!!(this.a.F[this.c+ e]<<24>>24):!1};d.qe=function(e){t(e,3)};d.bb=function(e,h){Oa(e,0,h,e.oa(0,0))};d.cd=function(e,h){Pa(e,1,h)};d.ed=function(e,h){La(e,2,+h,0)};d.Gd=function(e){return u(e)};d.sg=function(e,h,l,m){d.qe(e);d.bb(e,h);d.cd(e,l);d.ed(e,m);return d.Gd(e)};f.Cc=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Yg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.name=function(e){var h=w(this.a,this.c,4);return h?Za(this.a,this.c+h,e):null};d.prototype.nullable=function(){var e=w(this.a,this.c,6);return e?!!(this.a.F[this.c+e]<<24>>24):!1};d.prototype.dg=function(){var e=w(this.a,this.c,8);return e?this.a.F[this.c+e]:a.f.g.h.Type.NONE}; d.prototype.type=function(e){var h=w(this.a,this.c,10);return h?Ya(this.a,e,this.c+h):null};d.prototype.dictionary=function(e){var h=w(this.a,this.c,12);return h?(e||new a.f.g.h.Cc).s($a(this.a,this.c+h),this.a):null};d.prototype.children=function(e,h){var l=w(this.a,this.c,14);return l?(h||new a.f.g.h.Field).s($a(this.a,ab(this.a,this.c+l)+4*e),this.a):null};d.prototype.lf=function(){var e=w(this.a,this.c,14);return e?bb(this.a,this.c+e):0};d.prototype.kc=function(e){var h=w(this.a,this.c,16);return h? (new a.f.g.h.ob).s($a(this.a,ab(this.a,this.c+h)+4*e),this.a):null};d.prototype.lc=function(){var e=w(this.a,this.c,16);return e?bb(this.a,this.c+e):0};d.re=function(e){t(e,7)};d.md=function(e,h){Pa(e,0,h)};d.od=function(e,h){La(e,1,+h,0)};d.vd=function(e,h){La(e,2,h,a.f.g.h.Type.NONE)};d.td=function(e,h){Pa(e,3,h)};d.Yc=function(e,h){Pa(e,4,h)};d.Vc=function(e,h){Pa(e,5,h)};d.nf=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.uh=function(e,h){Ta(e,4,h,4)}; d.ya=function(e,h){Pa(e,6,h)};d.Gb=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.ke=function(e,h){Ta(e,4,h,4)};d.Hd=function(e){return u(e)};d.ug=function(e,h,l,m,n,r,v,y){d.re(e);d.md(e,h);d.od(e,l);d.vd(e,m);d.td(e,n);d.Yc(e,r);d.Vc(e,v);d.ya(e,y);return d.Hd(e)};f.Field=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.prototype.offset=function(){return Xa(this.a,this.c)};d.prototype.length=function(){return Xa(this.a,this.c+8)};d.createBuffer=function(e,h,l){Ia(e,8,16);e.qa(l);e.qa(h);return e.offset()};f.Bc=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.mh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.fields=function(e,h){var l=w(this.a,this.c,6);return l?(h||new a.f.g.h.Field).s($a(this.a,ab(this.a,this.c+l)+4*e),this.a):null};d.prototype.Af=function(){var e=w(this.a,this.c,6);return e?bb(this.a,this.c+e):0};d.prototype.kc=function(e){var h=w(this.a,this.c,8);return h? (new a.f.g.h.ob).s($a(this.a,ab(this.a,this.c+h)+4*e),this.a):null};d.prototype.lc=function(){var e=w(this.a,this.c,8);return e?bb(this.a,this.c+e):0};d.De=function(e){t(e,3)};d.Zc=function(e,h){Ma(e,h,a.f.g.h.Nb.Oe)};d.$c=function(e,h){Pa(e,1,h)};d.qf=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.Wf=function(e,h){Ta(e,4,h,4)};d.ya=function(e,h){Pa(e,2,h)};d.Gb=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.ke= function(e,h){Ta(e,4,h,4)};d.Td=function(e){return u(e)};d.Qg=function(e,h){e.finish(h)};d.Kg=function(e,h,l,m){d.De(e);d.Zc(e,h);d.$c(e,l);d.ya(e,m);return d.Td(e)};f.Schema=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(E||(E={}));var Xc,Yc=Xc||(Xc={}),Zc=Yc.f||(Yc.f={}),$c=Zc.g||(Zc.g={});($c.h||($c.h={})).Schema=E.f.g.h.Schema;var ad=Xc||(Xc={}),bd=ad.f||(ad.f={}),cd=bd.g||(bd.g={}),dd=cd.h||(cd.h={}),ed=dd.MessageHeader||(dd.MessageHeader={});ed[ed.NONE=0]="NONE";ed[ed.Schema=1]="Schema";ed[ed.DictionaryBatch=2]="DictionaryBatch";ed[ed.RecordBatch=3]="RecordBatch";ed[ed.Tensor=4]="Tensor";ed[ed.SparseTensor=5]="SparseTensor"; (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.prototype.length=function(){return Xa(this.a,this.c)};d.prototype.nullCount=function(){return Xa(this.a,this.c+8)};d.pf=function(e,h,l){Ia(e,8,16);e.qa(l);e.qa(h);return e.offset()};f.Dc=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Xc||(Xc={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.lh=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.length=function(){var e=w(this.a,this.c,4);return e?Xa(this.a,this.c+e):this.a.oa(0,0)};d.prototype.$=function(e,h){var l=w(this.a,this.c,6);return l?(h||new a.f.g.h.Dc).s(ab(this.a,this.c+l)+16*e,this.a):null};d.prototype.Kf=function(){var e=w(this.a,this.c,6);return e? bb(this.a,this.c+e):0};d.prototype.buffers=function(e,h){var l=w(this.a,this.c,8);return l?(h||new E.f.g.h.Bc).s(ab(this.a,this.c+l)+16*e,this.a):null};d.prototype.jf=function(){var e=w(this.a,this.c,8);return e?bb(this.a,this.c+e):0};d.Ce=function(e){t(e,3)};d.jd=function(e,h){Oa(e,0,h,e.oa(0,0))};d.nd=function(e,h){Pa(e,1,h)};d.$f=function(e,h){Ta(e,16,h,8)};d.Tc=function(e,h){Pa(e,2,h)};d.Tf=function(e,h){Ta(e,16,h,8)};d.Sd=function(e){return u(e)};d.Jg=function(e,h,l,m){d.Ce(e);d.jd(e,h);d.nd(e, l);d.Tc(e,m);return d.Sd(e)};f.RecordBatch=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Xc||(Xc={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Vg=function(e,h){return(h||new d).s(e.v(e.position())+e.position(),e)};d.prototype.id=function(){var e=w(this.a,this.c,4);return e?Xa(this.a,this.c+e):this.a.oa(0,0)};d.prototype.data=function(e){var h=w(this.a,this.c,6);return h?(e||new a.f.g.h.RecordBatch).s($a(this.a,this.c+h),this.a):null};d.prototype.Ib=function(){var e=w(this.a,this.c,8);return e? !!(this.a.F[this.c+e]<<24>>24):!1};d.pe=function(e){t(e,3)};d.bb=function(e,h){Oa(e,0,h,e.oa(0,0))};d.Wc=function(e,h){Pa(e,1,h)};d.dd=function(e,h){La(e,2,+h,0)};d.Fd=function(e){return u(e)};d.rg=function(e,h,l,m){d.pe(e);d.bb(e,h);d.Wc(e,l);d.dd(e,m);return d.Fd(e)};f.DictionaryBatch=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Xc||(Xc={})); (function(a){(function(b){(function(c){(function(f){function d(){this.a=null;this.c=0}d.prototype.s=function(e,h){this.c=e;this.a=h;return this};d.Ff=function(e){return(new d).s(e.v(e.position())+e.position(),e)};d.prototype.version=function(){var e=w(this.a,this.c,4);return e?Sa(this.a,this.c+e):E.f.g.h.MetadataVersion.V1};d.prototype.headerType=function(){var e=w(this.a,this.c,6);return e?this.a.F[this.c+e]:a.f.g.h.MessageHeader.NONE};d.prototype.header=function(e){var h=w(this.a,this.c,8);return h? Ya(this.a,e,this.c+h):null};d.prototype.bodyLength=function(){var e=w(this.a,this.c,10);return e?Xa(this.a,this.c+e):this.a.oa(0,0)};d.prototype.kc=function(e){var h=w(this.a,this.c,12);return h?(new E.f.g.h.ob).s($a(this.a,ab(this.a,this.c+h)+4*e),this.a):null};d.prototype.lc=function(){var e=w(this.a,this.c,12);return e?bb(this.a,this.c+e):0};d.Ae=function(e){t(e,5)};d.eb=function(e,h){Ma(e,h,E.f.g.h.MetadataVersion.V1)};d.bd=function(e,h){La(e,1,h,a.f.g.h.MessageHeader.NONE)};d.ad=function(e,h){Pa(e, 2,h)};d.Sc=function(e,h){Oa(e,3,h,e.oa(0,0))};d.ya=function(e,h){Pa(e,4,h)};d.Gb=function(e,h){Ta(e,4,h.length,4);for(var l=h.length-1;0<=l;l--)Qa(e,h[l]);return Ua(e)};d.ke=function(e,h){Ta(e,4,h,4)};d.Qd=function(e){return u(e)};d.Cf=function(e,h){e.finish(h)};d.Hg=function(e,h,l,m,n,r){d.Ae(e);d.eb(e,h);d.bd(e,l);d.ad(e,m);d.Sc(e,n);d.ya(e,r);return d.Qd(e)};f.Message=d})(c.h||(c.h={}))})(b.g||(b.g={}))})(a.f||(a.f={}))})(Xc||(Xc={}));var fd=E.f.g.h.Type,gd=E.f.g.h.DateUnit,G=E.f.g.h.TimeUnit,hd=E.f.g.h.Precision,id=E.f.g.h.UnionMode,jd=E.f.g.h.IntervalUnit,H=Xc.f.g.h.MessageHeader,kd=E.f.g.h.MetadataVersion,I,J=I||(I={});J[J.NONE=0]="NONE";J[J.Null=1]="Null";J[J.Int=2]="Int";J[J.Float=3]="Float";J[J.Binary=4]="Binary";J[J.Utf8=5]="Utf8";J[J.Bool=6]="Bool";J[J.Decimal=7]="Decimal";J[J.Date=8]="Date";J[J.Time=9]="Time";J[J.Timestamp=10]="Timestamp";J[J.Interval=11]="Interval";J[J.List=12]="List";J[J.Struct=13]="Struct"; J[J.Union=14]="Union";J[J.FixedSizeBinary=15]="FixedSizeBinary";J[J.FixedSizeList=16]="FixedSizeList";J[J.Map=17]="Map";J[J.Dictionary=-1]="Dictionary";J[J.Int8=-2]="Int8";J[J.Int16=-3]="Int16";J[J.Int32=-4]="Int32";J[J.Int64=-5]="Int64";J[J.Uint8=-6]="Uint8";J[J.Uint16=-7]="Uint16";J[J.Uint32=-8]="Uint32";J[J.Uint64=-9]="Uint64";J[J.Float16=-10]="Float16";J[J.Float32=-11]="Float32";J[J.Float64=-12]="Float64";J[J.DateDay=-13]="DateDay";J[J.DateMillisecond=-14]="DateMillisecond"; J[J.TimestampSecond=-15]="TimestampSecond";J[J.TimestampMillisecond=-16]="TimestampMillisecond";J[J.TimestampMicrosecond=-17]="TimestampMicrosecond";J[J.TimestampNanosecond=-18]="TimestampNanosecond";J[J.TimeSecond=-19]="TimeSecond";J[J.TimeMillisecond=-20]="TimeMillisecond";J[J.TimeMicrosecond=-21]="TimeMicrosecond";J[J.TimeNanosecond=-22]="TimeNanosecond";J[J.DenseUnion=-23]="DenseUnion";J[J.SparseUnion=-24]="SparseUnion";J[J.IntervalDayTime=-25]="IntervalDayTime";J[J.IntervalYearMonth=-26]="IntervalYearMonth"; var K,ld=K||(K={});ld[ld.OFFSET=0]="OFFSET";ld[ld.DATA=1]="DATA";ld[ld.VALIDITY=2]="VALIDITY";ld[ld.TYPE=3]="TYPE";function md(a,b,c,f){return 0!==(c&1<>f}function od(a,b,c){return c?!!(a[b>>3]|=1<>3]&=~(1<>3):qd(rd(c,a,b,null,md)).subarray(0,f));return d}return c} function qd(a){var b=[],c=0,f=0,d=0;a=k.w(a);for(var e=a.next();!e.done;e=a.next())e.value&&(d|=1<>3,l=0,m=c;case 2:if(!(0++e?r.i(5):(e=0,r.i(2))}})} function sd(a,b,c){if(0>=c-b)return 0;if(8>c-b){var f=0;a=k.w(rd(a,b,c-b,a,nd));for(b=a.next();!b.done;b=a.next())f+=b.value;return f}f=c>>3<<3;var d=b+(0===b%8?0:8-b%8);return sd(a,b,d)+sd(a,f,c)+td(a,d>>3,f-d>>3)}function td(a,b,c){var f=0;b|=0;var d=new DataView(a.buffer,a.byteOffset,a.byteLength);for(a=void 0===c?a.byteLength:b+c;4<=a-b;)f+=ud(d.getUint32(b)),b+=4;for(;2<=a-b;)f+=ud(d.getUint16(b)),b+=2;for(;1<=a-b;)f+=ud(d.getUint8(b)),b+=1;return f} function ud(a){a|=0;a-=a>>>1&1431655765;a=(a&858993459)+(a>>>2&858993459);return 16843009*(a+(a>>>4)&252645135)>>>24}var vd={};vd.getBit=nd;vd.getBool=md;vd.iterateBits=rd;vd.packBools=qd;vd.popcnt_array=td;vd.popcnt_bit_range=sd;vd.popcnt_uint32=ud;vd.setBool=od;vd.truncateBitmap=pd;function wd(){}g=wd.prototype;g.visitMany=function(a,b){for(var c=[],f=1;f"};k.global.Object.defineProperties(Be.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Date}}});k.l();var Ce=Symbol.toStringTag,De,Ee=Be.prototype;Ee.unit=null;Ee.ArrayType=Int32Array;k.l();De=Ee[Symbol.toStringTag]="Date";Be[Ce]=De;function Fe(){this.unit=gd.DAY}k.b(Fe,Be);function Ge(){this.unit=gd.MILLISECOND}k.b(Ge,Be);function He(a,b){this.unit=a;this.bitWidth=b}k.b(He,M); He.prototype.toString=function(){return"Time"+this.bitWidth+"<"+G[this.unit]+">"};k.global.Object.defineProperties(He.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Time}}});k.l();var Je=Symbol.toStringTag,Le,Me=He.prototype;Me.unit=null;Me.bitWidth=null;Me.ArrayType=Int32Array;k.l();Le=Me[Symbol.toStringTag]="Time";He[Je]=Le;function Ne(){He.call(this,G.SECOND,32)}k.b(Ne,He);function Oe(){He.call(this,G.MILLISECOND,32)}k.b(Oe,He); function Pe(){He.call(this,G.MICROSECOND,64)}k.b(Pe,He);function Qe(){He.call(this,G.NANOSECOND,64)}k.b(Qe,He);function Re(a,b){this.unit=a;this.timezone=b}k.b(Re,M);Re.prototype.toString=function(){return"Timestamp<"+G[this.unit]+(this.timezone?", "+this.timezone:"")+">"};k.global.Object.defineProperties(Re.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Timestamp}}});k.l();var Se=Symbol.toStringTag,Te,Ue=Re.prototype;Ue.unit=null;Ue.timezone=null;Ue.ArrayType=Int32Array; k.l();Te=Ue[Symbol.toStringTag]="Timestamp";Re[Se]=Te;function Ve(a){Re.call(this,G.SECOND,a)}k.b(Ve,Re);function We(a){Re.call(this,G.MILLISECOND,a)}k.b(We,Re);function Xe(a){Re.call(this,G.MICROSECOND,a)}k.b(Xe,Re);function Ye(a){Re.call(this,G.NANOSECOND,a)}k.b(Ye,Re);function Ze(a){this.unit=a}k.b(Ze,M);Ze.prototype.toString=function(){return"Interval<"+jd[this.unit]+">"};k.global.Object.defineProperties(Ze.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Interval}}}); k.l();var $e=Symbol.toStringTag,af,bf=Ze.prototype;bf.unit=null;bf.ArrayType=Int32Array;k.l();af=bf[Symbol.toStringTag]="Interval";Ze[$e]=af;function cf(){this.unit=jd.DAY_TIME}k.b(cf,Ze);function df(){this.unit=jd.YEAR_MONTH}k.b(df,Ze);function ef(a){this.children=[a]}k.b(ef,M);ef.prototype.toString=function(){return"List<"+this.valueType+">"}; k.global.Object.defineProperties(ef.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.List}},valueType:{configurable:!0,enumerable:!0,get:function(){return this.children[0].type}},valueField:{configurable:!0,enumerable:!0,get:function(){return this.children[0]}},ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.valueType.ArrayType}}});k.l();var ff=Symbol.toStringTag,gf,hf=ef.prototype;hf.children=null;k.l();gf=hf[Symbol.toStringTag]="List";ef[ff]=gf; function jf(a){this.children=a}k.b(jf,M);jf.prototype.toString=function(){return"Struct<{"+this.children.map(function(a){return a.name+":"+a.type}).join(", ")+"}>"};k.global.Object.defineProperties(jf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Struct}}});k.l();var kf=Symbol.toStringTag,lf,mf=jf.prototype;mf.children=null;k.l();lf=mf[Symbol.toStringTag]="Struct";jf[kf]=lf; function nf(a,b,c){this.mode=a;this.children=c;this.typeIds=b=Int32Array.from(b);this.typeIdToChildIndex=b.reduce(function(f,d,e){return(f[d]=e)&&f||f},Object.create(null))}k.b(nf,M);nf.prototype.toString=function(){k.l();return this[Symbol.toStringTag]+"<"+this.children.map(function(a){return""+a.type}).join(" | ")+">"};k.global.Object.defineProperties(nf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Union}}});k.l();var of=Symbol.toStringTag,pf,qf=nf.prototype; qf.mode=null;qf.typeIds=null;qf.children=null;qf.typeIdToChildIndex=null;qf.ArrayType=Int8Array;k.l();pf=qf[Symbol.toStringTag]="Union";nf[of]=pf;function rf(a,b){nf.call(this,id.Dense,a,b)}k.b(rf,nf);function sf(a,b){nf.call(this,id.Sparse,a,b)}k.b(sf,nf);function tf(a){this.byteWidth=a}k.b(tf,M);tf.prototype.toString=function(){return"FixedSizeBinary["+this.byteWidth+"]"};k.global.Object.defineProperties(tf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.FixedSizeBinary}}}); k.l();var uf=Symbol.toStringTag,vf,wf=tf.prototype;wf.byteWidth=null;wf.ArrayType=Uint8Array;k.l();vf=wf[Symbol.toStringTag]="FixedSizeBinary";tf[uf]=vf;function xf(a,b){this.listSize=a;this.children=[b]}k.b(xf,M);xf.prototype.toString=function(){return"FixedSizeList["+this.listSize+"]<"+this.valueType+">"}; k.global.Object.defineProperties(xf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.FixedSizeList}},valueType:{configurable:!0,enumerable:!0,get:function(){return this.children[0].type}},valueField:{configurable:!0,enumerable:!0,get:function(){return this.children[0]}},ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.valueType.ArrayType}}});k.l();var yf=Symbol.toStringTag,zf,Af=xf.prototype;Af.children=null;Af.listSize=null;k.l(); zf=Af[Symbol.toStringTag]="FixedSizeList";xf[yf]=zf;function Bf(a,b){this.children=[a];this.keysSorted=void 0===b?!1:b}k.b(Bf,M);Bf.prototype.toString=function(){return"Map<{"+this.children[0].type.children.map(function(a){return a.name+":"+a.type}).join(", ")+"}>"}; k.global.Object.defineProperties(Bf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Map}},keyType:{configurable:!0,enumerable:!0,get:function(){return this.children[0].type.children[0].type}},valueType:{configurable:!0,enumerable:!0,get:function(){return this.children[0].type.children[1].type}}});k.l();var Cf=Symbol.toStringTag,Df,Ef=Bf.prototype;Ef.children=null;Ef.keysSorted=null;k.l();Df=Ef[Symbol.toStringTag]="Map_";Bf[Cf]=Df;var Ff=function(a){return function(){return++a}}(-1); function Gf(a,b,c,f){this.indices=b;this.dictionary=a;this.isOrdered=f||!1;this.id=null==c?Ff():"number"===typeof c?c:c.low}k.b(Gf,M);Gf.prototype.toString=function(){return"Dictionary<"+this.indices+", "+this.dictionary+">"}; k.global.Object.defineProperties(Gf.prototype,{typeId:{configurable:!0,enumerable:!0,get:function(){return I.Dictionary}},children:{configurable:!0,enumerable:!0,get:function(){return this.dictionary.children}},valueType:{configurable:!0,enumerable:!0,get:function(){return this.dictionary}},ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.dictionary.ArrayType}}});k.l();var Hf=Symbol.toStringTag,If,Jf=Gf.prototype;Jf.id=null;Jf.indices=null;Jf.isOrdered=null;Jf.dictionary=null;k.l(); If=Jf[Symbol.toStringTag]="Dictionary";Gf[Hf]=If;function Kf(a){switch(a.typeId){case I.Decimal:return 4;case I.Timestamp:return 2;case I.Date:return 1+a.unit;case I.Interval:return 1+a.unit;case I.Int:return 1+ +(32>3)).fill(255,0,c>>3);d[c>>3]=(1<=a&&(b=this.nullBitmap)&&(this.wa=a=this.length-sd(b,this.offset,this.offset+this.length));return a}}});L.prototype.childData=Object.freeze([]);function Nf(a){if(null===a)return"null";if(void 0===a)return"undefined";switch(typeof a){case "number":return""+a;case "bigint":return""+a;case "string":return'"'+a+'"'}k.l();return"function"===typeof a[Symbol.toPrimitive]?(k.l(),a[Symbol.toPrimitive]("string")):ArrayBuffer.isView(a)?"["+a+"]":JSON.stringify(a)};function Of(a){if(!a||0>=a.length)return function(){return!0};var b="",c=a.filter(function(f){return f===f});0=c&&a.Ya(0===c?Pf(1*b,a.BYTES_PER_ELEMENT):Pf(2*b,a.BYTES_PER_ELEMENT))}return a} g.flush=function(a){a=void 0===a?this.length:a;a=Pf(a*this.stride,this.BYTES_PER_ELEMENT);var b=this.buffer;a=void 0===a?0:a;b=b.length>=a?b.subarray(0,a):Mb(new b.constructor(a),b,0);this.clear();return b};g.clear=function(){this.length=0;this.Ya(0);return this};g.Ya=function(a){return this.buffer=Mb(new this.ArrayType(a),this.buffer)}; k.global.Object.defineProperties(Qf.prototype,{byteLength:{configurable:!0,enumerable:!0,get:function(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}},reservedLength:{configurable:!0,enumerable:!0,get:function(){return this.buffer.length/this.stride}},reservedByteLength:{configurable:!0,enumerable:!0,get:function(){return this.buffer.byteLength}}});Qf.prototype.offset=0;function Sf(){Qf.apply(this,arguments)}k.b(Sf,Qf);Sf.prototype.get=function(a){return this.buffer[a]}; Sf.prototype.set=function(a,b){Rf(this,a-this.length+1);this.buffer[a*this.stride]=b;return this};function Tf(a){a=void 0===a?new Uint8Array(0):a;Sf.call(this,a,.125);this.Jb=0}k.b(Tf,Sf);Tf.prototype.get=function(a){return this.buffer[a>>3]>>a%8&1};Tf.prototype.set=function(a,b){var c=Rf(this,a-this.length+1).buffer,f=a>>3;a%=8;var d=c[f]>>a&1;b?0===d&&(c[f]|=1<this.length&&this.set(a-1,0);return Sf.prototype.flush.call(this,a+1)};function Vf(){Qf.apply(this,arguments)}k.b(Vf,Qf);Vf.prototype.set=function(a,b){Rf(this,a-this.length+1);switch(typeof b){case "bigint":this.hc[a]=b;break;case "number":this.buffer[a*this.stride]=b;break;default:this.buffer.set(b,a*this.stride)}return this}; Vf.prototype.Ya=function(a){a=Qf.prototype.Ya.call(this,a);var b=a.byteLength/(this.BYTES_PER_ELEMENT*this.stride);xb&&(this.hc=new this.Le(a.buffer,a.byteOffset,b));return a};k.global.Object.defineProperties(Vf.prototype,{Le:{configurable:!0,enumerable:!0,get:function(){return this.Qe||(this.Qe=this.buffer instanceof Int32Array?zb:Bb)}}});function N(a){var b=a.type;a=a.nullValues;this.length=0;this.finished=!1;this.type=b;this.children=[];this.nullValues=a;this.stride=Kf(b);this.S=new Tf;a&&0=f)){A.i(3);break}if(!++m){A.i(6);break}return p(A,n.toVector(),7);case 7:case 6:case 3:v=r.next(), A.i(2)}})}} function Xf(a){var b=a.queueingStrategy;b=void 0===b?"count":b;var c=a.highWaterMark,f=void 0===c?"bytes"!==b?1E3:Math.pow(2,14):c,d="bytes"!==b?"length":"byteLength";return function(e){return new wa(function l(){var m,n,r,v,y;return k.C.H(l,function(A){switch(A.j){case 1:m=0,n=N.new(a),r=k.Ja(e);case 2:return p(A,new q(2,r.next()),5);case 5:v=A.m;if(v.done){A.i(4);break}y=v.value;if(!(n.append(y)[d]>=f)){A.i(2);break}if(!++m){A.i(7);break}return p(A,new q(0,n.toVector()),8);case 8:case 7:A.i(2);break; case 4:if(0>10,c=(a&1023)/1024;a=Math.pow(-1,(a&32768)>>15);switch(b){case 31:return a*(c?NaN:1/0);case 0:return a*(c?6.103515625E-5*c:0)}return a*Math.pow(2,b-15)*(1+c)} function ng(a){if(a!==a)return 32256;kg[0]=a;a=(lg[1]&2147483648)>>16&65535;var b=lg[1]&2146435072,c=0;1089470464<=b?0>16,c=(lg[1]&1048575)>>10):1056964608>=b?(c=1048576+(lg[1]&1048575),c=1048576+(c<<(b>>20)-998)>>21,b=0):(b=b-1056964608>>10,c=(lg[1]&1048575)+512>>10);return a|b|c&65535}var og={};og.float64ToUint16=ng;og.uint16ToFloat64=mg;function pg(){Yf.apply(this,arguments)}k.b(pg,Yf);function qg(){pg.apply(this,arguments)}k.b(qg,pg);qg.prototype.setValue=function(a,b){this.B.set(a,ng(b))};function rg(){pg.apply(this,arguments)}k.b(rg,pg);rg.prototype.setValue=function(a,b){this.B.set(a,b)};function sg(){pg.apply(this,arguments)}k.b(sg,pg);sg.prototype.setValue=function(a,b){this.B.set(a,b)};k.l();var tg=Symbol.for("isArrowBigNum");function ug(a,b){for(var c=[],f=1;f>>=0),c+=(h>>>0)+e*Math.pow(f,32);return c}var vg,xg;xb?(xg=function(a){return 8===a.byteLength?(new a.BigIntArray(a.buffer,a.byteOffset,1))[0]:Bg(a)},vg=function(a){return 8===a.byteLength?""+(new a.BigIntArray(a.buffer,a.byteOffset,1))[0]:Bg(a)}):xg=vg=Bg; function Bg(a){var b="",c=new Uint32Array(2);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);var f=new Uint32Array((a=(new Uint16Array(a)).reverse()).buffer),d,e=a.length-1;do{for(c[0]=a[d=0];db&&(b=(b%d+d)%d);0>c&&(c=(c%d+d)%d);cd&&(c=d);return f?f(a,b,c):[b,c]}var wh=xb?wb(0):0;function xh(a){return a!==a} function yh(a){var b=typeof a;if("object"!==b||null===a)return xh(a)?xh:"bigint"!==b?function(f){return f===a}:function(f){return wh+f===a};if(a instanceof Date){var c=a.valueOf();return function(f){return f instanceof Date?f.valueOf()===c:!1}}return ArrayBuffer.isView(a)?function(f){return f?Yb(a,f):!1}:a instanceof Map?zh(a):Array.isArray(a)?Ah(a):a instanceof D?Bh(a):Ch(a)}function Ah(a){for(var b=[],c=-1,f=a.length;++ca||a>=this.Xb)return null;var b=this.ea||(this.ea=[]),c;if(c=b[a])return c;if(c=(this.ga.children||[])[a]){var f=this.I.map(function(d){return d.getChildAt(a)}).filter(function(d){return null!=d});if(0a||a>=c[f])return null;if(1>=f)return b?b(this,0,a):[0,a];var d=0,e=0;do{if(d+1===f)return b?b(this,d,a-e):[d,a-e];var h=d+(f-d)/2|0;a>=c[h]?d=h:f=h}while(a=(e=c[d]));return null};g.isValid=function(a){return!!this.search(a,this.isValidInternal)};g.get=function(a){return this.search(a,this.getInternal)};g.set=function(a,b){this.search(a,function(c,f,d){return c.chunks[f].set(d,b)})}; g.indexOf=function(a,b){var c=this;return b&&"number"===typeof b?this.search(b,function(f,d,e){return c.indexOfInternal(f,d,e,a)}):this.indexOfInternal(this,0,Math.max(0,b||0),a)};g.toArray=function(){var a=this.chunks,b=a.length,c=this.ga.ArrayType;if(0>=b)return new c(0);if(1>=b)return a[0].toArray();for(var f=0,d=Array(b),e=-1;++e=c)break;b>=r+n||(r>=b&&r+n<=c?f.push(m):f.push(m.slice(Math.max(0,b-r),Math.min(c-r,n))))}return a.clone(f)}; k.global.Object.defineProperties(O.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.ga}},length:{configurable:!0,enumerable:!0,get:function(){return this.Va}},chunks:{configurable:!0,enumerable:!0,get:function(){return this.I}},typeId:{configurable:!0,enumerable:!0,get:function(){return this.ga.typeId}},VectorName:{configurable:!0,enumerable:!0,get:function(){return"Chunked<"+this.ga+">"}},data:{configurable:!0,enumerable:!0,get:function(){return this.I[0]?this.I[0].data: null}},ArrayType:{configurable:!0,enumerable:!0,get:function(){return this.ga.ArrayType}},numChildren:{configurable:!0,enumerable:!0,get:function(){return this.Xb}},stride:{configurable:!0,enumerable:!0,get:function(){return this.I[0]?this.I[0].stride:1}},byteLength:{configurable:!0,enumerable:!0,get:function(){return this.I.reduce(function(a,b){return a+b.byteLength},0)}},nullCount:{configurable:!0,enumerable:!0,get:function(){var a=this.wa;0>a&&(this.wa=a=this.I.reduce(function(b,c){return b+c.nullCount}, 0));return a}},indices:{configurable:!0,enumerable:!0,get:function(){if(M.isDictionary(this.ga)){if(!this.Lc){var a=this.I;this.Lc=1===a.length?a[0].indices:O.concat.apply(O,k.o(a.map(function(b){return b.indices})))}return this.Lc}return null}},dictionary:{configurable:!0,enumerable:!0,get:function(){return M.isDictionary(this.ga)?this.I[this.I.length-1].data.dictionary:null}}});function Jh(a,b,c){b.set(a,c);return c+a.length} function Ih(a,b,c){for(var f=-1,d=a.length;++fa||a>=this.numChildren)return null;var b=this.ea||(this.ea=[]),c;if(c=b[a])return c;if(c=(this.type.children||[])[a]){var f=this.I.map(function(d){return d.getChildAt(a)}).filter(function(d){return null!=d});if(0"}; g.compareTo=function(a){return this===a||a instanceof this.constructor&&Ad(this.fields,a.fields)};g.select=function(a){for(var b=[],c=0;c>3]|=1<>3]&=~(1<a.type.bitWidth?hi(a,b,c):ji(a,b,c)};g.visitInt8=hi;g.visitInt16=hi;g.visitInt32=hi;g.visitInt64=ji;g.visitUint8=hi;g.visitUint16=hi;g.visitUint32=hi;g.visitUint64=ji;g.visitFloat=function(a,b,c){a.type.precision!==hd.HALF?hi(a,b,c):ii(a,b,c)};g.visitFloat16=ii;g.visitFloat32=hi;g.visitFloat64=hi;g.visitUtf8=function(a,b,c){ei(a.values,a.valueOffsets,b,mb(c))};g.visitBinary=function(a,b,c){return ei(a.values,a.valueOffsets,b,c)}; g.visitFixedSizeBinary=function(a,b,c){var f=a.stride;a.values.set(c.subarray(0,f),f*b)};g.visitDate=function(a,b,c){a.type.unit===gd.DAY?fi(a,b,c):gi(a,b,c)};g.visitDateDay=fi;g.visitDateMillisecond=gi;g.visitTimestamp=function(a,b,c){switch(a.type.unit){case G.SECOND:return ki(a,b,c);case G.MILLISECOND:return li(a,b,c);case G.MICROSECOND:return mi(a,b,c);case G.NANOSECOND:return ni(a,b,c)}};g.visitTimestampSecond=ki;g.visitTimestampMillisecond=li;g.visitTimestampMicrosecond=mi; g.visitTimestampNanosecond=ni;g.visitTime=function(a,b,c){switch(a.type.unit){case G.SECOND:return oi(a,b,c);case G.MILLISECOND:return pi(a,b,c);case G.MICROSECOND:return qi(a,b,c);case G.NANOSECOND:return ri(a,b,c)}};g.visitTimeSecond=oi;g.visitTimeMillisecond=pi;g.visitTimeMicrosecond=qi;g.visitTimeNanosecond=ri;g.visitDecimal=function(a,b,c){a.values.set(c.subarray(0,4),4*b)};g.visitList=function(a,b,c){var f=a.getChildAt(0),d=a.valueOffsets;a=-1;var e=d[b];for(b=d[b+1];ea&&(a=4294967295+a+1);return"0x"+a.toString(16)}var Zi=[1,10,100,1E3,1E4,1E5,1E6,1E7,1E8];function $i(a){this.buffer=a}g=$i.prototype;g.high=function(){return this.buffer[1]};g.low=function(){return this.buffer[0]}; function aj(a,b){var c=new Uint32Array([a.buffer[1]>>>16,a.buffer[1]&65535,a.buffer[0]>>>16,a.buffer[0]&65535]);b=new Uint32Array([b.buffer[1]>>>16,b.buffer[1]&65535,b.buffer[0]>>>16,b.buffer[0]&65535]);var f=c[3]*b[3];a.buffer[0]=f&65535;var d=f>>>16;f=c[2]*b[3];d+=f;f=c[3]*b[2]>>>0;d+=f;a.buffer[0]+=d<<16;a.buffer[1]=d>>>0>>16;a.buffer[1]+=c[1]*b[3]+c[2]*b[2]+c[3]*b[1];a.buffer[1]+=c[0]*b[3]+c[1]*b[2]+c[2]*b[1]+c[3]*b[0]<<16} function bj(a,b){var c=a.buffer[0]+b.buffer[0]>>>0;a.buffer[1]+=b.buffer[1];c>>0&&++a.buffer[1];a.buffer[0]=c}g.lessThan=function(a){return this.buffer[1]>>0;b[2]=this.buffer[2]+a.buffer[2]>>>0;b[1]=this.buffer[1]+a.buffer[1]>>>0;b[0]=this.buffer[0]+a.buffer[0]>>>0;b[0]>>0&&++b[1];b[1]>>0&&++b[2];b[2]>>0&&++b[3];this.buffer[3]=b[3];this.buffer[2]=b[2];this.buffer[1]=b[1];this.buffer[0]=b[0];return this};g.hex=function(){return Yi(this.buffer[3])+" "+Yi(this.buffer[2])+" "+Yi(this.buffer[1])+" "+Yi(this.buffer[0])}; dj.multiply=function(a,b){return(new dj(new Uint32Array(a.buffer))).times(b)};dj.add=function(a,b){return(new dj(new Uint32Array(a.buffer))).plus(b)};dj.from=function(a,b){b=void 0===b?new Uint32Array(4):b;return dj.fromString("string"===typeof a?a:a.toString(),b)};dj.fromNumber=function(a,b){b=void 0===b?new Uint32Array(4):b;return dj.fromString(a.toString(),b)}; dj.fromString=function(a,b){b=void 0===b?new Uint32Array(4):b;var c=a.startsWith("-"),f=a.length;b=new dj(b);for(var d=c?1:0;d=b?new Uint8Array(0):qd(this.Kb[a])};ij.prototype.Ma=function(){var a=hj(this).offset;return z(Uint8Array,z(Int32Array,this.Kb[a]))};ij.prototype.sc=function(a){var b=hj(this).offset;return z(Uint8Array,z(a.ArrayType,this.Kb[b]))}; ij.prototype.U=function(a,b){b=(void 0===b?hj(this):b).offset;var c=this.Kb;return M.isTimestamp(a)||(M.isInt(a)||M.isTime(a))&&64===a.bitWidth||M.isDate(a)&&a.unit===gd.MILLISECOND?z(Uint8Array,cj.convertArray(c[b])):M.isDecimal(a)?z(Uint8Array,dj.convertArray(c[b])):M.isBinary(a)||M.isFixedSizeBinary(a)?jj(c[b]):M.isBool(a)?qd(c[b]):M.isUtf8(a)?mb(c[b].join("")):z(Uint8Array,z(a.ArrayType,c[b].map(function(f){return+f})))}; function jj(a){a=a.join("");for(var b=new Uint8Array(a.length/2),c=0;c>1]=parseInt(a.substr(c,2),16);return b};var kj=E.f.g.h.Null,lj=E.f.g.h.Int,mj=E.f.g.h.FloatingPoint,nj=E.f.g.h.Binary,oj=E.f.g.h.Bool,pj=E.f.g.h.Utf8,qj=E.f.g.h.Decimal,rj=E.f.g.h.Date,sj=E.f.g.h.Time,tj=E.f.g.h.Timestamp,uj=E.f.g.h.Interval,vj=E.f.g.h.List,wj=E.f.g.h.Struct_,xj=E.f.g.h.Union,yj=E.f.g.h.Cc,zj=E.f.g.h.FixedSizeBinary,Aj=E.f.g.h.FixedSizeList,Bj=E.f.g.h.Map;function Cj(){}k.b(Cj,wd);g=Cj.prototype;g.visit=function(a,b){return null==a||null==b?void 0:wd.prototype.visit.call(this,a,b)};g.visitNull=function(a,b){kj.Be(b);return kj.Rd(b)}; g.visitInt=function(a,b){lj.we(b);lj.ab(b,a.bitWidth);lj.gd(b,a.isSigned);return lj.Md(b)};g.visitFloat=function(a,b){mj.ue(b);mj.cb(b,a.precision);return mj.Kd(b)};g.visitBinary=function(a,b){nj.ie(b);return nj.Bd(b)};g.visitBool=function(a,b){oj.je(b);return oj.Cd(b)};g.visitUtf8=function(a,b){pj.He(b);return pj.Xd(b)};g.visitDecimal=function(a,b){qj.oe(b);qj.qd(b,a.scale);qj.cb(b,a.precision);return qj.Ed(b)};g.visitDate=function(a,b){rj.me(b);rj.Z(b,a.unit);return rj.Dd(b)}; g.visitTime=function(a,b){sj.startTime(b);sj.Z(b,a.unit);sj.ab(b,a.bitWidth);return sj.endTime(b)};g.visitTimestamp=function(a,b){var c=a.timezone&&Va(b,a.timezone)||void 0;tj.Fe(b);tj.Z(b,a.unit);void 0!==c&&tj.sd(b,c);return tj.Vd(b)};g.visitInterval=function(a,b){uj.xe(b);uj.Z(b,a.unit);return uj.Nd(b)};g.visitList=function(a,b){vj.ye(b);return vj.Od(b)};g.visitStruct=function(a,b){wj.Ee(b);return wj.Ud(b)}; g.visitUnion=function(a,b){xj.bg(b,a.typeIds.length);var c=xj.rf(b,a.typeIds);xj.Ge(b);xj.ld(b,a.mode);xj.ud(b,c);return xj.Wd(b)};g.visitDictionary=function(a,b){var c=this.visit(a.indices,b);yj.qe(b);yj.bb(b,new Da(a.id,0));yj.ed(b,a.isOrdered);void 0!==c&&yj.cd(b,c);return yj.Gd(b)};g.visitFixedSizeBinary=function(a,b){zj.se(b);zj.Uc(b,a.byteWidth);return zj.Id(b)};g.visitFixedSizeList=function(a,b){Aj.te(b);Aj.kd(b,a.listSize);return Aj.Jd(b)}; g.visitMap=function(a,b){Bj.ze(b);Bj.hd(b,a.keysSorted);return Bj.Pd(b)};var Dj=new Cj;function Ej(a){return new Fj(a.count,Gj(a.columns),Hj(a.columns))}function Ij(a,b){return(a.fields||[]).filter(Boolean).map(function(c){return P.fromJSON(c,b)})}function Jj(a,b){return(a.children||[]).filter(Boolean).map(function(c){return P.fromJSON(c,b)})}function Gj(a){return(a||[]).reduce(function(b,c){return[].concat(k.o(b),[new Kj(c.count,Lj(c.VALIDITY))],k.o(Gj(c.children)))},[])} function Hj(a,b){b=void 0===b?[]:b;for(var c=-1,f=(a||[]).length;++c=a)return new Uint8Array(0);var b=x(this.source.read(a));if(b.byteLength=a)return d.return(new Uint8Array(0));c=x;return p(d,b.source.read(a),2)}f=c(d.m);if(f.byteLengthDk;Dk+=1)Ck[Dk]="ARROW1".charCodeAt(Dk);function Ek(a,b){b=void 0===b?0:b;for(var c=-1,f=Ck.length;++c=f?new Uint8Array(0):pd(b.offset,c,b.nullBitmap));this.$.push(new Kj(c,f))}return wd.prototype.visit.call(this,a)};Ik.prototype.visitNull=function(){return this};Ik.prototype.visitDictionary=function(a){return this.visit(a.indices)}; k.global.Object.defineProperties(Ik.prototype,{$:{configurable:!0,enumerable:!0,get:function(){return this.Wb}},buffers:{configurable:!0,enumerable:!0,get:function(){return this.Rb}},byteLength:{configurable:!0,enumerable:!0,get:function(){return this.tb}},ic:{configurable:!0,enumerable:!0,get:function(){return this.Se}}});function Kk(a){var b=a.byteLength+7&-8;this.buffers.push(a);this.ic.push(new Mj(this.tb,b));this.tb+=b;return this} function Lk(a){return Kk.call(this,a.values.subarray(0,a.length*a.stride))}function Mk(a){var b=a.length,c=a.values;a=a.valueOffsets;var f=a[0],d=Math.min(a[b]-f,c.byteLength-f);Kk.call(this,Xb(-a[0],b,a));Kk.call(this,c.subarray(f,f+d));return this}function Nk(a){var b=a.length,c=a.valueOffsets;c&&Kk.call(this,Xb(c[0],b,c));return this.visit(a.getChildAt(0))}function Ok(a){return this.visitMany(a.type.children.map(function(b,c){return a.getChildAt(c)}).filter(Boolean))[0]}g=Ik.prototype; g.visitBool=function(a){var b;return a.nullCount>=a.length?Kk.call(this,new Uint8Array(0)):(b=a.values)instanceof Uint8Array?Kk.call(this,pd(a.offset,a.length,b)):Kk.call(this,qd(a))};g.visitInt=Lk;g.visitFloat=Lk;g.visitUtf8=Mk;g.visitBinary=Mk;g.visitFixedSizeBinary=Lk;g.visitDate=Lk;g.visitTimestamp=Lk;g.visitTime=Lk;g.visitDecimal=Lk;g.visitList=Nk;g.visitStruct=Ok; g.visitUnion=function(a){var b=a.type,c=a.length,f=a.typeIds,d=a.valueOffsets;Kk.call(this,f);if(b.mode===id.Sparse)return Ok.call(this,a);if(b.mode===id.Dense){if(0>=a.offset)return Kk.call(this,d),Ok.call(this,a);var e=f.reduce(function(v,y){return Math.max(v,y)},f[0]),h=new Int32Array(e+1);e=(new Int32Array(e+1)).fill(-1);var l=new Int32Array(c);d=Xb(-d[0],c,d);for(var m=void 0,n=void 0,r=-1;++r=e?Array.from({length:f},function(){return 1}):[].concat(k.o(rd(h,d,f,null,nd)))},wd.prototype.visit.call(this,D.new(b.clone(a,d,f,0,l))))};g.visitNull=function(){return{}}; g.visitBool=function(a){return{DATA:[].concat(k.o(rd(a.values,a.offset,a.length,null,md)))}};g.visitInt=function(a){return{DATA:64>a.type.bitWidth?[].concat(k.o(a.values)):[].concat(k.o(Rk(a.values,2)))}};g.visitFloat=function(a){return{DATA:[].concat(k.o(a.values))}};g.visitUtf8=function(a){return{DATA:[].concat(k.o(a)),OFFSET:[].concat(k.o(a.valueOffsets))}};g.visitBinary=function(a){return{DATA:[].concat(k.o(Sk(a))),OFFSET:[].concat(k.o(a.valueOffsets))}};g.visitFixedSizeBinary=function(a){return{DATA:[].concat(k.o(Sk(a)))}}; g.visitDate=function(a){return{DATA:a.type.unit===gd.DAY?[].concat(k.o(a.values)):[].concat(k.o(Rk(a.values,2)))}};g.visitTimestamp=function(a){return{DATA:[].concat(k.o(Rk(a.values,2)))}};g.visitTime=function(a){return{DATA:a.type.unit>3;++d>3;++m=b?l===b?c[m]=e:(c[m]=e.slice(0,b),e=e.slice(b,l-b),d.pc=Math.max(d.pc,f[m].unshift(e))):((h=a[m]).nullable||(a[m]=h.clone({nullable:!0})),c[m]=e?Mf(e,b):L.new(h.type,0,b,b,[dl,dl,new Uint8Array(r),dl]));return c};k.l();function U(a,b){this.ea=b;this.numChildren=a.childData.length;this.Gc(this.data=a)}k.b(U,D);g=U.prototype;g.clone=function(a,b){b=void 0===b?this.ea:b;return D.new(a,b)};g.concat=function(a){for(var b=[],c=0;c>3]&1<a||a>=this.numChildren?null:(this.ea||(this.ea=[]))[a]||(this.ea[a]=D.new(this.data.childData[a]))};g.toJSON=function(){return[].concat(k.o(this))};g.ac=function(a,b,c){return a.clone(a.data.slice(b,c-b),null)};g.Gc=function(){};var jl={}; k.global.Object.defineProperties(U.prototype,(jl.type={configurable:!0,enumerable:!0,get:function(){return this.data.type}},jl.typeId={configurable:!0,enumerable:!0,get:function(){return this.data.typeId}},jl.length={configurable:!0,enumerable:!0,get:function(){return this.data.length}},jl.offset={configurable:!0,enumerable:!0,get:function(){return this.data.offset}},jl.stride={configurable:!0,enumerable:!0,get:function(){return this.data.stride}},jl.nullCount={configurable:!0,enumerable:!0,get:function(){return this.data.nullCount}}, jl.byteLength={configurable:!0,enumerable:!0,get:function(){return this.data.byteLength}},jl.VectorName={configurable:!0,enumerable:!0,get:function(){return I[this.typeId]+"Vector"}},jl.ArrayType={configurable:!0,enumerable:!0,get:function(){return this.type.ArrayType}},jl.values={configurable:!0,enumerable:!0,get:function(){return this.data.values}},jl.typeIds={configurable:!0,enumerable:!0,get:function(){return this.data.typeIds}},jl.nullBitmap={configurable:!0,enumerable:!0,get:function(){return this.data.nullBitmap}}, jl.valueOffsets={configurable:!0,enumerable:!0,get:function(){return this.data.valueOffsets}},jl[Symbol.toStringTag]={configurable:!0,enumerable:!0,get:function(){k.l();return this.VectorName+"<"+this.type[Symbol.toStringTag]+">"}},jl));k.l();U.prototype[Symbol.sh]=!0;function kl(){U.apply(this,arguments)}k.b(kl,U);kl.prototype.asUtf8=function(){return D.new(this.data.clone(new pe))};function ll(){U.apply(this,arguments)}k.b(ll,U);ll.from=function(a){return ml(function(){return new te},a)};function nl(){U.apply(this,arguments)}k.b(nl,U);nl.from=function(a){for(var b=[],c=0;c>>0)}function om(a,b,c){var f=b[c];b=b[c+1];return null!=f&&null!=b?a.subarray(f,b):null}function pm(a,b){return new Date(864E5*a.values[b])}function qm(a,b){return new Date(nm(a.values,2*b))}function rm(a,b){return a.values[a.stride*b]}function sm(a,b){return mg(a.values[a.stride*b])}function tm(a,b){var c=a.stride;return Cg.new(a.values.subarray(c*b,c*(b+1)),a.type.isSigned)}function um(a,b){return 1E3*nm(a.values,2*b)} function vm(a,b){return nm(a.values,2*b)}function wm(a,b){a=a.values;b*=2;return a[b+1]/1E3*4294967296+(a[b]>>>0)/1E3}function xm(a,b){a=a.values;b*=2;return a[b+1]/1E6*4294967296+(a[b]>>>0)/1E6}function ym(a,b){return a.values[a.stride*b]}function zm(a,b){return a.values[a.stride*b]}function Am(a,b){return Cg.he(a.values.subarray(2*b,2*(b+1)))}function Bm(a,b){return Cg.he(a.values.subarray(2*b,2*(b+1)))} function Cm(a,b){var c=a.getChildAt(a.typeIdToChildIndex[a.typeIds[b]]);return c?c.get(a.valueOffsets[b]):null}function Dm(a,b){return(a=a.getChildAt(a.typeIdToChildIndex[a.typeIds[b]]))?a.get(b):null}function Em(a,b){return a.values.subarray(2*b,2*(b+1))}function Fm(a,b){a=a.values[b];b=new Int32Array(2);b[0]=a/12|0;b[1]=a%12|0;return b}g=mm.prototype;g.visitNull=function(){return null};g.visitBool=function(a,b){b=a.offset+b;return 0!==(a.values[b>>3]&1<a.type.bitWidth?rm(a,b):tm(a,b)};g.visitInt8=rm;g.visitInt16=rm;g.visitInt32=rm;g.visitInt64=tm;g.visitUint8=rm;g.visitUint16=rm;g.visitUint32=rm;g.visitUint64=tm;g.visitFloat=function(a,b){return a.type.precision!==hd.HALF?rm(a,b):sm(a,b)};g.visitFloat16=sm;g.visitFloat32=rm;g.visitFloat64=rm;g.visitUtf8=function(a,b){a=om(a.values,a.valueOffsets,b);return null!==a?lb(a):null};g.visitBinary=function(a,b){return om(a.values,a.valueOffsets,b)}; g.visitFixedSizeBinary=function(a,b){var c=a.stride;return a.values.subarray(c*b,c*(b+1))};g.visitDate=function(a,b){return a.type.unit===gd.DAY?pm(a,b):qm(a,b)};g.visitDateDay=pm;g.visitDateMillisecond=qm;g.visitTimestamp=function(a,b){switch(a.type.unit){case G.SECOND:return um(a,b);case G.MILLISECOND:return vm(a,b);case G.MICROSECOND:return wm(a,b);case G.NANOSECOND:return xm(a,b)}};g.visitTimestampSecond=um;g.visitTimestampMillisecond=vm;g.visitTimestampMicrosecond=wm; g.visitTimestampNanosecond=xm;g.visitTime=function(a,b){switch(a.type.unit){case G.SECOND:return ym(a,b);case G.MILLISECOND:return zm(a,b);case G.MICROSECOND:return Am(a,b);case G.NANOSECOND:return Bm(a,b)}};g.visitTimeSecond=ym;g.visitTimeMillisecond=zm;g.visitTimeMicrosecond=Am;g.visitTimeNanosecond=Bm;g.visitDecimal=function(a,b){return Cg.sf(a.values.subarray(4*b,4*(b+1)))};g.visitList=function(a,b){var c=a.getChildAt(0),f=a.valueOffsets;a=a.stride;return c.slice(f[b*a],f[b*a+1])}; g.visitStruct=function(a,b){return a.bind(b)};g.visitUnion=function(a,b){return a.type.mode===id.Dense?Cm(a,b):Dm(a,b)};g.visitDenseUnion=Cm;g.visitSparseUnion=Dm;g.visitDictionary=function(a,b){return a.getValue(a.getKey(b))};g.visitInterval=function(a,b){return a.type.unit===jd.DAY_TIME?Em(a,b):Fm(a,b)};g.visitIntervalDayTime=Em;g.visitIntervalYearMonth=Fm;g.visitFixedSizeList=function(a,b){var c=a.getChildAt(0);a=a.stride;return c.slice(b*a,(b+1)*a)};g.visitMap=function(a,b){return a.bind(b)}; var Gm=new mm;function Hm(){}k.b(Hm,wd);function V(a,b,c){if(void 0===b)return-1;if(null===b){a:{var f=a.nullBitmap;if(f&&!(0>=a.nullCount))for(b=0,a=k.w(rd(f,a.data.offset+(c||0),a.length,f,md)),c=a.next();!c.done;c=a.next()){if(!c.value){a=b;break a}++b}a=-1}return a}b=yh(b);c=(c||0)-1;for(f=a.length;++ca||a>=this.numChildren)return null;var b,c=this.J.fields,f=this.ea||(this.ea=[]);if(b=f[a])return b;if(b=c[a])if(c=this.I.map(function(d){return d.getChildAt(a)}).filter(function(d){return null!=d}),0=Hk)){e.i(3);break}d=Ek;return p(e,f.La(0,Fk+7&-8),4);case 4:if(d(e.m))return e.return(new on(new wn(f)));case 3:return e.return(new mn(new un(f)))}})};function xn(a,b){function c(h,l){for(var m,n,r=h.desiredSize||null;!(n=l.next(d?r:null)).done;)if(ArrayBuffer.isView(n.value)&&(m=x(n.value))&&(null!=r&&d&&(r=r-m.byteLength+1),n.value=m),h.enqueue(n.value),null!=r&&0>=--r)return;h.close()}var f=null,d=b&&"bytes"===b.type||!1,e=b&&b.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign({},b,{start:function(h){k.l();k.D();c(h,f||(f=a[Symbol.iterator]()))},pull:function(h){f?c(h,f):h.close()},cancel:function(){f&&f.return&&f.return(); f=null}}),Object.assign({},{highWaterMark:d?e:void 0},b))} function yn(a,b){function c(h,l){var m,n,r;return k.u(function(v){switch(v.j){case 1:n=null,r=h.desiredSize||null;case 2:return p(v,l.next(d?r:null),4);case 4:if((n=v.m).done){v.i(3);break}ArrayBuffer.isView(n.value)&&(m=x(n.value))&&(null!=r&&d&&(r=r-m.byteLength+1),n.value=m);h.enqueue(n.value);if(null!=r&&0>=--r)return v.return();v.i(2);break;case 3:h.close(),v.j=0}})}var f=null,d=b&&"bytes"===b.type||!1,e=b&&b.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign({},b,{start:function(h){return k.u(function(l){k.l(); k.N();return p(l,c(h,f||(f=a[Symbol.asyncIterator]())),0)})},pull:function(h){return k.u(function(l){if(1==l.j)return f?p(l,c(h,f),3):(h.close(),l.i(2));l.j=0})},cancel:function(){return k.u(function(h){switch(h.j){case 1:if(!f){h.i(2);break}if(!f.return){h.i(3);break}return p(h,f.return(),4);case 4:case 3:case 2:f=null,h.j=0}})}}),Object.assign({},{highWaterMark:d?e:void 0},b))};function zn(a){var b=this;this.Yb=0;this.Jc=!1;this.Qa=0;var c=Object.assign({},a),f=a.readableStrategy,d=a.writableStrategy;a=a.queueingStrategy;a=void 0===a?"count":a;c=(delete c.readableStrategy,delete c.writableStrategy,delete c.queueingStrategy,c);this.Ra=null;this.va=N.new(c);this.Ve="bytes"!==a?An:Bn;f=Object.assign({},f).highWaterMark;f=void 0===f?"bytes"===a?Math.pow(2,14):1E3:f;d=Object.assign({},d).highWaterMark;d=void 0===d?"bytes"===a?Math.pow(2,14):1E3:d;c={};this.readable=new ReadableStream((c.cancel= function(){b.va.clear()},c.pull=function(e){Cn(b,b.va,b.Ra=e)},c.start=function(e){Cn(b,b.va,b.Ra=e)},c),{highWaterMark:f,size:"bytes"!==a?An:Bn});a={};this.writable=new WritableStream((a.abort=function(){b.va.clear()},a.write=function(){Cn(b,b.va,b.Ra)},a.close=function(){Cn(b,b.va.finish(),b.Ra)},a),{highWaterMark:d,size:function(e){var h=b.Qa;b.Qa=b.Ve(b.va.append(e));return b.Qa-h}})} function Cn(a,b,c){null!==c&&(a.Qa>=c.desiredSize&&++a.Yb&&Dn(a,c,b.toVector()),b.finished&&((0this.Fb)throw Error('Failed to bind Col "'+this.name+'"');}var f=this.Oa=a.getChildAt(this.Fb);return function(d){return f.get(d)}};function Ln(){}Ln.prototype.and=function(a){for(var b=[],c=0;c=b.ca;return function(){return c}}; In.prototype.Ob=function(a,b,c){var f=b.bind(a),d=c.bind(a);return function(e,h){return f(e,h)>=d(e,h)}};In.prototype.rb=function(a,b,c){var f=b.bind(a);return function(d,e){return f(d,e)>=c.ca}};In.prototype.Pb=function(a,b,c){var f=c.bind(a);return function(d,e){return b.ca>=f(d,e)}};function Jn(a){this.kf=a}k.b(Jn,Ln);Jn.prototype.bind=function(a){var b=this.kf.bind(a);return function(c,f){return!b(c,f)}};function Qn(a,b){this.next=a;this.ef=b}k.b(Qn,Ln); Qn.prototype.bind=function(a){this.ef(a);return this.next};var Rn={};Rn.And=Mn;Rn.Col=Kn;Rn.CombinationPredicate=Pn;Rn.ComparisonPredicate=On;Rn.CustomPredicate=Qn;Rn.Equals=Gn;Rn.GTeq=In;Rn.LTeq=Hn;Rn.Literal=Fn;Rn.Not=Jn;Rn.Or=Nn;Rn.Predicate=Ln;Rn.Value=En;Rn.and=function(a){for(var b=[],c=0;c=--n)return v.return();v.i(2);break;case 3:l.close(),v.j=0}})}var d=new Ri,e=null,h=new ReadableStream({cancel:function(){return k.u(function(l){return p(l,d.close(), 0)})},start:function(l){var m,n,r;return k.u(function(v){if(1==v.j)return m=f,n=l,(r=e)?v.i(3):p(v,c(),4);3!=v.j&&(r=e=v.m);return p(v,m(n,r),0)})},pull:function(l){return k.u(function(m){if(1==m.j)return e?p(m,f(l,e),3):(l.close(),m.i(2));m.j=0})}});return{writable:new WritableStream(d,Object.assign({},{highWaterMark:Math.pow(2,14)},a)),readable:h}}; Tk.throughDOM=function(a,b){function c(e){var h,l;return k.u(function(m){switch(m.j){case 1:h=null,l=e.desiredSize;case 2:return p(m,d.read(l||null),4);case 4:if(!(h=m.m)){m.i(3);break}e.enqueue(h);if(null!=l&&0>=(l-=h.byteLength))return m.return();m.i(2);break;case 3:e.close(),m.j=0}})}var f=new this(a),d=new Ui(f);b=new ReadableStream({type:"bytes",cancel:function(){return k.u(function(e){return p(e,d.cancel(),0)})},pull:function(e){return k.u(function(h){return p(h,c(e),0)})},start:function(e){return k.u(function(h){return p(h, c(e),0)})}},Object.assign({},{highWaterMark:Math.pow(2,14)},b));return{writable:new WritableStream(f,a),readable:b}};var Y={};Y.ArrowType=fd;Y.AsyncByteQueue=Ri;Y.AsyncByteStream=Ui;Y.AsyncMessageReader=Ak;Y.AsyncRecordBatchFileReader=on;Y.AsyncRecordBatchStreamReader=mn;Y.BaseVector=U;Y.Binary=le;Y.BinaryBuilder=ah;Y.BinaryVector=kl;Y.Bool=te;Y.BoolBuilder=ag;Y.BoolVector=ll;Y.BufferType=K;Y.Builder=N;Y.ByteStream=Si;Y.Chunked=O;Y.Column=Kh;Y.CountByResult=Un;Y.Data=L;Y.DataFrame=Sn;Y.DataType=M; Y.DateBuilder=cg;Y.DateDay=Fe;Y.DateDayBuilder=dg;Y.DateDayVector=ol;Y.DateMillisecond=Ge;Y.DateMillisecondBuilder=eg;Y.DateMillisecondVector=pl;Y.DateUnit=gd;Y.DateVector=nl;Y.Date_=Be;Y.Decimal=xe;Y.DecimalBuilder=fg;Y.DecimalVector=ql;Y.DenseUnion=rf;Y.DenseUnionBuilder=ci;Y.DenseUnionVector=gm;Y.Dictionary=Gf;Y.DictionaryBuilder=gg;Y.DictionaryVector=rl;Y.Field=P;Y.FilteredDataFrame=Tn;Y.FixedSizeBinary=tf;Y.FixedSizeBinaryBuilder=hg;Y.FixedSizeBinaryVector=sl;Y.FixedSizeList=xf; Y.FixedSizeListBuilder=Yh;Y.FixedSizeListVector=tl;Y.Float=ee;Y.Float16=ie;Y.Float16Builder=qg;Y.Float16Vector=xl;Y.Float32=je;Y.Float32Builder=rg;Y.Float32Vector=yl;Y.Float64=ke;Y.Float64Builder=sg;Y.Float64Vector=zl;Y.FloatBuilder=pg;Y.FloatVector=ul;Y.Int=Td;Y.Int16=Yd;Y.Int16Builder=Gg;Y.Int16Vector=Il;Y.Int32=Zd;Y.Int32Builder=Hg;Y.Int32Vector=Jl;Y.Int64=$d;Y.Int64Builder=Ig;Y.Int64Vector=Kl;Y.Int8=Xd;Y.Int8Builder=Fg;Y.Int8Vector=Hl;Y.IntBuilder=Eg;Y.IntVector=Dl;Y.Interval=Ze; Y.IntervalBuilder=Yg;Y.IntervalDayTime=cf;Y.IntervalDayTimeBuilder=Zg;Y.IntervalDayTimeVector=Bl;Y.IntervalUnit=jd;Y.IntervalVector=Al;Y.IntervalYearMonth=df;Y.IntervalYearMonthBuilder=$g;Y.IntervalYearMonthVector=Cl;Y.JSONMessageReader=Bk;Y.List=ef;Y.ListBuilder=Xh;Y.ListVector=Pl;Y.MapBuilder=Zh;Y.MapVector=Ql;Y.Map_=Bf;Y.Message=Zj;Y.MessageHeader=H;Y.MessageReader=zk;Y.MetadataVersion=kd;Y.Null=Pd;Y.NullBuilder=bg;Y.NullVector=Rl;Y.Precision=hd;Y.RecordBatch=Jk;Y.RecordBatchFileReader=nn; Y.RecordBatchFileWriter=al;Y.RecordBatchJSONWriter=bl;Y.RecordBatchReader=cn;Y.RecordBatchStreamReader=en;Y.RecordBatchStreamWriter=$k;Y.RecordBatchWriter=Tk;Y.Schema=Q;Y.SparseUnion=sf;Y.SparseUnionBuilder=bi;Y.SparseUnionVector=hm;Y.Struct=jf;Y.StructBuilder=$h;Y.StructVector=Tl;Y.Table=S;Y.Time=He;Y.TimeBuilder=Og;Y.TimeMicrosecond=Pe;Y.TimeMicrosecondBuilder=Rg;Y.TimeMicrosecondVector=bm;Y.TimeMillisecond=Oe;Y.TimeMillisecondBuilder=Qg;Y.TimeMillisecondVector=am;Y.TimeNanosecond=Qe; Y.TimeNanosecondBuilder=Sg;Y.TimeNanosecondVector=cm;Y.TimeSecond=Ne;Y.TimeSecondBuilder=Pg;Y.TimeSecondVector=$l;Y.TimeUnit=G;Y.TimeVector=Zl;Y.Timestamp=Re;Y.TimestampBuilder=Tg;Y.TimestampMicrosecond=Xe;Y.TimestampMicrosecondBuilder=Wg;Y.TimestampMicrosecondVector=Xl;Y.TimestampMillisecond=We;Y.TimestampMillisecondBuilder=Vg;Y.TimestampMillisecondVector=Wl;Y.TimestampNanosecond=Ye;Y.TimestampNanosecondBuilder=Xg;Y.TimestampNanosecondVector=Yl;Y.TimestampSecond=Ve;Y.TimestampSecondBuilder=Ug; Y.TimestampSecondVector=Vl;Y.TimestampVector=Ul;Y.Type=I;Y.Uint16=be;Y.Uint16Builder=Lg;Y.Uint16Vector=Ml;Y.Uint32=ce;Y.Uint32Builder=Mg;Y.Uint32Vector=Nl;Y.Uint64=de;Y.Uint64Builder=Ng;Y.Uint64Vector=Ol;Y.Uint8=ae;Y.Uint8Builder=Kg;Y.Uint8Vector=Ll;Y.Union=nf;Y.UnionBuilder=ai;Y.UnionMode=id;Y.UnionVector=fm;Y.Utf8=pe;Y.Utf8Builder=bh;Y.Utf8Vector=im;Y.Vector=D;Y.Visitor=wd;Y.predicate=Rn;Y.util=Wn;Object.assign(arguments[0],Y);}.bind(this)))); //# sourceMappingURL=Arrow.es5.min.js.map