@apache-arrow/esnext-umd
Advanced tools
Comparing version 0.1.2 to 0.2.0
98
Arrow.js
@@ -1,96 +0,2 @@ | ||
// 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 n,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},q="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function u(){u=function(){};q.Symbol||(q.Symbol=ba)}var ba=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(); | ||
function v(){u();var a=q.Symbol.iterator;a||(a=q.Symbol.iterator=q.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ca(this)}});v=function(){}}function ca(a){var b=0;return da(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function da(a){v();a={next:a};a[q.Symbol.iterator]=function(){return this};return a} | ||
var ea={NONE:0,0:"NONE",va:1,1:"Null",sa:2,2:"Int",ra:3,3:"FloatingPoint",ma:4,4:"Binary",Aa:5,5:"Utf8",na:6,6:"Bool",oa:7,7:"Decimal",Date:8,8:"Date",xa:9,9:"Time",ya:10,10:"Timestamp",ta:11,11:"Interval",ua:12,12:"List",wa:13,13:"Struct_",za:14,14:"Union",pa:15,15:"FixedSizeBinary",qa:16,16:"FixedSizeList",Map:17,17:"Map"};function ha(){this.a=null;this.b=0}ha.prototype.f=function(a,b){this.b=a;this.a=b;return this};function w(){this.a=null;this.b=0} | ||
w.prototype.f=function(a,b){this.b=a;this.a=b;return this};w.prototype.w=function(){var a=x(this.a,this.b,4);return a?z(this.a,this.b+a):0};w.prototype.O=function(){var a=x(this.a,this.b,6);return a?!!(this.a.g[this.b+a]<<24>>24):!1};function ia(){this.a=null;this.b=0}ia.prototype.f=function(a,b){this.b=a;this.a=b;return this};ia.prototype.precision=function(){var a=x(this.a,this.b,4);return a?A(this.a,this.b+a):0};function F(){this.a=null;this.b=0}F.prototype.f=function(a,b){this.b=a;this.a=b;return this}; | ||
function ja(a){return(new F).f(z(a,a.position())+a.position(),a)}F.prototype.w=function(){var a=x(this.a,this.b,4);return a?A(this.a,this.b+a):0};F.prototype.type=function(){var a=x(this.a,this.b,6);return a?A(this.a,this.b+a):0};function H(){this.a=null;this.b=0}H.prototype.f=function(a,b){this.b=a;this.a=b;return this};H.prototype.key=function(a){var b=x(this.a,this.b,4);return b?ka(this.a,this.b+b,a):null};H.prototype.value=function(a){var b=x(this.a,this.b,6);return b?ka(this.a,this.b+b,a):null}; | ||
function la(){this.a=null;this.b=0}la.prototype.f=function(a,b){this.b=a;this.a=b;return this};la.prototype.id=function(){var a=x(this.a,this.b,4);return a?J(this.a,this.b+a):this.a.A(0,0)};function ma(a){var b=x(a.a,a.b,6);return b?(new w).f(L(a.a,a.b+b),a.a):null}function na(){this.a=null;this.b=0}n=na.prototype;n.f=function(a,b){this.b=a;this.a=b;return this};n.name=function(a){var b=x(this.a,this.b,4);return b?ka(this.a,this.b+b,a):null}; | ||
function oa(a){var b=x(a.a,a.b,6);return b?!!(a.a.g[a.b+b]<<24>>24):!1}function pa(a){var b=x(a.a,a.b,8);return b?a.a.g[a.b+b]:0}n.type=function(a){var b=x(this.a,this.b,10);return b?qa(this.a,a,this.b+b):null};function ra(a){var b=x(a.a,a.b,12);return b?(new la).f(L(a.a,a.b+b),a.a):null}n.children=function(a,b){var c=x(this.a,this.b,14);return c?(b||new na).f(L(this.a,M(this.a,this.b+c)+4*a),this.a):null};function sa(a){var b=x(a.a,a.b,14);return b?N(a.a,a.b+b):0} | ||
n.ca=function(a,b){var c=x(this.a,this.b,16);return c?(b||new F).f(L(this.a,M(this.a,this.b+c)+4*a),this.a):null};n.da=function(){var a=x(this.a,this.b,16);return a?N(this.a,this.b+a):0};n.W=function(a,b){var c=x(this.a,this.b,18);return c?(b||new H).f(L(this.a,M(this.a,this.b+c)+4*a),this.a):null};n.X=function(){var a=x(this.a,this.b,18);return a?N(this.a,this.b+a):0};function ua(){this.a=null;this.b=0}ua.prototype.f=function(a,b){this.b=a;this.a=b;return this}; | ||
ua.prototype.page=function(){return z(this.a,this.b)};ua.prototype.offset=function(){return J(this.a,this.b+8)};ua.prototype.length=function(){return J(this.a,this.b+16)};function va(){this.a=null;this.b=0}va.prototype.f=function(a,b){this.b=a;this.a=b;return this};function wa(a,b){var c=x(a.a,a.b,6);return c?(new na).f(L(a.a,M(a.a,a.b+c)+4*b),a.a):null}va.prototype.W=function(a,b){var c=x(this.a,this.b,8);return c?(b||new H).f(L(this.a,M(this.a,this.b+c)+4*a),this.a):null}; | ||
va.prototype.X=function(){var a=x(this.a,this.b,8);return a?N(this.a,this.b+a):0};function xa(){this.a=null;this.b=0}xa.prototype.f=function(a,b){this.b=a;this.a=b;return this};xa.prototype.version=function(){var a=x(this.a,this.b,4);return a?A(this.a,this.b+a):0};xa.prototype.B=function(a){var b=x(this.a,this.b,6);return b?(a||new va).f(L(this.a,this.b+b),this.a):null};function ya(){this.a=null;this.b=0}ya.prototype.f=function(a,b){this.b=a;this.a=b;return this};ya.prototype.offset=function(){return J(this.a,this.b)};ya.prototype.V=function(){return J(this.a,this.b+16)};function za(){this.a=null;this.b=0}za.prototype.f=function(a,b){this.b=a;this.a=b;return this};za.prototype.length=function(){return J(this.a,this.b)};function Aa(){this.a=null;this.b=0}Aa.prototype.f=function(a,b){this.b=a;this.a=b;return this};Aa.prototype.length=function(){var a=x(this.a,this.b,4);return a?J(this.a,this.b+a):this.a.A(0,0)};function Ba(){this.a=null;this.b=0}Ba.prototype.f=function(a,b){this.b=a;this.a=b;return this}; | ||
Ba.prototype.id=function(){var a=x(this.a,this.b,4);return a?J(this.a,this.b+a):this.a.A(0,0)};Ba.prototype.data=function(a){var b=x(this.a,this.b,6);return b?(a||new Aa).f(L(this.a,this.b+b),this.a):null};function Ca(){this.a=null;this.b=0}Ca.prototype.f=function(a,b){this.b=a;this.a=b;return this};Ca.prototype.version=function(){var a=x(this.a,this.b,4);return a?A(this.a,this.b+a):0};function Da(a){var b=x(a.a,a.b,6);return b?a.a.g[a.b+b]:0} | ||
function Ea(a,b){var c=x(a.a,a.b,8);return c?qa(a.a,b,a.b+c):null}Ca.prototype.V=function(){var a=x(this.a,this.b,10);return a?J(this.a,this.b+a):this.a.A(0,0)};var Fa=new Int32Array(2);new Float32Array(Fa.buffer);new Float64Array(Fa.buffer);new Uint16Array((new Uint8Array([1,0])).buffer);function O(a,b){this.low=a|0;this.high=b|0}function Ga(a){return(a.low>>>0)+4294967296*a.high}var Ha=new O(0,0);function Ia(a){a=a?a:1024;this.a=new La(new Uint8Array(a));this.j=a;this.H=1;this.u=null;this.R=0;this.G=!1;this.ea=0;this.K=[];this.ka=!1} | ||
function Ma(a,b,c){b>a.H&&(a.H=b);for(var e=~(a.a.g.length-a.j+c)+1&b-1;a.j<e+b+c;){var d=a.a.g.length,g=a,h=a.a,f=h.g.length;if(f&3221225472)throw Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var k=f<<1,l=new La(new Uint8Array(k));l.setPosition(k-f);l.m().set(h.m(),k-f);g.a=l;a.j+=a.a.g.length-d}for(b=0;b<e;b++)a.a.L(--a.j,0)}n=Ia.prototype;n.L=function(a){this.a.L(--this.j,a)};n.S=function(a){this.a.S(this.j-=2,a)};n.v=function(a){this.a.v(this.j-=4,a)}; | ||
function Na(a,b){Ma(a,2,0);a.S(b)}function Oa(a,b,c){if(a.ka||0!=c)Na(a,c),a.u[b]=a.offset()}n.offset=function(){return this.a.g.length-this.j};function Pa(a){if(a.G)throw Error("FlatBuffers: object serialization must not be nested.");null==a.u&&(a.u=[]);a.R=2;for(var b=0;2>b;b++)a.u[b]=0;a.G=!0;a.ea=a.offset()} | ||
function Qa(a){if(null==a.u||!a.G)throw Error("FlatBuffers: endObject called without startObject");Ma(a,4,0);a.v(0);for(var b=a.offset(),c=a.R-1;0<=c;c--)Na(a,0!=a.u[c]?b-a.u[c]:0);Na(a,b-a.ea);Na(a,2*(a.R+2));var e=0;c=0;a:for(;c<a.K.length;c++){var d=a.a.g.length-a.K[c],g=a.j,h=A(a.a,d);if(h==A(a.a,g)){for(var f=2;f<h;f+=2)if(A(a.a,d+f)!=A(a.a,g+f))continue a;e=a.K[c];break}}e?(a.j=a.a.g.length-b,a.a.v(a.j,e-b)):(a.K.push(a.offset()),a.a.v(a.a.g.length-b,a.offset()-b));a.G=!1;return b} | ||
n.finish=function(a,b){if(b){Ma(this,this.H,8);if(4!=b.length)throw Error("FlatBuffers: file identifier must be length 4");for(var c=3;0<=c;c--)this.L(b.charCodeAt(c))}Ma(this,this.H,4);Ma(this,4,0);this.v(this.offset()-a+4);this.a.setPosition(this.j)};n.A=function(a,b){return 0==a&&0==b?Ha:new O(a,b)};function La(a){this.g=a;this.fa=0}n=La.prototype;n.m=function(){return this.g};n.position=function(){return this.fa};n.setPosition=function(a){this.fa=a};function Ra(a,b){return a.g[b]} | ||
function A(a,b){return(a.g[b]|a.g[b+1]<<8)<<16>>16}function z(a,b){return a.g[b]|a.g[b+1]<<8|a.g[b+2]<<16|a.g[b+3]<<24}function J(a,b){return new O(z(a,b),z(a,b+4))}n.L=function(a,b){this.g[a]=b};n.S=function(a,b){this.g[a]=b;this.g[a+1]=b>>8};n.v=function(a,b){this.g[a]=b;this.g[a+1]=b>>8;this.g[a+2]=b>>16;this.g[a+3]=b>>24};function x(a,b,c){b-=z(a,b);return c<A(a,b)?A(a,b+c):0}function qa(a,b,c){b.b=c+z(a,c);b.a=a;return b} | ||
function ka(a,b,c){b+=z(a,b);var e=z(a,b),d="",g=0;b+=4;if(1===c)return a.g.subarray(b,b+e);for(;g<e;){c=Ra(a,b+g++);if(!(192>c)){var h=Ra(a,b+g++);if(224>c)c=(c&31)<<6|h&63;else{var f=Ra(a,b+g++);if(240>c)c=(c&15)<<12|(h&63)<<6|f&63;else{var k=Ra(a,b+g++);c=(c&7)<<18|(h&63)<<12|(f&63)<<6|k&63}}}65536>c?d+=String.fromCharCode(c):(c-=65536,d+=String.fromCharCode((c>>10)+55296,(c&1023)+56320))}return d}function L(a,b){return b+z(a,b)}function M(a,b){return b+z(a,b)+4} | ||
function N(a,b){return z(a,b+z(a,b))}n.A=function(a,b){return 0==a&&0==b?Ha:new O(a,b)};function Sa(a){if(void 0===a)return{};if(a===Object(a))return a;throw TypeError("Could not convert argument to dictionary");}function Ta(a){this.s=[].slice.call(a)}Ta.prototype={endOfStream:function(){return!this.s.length},read:function(){return this.s.length?this.s.shift():-1},push:function(a){if(Array.isArray(a))for(;a.length;)this.s.push(a.shift());else this.s.push(a)}};function Ua(a){if(a)throw TypeError("Decoder error");return 65533} | ||
function Va(a,b){if(!(this instanceof Va))return new Va(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=Sa(b);this.C=this.M=!1;this.D=null;this.T=!!b.fatal;this.U=!!b.ignoreBOM;Object.defineProperty(this,"encoding",{value:"utf-8"});Object.defineProperty(this,"fatal",{value:this.T});Object.defineProperty(this,"ignoreBOM",{value:this.U})} | ||
Va.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=Sa(b);this.M||(this.D=new Wa({fatal:this.T}),this.C=!1);this.M=!!b.stream;a=new Ta(a);b=[];for(var c;!a.endOfStream();){c=this.D.ba(a,a.read());if(-1===c)break;null!==c&&(Array.isArray(c)?b.push.apply(b,c):b.push(c))}if(!this.M){do{c=this.D.ba(a,a.read());if(-1=== | ||
c)break;null!==c&&(Array.isArray(c)?b.push.apply(b,c):b.push(c))}while(!a.endOfStream());this.D=null}!b.length||-1===["utf-8"].indexOf(this.encoding)||this.U||this.C||(65279===b[0]?(this.C=!0,b.shift()):this.C=!0);a="";for(c=0;c<b.length;++c){var e=b[c];65535>=e?a+=String.fromCharCode(e):(e-=65536,a+=String.fromCharCode((e>>10)+55296,(e&1023)+56320))}return a}}; | ||
function Wa(a){var b=a.fatal,c=0,e=0,d=0,g=128,h=191;this.ba=function(a,k){if(-1===k&&0!==d)return d=0,Ua(b);if(-1===k)return-1;if(0===d){if(0<=k&&127>=k)return k;if(194<=k&&223>=k)d=1,c=k-192;else if(224<=k&&239>=k)224===k&&(g=160),237===k&&(h=159),d=2,c=k-224;else if(240<=k&&244>=k)240===k&&(g=144),244===k&&(h=143),d=3,c=k-240;else return Ua(b);c<<=6*d;return null}if(!(g<=k&&k<=h)){c=d=e=0;g=128;h=191;if(Array.isArray(k))for(;k.length;)a.s.unshift(k.pop());else a.s.unshift(k);return Ua(b)}g=128; | ||
h=191;e+=1;c+=k-128<<6*(d-e);if(e!==d)return null;a=c;c=d=e=0;return a}};var Xa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};function P(a,b){function c(){this.constructor=a}Xa(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)} | ||
function Q(a,b){function c(a){return function(b){return e([a,b])}}function e(c){if(g)throw new TypeError("Generator is already executing.");for(;d;)try{if(g=1,h&&(f=h[c[0]&2?"return":c[0]?"throw":"next"])&&!(f=f.call(h,c[1])).done)return f;if(h=0,f)c=[0,f.value];switch(c[0]){case 0:case 1:f=c;break;case 4:return d.label++,{value:c[1],done:!1};case 5:d.label++;h=c[1];c=[0];continue;case 7:c=d.P.pop();d.h.pop();continue;default:if(!(f=d.h,f=0<f.length&&f[f.length-1])&&(6===c[0]||2===c[0])){d=0;continue}if(3=== | ||
c[0]&&(!f||c[1]>f[0]&&c[1]<f[3]))d.label=c[1];else if(6===c[0]&&d.label<f[1])d.label=f[1],f=c;else if(f&&d.label<f[2])d.label=f[2],d.P.push(c);else{f[2]&&d.P.pop();d.h.pop();continue}}c=b.call(a,d)}catch(m){c=[6,m],h=0}finally{g=f=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}var d={label:0,c:function(){if(f[0]&1)throw f[1];return f[1]},h:[],P:[]},g,h,f,k;return k={next:c(0),"throw":c(1),"return":c(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k} | ||
function R(a){var b="function"===typeof Symbol&&a[Symbol.iterator],c=0;return b?b.call(a):{next:function(){a&&c>=a.length&&(a=void 0);return{value:a&&a[c++],done:!a}}}}function Ya(a,b){var c="function"===typeof Symbol&&a[Symbol.iterator];if(!c)return a;a=c.call(a);var e,d=[];try{for(;(void 0===b||0<b--)&&!(e=a.next()).done;)d.push(e.value)}catch(h){var g={error:h}}finally{try{e&&!e.done&&(c=a["return"])&&c.call(a)}finally{if(g)throw g.error;}}return d} | ||
function T(){for(var a=[],b=0;b<arguments.length;b++)a=a.concat(Ya(arguments[b]));return a};function Za(a){var b,c;return Q(this,function(e){switch(e.label){case 0:if(!(a.position()<a.g.length&&0<(c=z(a,a.position()))))return[3,2];a.setPosition(a.position()+4);b=(new Ca).f(z(a,a.position())+a.position(),a);a.setPosition(a.position()+c);return[4,b];case 1:return e.c(),[3,0];case 2:return[2]}})} | ||
function $a(a){var b,c,e,d,g,h,f,k,l,m,r;return Q(this,function(t){switch(t.label){case 0:b=a.m(),t.label=1;case 1:t.h.push([1,6,7,8]),c=R(Za(a)),e=c.next(),t.label=2;case 2:if(e.done)return[3,5];d=e.value;g=Da(d);f=h=void 0;if(3===g)f=Ea(d,new Aa);else if(2===g)k=Ea(d,new Ba),h=Ga(k.id()).toString(),f=k.data();else return[3,4];return[4,{id:h,data:f,m:b,offset:b.byteOffset+a.position()}];case 3:t.c(),a.setPosition(a.position()+d.V().low),t.label=4;case 4:return e=c.next(),[3,2];case 5:return[3,8]; | ||
case 6:return l=t.c(),m={error:l},[3,8];case 7:try{e&&!e.done&&(r=c.return)&&r.call(c)}finally{if(m)throw m.error;}return[7];case 8:return[2]}})};for(var ab=new Uint8Array(6),bb=0;6>bb;bb+=1)ab[bb]="ARROW1".charCodeAt(bb);function cb(a,b){void 0===b&&(b=0);for(var c=-1,e=ab.length;++c<e;)if(ab[c]!==a[b+c])return!1;return!0}var db=ab.length,eb=db+4,fb=2*db+4; | ||
function hb(){var a=[];for(b=0;b<arguments.length;b++)a[b]=arguments[b];var b,c,e,d,g,h,f,k,l,m,r,t,y,p,B,G,D,E,C,K,S,fa,Ja,ta,Ka,gb;return Q(this,function(b){switch(b.label){case 0:b.h.push([0,23,24,25]),c=R(a),e=c.next(),b.label=1;case 1:if(e.done)return[3,22];d=e.value;g=d.g.length;f=h=void 0;if(g<fb||!cb(d.m(),0)||!cb(d.m(),g-db)||1>(h=z(d,f=g-eb))&&h+fb>g)throw Error("Invalid file");d.setPosition(f-h);var I=d;k=(new xa).f(z(I,I.position())+I.position(),I);l=k.B();m=-1;r=(I=x(k.a,k.b,8))?N(k.a, | ||
k.b+I):0;b.label=2;case 2:if(!(++m<r))return[3,11];t=(I=x(k.a,k.b,8))?(new ya).f(M(k.a,k.b+I)+24*m,k.a):null;d.setPosition(t.offset().low);b.label=3;case 3:b.h.push([3,8,9,10]),y=R($a(d)),p=y.next(),b.label=4;case 4:if(p.done)return[3,7];B=p.value;return[4,{B:l,N:B}];case 5:return b.c(),[3,7];case 6:return p=y.next(),[3,4];case 7:return[3,10];case 8:return G=b.c(),Ja={error:G},[3,10];case 9:try{p&&!p.done&&(ta=y.return)&&ta.call(y)}finally{if(Ja)throw Ja.error;}return[7];case 10:return[3,2];case 11:m= | ||
-1,r=(I=x(k.a,k.b,10))?N(k.a,k.b+I):0,b.label=12;case 12:if(!(++m<r))return[3,21];t=(I=x(k.a,k.b,10))?(new ya).f(M(k.a,k.b+I)+24*m,k.a):null;d.setPosition(t.offset().low);b.label=13;case 13:b.h.push([13,18,19,20]),D=R($a(d)),E=D.next(),b.label=14;case 14:if(E.done)return[3,17];B=E.value;return[4,{B:l,N:B}];case 15:return b.c(),[3,17];case 16:return E=D.next(),[3,14];case 17:return[3,20];case 18:return C=b.c(),Ka={error:C},[3,20];case 19:try{E&&!E.done&&(gb=D.return)&&gb.call(D)}finally{if(Ka)throw Ka.error; | ||
}return[7];case 20:return[3,12];case 21:return e=c.next(),[3,1];case 22:return[3,25];case 23:return K=b.c(),S={error:K},[3,25];case 24:try{e&&!e.done&&(fa=c.return)&&fa.call(c)}finally{if(S)throw S.error;}return[7];case 25:return[2]}})};function ib(){var a=[];for(b=0;b<arguments.length;b++)a[b]=arguments[b];var b,c,e,d,g,h,f,k,l,m,r,t,y,p,B,G,D,E,C,K;return Q(this,function(b){switch(b.label){case 0:if(!a.length||cb(a[0].m(),0))throw Error("Invalid Arrow Stream");b.label=1;case 1:b.h.push([1,19,20,21]),c=R(Za(a[0])),e=c.next(),b.label=2;case 2:if(e.done)return[3,18];d=e.value;if(1!==Da(d))return[3,17];g=Ea(d,new va);b.label=3;case 3:b.h.push([3,14,15,16]),h=R(a),f=h.next(),b.label=4;case 4:if(f.done)return[3,13];k=f.value;b.label= | ||
5;case 5:b.h.push([5,10,11,12]),l=R($a(k)),m=l.next(),b.label=6;case 6:if(m.done)return[3,9];r=m.value;return[4,{B:g,N:r}];case 7:b.c(),b.label=8;case 8:return m=l.next(),[3,6];case 9:return[3,12];case 10:return t=b.c(),C={error:t},[3,12];case 11:try{m&&!m.done&&(K=l.return)&&K.call(l)}finally{if(C)throw C.error;}return[7];case 12:return f=h.next(),[3,4];case 13:return[3,16];case 14:return y=b.c(),D={error:y},[3,16];case 15:try{f&&!f.done&&(E=h.return)&&E.call(h)}finally{if(D)throw D.error;}return[7]; | ||
case 16:return[3,18];case 17:return e=c.next(),[3,2];case 18:return[3,21];case 19:return p=b.c(),B={error:p},[3,21];case 20:try{e&&!e.done&&(G=c.return)&&G.call(c)}finally{if(B)throw B.error;}return[7];case 21:return[2]}})};function jb(a,b,c){var e=b||0;c=c===c&&"number"==typeof c?c:a;0>c&&(c=a+c);0>e&&(e=a- -1*e%a);c<e&&(e=c,c=b);a=!isFinite(a=c-e)||0>a?0:a;return[e,a]} | ||
var U=function(){function a(){}a.create=function(a,c){for(var b=[],d=2;d<arguments.length;d++)b[d-2]=arguments[d];b=new (this.bind.apply(this,T([void 0],b)));b.length=c;b.name=a.name();b.type=ea[pa(a)];if(0<(d=a.X())){var g=0,h=b.props=new Map;do{var f=a.W(g);h[f.key()]=f.value()}while(++g<d)}return b};a.from=function(b,c){for(var e=[],d=2;d<arguments.length;d++)e[d-2]=arguments[d];e=new (this.bind.apply(this,T([void 0],e)));e.length=c;b.name!==a.Z&&(e.name=b.name);b.type!==a.aa&&(e.type=b.type); | ||
b.props!==a.$&&(e.props=b.props);return e};a.prototype.get=function(){return null};a.prototype.concat=function(a){return a};a.prototype.slice=function(a,c,e){var b=this.ha;a=Ya(jb(b*this.length,b*(a||0),b*c),2);return this.ga(a[0],a[1],e)};a.prototype.ga=function(a,c){for(var b=Array(c),d=-1,g=this.length;++d<c;)b[d]=this.get((d+a)%g);return b};u();v();a.prototype[Symbol.iterator]=function(){var a,c;return Q(this,function(b){switch(b.label){case 0:a=-1,c=this.length,b.label=1;case 1:return++a<c?[4, | ||
this.get(a)]:[3,4];case 2:b.c(),b.label=3;case 3:return[3,1];case 4:return[2]}})};a.Z="";a.$=new Map;a.aa=ea[0];return a}();n=U.prototype;n.length=0;n.ha=1;n.name=U.Z;n.type=U.aa;n.props=U.$;var mb=function(a){function b(){for(var b=[],e=0;e<arguments.length;e++)b[e]=arguments[e];e=a.call(this)||this;e.l=b.filter(Boolean);return e}P(b,a);Object.defineProperty(b.prototype,"arrayType",{get:function(){return this.i},enumerable:!0,configurable:!0});b.prototype.get=function(a){for(var b,c,g=this.l,h=-1;(b=g[++h])&&(c=b.length)<=a&&0<=(a-=c););return b&&-1<a?b[a]:null};b.prototype.ga=function(a,b,d){var c,e=a,f;a=this.l;var k=this.i;for(d=(d||0)-1;(c=a[++d])&&(f=c.length)<=e&&0<=(e-=f););if(c&& | ||
-1<e){f=0;var l=a.length,m=Array.isArray(c)?kb:lb,r=k.prototype.subarray||k.prototype.slice;e=c=r.call(c,e,e+b);if(c.length<b)for(e=new k(b);(f=m(c,e,f))<b;)c=a[d=(d+1)%l],c=r.call(c,0,Math.min(c.length,b-f));return e}return new k(0)};u();v();b.prototype[Symbol.iterator]=function(){var a,b,d,g,h,f,k,l,m;return Q(this,function(c){switch(c.label){case 0:a=-1,b=this,d=b.l,g=b.length,h=-1,f=d.length,c.label=1;case 1:if(!(++h<f))return[3,6];k=d[h];l=-1;m=k.length;c.label=2;case 2:return++a<g&&++l<m?[4, | ||
k[l]]:[3,5];case 3:c.c(),c.label=4;case 4:return[3,2];case 5:return[3,1];case 6:return[2]}})};return b}(U),V=function(a){function b(){for(var b=[],e=0;e<arguments.length;e++)b[e]=arguments[e];b=a.apply(this,T(b))||this;b.length=b.l.reduce(function(a,b){return a+b.length},0);return b}P(b,a);b.from=function(a){return a instanceof b?a:a===b.F?a:a instanceof Uint8Array?new b(a):a instanceof Array?new b(b.pack(a)):a instanceof U?new b(b.pack(a)):b.F};b.pack=function(a){var b=[],c,g=0,h=0,f=0;try{for(var k= | ||
R(a),l=k.next();!l.done;l=k.next())l.value&&(f|=1<<h),8===++h&&(b[g++]=f,f=h=0)}catch(t){var m={error:t}}finally{try{l&&!l.done&&(r=k.return)&&r.call(k)}finally{if(m)throw m.error;}}if(0===g||0<h)b[g++]=f;if(g%8&&(c=c=g+8-g%8)){do b[g]=0;while(++g<c)}return new Uint8Array(b);var r};b.prototype.get=function(a){for(var b,c,g=this.l,h=-1;(b=g[++h])&&(c=b.length)<=a&&0<=(a-=c););return!(!b||0>a||0===(b[a>>3|0]&1<<a%8))};b.prototype.set=function(a,b){for(var c,e,h=this.l,f=-1;(c=h[++f])&&(e=c.length)<= | ||
a&&0<=(a-=e););c&&-1<a&&(b?c[a>>3|0]|=1<<a%8:c[a>>3|0]&=~(1<<a%8))};b.prototype.concat=function(a){return new (b.bind.apply(b,T([void 0],this.l,a.l)))};u();v();b.prototype[Symbol.iterator]=function(){var b,e,d,g,h,f,k;return Q(this,function(c){switch(c.label){case 0:c.h.push([0,7,8,9]),u(),v(),b=R(a.prototype[Symbol.iterator].call(this)),e=b.next(),c.label=1;case 1:if(e.done)return[3,6];d=e.value;g=-1;c.label=2;case 2:return 8>++g?[4,0!==(d&1<<g)]:[3,5];case 3:c.c(),c.label=4;case 4:return[3,2];case 5:return e= | ||
b.next(),[3,1];case 6:return[3,9];case 7:return h=c.c(),f={error:h},[3,9];case 8:try{e&&!e.done&&(k=b.return)&&k.call(b)}finally{if(f)throw f.error;}return[7];case 9:return[2]}})};b.F=new (function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);b.prototype.get=function(){return!0};u();v();b.prototype[Symbol.iterator]=function(){return Q(this,function(a){switch(a.label){case 0:return[4,!0];case 1:a.c(),a.label=2;case 2:return[3,0];case 3:return[2]}})};return b}(U));return b}(mb), | ||
nb=function(a){function b(b){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];c=a.apply(this,T(c))||this;b&&(c.validity=V.from(b));return c}P(b,a);b.prototype.concat=function(a){return(b=this.constructor).from.apply(b,T([this,this.length+a.length,this.validity.concat(a.validity)],this.l,a.l));var b};return b}(mb),ob=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);b.prototype.get=function(b){return this.validity.get(b)?new Date(Math.pow(2,32)*a.prototype.get.call(this, | ||
2*b+1)+a.prototype.get.call(this,2*b)):null};u();v();b.prototype[Symbol.iterator]=function(){var b,e,d,g,h;return Q(this,function(c){switch(c.label){case 0:u(),v(),g=a.prototype[Symbol.iterator].call(this),u(),v(),h=this.validity[Symbol.iterator](),c.label=1;case 1:return(b=h.next()).done||(e=g.next()).done||(d=g.next()).done?[3,3]:[4,b.value?new Date(Math.pow(2,32)*d.value+e.value):null];case 2:return c.c(),[3,1];case 3:return[2]}})};return b}(nb),pb=function(a){function b(){return null!==a&&a.apply(this, | ||
arguments)||this}P(b,a);b.prototype.get=function(a,b){void 0===b&&(b=!1);for(var c,e,h=-1,f=this.l;(c=f[++h])&&(e=c.length)<=a&&0<=(a-=e););return b?c&&-1<a?[c[a+h],h]:[0,-1]:c&&-1<a?c[a+h]:null};u();v();b.prototype[Symbol.iterator]=function(){var a,b,d,g,h,f,k;return Q(this,function(c){switch(c.label){case 0:a=new Int32Array(2),b=this.l,d=-1,g=b.length,c.label=1;case 1:if(!(++d<g))return[3,7];h=b[d];f=-1;k=h.length-1;c.label=2;case 2:if(!(++f<k))return[3,6];a[1]=d;a[0]=h[f];return[4,a];case 3:return c.c(), | ||
[4,h[f+1]];case 4:c.c(),c.label=5;case 5:return[3,2];case 6:return[3,1];case 7:return[2]}})};return b}(nb),W=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);b.prototype.get=function(b){return this.validity.get(b)?a.prototype.get.call(this,b):null};u();v();b.prototype[Symbol.iterator]=function(){var b,e,d,g,h;return Q(this,function(c){switch(c.label){case 0:return d=this.validity,u(),v(),g=a.prototype[Symbol.iterator].call(this),d!==V.F?[3,2]:[5,R(g)];case 1:return c.c(), | ||
[3,5];case 2:u(),v(),h=d[Symbol.iterator](),c.label=3;case 3:return(b=h.next()).done||(e=g.next()).done?[3,5]:[4,b.value?e.value:null];case 4:return c.c(),[3,3];case 5:return[2]}})};return b}(nb),qb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);b.prototype.get=function(b){return this.validity.get(b)?new O(a.prototype.get.call(this,2*b),a.prototype.get.call(this,2*b+1)):null};u();v();b.prototype[Symbol.iterator]=function(){var b,e,d,g,h;return Q(this,function(c){switch(c.label){case 0:u(), | ||
v(),g=a.prototype[Symbol.iterator].call(this),u(),v(),h=this.validity[Symbol.iterator](),c.label=1;case 1:return(b=h.next()).done||(e=g.next()).done||(d=g.next()).done?[3,3]:[4,b.value?new O(e.value,d.value):null];case 2:return c.c(),[3,1];case 3:return[2]}})};return b}(nb),rb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);return b}(W),sb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);return b}(W),tb=function(a){function b(){return null!== | ||
a&&a.apply(this,arguments)||this}P(b,a);return b}(W),ub=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);return b}(qb),vb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);return b}(W),wb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);return b}(W),xb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);return b}(W),yb=function(a){function b(){return null!==a&&a.apply(this,arguments)|| | ||
this}P(b,a);return b}(qb),zb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);return b}(W),Ab=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);return b}(W);qb.prototype.ha=2;U.prototype.l=[];U.prototype.validity=V.F;mb.prototype.i=Array;V.prototype.i=Uint8Array;rb.prototype.i=Int8Array;sb.prototype.i=Int16Array;tb.prototype.i=Int32Array;ub.prototype.i=Int32Array;vb.prototype.i=Uint8Array;wb.prototype.i=Uint16Array;xb.prototype.i=Uint32Array; | ||
yb.prototype.i=Uint32Array;ob.prototype.i=Uint32Array;pb.prototype.i=Int32Array;zb.prototype.i=Float32Array;Ab.prototype.i=Float64Array;function kb(a,b,c){for(var e=0,d=a.length;e<d;)b[c++]=a[e++];return c}function lb(a,b,c){return b.set(a,c)||c+a.length};var Bb=function(a){function b(b){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];d=a.call(this)||this;d.J=c;d.length=Math.max.apply(Math,T([0],c.map(function(a){return a.length})));b&&(d.validity=V.from(b));return d}P(b,a);b.prototype.get=function(a){return this.validity.get(a)?this.J.map(function(b){return b.get(a)}):null};b.prototype.concat=function(a){return b.from.apply(b,T([this,this.length+a.length,this.validity.concat(a.validity)],this.J.map(function(b,c){return b.concat(a.J[c])})))}; | ||
return b}(U);var Cb=function(a){function b(b,e){var c=a.call(this)||this;c.keys=b;c.data=e;c.length=b&&b.length||0;return c}P(b,a);b.prototype.index=function(a){return this.keys.get(a)};b.prototype.value=function(a){return this.data.get(a)};b.prototype.get=function(a){return this.value(this.index(a))};b.prototype.concat=function(a){return b.from(this,this.length+a.length,this.keys.concat(a.keys),this.data)};u();v();b.prototype[Symbol.iterator]=function(){var a,b,d,g,h,f,k;return Q(this,function(c){switch(c.label){case 0:a= | ||
this.data,c.label=1;case 1:c.h.push([1,6,7,8]),b=R(this.keys),d=b.next(),c.label=2;case 2:if(d.done)return[3,5];g=d.value;return[4,a.get(g)];case 3:c.c(),c.label=4;case 4:return d=b.next(),[3,2];case 5:return[3,8];case 6:return h=c.c(),f={error:h},[3,8];case 7:try{d&&!d.done&&(k=b.return)&&k.call(b)}finally{if(f)throw f.error;}return[7];case 8:return[2]}})};return b}(U);var Db=function(a){function b(b,e,d){var c=a.call(this)||this;c.values=e;c.I=d;b&&(c.validity=V.from(b));return c}P(b,a);b.prototype.get=function(a){var b,c,g,h=this.I;return this.validity.get(a)&&null!==(g=h.get(a+1))&&(f=h.get(a,!0),k=Ya(f,2),c=k[0],b=k[1],f)&&-1<b?this.values.slice(c,g,b):null;var f,k};b.prototype.concat=function(a){return this.constructor.from(this,this.length+a.length,this.validity.concat(a.validity),this.values.concat(a.values),this.I.concat(a.I))};u();v();b.prototype[Symbol.iterator]= | ||
function(){var a,b,d,g,h,f;return Q(this,function(c){switch(c.label){case 0:g=this.values,u(),v(),h=this.I[Symbol.iterator](),u(),v(),f=this.validity[Symbol.iterator](),c.label=1;case 1:return(a=f.next()).done||(b=h.next()).done||(d=h.next()).done?[3,3]:[4,a.value?g.slice(b.value[0],d.value,b.value[1]):null];case 2:return c.c(),[3,1];case 3:return[2]}})};return b}(U),Eb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}P(b,a);return b}(Db),Fb=function(a){function b(){return null!== | ||
a&&a.apply(this,arguments)||this}P(b,a);b.prototype.get=function(c){return(c=a.prototype.get.call(this,c))?b.Y.decode(c):null};u();v();b.prototype[Symbol.iterator]=function(){var c,e,d,g,h,f,k;return Q(this,function(l){switch(l.label){case 0:c=b.Y,l.label=1;case 1:l.h.push([1,6,7,8]),u(),v(),e=R(a.prototype[Symbol.iterator].call(this)),d=e.next(),l.label=2;case 2:if(d.done)return[3,5];g=d.value;return[4,g?c.decode(g):null];case 3:l.c(),l.label=4;case 4:return d=e.next(),[3,2];case 5:return[3,8];case 6:return h= | ||
l.c(),f={error:h},[3,8];case 7:try{d&&!d.done&&(k=e.return)&&k.call(e)}finally{if(f)throw f.error;}return[7];case 8:return[2]}})};b.Y=new Va("utf-8");return b}(Db),Gb=function(a){function b(b,e,d){var c=a.call(this)||this;c.values=d;c.size=Math.abs(b|0)||1;e&&(c.validity=V.from(e));return c}P(b,a);b.prototype.get=function(a){return this.validity.get(a)?this.values.slice(this.size*a,this.size*(a+1)):null};b.prototype.concat=function(a){return b.from(this,this.length+a.length,this.size,this.validity.concat(a.validity), | ||
this.values.concat(a.values))};u();v();b.prototype[Symbol.iterator]=function(){var a,b,d,g,h,f,k;return Q(this,function(c){switch(c.label){case 0:b=-1,d=this,g=d.size,h=d.length,f=d.values,u(),v(),k=this.validity[Symbol.iterator](),c.label=1;case 1:return!(a=k.next()).done&&++b<h?[4,a.value?f.slice(g*b,g*(b+1)):null]:[3,3];case 2:return c.c(),[3,1];case 3:return[2]}})};return b}(U);function Hb(a,b,c,e){var d;if(!(d=Ib(a,b,c,e))){d=pa(a);var g=Jb[d];if(!g)throw Error('Unrecognized vector name "'+ea[d]+'" type "'+d+'"');d=g(a,b,c,e)}return d}function Ib(a,b,c,e){var d;if(e&&(d=ra(a))){var g=Ga(d.id()).toString();d=ma(d)||{w:function(){return 32},O:function(){return!0}};var h=Kb(a,d);b=Lb(h,b,c,null,d);return Cb.create(a,b.length,b,e[g])}} | ||
var Mb=[Uint8Array,Uint8Array,Uint8Array,Uint8Array],Nb=[Uint32Array,Uint32Array,Uint32Array,Uint32Array],Ob=X.bind(null,[Int8Array,Int16Array,Int32Array,Int32Array],null),Pb=X.bind(null,[Uint8Array,Uint16Array,Uint32Array,Uint32Array],null),Qb=X.bind(null,Nb,null),Rb=X.bind(null,[Int8Array,Int16Array,Float32Array,Float64Array],null),Sb=X.bind(null,Nb,null),Tb=X.bind(null,Mb,null),Ub=X.bind(null,Mb,[Int32Array,Int32Array,Int32Array,Int32Array]),Wb=(Vb={},Vb[1]=zb,Vb[2]=Ab,Vb),Xb=[[vb,rb],[wb,sb], | ||
[xb,tb],[yb,ub]];function Lb(a,b,c,e,d){d=d||a.type(new w);return d.O()?Yb(a,b,c,e,d):Zb(a,b,c,e,d)}var Yb=Y(Ob,$b),Zb=Y(Pb,$b);function $b(a,b,c,e,d,g){g=g||a.type(new w);return(Xb[g.w()>>4]||Xb[3])[+g.O()].create(a,b,e,c||d)} | ||
var ac=Y(Rb,function(a,b,c,e){var d=a.type(new ia);return Wb[d.precision()].create(a,b,e,c)}),bc=Y(Qb,function(a,b,c,e){return ob.create(a,b,e,c)}),cc=Y(Ub,function(a,b,c,e,d){d=new Int32Array(d.buffer,d.byteOffset,b+1);return Fb.create(a,b,e,vb.create(a,c.length,null,c),pb.create(a,b+1,null,d))}),dc=Y(Sb,function(a,b,c,e,d,g,h,f,k){c=new Int32Array(d.buffer,d.byteOffset,b+1);return Eb.create(a,b,e,Hb(a.children(0),h,f,k),pb.create(a,b+1,null,c))}),ec=Y(Sb,function(a,b,c,e,d,g,h,f,k){c=a.type(new ha); | ||
d=x(c.a,c.b,4);return Gb.create(a,b,d?z(c.a,c.b+d):0,e,Hb(a.children(0),h,f,k))}),fc=Y(Sb,function(a,b,c,e,d,g,h,f,k){c=[];d=-1;for(g=sa(a);++d<g;)c[d]=Hb(a.children(d),h,f,k);return Bb.create.apply(Bb,T([a,b,e],c))}),Jb=(Z={},Z[2]=Lb,Z[8]=bc,Z[12]=dc,Z[5]=cc,Z[13]=fc,Z[3]=ac,Z[16]=ec,Z); | ||
function Y(a,b){return function(c,e,d,g,h){var f=e.data,k=c.da();var l=d.la++;var m=x(f.a,f.b,6);l=m?(new za).f(M(f.a,f.b+m)+16*l,f.a):null;var r,t,y,p,B,G;m=l.length().low;for(var D=-1;++D<k;){var E=c.ca(D);var C=d.ja++;var K=x(f.a,f.b,8);C=K?(new ua).f(M(f.a,f.b+K)+24*C,f.a):null;3===(p=E.type())||0>=(G=C.length().low)||0>=(B=E.w())||(1===p?r=a(e,p,B,C.offset().low,G):0===p?t=a(e,p,B,C.offset().low,G):0<J(l.a,l.b+8).low&&(y=Tb(e,p,B,C.offset().low,m)))}return b(c,m,r,y,t,h,e,d,g)}} | ||
function X(a,b,c,e,d,g,h){var f=c.m.buffer,k=f.byteLength;c=c.offset+g;a=0===e&&b||a;d=a[d>>4]||a[3];return new d(f,c,(c+h<=k?h:k-c)/d.BYTES_PER_ELEMENT)}function Kb(a,b){var c=[],e=new Ia;oa(a)&&(Pa(e),Oa(e,0,8),Oa(e,1,2),e.finish(Qa(e)),c.push(ja(e.a)),e=new Ia);Pa(e);Oa(e,0,b.w());Oa(e,1,1);e.finish(Qa(e));c.push(ja(e.a));return Object.create(a,{ca:{value:function(a){return c[a]}},da:{value:function(){return c.length}}})}var Vb,Z;function gc(a,b,c,e){var d,g,h,f,k,l,m,r,t,y;return Q(this,function(p){switch(p.label){case 0:return(g=ra(a))&&b.id===(d=Ga(g.id()).toString())?[4,[d,Hb(a,b,c,null)]]:[3,2];case 1:return p.c(),[2];case 2:h=-1,f=sa(a),p.label=3;case 3:if(!(++h<f))return[3,12];p.label=4;case 4:p.h.push([4,9,10,11]),k=R(gc(a.children(h),b,c,e)),l=k.next(),p.label=5;case 5:if(l.done)return[3,8];m=l.value;return[4,m];case 6:return p.c(),[2];case 7:return l=k.next(),[3,5];case 8:return[3,11];case 9:return r=p.c(),t={error:r}, | ||
[3,11];case 10:try{l&&!l.done&&(y=k.return)&&y.call(k)}finally{if(t)throw t.error;}return[7];case 11:return[3,3];case 12:return[2]}})};function hc(){var a=[];for(b=0;b<arguments.length;b++)a[b]=arguments[b];var b;return Q(this,function(b){switch(b.label){case 0:return b.h.push([0,2,,7]),[5,R(hb.apply(void 0,T(a)))];case 1:return b.c(),[3,7];case 2:b.c(),b.label=3;case 3:return b.h.push([3,5,,6]),[5,R(ib.apply(void 0,T(a)))];case 4:return b.c(),[3,6];case 5:throw b.c(),Error("Invalid Arrow buffer");case 6:return[3,7];case 7:return[2]}})} | ||
function ic(){var a=[];for(b=0;b<arguments.length;b++)a[b]=arguments[b];var b,c,e,d,g,h,f,k,l,m,r,t,y,p,B,G,D,E,C,K,S,fa;return Q(this,function(b){switch(b.label){case 0:c={},e=a.map(jc),b.label=1;case 1:b.h.push([1,7,8,9]),d=R(hc.apply(void 0,T(e))),g=d.next(),b.label=2;case 2:if(g.done)return[3,6];h=g.value;f=h.B;k=h.N;l=[];m={la:0,ja:0};r=-1;t=(b=x(f.a,f.b,6))?N(f.a,f.b+b):0;if(!k.id)return[3,3];for(;++r<t;)try{for(y=R(gc(wa(f,r),k,m,c)),p=y.next();!p.done;p=y.next())B=Ya(p.value,2),G=B[0],D=B[1], | ||
c[G]=c[G]&&c[G].concat(D)||D}catch(ta){S={error:ta}}finally{try{p&&!p.done&&(fa=y.return)&&fa.call(y)}finally{if(S)throw S.error;}}return[3,5];case 3:for(;++r<t;)l[r]=Hb(wa(f,r),k,m,c);return[4,l];case 4:b.c(),b.label=5;case 5:return g=d.next(),[3,2];case 6:return[3,9];case 7:return E=b.c(),C={error:E},[3,9];case 8:try{g&&!g.done&&(K=d.return)&&K.call(d)}finally{if(C)throw C.error;}return[7];case 9:return[2]}})} | ||
function jc(a){var b=a||new Uint8Array(0);if("string"===typeof a){b=new Uint8Array(a.length);for(var c=-1,e=a.length;++c<e;)b[c]=a.charCodeAt(c)}return new La(b)};var oc=function(){function a(a){this.o=a||[];this.length=Math.max.apply(Math,T(this.o.map(function(a){return a.length})));this.ia=this.o.reduce(function(a,b){return(a[b.name]=b)&&a||a},{})}a.from=function(){function b(a){d=d?d.map(function(b,c){return b.concat(a[c])}):a}for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];var d;try{for(var g=R(ic.apply(void 0,T(c))),h=g.next();!h.done;h=g.next())b(h.value)}catch(l){var f={error:l}}finally{try{h&&!h.done&&(k=g.return)&&k.call(g)}finally{if(f)throw f.error; | ||
}}return new a(d);var k};a.Ba=function(b){return new a(b.J)};u();v();a.prototype[Symbol.iterator]=function(){var a,c,e;return Q(this,function(b){switch(b.label){case 0:a=this.o,c=-1,e=this.length,b.label=1;case 1:return++c<e?[4,kc(c,a)]:[3,4];case 2:b.c(),b.label=3;case 3:return[3,1];case 4:return[2]}})};a.prototype.rows=function(a,c,e){var b,g,h,f,k,l,m;return Q(this,function(d){switch(d.label){case 0:b=a,g=c,"boolean"===typeof a?(e=a,b=g,g=void 0):"boolean"===typeof c&&(e=c,g=void 0),h=-1,f=this.length, | ||
k=Ya(jb(f,b,g),2),l=k[0],m=k[1],d.label=1;case 1:return++h<m?[4,this.getRow((h+l)%f,e)]:[3,3];case 2:return d.c(),[3,1];case 3:return[2]}})};a.prototype.cols=function(a,c){var b,d,g,h,f,k;return Q(this,function(e){switch(e.label){case 0:e.h.push([0,5,6,7]),b=R(this.o.slice(a,c)),d=b.next(),e.label=1;case 1:if(d.done)return[3,4];g=d.value;return[4,g];case 2:e.c(),e.label=3;case 3:return d=b.next(),[3,1];case 4:return[3,7];case 5:return h=e.c(),f={error:h},[3,7];case 6:try{d&&!d.done&&(k=b.return)&& | ||
k.call(b)}finally{if(f)throw f.error;}return[7];case 7:return[2]}})};a.prototype.getRow=function(a,c){return(c&&lc||mc)(a,this.o)};a.prototype.getCell=function(a,c){return this.getColumn(a).get(c)};a.prototype.getCellAt=function(a,c){return this.getColumnAt(a).get(c)};a.prototype.getColumn=function(a){return this.ia[a]};a.prototype.getColumnAt=function(a){return this.o[a]};a.prototype.toString=function(a){a=(void 0===a?{}:a).index;var b=void 0===a?!1:a;var e=this.length;if(0>=e)return"";a=[];e=Array(e+ | ||
1);e[0]=this.o.map(function(a){return a.name});b&&e[0].unshift("Index");for(var d=-1,g=e.length-1;++d<g;)e[d+1]=this.getRow(d,!0),b&&e[d+1].unshift(d);d=-1;for(g=e.length;++d<g;){b=e[d];for(var h=-1,f=b.length;++h<f;){var k=b[h]=""+b[h];a[h]=a[h]?Math.max(a[h],k.length):k.length}}d=-1;for(g=e.length;++d<g;){b=e[d];h=-1;for(f=b.length;++h<f;)b[h]=nc(b[h],a[h]);e[d]=b.join(", ")}return e.join("\n")};return a}();oc.prototype.length=0;function nc(a,b){return(Array(b+1).join(" ")+a).slice(-1*b)} | ||
function kc(a,b){return b.reduce(function(b,e){return b.set(e.name,e.get(a))},new Map)}function mc(a,b){return b.reduce(function(b,e){return(b[e.name]=e.get(a))&&b||b},Object.create(null))}function lc(a,b){return b.reduce(function(b,e,d){return(b[d]=e.get(a))&&b||b},Array(b.length))};try{var pc=eval("exports");"object"===typeof pc&&(pc.Table=oc,pc.readBuffers=ic)}catch(a){};}.bind(this)))); | ||
//# sourceMappingURL=Arrow.js.map | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.O=n():"function"==typeof define&&define.A?define("Arrow",[],n):"object"==typeof exports?exports.Arrow=n():t.Arrow=n()}(this,function(){return function(t){function n(s){if(i[s])return i[s].O;var e=i[s]={i:s,l:!1,O:{}};return t[s].call(e.O,e,e.O,n),e.l=!0,e.O}var i={};return n.m=t,n.c=i,n.d=function(t,i,s){n.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},n.n=function(t){var i=t&&t._?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=11)}([function(t,n,i){"use strict";i.d(n,"a",function(){return s});var s;!function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4"}(n=t.S||(t.S={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(n=t.I||(t.I={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(n=t.N||(t.N={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(n=t.F||(t.F={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(n=t.M||(t.M={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME"}(n=t.D||(t.D={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map"}(n=t.L||(t.L={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(n=t.T||(t.T={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(n=t.R||(t.R={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static W(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}static Y(t){t.H(0)}static J(t){return t.G()}}(n=t.V||(t.V={})).Null=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static Q(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}static X(t){t.H(0)}static Z(t){return t.G()}}(n=t.V||(t.V={})).Struct_=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static tt(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}static nt(t){t.H(0)}static it(t){return t.G()}}(n=t.V||(t.V={})).List=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static st(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}et(){let t=this.P.rt(this.z,4);return t?this.P.$(this.z+t):0}static ct(t){t.H(1)}static ot(t,n){t.ut(0,n,0)}static at(t){return t.G()}}(n=t.V||(t.V={})).FixedSizeList=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static ht(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}ft(){let t=this.P.rt(this.z,4);return!!t&&!!this.P.lt(this.z+t)}static dt(t){t.H(1)}static yt(t,n){t.wt(0,+n,0)}static bt(t){return t.G()}}(n=t.V||(t.V={})).Map=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static xt(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}vt(){let n=this.P.rt(this.z,4);return n?this.P.Ot(this.z+n):t.U.B.V.I.Sparse}jt(t){let n=this.P.rt(this.z,6);return n?this.P.$(this.P.gt(this.z+n)+4*t):0}At(){let t=this.P.rt(this.z,6);return t?this.P.pt(this.z+t):0}mt(){let t=this.P.rt(this.z,6);return t?new Int32Array(this.P._t().buffer,this.P._t().byteOffset+this.P.gt(this.z+t),this.P.pt(this.z+t)):null}static St(t){t.H(2)}static Vt(n,i){n.Bt(0,i,t.U.B.V.I.Sparse)}static Ut(t,n){t.It(1,n,0)}static Nt(t,n){t.Ft(4,n.length,4);for(let i=n.length-1;i>=0;i--)t.Et(n[i]);return t.Mt()}static Dt(t,n){t.Ft(4,n,4)}static Lt(t){return t.G()}}(i=n.V||(n.V={})).Union=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static Tt(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}Rt(){let t=this.P.rt(this.z,4);return t?this.P.$(this.z+t):0}zt(){let t=this.P.rt(this.z,6);return!!t&&!!this.P.lt(this.z+t)}static Ct(t){t.H(2)}static Pt(t,n){t.ut(0,n,0)}static Wt(t,n){t.wt(1,+n,0)}static kt(t){return t.G()}}(n=t.V||(t.V={})).Int=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static $t(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}Kt(){let n=this.P.rt(this.z,4);return n?this.P.Ot(this.z+n):t.U.B.V.N.HALF}static Yt(t){t.H(1)}static Ht(n,i){n.Bt(0,i,t.U.B.V.N.HALF)}static Jt(t){return t.G()}}(i=n.V||(n.V={})).FloatingPoint=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static Gt(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}static qt(t){t.H(0)}static Qt(t){return t.G()}}(n=t.V||(t.V={})).Utf8=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static Xt(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}static Zt(t){t.H(0)}static tn(t){return t.G()}}(n=t.V||(t.V={})).Binary=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static nn(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}in(){let t=this.P.rt(this.z,4);return t?this.P.$(this.z+t):0}static sn(t){t.H(1)}static en(t,n){t.ut(0,n,0)}static rn(t){return t.G()}}(n=t.V||(t.V={})).FixedSizeBinary=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static cn(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}static on(t){t.H(0)}static un(t){return t.G()}}(n=t.V||(t.V={})).Bool=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static an(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}Kt(){let t=this.P.rt(this.z,4);return t?this.P.$(this.z+t):0}hn(){let t=this.P.rt(this.z,6);return t?this.P.$(this.z+t):0}static fn(t){t.H(2)}static Ht(t,n){t.ut(0,n,0)}static ln(t,n){t.ut(1,n,0)}static dn(t){return t.G()}}(n=t.V||(t.V={})).Decimal=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static yn(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}wn(){let n=this.P.rt(this.z,4);return n?this.P.Ot(this.z+n):t.U.B.V.F.MILLISECOND}static bn(t){t.H(1)}static xn(n,i){n.Bt(0,i,t.U.B.V.F.MILLISECOND)}static vn(t){return t.G()}}(i=n.V||(n.V={})).Date=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static On(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}wn(){let n=this.P.rt(this.z,4);return n?this.P.Ot(this.z+n):t.U.B.V.M.MILLISECOND}Rt(){let t=this.P.rt(this.z,6);return t?this.P.$(this.z+t):32}static jn(t){t.H(2)}static xn(n,i){n.Bt(0,i,t.U.B.V.M.MILLISECOND)}static Pt(t,n){t.ut(1,n,32)}static gn(t){return t.G()}}(i=n.V||(n.V={})).Time=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static An(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}wn(){let n=this.P.rt(this.z,4);return n?this.P.Ot(this.z+n):t.U.B.V.M.SECOND}pn(t){let n=this.P.rt(this.z,6);return n?this.P.mn(this.z+n,t):null}static _n(t){t.H(2)}static xn(n,i){n.Bt(0,i,t.U.B.V.M.SECOND)}static Sn(t,n){t.It(1,n,0)}static Vn(t){return t.G()}}(i=n.V||(n.V={})).Timestamp=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static Bn(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}wn(){let n=this.P.rt(this.z,4);return n?this.P.Ot(this.z+n):t.U.B.V.D.YEAR_MONTH}static Un(t){t.H(1)}static xn(n,i){n.Bt(0,i,t.U.B.V.D.YEAR_MONTH)}static In(t){return t.G()}}(i=n.V||(n.V={})).Interval=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static Nn(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}Rt(){let t=this.P.rt(this.z,4);return t?this.P.Ot(this.z+t):0}type(){let n=this.P.rt(this.z,6);return n?this.P.Ot(this.z+n):t.U.B.V.T.OFFSET}static Fn(t){t.H(2)}static Pt(t,n){t.Bt(0,n,0)}static En(n,i){n.Bt(1,i,t.U.B.V.T.OFFSET)}static Mn(t){return t.G()}}(i=n.V||(n.V={})).Dn=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static Ln(t,n){return(n||new s).C(t.$(t.K())+t.K(),t)}key(t){let n=this.P.rt(this.z,4);return n?this.P.mn(this.z+n,t):null}value(t){let n=this.P.rt(this.z,6);return n?this.P.mn(this.z+n,t):null}static Tn(t){t.H(2)}static Rn(t,n){t.It(0,n,0)}static zn(t,n){t.It(1,n,0)}static Cn(t){return t.G()}}(n=t.V||(t.V={})).Pn=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static Wn(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}kn(){let t=this.P.rt(this.z,4);return t?this.P.$n(this.z+t):this.P.Kn(0,0)}Yn(n){let i=this.P.rt(this.z,6);return i?(n||new t.U.B.V.Int).C(this.P.Hn(this.z+i),this.P):null}Jn(){let t=this.P.rt(this.z,8);return!!t&&!!this.P.lt(this.z+t)}static Gn(t){t.H(3)}static qn(t,n){t.Qn(0,n,t.Kn(0,0))}static Xn(t,n){t.It(1,n,0)}static Zn(t,n){t.wt(2,+n,0)}static ti(t){return t.G()}}(i=n.V||(n.V={})).ni=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static ii(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}name(t){let n=this.P.rt(this.z,4);return n?this.P.mn(this.z+n,t):null}nullable(){let t=this.P.rt(this.z,6);return!!t&&!!this.P.lt(this.z+t)}si(){let n=this.P.rt(this.z,8);return n?this.P.ei(this.z+n):t.U.B.V.L.NONE}type(t){let n=this.P.rt(this.z,10);return n?this.P.ri(t,this.z+n):null}ci(n){let i=this.P.rt(this.z,12);return i?(n||new t.U.B.V.ni).C(this.P.Hn(this.z+i),this.P):null}oi(n,i){let s=this.P.rt(this.z,14);return s?(i||new t.U.B.V.ui).C(this.P.Hn(this.P.gt(this.z+s)+4*n),this.P):null}ai(){let t=this.P.rt(this.z,14);return t?this.P.pt(this.z+t):0}hi(n,i){let s=this.P.rt(this.z,16);return s?(i||new t.U.B.V.Dn).C(this.P.Hn(this.P.gt(this.z+s)+4*n),this.P):null}fi(){let t=this.P.rt(this.z,16);return t?this.P.pt(this.z+t):0}li(n,i){let s=this.P.rt(this.z,18);return s?(i||new t.U.B.V.Pn).C(this.P.Hn(this.P.gt(this.z+s)+4*n),this.P):null}di(){let t=this.P.rt(this.z,18);return t?this.P.pt(this.z+t):0}static yi(t){t.H(8)}static wi(t,n){t.It(0,n,0)}static bi(t,n){t.wt(1,+n,0)}static xi(n,i){n.wt(2,i,t.U.B.V.L.NONE)}static En(t,n){t.It(3,n,0)}static vi(t,n){t.It(4,n,0)}static Oi(t,n){t.It(5,n,0)}static ji(t,n){t.Ft(4,n.length,4);for(let i=n.length-1;i>=0;i--)t.gi(n[i]);return t.Mt()}static Ai(t,n){t.Ft(4,n,4)}static pi(t,n){t.It(6,n,0)}static mi(t,n){t.Ft(4,n.length,4);for(let i=n.length-1;i>=0;i--)t.gi(n[i]);return t.Mt()}static _i(t,n){t.Ft(4,n,4)}static Si(t,n){t.It(7,n,0)}static Vi(t,n){t.Ft(4,n.length,4);for(let i=n.length-1;i>=0;i--)t.gi(n[i]);return t.Mt()}static Bi(t,n){t.Ft(4,n,4)}static Ui(t){return t.G()}}(i=n.V||(n.V={})).ui=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}Ii(){return this.P.$n(this.z)}length(){return this.P.$n(this.z+8)}static Ni(t,n,i){return t.Fi(8,16),t.Ei(i),t.Ei(n),t.Ii()}}(n=t.V||(t.V={})).Mi=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static Di(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}Li(){let n=this.P.rt(this.z,4);return n?this.P.Ot(this.z+n):t.U.B.V.R.Little}Ti(n,i){let s=this.P.rt(this.z,6);return s?(i||new t.U.B.V.ui).C(this.P.Hn(this.P.gt(this.z+s)+4*n),this.P):null}Ri(){let t=this.P.rt(this.z,6);return t?this.P.pt(this.z+t):0}li(n,i){let s=this.P.rt(this.z,8);return s?(i||new t.U.B.V.Pn).C(this.P.Hn(this.P.gt(this.z+s)+4*n),this.P):null}di(){let t=this.P.rt(this.z,8);return t?this.P.pt(this.z+t):0}static zi(t){t.H(3)}static Ci(n,i){n.Bt(0,i,t.U.B.V.R.Little)}static Pi(t,n){t.It(1,n,0)}static Wi(t,n){t.Ft(4,n.length,4);for(let i=n.length-1;i>=0;i--)t.gi(n[i]);return t.Mt()}static ki(t,n){t.Ft(4,n,4)}static Si(t,n){t.It(2,n,0)}static Vi(t,n){t.Ft(4,n.length,4);for(let i=n.length-1;i>=0;i--)t.gi(n[i]);return t.Mt()}static Bi(t,n){t.Ft(4,n,4)}static $i(t){return t.G()}static Ki(t,n){t.Yi(n)}}(i=n.V||(n.V={})).Schema=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={}))},function(t,n,i){"use strict";var s=i(0).a.U.B.V.L;class e{slice(t,n){let{length:i}=this,s=0|t,e=void 0===n?i:Math.max(0|n,s),r=Array(e-Math.min(s,e));for(let c=-1,o=r.length;++c<o;)r[c]=this.get(c+s);return r}*[Symbol.iterator](){for(let t=-1,n=this.length;++t<n;)yield this.get(t)}}n.a=e,e.prototype.name="",e.prototype.stride=1,e.prototype.nullable=!1,e.prototype.nullCount=0,e.prototype.metadata=new Map,e.prototype.type=s[s.NONE]},function(t,n,i){"use strict";class s{constructor(t,...n){this.Ji=n,this.Gi=t,this.name=n[0].name,this.type=n[0].type,this.length=n.reduce((t,n)=>t+n.length,0),this.qi=Uint32Array.from(n.reduce((t,n,i)=>[...t,n.length+t[i]],[0]))}*[Symbol.iterator](){for(const t of this.Ji)yield*t}get nullable(){return this.Ji.some(t=>t.nullable)}get nullCount(){return this.Ji.reduce((t,n)=>t+n.nullCount|0,0)}get metadata(){return new Map(this.Ji.reduce((t,n)=>[...t,...n.metadata.entries()],[]))}get(t){let n=this.qi,i=0,s=0,e=0,r=n.length-1;for(;t<n[r]&&t>=(i=n[s]);){if(s+1===r)return this.Ji[s].get(t-i);t>=n[e=s+(r-s)/2|0]?s=e:r=e}return null}concat(...t){return new s(this.Gi,...this.Ji,...t)}slice(t,n){let i=this.length,s=0|t,e=n==n&&"number"==typeof n?n:i;e<0&&(e=i+e),s<0&&(s=i- -1*s%i),e<s&&(s=e,e=0|t),i=!isFinite(i=e-s)||i<0?0:i;let r=this.qi,c=this.Gi,o=0,u=0,a=0,h=r.length-1;for(;s<r[h]&&s>=(o=r[u]);){if(u+1===h){s-=o;let t=c===Array?function(t,n,i){for(let s=0,e=t.length;s<e;)n[i++]=t[s++];return i}:function(t,n,i){return n.set(t,i)||i+t.length},n=this.Ji,e=n[u],r=e.slice(s,s+i),a=r;if((r.length/e.stride|0)<i){let s=n.length,o=0,h=0,f=[];do{f.push(r),h+=r.length,o+=r.length/e.stride|0}while(o<i&&(e=n[u=++u%s])&&(r=e.slice(0,Math.min(e.length,i-o))));a=new c(h);for(let n=-1,i=0,e=f.length;++n<e;)i=t(f[n],a,i)}return a}s>=r[a=u+(h-u)/2|0]?u=a:h=a}return new c(0)}}n.a=s},function(t,n,i){"use strict";var s=i(1),e=i(2);class r extends s.a{constructor(t){super(),this.columns=t.columns||[]}get(t){return new c(this,t)}col(t){return this.columns.find(n=>n.name===t)||null}key(t){return this.columns[t]?this.columns[t].name:null}select(...t){return new r({columns:t.map(t=>this.col(t))})}concat(...t){return new e.a(Array,this,...t)}toString(t){const n="object"==typeof t?t&&!!t.index:"boolean"==typeof t&&!!t,{length:i}=this;if(i<=0)return"";const s=Array(i+1),e=[];s[0]=this.columns.map((t,n)=>this.key(n)),n&&s[0].unshift("Index");for(let r=-1,c=s.length-1;++r<c;)s[r+1]=[...this.get(r)],n&&s[r+1].unshift(r);for(let r=-1,c=s.length;++r<c;){const t=s[r];for(let n=-1,i=t.length;++n<i;){const i=t[n]=function(t){return Array.isArray(t)?JSON.stringify(t):ArrayBuffer.isView(t)?`[${t}]`:`${t}`}(t[n]);e[n]=e[n]?Math.max(e[n],i.length):i.length}}for(let r=-1,c=s.length;++r<c;){const t=s[r];for(let n=-1,i=t.length;++n<i;)t[n]=function(t,n,i){return(Array(i+1).join(n)+t).slice(-1*i)}(t[n]," ",e[n]);s[r]=t.join(", ")}return s.join("\n")}}n.b=r;class c extends s.a{constructor(t,n){super(),this.Qi=n,this.Xi=t,this.length=t.columns.length}[Symbol.toStringTag](){return"Row"}get(t){const n=this.Xi.columns[t];return n?n.get(this.Qi):null}col(t){const n=this.Xi.col(t);return n?n.get(this.Qi):null}*[Symbol.iterator](){const{Qi:t}=this;for(const n of this.Xi.columns)yield n?n.get(t):null}concat(...t){return new e.a(Array,this,...t)}toArray(){return[...this]}toJSON(){return this.toArray()}toString(){return JSON.stringify(this)}toObject(){const{Qi:t}=this,n=Object.create(null);for(const i of this.Xi.columns)i&&i.name&&(n[i.name]=i.get(t));return n}}n.a=c},function(t,n,i){"use strict";i.d(n,"a",function(){return s});var s,e=i(0);!function(t){!function(t){!function(t){(t.V||(t.V={})).Schema=e.a.U.B.V.Schema}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){!function(t){let n;!function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor"}(n=t.Zi||(t.Zi={}))}(t.V||(t.V={}))}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}length(){return this.P.$n(this.z)}nullCount(){return this.P.$n(this.z+8)}static ts(t,n,i){return t.Fi(8,16),t.Ei(i),t.Ei(n),t.Ii()}}(n=t.V||(t.V={})).ns=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class r{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static ss(t,n){return(n||new r).C(t.$(t.K())+t.K(),t)}length(){let t=this.P.rt(this.z,4);return t?this.P.$n(this.z+t):this.P.Kn(0,0)}es(n,i){let s=this.P.rt(this.z,6);return s?(i||new t.U.B.V.ns).C(this.P.gt(this.z+s)+16*n,this.P):null}rs(){let t=this.P.rt(this.z,6);return t?this.P.pt(this.z+t):0}cs(t,n){let i=this.P.rt(this.z,8);return i?(n||new e.a.U.B.V.Mi).C(this.P.gt(this.z+i)+16*t,this.P):null}os(){let t=this.P.rt(this.z,8);return t?this.P.pt(this.z+t):0}static us(t){t.H(3)}static as(t,n){t.Qn(0,n,t.Kn(0,0))}static hs(t,n){t.It(1,n,0)}static fs(t,n){t.Ft(16,n,8)}static ls(t,n){t.It(2,n,0)}static ds(t,n){t.Ft(16,n,8)}static ys(t){return t.G()}}(i=n.V||(n.V={})).RecordBatch=r}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class e{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static ws(t,n){return(n||new e).C(t.$(t.K())+t.K(),t)}kn(){let t=this.P.rt(this.z,4);return t?this.P.$n(this.z+t):this.P.Kn(0,0)}data(n){let i=this.P.rt(this.z,6);return i?(n||new t.U.B.V.RecordBatch).C(this.P.Hn(this.z+i),this.P):null}bs(){let t=this.P.rt(this.z,8);return!!t&&!!this.P.lt(this.z+t)}static xs(t){t.H(3)}static qn(t,n){t.Qn(0,n,t.Kn(0,0))}static vs(t,n){t.It(1,n,0)}static Os(t,n){t.wt(2,+n,0)}static js(t){return t.G()}}(i=n.V||(n.V={})).DictionaryBatch=e}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(n){!function(n){var i;!function(s){class r{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static gs(t,n){return(n||new r).C(t.$(t.K())+t.K(),t)}As(){let t=this.P.rt(this.z,4);return t?this.P.Ot(this.z+t):e.a.U.B.V.S.V1}ps(){let n=this.P.rt(this.z,6);return n?this.P.ei(this.z+n):t.U.B.V.Zi.NONE}ms(t){let n=this.P.rt(this.z,8);return n?this.P.ri(t,this.z+n):null}_s(){let t=this.P.rt(this.z,10);return t?this.P.$n(this.z+t):this.P.Kn(0,0)}static Ss(t){t.H(4)}static Vs(t,n){t.Bt(0,n,e.a.U.B.V.S.V1)}static Bs(n,i){n.wt(1,i,t.U.B.V.Zi.NONE)}static Us(t,n){t.It(2,n,0)}static Is(t,n){t.Qn(3,n,t.Kn(0,0))}static Ns(t){return t.G()}static Fs(t,n){t.Yi(n)}}(i=n.V||(n.V={})).Es=r}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={}))},function(t,n,i){"use strict";var s=i(1),e=i(2);class r extends s.a{constructor(t){super();const n=ArrayBuffer.isView(t)?t:t.data;this.length=(this.data=n).length/this.stride|0}get(t){return this.data[t]}concat(...t){return new e.a(this.data.constructor,this,...t)}slice(t,n){const{data:i,stride:s}=this,e=0|t,r=void 0===n?i.length:Math.max(0|n,e);return i.subarray(Math.min(e,r)*s|0,r*s|0)}}class c extends r{get(t){return this.data.slice(this.stride*t,this.stride*(t+1))}}class o extends r{static pack(t){let n,i=[],s=0,e=0,r=0;for(const c of t)c&&(r|=1<<e),8==++e&&(i[s++]=r,r=e=0);if((0===s||e>0)&&(i[s++]=r),s%8&&(n=s+8-s%8))do{i[s]=0}while(++s<n);return new Uint8Array(i)}get(t){return 0!=(this.data[t>>3]&1<<t%8)}set(t,n){t>-1!=!1&&(n?this.data[t>>3]|=1<<t%8:this.data[t>>3]&=~(1<<t%8))}}n.a=o;class u extends r{}n.k=u;class a extends r{}n.h=a;class h extends r{}n.i=h;class f extends c{}n.j=f;class l extends r{}n.r=l;class d extends r{}n.o=d;class y extends r{}n.p=y;class w extends c{}n.q=w;class b extends r{get(t){return Math.min((super.get(t)-32767)/32767,1)}}n.e=b;class x extends r{}n.f=x;class v extends r{}n.g=v;class O extends r{constructor(t){super(t),this.wn=t.wn}get(t){return new Date(864e5*super.get(t))}}n.b=O;class j extends r{constructor(t){super(t),this.wn=t.wn}get(t){return new Date(4294967296*super.get(2*t+1)+super.get(2*t))}}n.c=j;class g extends r{constructor(t){super(t),this.wn=t.wn}}n.l=g;class A extends c{constructor(t){super(t),this.wn=t.wn}}n.m=A;class p extends c{constructor(t){super(t),this.hn=t.hn,this.Kt=t.Kt}}n.d=p;class m extends c{constructor(t){super(t),this.wn=t.wn,this.pn=t.pn}}n.n=m,p.prototype.stride=4,r.prototype.stride=1,c.prototype.stride=2},function(t,n,i){"use strict";function s(t){var n="function"==typeof Symbol&&t[Symbol.iterator],i=0;return n?n.call(t):{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}}}function e(t){return this instanceof e?(this.v=t,this):new e(t)}n.e=function(t,n,i,s){return new(i||(i=Promise))(function(e,r){function c(t){try{u(s.next(t))}catch(t){r(t)}}function o(t){try{u(s.throw(t))}catch(t){r(t)}}function u(t){t.done?e(t.value):new i(function(n){n(t.value)}).then(c,o)}u((s=s.apply(t,n||[])).next())})},n.d=e,n.b=function(t,n,i){function s(t){h[t]&&(a[t]=function(n){return new Promise(function(i,s){f.push([t,n,i,s])>1||r(t,n)})})}function r(t,n){try{!function(t){t.value instanceof e?Promise.resolve(t.value.v).then(c,o):u(f[0][2],t)}(h[t](n))}catch(t){u(f[0][3],t)}}function c(t){r("next",t)}function o(t){r("throw",t)}function u(t,n){t(n),f.shift(),f.length&&r(f[0][0],f[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,h=i.apply(t,n||[]),f=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a},n.a=function(t){function n(n,r){t[n]&&(i[n]=function(i){return(s=!s)?{value:e(t[n](i)),done:"return"===n}:r?r(i):i})}var i,s;return i={},n("next"),n("throw",function(t){throw t}),n("return"),i[Symbol.iterator]=function(){return this},i},n.c=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator];return n?n.call(t):"function"==typeof s?s(t):t[Symbol.iterator]()}},function(t,n,i){"use strict";function*s(t,n){let{Ms:i,Ds:s,Ls:r,Ts:c,Rs:o}=n;i||(({Ms:i,Ds:s,Ls:r,Ts:c}=function(t){let n,i,s=Object(a.a)(t);if(s)n=s.Ms(),i=a.b;else{if(!(n=Object(a.d)(t)))throw Error("Invalid Arrow buffer");i=a.c}return{Ms:n,Ds:s,Ls:i,Ts:e(n,new Map)}}(t)),n.Ms=i,n.Ls=r,n.Ts=c,n.Rs=o=new Map);const h=i.Ri(),f=new v(t._t(),o);for(const e of r(t,s)){let t,n,s,r;if(f.message=e,e.ps()!==w.DictionaryBatch){r=Array(h),f.zs=e.ms(new y);for(let t=-1;++t<h;)((n=i.Ti(t))||(r[t]=null))&&(r[t]=Object(u.b)(n,f));yield r}else{let i;(i=e.ms(new x))&&(f.zs=i.data(),t=""+i.kn().Cs(),n=c.get(t),s=Object(u.a)(n,f),i.bs()&&o.has(t)&&(s=o.get(t).concat(s)),o.set(t,s))}}}function e(t,n){let i,s,r,c=t instanceof d?t.oi:t.Ti;for(let o=-1,u=(t instanceof d?t.ai:t.Ri).call(t);++o<u;)(i=c.call(t,o))&&((s=i.ci())&&(r=""+s.kn().Cs())&&!n.has(r)&&n.set(r,i),e(i,n));return n}function r(t){let n=t||new Uint8Array(0);if("string"==typeof t){n=new Uint8Array(t.length);for(let i=-1,s=t.length;++i<s;)n[i]=t.charCodeAt(i);return new l(n)}return new l(n)}n.a=function*(t,n){const i=n||{};for(const e of t)yield*s(r(e),i)},n.b=function(t,n){return c.b(this,arguments,function*(){const i=n||{};try{for(var e,o=c.c(t);!(e=yield c.d(o.next())).done;){const t=yield c.d(e.value);yield c.d(yield*c.a(c.c(s(r(t),i))))}}catch(t){u={error:t}}finally{try{e&&!e.done&&(a=o.return)&&(yield c.d(a.call(o)))}finally{if(u)throw u.error}}var u,a})};var c=i(6),o=i(13),u=i(14),a=i(18),h=i(0),f=i(4),l=o.a.Ps,d=h.a.U.B.V.ui,y=f.a.U.B.V.RecordBatch,w=f.a.U.B.V.Zi,b=h.a.U.B.V.S,x=f.a.U.B.V.DictionaryBatch;class v{constructor(t,n){this._t=t,this.Rs=n}set message(t){this.Ws=0,this.ks=0,this.Ii=t.P.K(),this.$s=t.As()}Ks(){return this.zs.es(this.Ws++)}Ys(){const t=this.zs.cs(this.ks++);return this.$s<b.V4&&(t.z+=8*this.ks),t}}},function(t,n,i){"use strict";var s=i(1),e=i(2),r=i(16);i.n(r);const c=new r.TextDecoder("utf-8");class o extends s.a{constructor(t){super(),this.values=t.values}get(t){const n=this.getCodePoints(t);return n?c.Hs(n):null}getCodePoints(t){return this.values.get(t)}concat(...t){return new e.a(Array,this,...t)}}n.a=o},function(t,n,i){"use strict";var s=i(1),e=i(2);class r extends s.a{constructor(t){super(),this.data=t.data,this.keys=t.keys,this.length=this.keys.length}get(t){return this.getValue(this.getKey(t))}getKey(t){return this.keys.get(t)}getValue(t){return this.data.get(t)}concat(...t){return new e.a(Array,this,...t)}*[Symbol.iterator](){for(let t=-1,n=this.length;++t<n;)yield this.get(t)}}n.a=r},function(t,n,i){"use strict";var s=i(1),e=i(2);class r extends s.a{constructor(t){super(),this.data=t.data,this.qi=t.qi}get(t){return this.data.subarray(this.qi[t],this.qi[t+1])}concat(...t){return new e.a(Array,this,...t)}}n.a=r;class c extends s.a{constructor(t){super(),this.values=t.values,this.qi=t.qi}get(t){const{qi:n,values:i}=this,s=n[t],e=Array(n[t+1]-s);for(let r=-1,c=e.length;++r<c;)e[r]=i.get(r+s);return e}concat(...t){return new e.a(Array,this,...t)}}n.c=c;class o extends s.a{constructor(t){super(),this.size=t.size,this.values=t.values}get(t){return this.values.slice(this.size*t,this.size*(t+1))}concat(...t){return new e.a(Array,this,...t)}}n.b=o},function(t,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var s=i(12),e=i(1),r=i(8),c=i(9),o=i(3),u=i(7),a=i(10),h=i(5);i.d(n,"Table",function(){return s.a}),i.d(n,"Vector",function(){return e.a}),i.d(n,"StructRow",function(){return o.a}),i.d(n,"readVectors",function(){return u.a}),i.d(n,"readVectorsAsync",function(){return u.b}),i.d(n,"BoolVector",function(){return h.a}),i.d(n,"ListVector",function(){return a.c}),i.d(n,"Utf8Vector",function(){return r.a}),i.d(n,"Int8Vector",function(){return h.k}),i.d(n,"Int16Vector",function(){return h.h}),i.d(n,"Int32Vector",function(){return h.i}),i.d(n,"Int64Vector",function(){return h.j}),i.d(n,"Uint8Vector",function(){return h.r}),i.d(n,"Uint16Vector",function(){return h.o}),i.d(n,"Uint32Vector",function(){return h.p}),i.d(n,"Uint64Vector",function(){return h.q}),i.d(n,"Date32Vector",function(){return h.b}),i.d(n,"Date64Vector",function(){return h.c}),i.d(n,"Time32Vector",function(){return h.l}),i.d(n,"Time64Vector",function(){return h.m}),i.d(n,"BinaryVector",function(){return a.a}),i.d(n,"StructVector",function(){return o.b}),i.d(n,"Float16Vector",function(){return h.e}),i.d(n,"Float32Vector",function(){return h.f}),i.d(n,"Float64Vector",function(){return h.g}),i.d(n,"DecimalVector",function(){return h.d}),i.d(n,"TimestampVector",function(){return h.n}),i.d(n,"DictionaryVector",function(){return c.a}),i.d(n,"FixedSizeListVector",function(){return a.b});try{const t=eval("exports");"object"==typeof t&&(t.readVectors=u.a,t.readVectorsAsync=u.b,t.Table=s.a,t.Vector=e.a,t.StructRow=o.a,t.BoolVector=h.a,t.ListVector=a.c,t.Utf8Vector=r.a,t.Int8Vector=h.k,t.Int16Vector=h.h,t.Int32Vector=h.i,t.Int64Vector=h.j,t.Uint8Vector=h.r,t.Uint16Vector=h.o,t.Uint32Vector=h.p,t.Uint64Vector=h.q,t.Date32Vector=h.b,t.Date64Vector=h.c,t.Time32Vector=h.l,t.Time64Vector=h.m,t.BinaryVector=a.a,t.StructVector=o.b,t.Float16Vector=h.e,t.Float32Vector=h.f,t.Float64Vector=h.g,t.DecimalVector=h.d,t.TimestampVector=h.n,t.DictionaryVector=c.a,t.FixedSizeListVector=a.b)}catch(t){}},function(t,n,i){"use strict";var s=i(6),e=i(3),r=i(7);class c extends e.b{constructor(t){super(t),this.length=0|Math.max(...this.columns.map(t=>t.length))}static from(t){let n=[];if(t)for(let i of Object(r.a)(t))n=0===n.length?i:i.map((t,i,s,e=n[i])=>t&&e&&e.concat(t)||e||t);return new c({columns:n})}static fromAsync(t){return s.e(this,void 0,void 0,function*(){let n=[];if(t)try{for(var i,e=s.c(Object(r.b)(t));!(i=yield e.next()).done;){let t=yield i.value;n=0===n.length?t:t.map((t,i,s,e=n[i])=>t&&e&&e.concat(t)||e||t)}}catch(t){o={error:t}}finally{try{i&&!i.done&&(u=e.return)&&(yield u.call(e))}finally{if(o)throw o.error}}return new c({columns:n});var o,u})}get(t){return new o(this,t)}}n.a=c;class o extends e.a{toString(){return this.toArray().map(t=>JSON.stringify(t)).join(", ")}}},function(t,n,i){"use strict";i.d(n,"a",function(){return s});var s={};s.Js,s.Table,s.Gs=2,s.qs=4,s.Qs=4,s.Xs={Zs:1,te:2},s.ne=new Int32Array(2),s.ie=new Float32Array(s.ne.buffer),s.se=new Float64Array(s.ne.buffer),s.ee=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],s.re=function(t,n){this.low=0|t,this.high=0|n},s.re.create=function(t,n){return 0==t&&0==n?s.re.ce:new s.re(t,n)},s.re.prototype.Cs=function(){return(this.low>>>0)+4294967296*this.high},s.re.prototype.oe=function(t){return this.low==t.low&&this.high==t.high},s.re.ce=new s.re(0,0),s.ue=function(t){if(t)n=t;else var n=1024;this.P=s.Ps.ae(n),this.he=n,this.fe=1,this.le=null,this.de=0,this.ye=!1,this.we=0,this.be=[],this.xe=0,this.ve=!1},s.ue.prototype.Oe=function(t){this.ve=t},s.ue.prototype.je=function(){return this.P},s.ue.prototype.ge=function(){return this.P._t().subarray(this.P.K(),this.P.K()+this.Ii())},s.ue.prototype.Fi=function(t,n){t>this.fe&&(this.fe=t);for(var i=1+~(this.P.Ae()-this.he+n)&t-1;this.he<i+t+n;){var e=this.P.Ae();this.P=s.ue.pe(this.P),this.he+=this.P.Ae()-e}this.me(i)},s.ue.prototype.me=function(t){for(var n=0;n<t;n++)this.P._e(--this.he,0)},s.ue.prototype._e=function(t){this.P._e(this.he-=1,t)},s.ue.prototype.Se=function(t){this.P.Se(this.he-=2,t)},s.ue.prototype.Ve=function(t){this.P.Ve(this.he-=4,t)},s.ue.prototype.Ei=function(t){this.P.Ei(this.he-=8,t)},s.ue.prototype.Be=function(t){this.P.Be(this.he-=4,t)},s.ue.prototype.Ue=function(t){this.P.Ue(this.he-=8,t)},s.ue.prototype.Ie=function(t){this.Fi(1,0),this._e(t)},s.ue.prototype.Ne=function(t){this.Fi(2,0),this.Se(t)},s.ue.prototype.Et=function(t){this.Fi(4,0),this.Ve(t)},s.ue.prototype.Fe=function(t){this.Fi(8,0),this.Ei(t)},s.ue.prototype.Ee=function(t){this.Fi(4,0),this.Be(t)},s.ue.prototype.Me=function(t){this.Fi(8,0),this.Ue(t)},s.ue.prototype.wt=function(t,n,i){(this.ve||n!=i)&&(this.Ie(n),this.De(t))},s.ue.prototype.Bt=function(t,n,i){(this.ve||n!=i)&&(this.Ne(n),this.De(t))},s.ue.prototype.ut=function(t,n,i){(this.ve||n!=i)&&(this.Et(n),this.De(t))},s.ue.prototype.Qn=function(t,n,i){!this.ve&&n.oe(i)||(this.Fe(n),this.De(t))},s.ue.prototype.Le=function(t,n,i){(this.ve||n!=i)&&(this.Ee(n),this.De(t))},s.ue.prototype.Te=function(t,n,i){(this.ve||n!=i)&&(this.Me(n),this.De(t))},s.ue.prototype.It=function(t,n,i){(this.ve||n!=i)&&(this.gi(n),this.De(t))},s.ue.prototype.Re=function(t,n,i){n!=i&&(this.ze(n),this.De(t))},s.ue.prototype.ze=function(t){if(t!=this.Ii())throw Error("FlatBuffers: struct must be serialized inline.")},s.ue.prototype.Ce=function(){if(this.ye)throw Error("FlatBuffers: object serialization must not be nested.")},s.ue.prototype.De=function(t){this.le[t]=this.Ii()},s.ue.prototype.Ii=function(){return this.P.Ae()-this.he},s.ue.pe=function(t){var n=t.Ae();if(3221225472&n)throw Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var i=n<<1,e=s.Ps.ae(i);return e.Pe(i-n),e._t().set(t._t(),i-n),e},s.ue.prototype.gi=function(t){this.Fi(s.qs,0),this.Ve(this.Ii()-t+s.qs)},s.ue.prototype.H=function(t){this.Ce(),null==this.le&&(this.le=[]),this.de=t;for(var n=0;n<t;n++)this.le[n]=0;this.ye=!0,this.we=this.Ii()},s.ue.prototype.G=function(){if(null==this.le||!this.ye)throw Error("FlatBuffers: endObject called without startObject");this.Et(0);for(var t=this.Ii(),n=this.de-1;n>=0&&0==this.le[n];n--);for(var i=n+1;n>=0;n--)this.Ne(0!=this.le[n]?t-this.le[n]:0);this.Ne(t-this.we);var e=(i+2)*s.Gs;this.Ne(e);var r=0,c=this.he;t:for(n=0;n<this.be.length;n++){var o=this.P.Ae()-this.be[n];if(e==this.P.Ot(o)){for(var u=s.Gs;u<e;u+=s.Gs)if(this.P.Ot(c+u)!=this.P.Ot(o+u))continue t;r=this.be[n];break}}return r?(this.he=this.P.Ae()-t,this.P.Ve(this.he,r-t)):(this.be.push(this.Ii()),this.P.Ve(this.P.Ae()-t,this.Ii()-t)),this.ye=!1,t},s.ue.prototype.Yi=function(t,n){if(n){var i=n;if(this.Fi(this.fe,s.qs+s.Qs),i.length!=s.Qs)throw Error("FlatBuffers: file identifier must be length "+s.Qs);for(var e=s.Qs-1;e>=0;e--)this._e(i.charCodeAt(e))}this.Fi(this.fe,s.qs),this.gi(t),this.P.Pe(this.he)},s.ue.prototype.We=function(t,n){var i=this.P.Ae()-t,s=i-this.P.$(i);if(!(0!=this.P.Ot(s+n)))throw Error("FlatBuffers: field "+n+" must be set")},s.ue.prototype.Ft=function(t,n,i){this.Ce(),this.xe=n,this.Fi(s.qs,t*n),this.Fi(i,t*n)},s.ue.prototype.Mt=function(){return this.Ve(this.xe),this.Ii()},s.ue.prototype.ke=function(t){if(t instanceof Uint8Array)n=t;else for(var n=[],i=0;i<t.length;){var s,e=t.charCodeAt(i++);if(e<55296||e>=56320)s=e;else{s=(e<<10)+t.charCodeAt(i++)+-56613888}s<128?n.push(s):(s<2048?n.push(s>>6&31|192):(s<65536?n.push(s>>12&15|224):n.push(s>>18&7|240,s>>12&63|128),n.push(s>>6&63|128)),n.push(63&s|128))}this.Ie(0),this.Ft(1,n.length,1),this.P.Pe(this.he-=n.length);for(var i=0,r=this.he,c=this.P._t();i<n.length;i++)c[r++]=n[i];return this.Mt()},s.ue.prototype.Kn=function(t,n){return s.re.create(t,n)},s.Ps=function(t){this.$e=t,this.Ke=0},s.Ps.ae=function(t){return new s.Ps(new Uint8Array(t))},s.Ps.prototype._t=function(){return this.$e},s.Ps.prototype.K=function(){return this.Ke},s.Ps.prototype.Pe=function(t){this.Ke=t},s.Ps.prototype.Ae=function(){return this.$e.length},s.Ps.prototype.lt=function(t){return this.ei(t)<<24>>24},s.Ps.prototype.ei=function(t){return this.$e[t]},s.Ps.prototype.Ot=function(t){return this.Ye(t)<<16>>16},s.Ps.prototype.Ye=function(t){return this.$e[t]|this.$e[t+1]<<8},s.Ps.prototype.$=function(t){return this.$e[t]|this.$e[t+1]<<8|this.$e[t+2]<<16|this.$e[t+3]<<24},s.Ps.prototype.He=function(t){return this.$(t)>>>0},s.Ps.prototype.$n=function(t){return new s.re(this.$(t),this.$(t+4))},s.Ps.prototype.Je=function(t){return new s.re(this.He(t),this.He(t+4))},s.Ps.prototype.Ge=function(t){return s.ne[0]=this.$(t),s.ie[0]},s.Ps.prototype.qe=function(t){return s.ne[s.ee?0:1]=this.$(t),s.ne[s.ee?1:0]=this.$(t+4),s.se[0]},s.Ps.prototype._e=function(t,n){this.$e[t]=n},s.Ps.prototype.Qe=function(t,n){this.$e[t]=n},s.Ps.prototype.Se=function(t,n){this.$e[t]=n,this.$e[t+1]=n>>8},s.Ps.prototype.Xe=function(t,n){this.$e[t]=n,this.$e[t+1]=n>>8},s.Ps.prototype.Ve=function(t,n){this.$e[t]=n,this.$e[t+1]=n>>8,this.$e[t+2]=n>>16,this.$e[t+3]=n>>24},s.Ps.prototype.Ze=function(t,n){this.$e[t]=n,this.$e[t+1]=n>>8,this.$e[t+2]=n>>16,this.$e[t+3]=n>>24},s.Ps.prototype.Ei=function(t,n){this.Ve(t,n.low),this.Ve(t+4,n.high)},s.Ps.prototype.tr=function(t,n){this.Ze(t,n.low),this.Ze(t+4,n.high)},s.Ps.prototype.Be=function(t,n){s.ie[0]=n,this.Ve(t,s.ne[0])},s.Ps.prototype.Ue=function(t,n){s.se[0]=n,this.Ve(t,s.ne[s.ee?0:1]),this.Ve(t+4,s.ne[s.ee?1:0])},s.Ps.prototype.rt=function(t,n){var i=t-this.$(t);return n<this.Ot(i)?this.Ot(i+n):0},s.Ps.prototype.ri=function(t,n){return t.z=n+this.$(n),t.P=this,t},s.Ps.prototype.mn=function(t,n){t+=this.$(t);var i=this.$(t),e="",r=0;if(t+=s.qs,n===s.Xs.Zs)return this.$e.subarray(t,t+i);for(;r<i;){var c,o=this.ei(t+r++);if(o<192)c=o;else{var u=this.ei(t+r++);if(o<224)c=(31&o)<<6|63&u;else{var a=this.ei(t+r++);if(o<240)c=(15&o)<<12|(63&u)<<6|63&a;else{c=(7&o)<<18|(63&u)<<12|(63&a)<<6|63&this.ei(t+r++)}}}e+=c<65536?String.fromCharCode(c):String.fromCharCode(55296+((c-=65536)>>10),56320+(1023&c))}return e},s.Ps.prototype.Hn=function(t){return t+this.$(t)},s.Ps.prototype.gt=function(t){return t+this.$(t)+s.qs},s.Ps.prototype.pt=function(t){return this.$(t+this.$(t))},s.Ps.prototype.nr=function(t){if(t.length!=s.Qs)throw Error("FlatBuffers: file identifier must be length "+s.Qs);for(var n=0;n<s.Qs;n++)if(t.charCodeAt(n)!=this.lt(this.Ke+s.qs+n))return!1;return!0},s.Ps.prototype.Kn=function(t,n){return s.re.create(t,n)}},function(t,n,i){"use strict";function s(t,n){return function(t,n){const i=t.ci();if(i){const s=i.Yn()||_,e=n.Rs.get(""+i.kn().Cs()),[r,c]=S[s.Rt()>>>4][+s.zt()],{fieldNode:u,validity:a,data:h}=o(t,n,c);return new l.f({validity:a,data:e,field:t,fieldNode:u,keys:new r({field:t,fieldNode:u,data:h})})}return null}(t,n)||e(t,n)}function e(t,n){switch(t.si()){case b.NONE:case b.Null:return r();case b.Int:return function(t,n){const i=t.type(new d);if(i.zt())switch(i.Rt()){case 8:return new l.n(o(t,n,Int8Array));case 16:return new l.k(o(t,n,Int16Array));case 32:return new l.l(o(t,n,Int32Array));case 64:return new l.m(o(t,n,Int32Array))}switch(i.Rt()){case 8:return new l.w(o(t,n,Uint8Array));case 16:return new l.t(o(t,n,Uint16Array));case 32:return new l.u(o(t,n,Uint32Array));case 64:return new l.v(o(t,n,Uint32Array))}throw Error(`Unrecognized Int { isSigned: ${i.zt()}, bitWidth: ${i.Rt()} }`)}(t,n);case b.Bool:return function(t,n){return new l.b(o(t,n,Uint8Array))}(t,n);case b.Date:return function(t,n){const i=t.type(new y);switch(i.wn()){case v.DAY:return new l.c(Object.assign({},o(t,n,Int32Array),{wn:v[i.wn()]}));case v.MILLISECOND:return new l.d(Object.assign({},o(t,n,Int32Array),{wn:v[i.wn()]}))}throw Error(`Unrecognized Date { unit: ${i.wn()} }`)}(t,n);case b.List:return function(t,n){const{fieldNode:i,validity:e,qi:r}=function(t,n){const i=n.Ks(),s=a(t,i,n),e=u(Int32Array,n);return{field:t,fieldNode:i,validity:s,qi:e}}(t,n);return new l.o({field:t,fieldNode:i,validity:e,qi:r,values:s(t.oi(0),n)})}(t,n);case b.Utf8:return function(t,n){const{fieldNode:i,validity:s,qi:e,data:r}=c(t,n);return new l.x({field:t,fieldNode:i,values:new l.a({validity:s,qi:e,data:r})})}(t,n);case b.Time:return function(t,n){const i=t.type(new w);switch(i.Rt()){case 32:return new l.q(Object.assign({},o(t,n,Int32Array),{wn:O[i.wn()]}));case 64:return new l.r(Object.assign({},o(t,n,Uint32Array),{wn:O[i.wn()]}))}throw Error(`Unrecognized Time { unit: ${i.wn()}, bitWidth: ${i.Rt()} }`)}(t,n);case b.Binary:return function(t,n){return new l.a(c(t,n))}(t,n);case b.Decimal:return function(t,n){const i=t.type(new x),{fieldNode:s,validity:e,data:r}=o(t,n,Uint32Array);return new l.e({hn:i.hn(),Kt:i.Kt(),field:t,fieldNode:s,validity:e,data:r})}(t,n);case b.Struct_:return function(t,n){const i=t.ai(),e=Array(i),r=n.Ks(),c=a(t,r,n);for(let o,u=-1;++u<i;)(o=t.oi(u))&&(e[u]=s(o,n));return new l.p({field:t,fieldNode:r,validity:c,columns:e})}(t,n);case b.FloatingPoint:return function(t,n){const i=t.type(new p);switch(i.Kt()){case g.HALF:return new l.h(o(t,n,Uint16Array));case g.SINGLE:return new l.i(o(t,n,Float32Array));case g.DOUBLE:return new l.j(o(t,n,Float64Array))}throw Error(`Unrecognized FloatingPoint { precision: ${i.Kt()} }`)}(t,n);case b.Timestamp:return function(t,n){const i=t.type(new j),{fieldNode:s,validity:e,data:r}=o(t,n,Uint32Array);return new l.s({field:t,fieldNode:s,validity:e,data:r,pn:i.pn(),wn:O[i.wn()]})}(t,n);case b.FixedSizeList:return function(t,n){const i=t.type(new A),e=n.Ks(),r=a(t,e,n);return new l.g({field:t,fieldNode:e,validity:r,size:i.et(),values:s(t.oi(0),n)})}(t,n);case b.FixedSizeBinary:return function(t,n){const i=t.type(new m),{fieldNode:s,validity:e,data:r}=o(t,n,Uint8Array);return new l.g({size:i.in(),field:t,fieldNode:s,validity:e,values:new l.w({data:r})})}(t,n)}throw Error(`Unrecognized Vector { name: ${b[t.si()]}, type: ${t.si()} }`)}function r(){return new l.y}function c(t,n){const i=n.Ks();return{field:t,fieldNode:i,validity:a(t,i,n),qi:u(Int32Array,n),data:u(Uint8Array,n)}}function o(t,n,i){const s=n.Ks();return{field:t,fieldNode:s,validity:a(t,s,n),data:u(i,n)}}function u(t,n){return h(t,n._t,n.Ii,n.Ys())}function a(t,n,i){return function(t,n,i,s,e){return t.nullable()&&n.nullCount().low>0&&h(Uint8Array,i,s,e)||null}(t,n,i._t,i.Ii,i.Ys())}function h(t,n,i,s){return new t(n.buffer,n.byteOffset+i+s.Ii().low,s.length().low/t.BYTES_PER_ELEMENT)}n.b=s,n.a=e;var f=i(0),l=i(15),d=f.a.U.B.V.Int,y=f.a.U.B.V.Date,w=f.a.U.B.V.Time,b=f.a.U.B.V.L,x=f.a.U.B.V.Decimal,v=f.a.U.B.V.F,O=f.a.U.B.V.M,j=f.a.U.B.V.Timestamp,g=f.a.U.B.V.N,A=f.a.U.B.V.FixedSizeList,p=f.a.U.B.V.FloatingPoint,m=f.a.U.B.V.FixedSizeBinary;const _={Rt:()=>32,zt:()=>!0},S=[[[l.w,Uint8Array],[l.n,Int8Array]],[[l.t,Uint16Array],[l.k,Int16Array]],[[l.u,Uint32Array],[l.l,Int32Array]],,[[l.v,Uint32Array],[l.m,Int32Array]]]},function(t,n,i){"use strict";function s(t,n,i,s){return function(r){return new(function(t){return t&&t.field instanceof y&&t.fieldNode instanceof w}(r)?e(r)?s:n:e(r)?i:t)(r)}}function e(t){return t&&t.validity&&ArrayBuffer.isView(t.validity)&&t.validity instanceof Uint8Array}var r=i(0),c=i(4),o=i(1),u=i(8),a=i(3),h=i(9),f=i(10),l=i(5),d=i(17);i.d(n,"y",function(){return o.a});var y=r.a.U.B.V.ui,w=c.a.U.B.V.ns;class b extends(s(f.c,class extends(Object(d.a)(f.c)){},class extends(Object(d.b)(f.c)){},class extends(Object(d.b)(Object(d.a)(f.c))){})){}n.o=b;class x extends(s(f.a,class extends(Object(d.a)(f.a)){},class extends(Object(d.b)(f.a)){},class extends(Object(d.b)(Object(d.a)(f.a))){})){}n.a=x;class v extends(s(u.a,class extends(Object(d.a)(u.a)){},class extends(Object(d.b)(u.a)){},class extends(Object(d.b)(Object(d.a)(u.a))){})){}n.x=v;class O extends(s(l.a,class extends(Object(d.a)(l.a)){},class extends(Object(d.b)(l.a)){},class extends(Object(d.b)(Object(d.a)(l.a))){})){}n.b=O;class j extends(s(l.k,class extends(Object(d.a)(l.k)){},class extends(Object(d.b)(l.k)){},class extends(Object(d.b)(Object(d.a)(l.k))){})){}n.n=j;class g extends(s(l.h,class extends(Object(d.a)(l.h)){},class extends(Object(d.b)(l.h)){},class extends(Object(d.b)(Object(d.a)(l.h))){})){}n.k=g;class A extends(s(l.i,class extends(Object(d.a)(l.i)){},class extends(Object(d.b)(l.i)){},class extends(Object(d.b)(Object(d.a)(l.i))){})){}n.l=A;class p extends(s(l.j,class extends(Object(d.a)(l.j)){},class extends(Object(d.b)(l.j)){},class extends(Object(d.b)(Object(d.a)(l.j))){})){}n.m=p;class m extends(s(l.r,class extends(Object(d.a)(l.r)){},class extends(Object(d.b)(l.r)){},class extends(Object(d.b)(Object(d.a)(l.r))){})){}n.w=m;class _ extends(s(l.o,class extends(Object(d.a)(l.o)){},class extends(Object(d.b)(l.o)){},class extends(Object(d.b)(Object(d.a)(l.o))){})){}n.t=_;class S extends(s(l.p,class extends(Object(d.a)(l.p)){},class extends(Object(d.b)(l.p)){},class extends(Object(d.b)(Object(d.a)(l.p))){})){}n.u=S;class V extends(s(l.q,class extends(Object(d.a)(l.q)){},class extends(Object(d.b)(l.q)){},class extends(Object(d.b)(Object(d.a)(l.q))){})){}n.v=V;class B extends(s(l.b,class extends(Object(d.a)(l.b)){},class extends(Object(d.b)(l.b)){},class extends(Object(d.b)(Object(d.a)(l.b))){})){}n.c=B;class U extends(s(l.c,class extends(Object(d.a)(l.c)){},class extends(Object(d.b)(l.c)){},class extends(Object(d.b)(Object(d.a)(l.c))){})){}n.d=U;class I extends(s(l.l,class extends(Object(d.a)(l.l)){},class extends(Object(d.b)(l.l)){},class extends(Object(d.b)(Object(d.a)(l.l))){})){}n.q=I;class N extends(s(l.m,class extends(Object(d.a)(l.m)){},class extends(Object(d.b)(l.m)){},class extends(Object(d.b)(Object(d.a)(l.m))){})){}n.r=N;class F extends(s(l.e,class extends(Object(d.a)(l.e)){},class extends(Object(d.b)(l.e)){},class extends(Object(d.b)(Object(d.a)(l.e))){})){}n.h=F;class E extends(s(l.f,class extends(Object(d.a)(l.f)){},class extends(Object(d.b)(l.f)){},class extends(Object(d.b)(Object(d.a)(l.f))){})){}n.i=E;class M extends(s(l.g,class extends(Object(d.a)(l.g)){},class extends(Object(d.b)(l.g)){},class extends(Object(d.b)(Object(d.a)(l.g))){})){}n.j=M;class D extends(s(a.b,class extends(Object(d.a)(a.b)){},class extends(Object(d.b)(a.b)){},class extends(Object(d.b)(Object(d.a)(a.b))){})){}n.p=D;class L extends(s(l.d,class extends(Object(d.a)(l.d)){},class extends(Object(d.b)(l.d)){},class extends(Object(d.b)(Object(d.a)(l.d))){})){}n.e=L;class T extends(s(l.n,class extends(Object(d.a)(l.n)){},class extends(Object(d.b)(l.n)){},class extends(Object(d.b)(Object(d.a)(l.n))){})){}n.s=T;class R extends(s(h.a,class extends(Object(d.a)(h.a)){},class extends(Object(d.b)(h.a)){},class extends(Object(d.b)(Object(d.a)(h.a))){})){}n.f=R;class z extends(s(f.b,class extends(Object(d.a)(f.b)){},class extends(Object(d.b)(f.b)){},class extends(Object(d.b)(Object(d.a)(f.b))){})){}n.g=z},function(t,n,i){"use strict";function s(t,n,i){return n<=t&&t<=i}function e(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function r(t){this.ir=[].slice.call(t)}function c(t,n){if(t)throw TypeError("Decoder error");return n||65533}function o(t,n){if(!(this instanceof o))return new o(t,n);if((t=void 0!==t?(t+"").toLowerCase():f)!==f)throw Error("Encoding not supported. Only utf-8 is supported");n=e(n),this.sr=!1,this.er=!1,this.rr=null,this.cr=!!n.fatal,this.or=!!n.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this.cr}),Object.defineProperty(this,"ignoreBOM",{value:this.or})}function u(t,n){if(!(this instanceof u))return new u(t,n);if((t=void 0!==t?(t+"").toLowerCase():f)!==f)throw Error("Encoding not supported. Only utf-8 is supported");n=e(n),this.sr=!1,this.ur=null,this.ar={fatal:!!n.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}var a=-1;r.prototype={hr:function(){return!this.ir.length},fr:function(){return this.ir.length?this.ir.shift():a},lr:function(t){if(Array.isArray(t))for(var n=t;n.length;)this.ir.unshift(n.pop());else this.ir.unshift(t)},push:function(t){if(Array.isArray(t))for(var n=t;n.length;)this.ir.push(n.shift());else this.ir.push(t)}};var h=-1,f="utf-8";o.prototype={Hs:function(t,n){var i;i="object"==typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"==typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),n=e(n),this.sr||(this.rr=new function(t){var n=t.fatal,i=0,e=0,r=0,o=128,u=191;this.dr=function(t,f){if(f===a&&0!==r)return r=0,c(n);if(f===a)return h;if(0===r){if(s(f,0,127))return f;if(s(f,194,223))r=1,i=f-192;else if(s(f,224,239))224===f&&(o=160),237===f&&(u=159),r=2,i=f-224;else{if(!s(f,240,244))return c(n);240===f&&(o=144),244===f&&(u=143),r=3,i=f-240}return i<<=6*r,null}if(!s(f,o,u))return i=r=e=0,o=128,u=191,t.lr(f),c(n);if(o=128,u=191,e+=1,i+=f-128<<6*(r-e),e!==r)return null;var l=i;return i=r=e=0,l}}({fatal:this.cr}),this.er=!1),this.sr=!!n.stream;for(var o,u=new r(i),f=[];!u.hr()&&(o=this.rr.dr(u,u.fr()))!==h;)null!==o&&(Array.isArray(o)?f.push.apply(f,o):f.push(o));if(!this.sr){do{if((o=this.rr.dr(u,u.fr()))===h)break;null!==o&&(Array.isArray(o)?f.push.apply(f,o):f.push(o))}while(!u.hr());this.rr=null}return f.length&&(-1===["utf-8"].indexOf(this.yr)||this.or||this.er||(65279===f[0]?(this.er=!0,f.shift()):this.er=!0)),function(t){for(var n="",i=0;i<t.length;++i){var s=t[i];n+=s<=65535?String.fromCharCode(s):String.fromCharCode(55296+((s-=65536)>>10),56320+(1023&s))}return n}(f)}},u.prototype={wr:function(t,n){t=t?t+"":"",n=e(n),this.sr||(this.ur=new function(t){t.fatal,this.dr=function(t,n){if(n===a)return h;if(s(n,0,127))return n;var i,e;s(n,128,2047)?(i=1,e=192):s(n,2048,65535)?(i=2,e=224):s(n,65536,1114111)&&(i=3,e=240);for(var r=[(n>>6*i)+e];i>0;){var c=n>>6*(i-1);r.push(128|63&c),i-=1}return r}}(this.ar)),this.sr=!!n.stream;for(var i,c=[],o=new r(function(t){for(var n=t+"",i=n.length,s=0,e=[];s<i;){var r=n.charCodeAt(s);if(r<55296||r>57343)e.push(r);else if(56320<=r&&r<=57343)e.push(65533);else if(55296<=r&&r<=56319)if(s===i-1)e.push(65533);else{var c=t.charCodeAt(s+1);if(56320<=c&&c<=57343){var o=1023&r,u=1023&c;e.push(65536+(o<<10)+u),s+=1}else e.push(65533)}s+=1}return e}(t));!o.hr()&&(i=this.ur.dr(o,o.fr()))!==h;)Array.isArray(i)?c.push.apply(c,i):c.push(i);if(!this.sr){for(;;){if((i=this.ur.dr(o,o.fr()))===h)break;Array.isArray(i)?c.push.apply(c,i):c.push(i)}this.ur=null}return new Uint8Array(c)}},n.br=u,n.TextDecoder=o},function(t,n,i){"use strict";var s=i(5),e=i(0).a.U.B.V.L;n.b=(t=>class extends t{constructor(t){super(t),this.validity=new s.a({data:t.validity})}get(t){return this.validity.get(t)?super.get(t):null}});n.a=(t=>class extends t{constructor(t){super(t);const{field:n,fieldNode:i}=t;this.field=n,this.fieldNode=i,this.nullable=n.nullable(),this.type=e[n.si()],this.length=0|i.length().low,this.nullCount=i.nullCount().low}get name(){return this.field.name()}get metadata(){const{field:t}=this,n=new Map;for(let i,s,e=-1,r=t&&0|t.di();++e<r;)(i=t.li(e))&&null!=(s=i.key())&&n.set(s,i.value());return n}})},function(t,n,i){"use strict";function s(t,n=0){for(let i=-1,s=y.length;++i<s;)if(y[i]!==t[n+i])return!1;return!0}function e(t,n){t.Pe(t.K()+d);const i=f.gs(t);return t.Pe(t.K()+n),i}function*r(t){let n;for(;t.K()<t.Ae()&&(n=t.$(t.K()))>0;)yield e(t,n)}n.d=function(t){if(!s(t._t(),0))for(const n of r(t))if(n.ps()===l.Schema)return n.ms(new h);return null},n.a=function(t){let n,i,e=t.Ae();return e<x||!s(t._t(),0)||!s(t._t(),e-w)||(n=t.$(i=e-b))<1&&n+x>e?null:(t.Pe(i-n),a.xr(t))},n.b=function*(t,n){for(let i=-1,s=n.vr();++i<s;)t.Pe(n.Rs(i).Ii().low),yield e(t,t.$(t.K()));for(let i=-1,s=n.Or();++i<s;)t.Pe(n.jr(i).Ii().low),yield e(t,t.$(t.K()))},n.c=function*(t){for(const n of r(t)){switch(n.ps()){case l.RecordBatch:case l.DictionaryBatch:yield n;break;default:continue}t.Pe(t.K()+n._s().low)}};var c=i(19),o=i(0),u=i(4),a=c.a.U.B.V.gr,h=o.a.U.B.V.Schema,f=u.a.U.B.V.Es,l=u.a.U.B.V.Zi;const d=4,y=new Uint8Array(6);for(let v=0;v<6;v+=1)y[v]="ARROW1".charCodeAt(v);const w=y.length,b=w+d,x=2*w+d},function(t,n,i){"use strict";i.d(n,"a",function(){return s});var s,e=i(0);!function(t){!function(n){!function(n){var i;!function(s){class r{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}static xr(t,n){return(n||new r).C(t.$(t.K())+t.K(),t)}As(){let t=this.P.rt(this.z,4);return t?this.P.Ot(this.z+t):e.a.U.B.V.S.V1}Ms(t){let n=this.P.rt(this.z,6);return n?(t||new e.a.U.B.V.Schema).C(this.P.Hn(this.z+n),this.P):null}Rs(n,i){let s=this.P.rt(this.z,8);return s?(i||new t.U.B.V.Ar).C(this.P.gt(this.z+s)+24*n,this.P):null}vr(){let t=this.P.rt(this.z,8);return t?this.P.pt(this.z+t):0}jr(n,i){let s=this.P.rt(this.z,10);return s?(i||new t.U.B.V.Ar).C(this.P.gt(this.z+s)+24*n,this.P):null}Or(){let t=this.P.rt(this.z,10);return t?this.P.pt(this.z+t):0}static pr(t){t.H(4)}static Vs(t,n){t.Bt(0,n,e.a.U.B.V.S.V1)}static mr(t,n){t.It(1,n,0)}static _r(t,n){t.It(2,n,0)}static Sr(t,n){t.Ft(24,n,8)}static Vr(t,n){t.It(3,n,0)}static Br(t,n){t.Ft(24,n,8)}static Ur(t){return t.G()}static Ir(t,n){t.Yi(n)}}(i=n.V||(n.V={})).gr=r}()}(n.B||(n.B={}))}(t.U||(t.U={}))}(s||(s={})),function(t){!function(t){!function(t){var n;!function(i){class s{constructor(){this.z=0}C(t,n){return this.z=t,this.P=n,this}Ii(){return this.P.$n(this.z)}Nr(){return this.P.$(this.z+8)}_s(){return this.P.$n(this.z+16)}static Fr(t,n,i,s){return t.Fi(8,24),t.Ei(s),t.me(4),t.Ve(i),t.Ei(n),t.Ii()}}(n=t.V||(t.V={})).Ar=s}()}(t.B||(t.B={}))}(t.U||(t.U={}))}(s||(s={}))}])}); | ||
//# sourceMappingURL=Arrow.esnext.min.js.map |
{ | ||
"name": "@apache-arrow/esnext-umd", | ||
"version": "0.2.0", | ||
"main": "Arrow.js", | ||
"typings": "Arrow.d.ts", | ||
"name": "@apache-arrow/esnext-umd", | ||
"version": "0.1.2", | ||
"description": "Apache's columnar in-memory data format for big data analytics", | ||
"author": "Graphistry, Inc.", | ||
"homepage": "https://github.com/graphistry/arrow#readme", | ||
"types": "Arrow.d.ts", | ||
"license": "Apache-2.0", | ||
"description": "Apache Arrow columnar in-memory format", | ||
"author": "Apache Software Foundation", | ||
"homepage": "https://github.com/apache/arrow/blob/master/js/README.md", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/apache/arrow.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/graphistry/arrow/issues" | ||
"url": "https://issues.apache.org/jira/projects/ARROW" | ||
}, | ||
"license": "Apache-2.0", | ||
"keywords": [ | ||
@@ -17,9 +21,7 @@ "apache", | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/graphistry/arrow.git" | ||
}, | ||
"peerDependencies": { | ||
"tslib": "^1.7.1" | ||
"dependencies": { | ||
"flatbuffers": "trxcllnt/flatbuffers-esm", | ||
"text-encoding-utf-8": "^1.0.2", | ||
"tslib": "^1.8.0" | ||
} | ||
} | ||
} |
145
README.md
@@ -22,28 +22,25 @@ <!--- | ||
[![Build Status](https://travis-ci.org/graphistry/arrow.svg?branch=master)](https://travis-ci.org/graphistry/arrow) | ||
[![Coverage Status](https://coveralls.io/repos/github/graphistry/arrow/badge.svg)](https://coveralls.io/github/graphistry/arrow) | ||
[![Build Status](https://travis-ci.org/apache/arrow.svg?branch=master)](https://travis-ci.org/apache/arrow) | ||
[![Coverage Status](https://coveralls.io/repos/github/apache/arrow/badge.svg)](https://coveralls.io/github/apache/arrow) | ||
Loading big native dataframes in JavaScript is finally awesome. `apache-arrow` provides an easy, modern, and efficient zero-copy JS interface to parse, iterate, and access [Apache Arrow](https://github.com/apache/arrow) columnar data on CPUs (GPU support via [GoAI](http://gpuopenanalytics.com/) is occurring in parallel). | ||
Arrow is a set of technologies that enable big-data systems to process and transfer data quickly. | ||
`apache-arrow` is tested on Apache's sample Arrow files and [MapD Core's](https://www.mapd.com/platform/core/) Arrow output, and powers much of [Graphistry's](https://www.graphistry.com) GPU visual analytics platform. It is in active development by Graphistry for its GPU client/cloud visual graph analytics platform. | ||
## install [apache-arrow from npm](https://www.npmjs.com/package/apache-arrow) | ||
***This project has been developed outside the Apache Software Foundation, but an effort to transfer IP and ownership to the ASF is underway.*** | ||
`npm install apache-arrow` | ||
## install | ||
(read about how we [package apache-arrow](#packaging) below) | ||
`npm install apache-arrow` | ||
# Powering Columnar In-Memory Analytics | ||
# What's Arrow? | ||
Apache Arrow is a columnar memory layout specification for encoding vectors and table-like containers of flat and nested data. The Arrow spec aligns columnar data in memory to minimize cache misses and take advantage of the latest SIMD (Single input multiple data) and GPU operations on modern processors. | ||
Apache Arrow is a columnar memory layout specification for encoding vectors and table-like containers of flat and nested data. The Arrow spec aligns columnar data in memory to maximize caches and take advantage of the latest SIMD (Single input multiple data) and GPU operations on modern processors. | ||
Apache Arrow is the emerging standard for large in-memory columnar data ([Spark](https://spark.apache.org/), [Pandas](http://wesmckinney.com/blog/pandas-and-apache-arrow/), [Drill](https://drill.apache.org/), ...). By standardizing on a common binary interchange format, big data systems can reduce the costs and friction associated with cross-system communication. | ||
Apache Arrow is the emerging standard for large in-memory columnar data ([Spark](https://spark.apache.org/), [Pandas](http://wesmckinney.com/blog/pandas-and-apache-arrow/), [Drill](https://drill.apache.org/), ...). By standardizing on a common interchange format, big data systems can reduce the costs and friction associated with cross-system communication. | ||
# Related Projects | ||
* [Apache Arrow](https://github.com/apache/arrow) -- Arrow columnar format | ||
* [GoAI](http://gpuopenanalytics.com/) -- Arrow standard extensions for GPUs | ||
* [rxjs-mapd](https://github.com/graphistry/rxjs-mapd) -- Library for querying MapD Core in node | ||
* [GoAI](http://gpuopenanalytics.com/) -- Arrow-powered GPU analytics | ||
* [rxjs-mapd](https://github.com/graphistry/rxjs-mapd) -- A MapD Core node-driver that returns query results as Arrow columns | ||
# Examples | ||
# Usage | ||
@@ -57,3 +54,3 @@ ## Get a table from an Arrow file on disk | ||
const arrow = readFileSync('simple.arrow'); | ||
const table = Table.from(arrow); | ||
const table = Table.from([arrow]); | ||
@@ -78,3 +75,3 @@ console.log(table.toString()); | ||
const table = Table.from(...[ | ||
const table = Table.from([ | ||
'latlong/schema.arrow', | ||
@@ -102,3 +99,3 @@ 'latlong/records.arrow' | ||
const table = Table.from(...[ | ||
const table = Table.from([ | ||
'latlong/schema.arrow', | ||
@@ -108,3 +105,3 @@ 'latlong/records.arrow' | ||
const column = table.getColumn('origin_lat'); | ||
const column = table.col('origin_lat'); | ||
const typed = column.slice(); | ||
@@ -119,3 +116,3 @@ | ||
## Use with MapD Core | ||
## Usage with MapD Core | ||
@@ -128,21 +125,25 @@ ```es6 | ||
const host = `localhost`; | ||
const encrypted = false; | ||
const username = `mapd`; | ||
const db = `mapd`; | ||
const user = `mapd`; | ||
const password = `HyperInteractive`; | ||
const dbName = `mapd`, timeout = 5000; | ||
MapD.open(host, port, encrypted) | ||
.connect(dbName, username, password, timeout) | ||
.flatMap((session) => | ||
session.queryDF(` | ||
SELECT origin_city | ||
FROM flights | ||
WHERE dest_city ILIKE 'dallas' | ||
LIMIT 5` | ||
).disconnect() | ||
MapD.open(host, port) | ||
.connect(db, user, password) | ||
.flatMap((session) => | ||
// queryDF returns Arrow buffers | ||
session.queryDF(` | ||
SELECT origin_city | ||
FROM flights | ||
WHERE dest_city ILIKE 'dallas' | ||
LIMIT 5` | ||
).disconnect() | ||
) | ||
.map(([schema, records]) => | ||
Table.from(schema, records)) | ||
.subscribe((table) => console.log( | ||
table.toString({ index: true }))); | ||
// Create Arrow Table from results | ||
Table.from(schema, records)) | ||
.map((table) => | ||
// Stringify the table to CSV with row numbers | ||
table.toString({ index: true })) | ||
.subscribe((csvStr) => | ||
console.log(csvStr)); | ||
/* | ||
@@ -158,38 +159,62 @@ Index, origin_city | ||
# Contribute | ||
# Getting involved | ||
See [develop.md](https://github.com/graphistry/arrow/blob/master/develop.md) | ||
See [develop.md](https://github.com/apache/arrow/blob/master/develop.md) | ||
Please create an issue if you encounter any bugs! | ||
Even if you do not plan to contribute to Apache Arrow itself or Arrow | ||
integrations in other projects, we'd be happy to have you involved: | ||
PR's welcome! Here's some ideas: | ||
* Join the mailing list: send an email to | ||
[dev-subscribe@arrow.apache.org][1]. Share your ideas and use cases for the | ||
project. | ||
* [Follow our activity on JIRA][3] | ||
* [Learn the format][2] | ||
* Contribute code to one of the reference implementations | ||
* API docs | ||
* More Tests/Benchmarks | ||
* Performance optimizations | ||
* Arrows from node-streams and async-iterators | ||
* GPU Arrows from node-opencl and node-cuda buffers | ||
* Bindings to [libgdf](https://github.com/gpuopenanalytics/libgdf) | ||
We prefer to receive contributions in the form of GitHub pull requests. Please send pull requests against the [github.com/apache/arrow][4] repository. | ||
### packaging | ||
`apache-arrow` is written in TypeScript, but the project is compiled to multiple JS versions and common module formats. The base `apache-arrow` package includes all the compilation targets for convenience, but if you're conscientious about your `node_modules` footprint, don't worry -- we got you. The targets are also published under the `@apache-arrow` namespace: | ||
If you are looking for some ideas on what to contribute, check out the [JIRA | ||
issues][3] for the Apache Arrow project. Comment on the issue and/or contact | ||
[dev@arrow.apache.org](http://mail-archives.apache.org/mod_mbox/arrow-dev/) | ||
with your questions and ideas. | ||
If you’d like to report a bug but don’t have time to fix it, you can still post | ||
it on JIRA, or email the mailing list | ||
[dev@arrow.apache.org](http://mail-archives.apache.org/mod_mbox/arrow-dev/) | ||
## Packaging | ||
`apache-arrow` is written in TypeScript, but the project is compiled to multiple JS versions and common module formats. | ||
The base `apache-arrow` package includes all the compilation targets for convenience, but if you're conscientious about your `node_modules` footprint, we got you. | ||
The targets are also published under the `@apache-arrow` namespace: | ||
```sh | ||
npm install @apache-arrow/es5-cjs # ES5 CommonJS target | ||
npm install @apache-arrow/es5-esm # ES5 ESModules target | ||
npm install @apache-arrow/es5-umd # ES5 UMD target | ||
npm install @apache-arrow/es2015-cjs # ES2015 CommonJS target | ||
npm install @apache-arrow/es2015-esm # ES2015 ESModules target | ||
npm install @apache-arrow/es2015-umd # ES2015 UMD target | ||
npm install @apache-arrow/esnext-esm # ESNext CommonJS target | ||
npm install @apache-arrow/esnext-esm # ESNext ESModules target | ||
npm install @apache-arrow/esnext-umd # ESNext UMD target | ||
npm install apache-arrow # <-- combined es5/CommonJS + UMD, es2015/ESModules + UMD, and TypeScript package | ||
npm install @apache-arrow/ts # standalone TypeScript package | ||
npm install @apache-arrow/es5-cjs # standalone es5/CommonJS package | ||
npm install @apache-arrow/es5-esm # standalone es5/ESModules package | ||
npm install @apache-arrow/es5-umd # standalone es5/UMD package | ||
npm install @apache-arrow/es2015-cjs # standalone es2015/CommonJS package | ||
npm install @apache-arrow/es2015-esm # standalone es2015/ESModules package | ||
npm install @apache-arrow/es2015-umd # standalone es2015/UMD package | ||
npm install @apache-arrow/esnext-esm # standalone esNext/CommonJS package | ||
npm install @apache-arrow/esnext-esm # standalone esNext/ESModules package | ||
npm install @apache-arrow/esnext-umd # standalone esNext/UMD package | ||
``` | ||
### why do we package like this? | ||
The JS community is a diverse group with a varied list of target environments and tool chains. Publishing multiple packages accommodates projects of all types. Friends targeting the latest JS runtimes can pull in the ESNext + ESM build. Friends needing wide browser support and small download size can use the UMD bundle, which has been run through Google's Closure Compiler with advanced optimizations. | ||
### Why we package like this | ||
If you think we missed a compilation target and it's a blocker for adoption, please open an issue. We're here for you ❤️. | ||
The JS community is a diverse group with a varied list of target environments and tool chains. Publishing multiple packages accommodates projects of all stripes. | ||
If you think we missed a compilation target and it's a blocker for adoption, please open an issue. | ||
# License | ||
[Apache 2.0](https://github.com/graphistry/arrow/blob/master/LICENSE) | ||
[Apache 2.0](https://github.com/apache/arrow/blob/master/LICENSE) | ||
[1]: mailto:dev-subscribe@arrow.apache.org | ||
[2]: https://github.com/apache/arrow/tree/master/format | ||
[3]: https://issues.apache.org/jira/browse/ARROW | ||
[4]: https://github.com/apache/arrow |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
212
399022
3
6
2
80
203
1
3
+ Addedtext-encoding-utf-8@^1.0.2
+ Addedtslib@^1.8.0
+ Addedtext-encoding-utf-8@1.0.2(transitive)