(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),s={};s[i]="z",t.exports="[object z]"===String(s)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),s=n("5c6c"),o=n("fc6a"),a=n("c04e"),c=n("5135"),u=n("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(n){}if(c(t,e))return s(!i.f.call(t,e),t[e])}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),s=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),s=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){s=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!s)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(c){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),s=n("2d00"),o=i("species");t.exports=function(t){return s>=51||!r((function(){var e=[],n=e.constructor={};return n[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),s=n("50c4"),o=n("0366"),a=n("35a1"),c=n("9bdd"),u=function(t,e){this.stopped=t,this.result=e},l=t.exports=function(t,e,n,l,h){var f,d,p,y,b,g,m,v=o(e,n,l?2:1);if(h)f=t;else{if(d=a(t),"function"!=typeof d)throw TypeError("Target is not iterable");if(i(d)){for(p=0,y=s(t.length);y>p;p++)if(b=l?v(r(m=t[p])[0],m[1]):v(t[p]),b&&b instanceof u)return b;return new u(!1)}f=d.call(t)}g=f.next;while(!(m=g.call(f)).done)if(b=c(f,v,m.value,l),"object"==typeof b&&b&&b instanceof u)return b;return new u(!1)};l.stop=function(t){return new u(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,s=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):s(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,s=n("9112"),o=n("6eeb"),a=n("ce4e"),c=n("e893"),u=n("94ca");t.exports=function(t,e){var n,l,h,f,d,p,y=t.target,b=t.global,g=t.stat;if(l=b?r:g?r[y]||a(y,{}):(r[y]||{}).prototype,l)for(h in e){if(d=e[h],t.noTargetGet?(p=i(l,h),f=p&&p.value):f=l[h],n=u(b?h:y+(g?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof d===typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&s(d,"sham",!0),o(l,h,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),s=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,s)}},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),s=n("b622"),o=n("83ab"),a=s("species");t.exports=function(t){var e=r(t),n=i.f;o&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},"2cf4":function(t,e,n){var r,i,s,o=n("da84"),a=n("d039"),c=n("c6b6"),u=n("0366"),l=n("1be4"),h=n("cc12"),f=n("1cdc"),d=o.location,p=o.setImmediate,y=o.clearImmediate,b=o.process,g=o.MessageChannel,m=o.Dispatch,v=0,_={},w="onreadystatechange",I=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},S=function(t){return function(){I(t)}},O=function(t){I(t.data)},T=function(t){o.postMessage(t+"",d.protocol+"//"+d.host)};p&&y||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return _[++v]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(v),v},y=function(t){delete _[t]},"process"==c(b)?r=function(t){b.nextTick(S(t))}:m&&m.now?r=function(t){m.now(S(t))}:g&&!f?(i=new g,s=i.port2,i.port1.onmessage=O,r=u(s.postMessage,s,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||a(T)||"file:"===d.protocol?r=w in h("script")?function(t){l.appendChild(h("script"))[w]=function(){l.removeChild(this),I(t)}}:function(t){setTimeout(S(t),0)}:(r=T,o.addEventListener("message",O,!1))),t.exports={set:p,clear:y}},"2d00":function(t,e,n){var r,i,s=n("da84"),o=n("342f"),a=s.process,c=a&&a.versions,u=c&&c.v8;u?(r=u.split("."),i=r[0]+r[1]):o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"320c":function(t,e,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function o(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function a(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(s){return!1}}t.exports=a()?Object.assign:function(t,e){for(var n,a,c=o(t),u=1;uc)i.f(t,n=r[c++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),s="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),s=n("9bf2"),o=r("unscopables"),a=Array.prototype;void 0==a[o]&&s.f(a,o,{configurable:!0,value:i(null)}),t.exports=function(t){a[o][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),s=n("b622"),o=s("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4cec":function(t,e,n){"use strict";t.exports=n("a93d")},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),s=n("23cb"),o=function(t){return function(e,n,o){var a,c=r(e),u=i(c.length),l=s(o,u);if(t&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),s=n("7418"),o=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(o(t)),n=s.f;return n?e.concat(n(t)):e}},"5c40":function(t,e,n){"use strict";n.d(e,"a",(function(){return qt})),n.d(e,"b",(function(){return et})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return ut})),n.d(e,"e",(function(){return vt})),n.d(e,"f",(function(){return Fe})),n.d(e,"g",(function(){return De})),n.d(e,"h",(function(){return mt})),n.d(e,"i",(function(){return yt})),n.d(e,"j",(function(){return vn})),n.d(e,"k",(function(){return sn})),n.d(e,"l",(function(){return ee})),n.d(e,"m",(function(){return _n})),n.d(e,"n",(function(){return Ht})),n.d(e,"o",(function(){return Vt})),n.d(e,"p",(function(){return $t})),n.d(e,"q",(function(){return Pt})),n.d(e,"r",(function(){return at})),n.d(e,"s",(function(){return K})),n.d(e,"t",(function(){return H})),n.d(e,"u",(function(){return wn})),n.d(e,"v",(function(){return In})),n.d(e,"w",(function(){return Z})),n.d(e,"x",(function(){return Zt})),n.d(e,"y",(function(){return te})),n.d(e,"z",(function(){return Kt})),n.d(e,"A",(function(){return o})),n.d(e,"B",(function(){return Ue})),n.d(e,"C",(function(){return $})),n.d(e,"D",(function(){return G}));var r=n("a1e9"),i=n("9ff4");const s=[];function o(t,...e){Object(r["f"])();const n=s.length?s[s.length-1].component:null,i=n&&n.appContext.config.warnHandler,o=a();if(i)f(i,n,11,[t+e.join(""),n&&n.proxy,o.map(({vnode:t})=>`at <${gn(n,t.type)}>`).join("\n"),o]);else{const n=["[Vue warn]: "+t,...e];o.length&&n.push("\n",...c(o)),console.warn(...n)}Object(r["j"])()}function a(){let t=s[s.length-1];if(!t)return[];const e=[];while(t){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function c(t){const e=[];return t.forEach((t,n)=>{e.push(...0===n?[]:["\n"],...u(t))}),e}function u({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=!!t.component&&null==t.component.parent,i=" at <"+gn(t.component,t.type,r),s=">"+n;return t.props?[i,...l(t.props),s]:[i+s]}function l(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(n=>{e.push(...h(n,t[n]))}),n.length>3&&e.push(" ..."),e}function h(t,e,n){return Object(i["x"])(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):"number"===typeof e||"boolean"===typeof e||null==e?n?e:[`${t}=${e}`]:Object(r["e"])(e)?(e=h(t,Object(r["m"])(e.value),!0),n?e:[t+"=Ref<",e,">"]):Object(i["n"])(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Object(r["m"])(e),n?e:[t+"=",e])}function f(t,e,n,r){let i;try{i=r?t(...r):t()}catch(s){p(s,e,n)}return i}function d(t,e,n,r){if(Object(i["n"])(t)){const s=f(t,e,n,r);return s&&Object(i["t"])(s)&&s.catch(t=>{p(t,e,n)}),s}const s=[];for(let i=0;i-1&&(b[e]=null)}function B(t){Object(i["m"])(t)?g.push(...t):S&&S.includes(t,O+1)||g.push(t),j()}function j(){_||w||(w=!0,v=m.then(L))}function D(t){if(g.length){for(S=[...new Set(g)],g.length=0,O=0;Onull==t.id?1/0:t.id;function L(t){for(w=!1,_=!0,b.sort((t,e)=>F(t)-F(e)),I=0;I1?n(a,{attrs:u,slots:c,emit:l}):n(a,null)),t=e.props?u:C(u)}let p=g;if(!1!==e.inheritAttrs&&t){const e=Object.keys(t),{shapeFlag:n}=p;e.length&&(1&n||6&n)&&(1&n&&e.some(i["q"])&&(t=N(t)),p=gt(p,t))}const m=r.scopeId,v=m&&p.scopeId!==m,_=n&&n.type.__scopeId,w=_&&_!==m?_+"-s":null;if(v||w){const t={};v&&(t[m]=""),w&&(t[w]=""),p=gt(p,t)}r.dirs&&(p.dirs=r.dirs),r.transition&&(p.transition=r.transition),g=p}catch(m){p(m,t,1),g=yt(rt)}return E=null,g}const C=t=>{let e;for(const n in t)("class"===n||"style"===n||Object(i["s"])(n))&&((e||(e={}))[n]=t[n]);return e},N=t=>{const e={};for(const n in t)Object(i["q"])(n)||(e[n]=t[n]);return e};function k(t,e,n){const{props:r,children:i}=t,{props:s,children:o,patchFlag:a}=e;if(e.dirs||e.transition)return!0;if(!(n&&a>0))return!(!i&&!o||o&&o.$stable)||r!==s&&(r?!s||V(r,s):!!s);if(1024&a)return!0;if(16&a)return r?V(r,s):!!s;if(8&a){const t=e.dynamicProps;for(let e=0;et.__isSuspense;function z(t,e){e&&!e.isResolved?Object(i["m"])(t)?e.effects.push(...t):e.effects.push(t):B(t)}function $(t,e=E){return e?function(){const n=E;M(e);const r=t.apply(null,arguments);return M(n),r}:t}let Y=null;const W=[];function H(t){W.push(Y=t)}function K(){W.pop(),Y=W[W.length-1]||null}function G(t){return e=>$((function(){H(t);const n=e.apply(this,arguments);return K(),n}))}const q=t=>t.__isTeleport;const J="components";function Z(t){return Q(J,t)||t}const X=Symbol();function Q(t,e,n=!0){const r=E||rn;if(r){const n=r.type;if(t===J){const t=n.displayName||n.name;if(t&&(t===e||t===Object(i["e"])(e)||t===Object(i["f"])(Object(i["e"])(e))))return n}const s=tt(n[t],e)||tt(r.appContext[t],e);return s}}function tt(t,e){return t&&(t[e]||t[Object(i["e"])(e)]||t[Object(i["f"])(Object(i["e"])(e))])}const et=Symbol(void 0),nt=Symbol(void 0),rt=Symbol(void 0),it=Symbol(void 0),st=[];let ot=null;function at(t=!1){st.push(ot=t?null:[])}let ct=1;function ut(t,e,n,r,s){const o=yt(t,e,n,r,s,!0);return o.dynamicChildren=ot||i["a"],st.pop(),ot=st[st.length-1]||null,ot&&ot.push(o),o}function lt(t){return!!t&&!0===t.__v_isVNode}function ht(t,e){return t.type===e.type&&t.key===e.key}const ft="__vInternal",dt=({key:t})=>null!=t?t:null,pt=({ref:t})=>null!=t?Object(i["m"])(t)?t:[E,t]:null,yt=bt;function bt(t,e=null,n=null,s=0,o=null,a=!1){if(t&&t!==X||(t=rt),lt(t)){const r=gt(t,e);return n&&It(r,n),r}if(Object(i["n"])(t)&&"__vccOpts"in t&&(t=t.__vccOpts),e){(Object(r["c"])(e)||ft in e)&&(e=Object(i["h"])({},e));let{class:t,style:n}=e;t&&!Object(i["x"])(t)&&(e.class=Object(i["C"])(t)),Object(i["r"])(n)&&(Object(r["c"])(n)&&!Object(i["m"])(n)&&(n=Object(i["h"])({},n)),e.style=Object(i["D"])(n))}const c=Object(i["x"])(t)?1:P(t)?128:q(t)?64:Object(i["r"])(t)?4:Object(i["n"])(t)?2:0;const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&dt(e),ref:e&&pt(e),scopeId:Y,children:null,component:null,suspense:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null};return It(u,n),ct>0&&!a&&ot&&32!==s&&(s>0||6&c)&&ot.push(u),u}function gt(t,e){const{props:n,patchFlag:r}=t,s=e?n?St(n,e):Object(i["h"])({},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&dt(s),ref:e&&e.ref?pt(e):t.ref,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==et?-1===r?16:16|r:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,el:t.el,anchor:t.anchor}}function mt(t=" ",e=0){return yt(nt,null,t,e)}function vt(t="",e=!1){return e?(at(),ut(rt,null,t)):yt(rt,null,t)}function _t(t){return null==t||"boolean"===typeof t?yt(rt):Object(i["m"])(t)?yt(et,null,t):"object"===typeof t?null===t.el?t:gt(t):yt(nt,null,String(t))}function wt(t){return null===t.el?t:gt(t)}function It(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if(Object(i["m"])(e))n=16;else if("object"===typeof e){if((1&r||64&r)&&e.default)return void It(t,e.default());{n=32;const r=e._;r||ft in e?3===r&&E&&(1024&E.vnode.patchFlag?(e._=2,t.patchFlag|=1024):e._=1):e._ctx=E}}else Object(i["n"])(e)?(e={default:e,_ctx:E},n=32):(e=String(e),64&r?(n=16,e=[mt(e)]):n=8);t.children=e,t.shapeFlag|=n}function St(...t){const e=Object(i["h"])({},t[0]);for(let n=1;nObject(i["h"])(n,Tt(t))))),e||r?(Object(i["m"])(e)?e.forEach(t=>n[t]=null):Object(i["h"])(n,e),t.__emits=n):t.__emits=void 0}function At(t,e){let n;return!(!Object(i["s"])(e)||!(n=Tt(t)))&&(e=e.replace(/Once$/,""),Object(i["j"])(n,e[2].toLowerCase()+e.slice(3))||Object(i["j"])(n,e.slice(2)))}function xt(t,e,n,s=!1){const o={},a={};Object(i["g"])(a,ft,1),jt(t,e,o,a),n?t.props=s?o:Object(r["k"])(o):t.type.props?t.props=o:t.props=a,t.attrs=a}function Bt(t,e,n,s){const{props:o,attrs:a,vnode:{patchFlag:c}}=t,u=Object(r["m"])(o),[l]=Ft(t.type);if(!(s||c>0)||16&c){let r;jt(t,e,o,a);for(const t in u)e&&(Object(i["j"])(e,t)||(r=Object(i["k"])(t))!==t&&Object(i["j"])(e,r))||(l?!n||void 0===n[t]&&void 0===n[r]||(o[t]=Dt(l,e||i["b"],t,void 0)):delete o[t]);if(a!==u)for(const t in a)e&&Object(i["j"])(e,t)||delete a[t]}else if(8&c){const n=t.vnode.dynamicProps;for(let t=0;t{const[e,s]=Ft(t);Object(i["h"])(n,e),s&&r.push(...s)};t.extends&&(s=!0,e(t.extends)),t.mixins&&(s=!0,t.mixins.forEach(e))}if(!e&&!s)return t.__props=i["a"];if(Object(i["m"])(e))for(let a=0;a-1,a[1]=e<0||t-1||Object(i["j"])(a,"default"))&&r.push(s)}}}}const o=[n,r];return t.__props=o,o}function Lt(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Et(t,e){return Lt(t)===Lt(e)}function Mt(t,e){if(Object(i["m"])(e)){for(let n=0,r=e.length;n{if(n.isUnmounted)return;Object(r["f"])(),on(n);const s=d(e,n,t,i);return on(null),Object(r["j"])(),s});i?s.unshift(o):s.push(o)}else 0}const Nt=t=>(e,n=rn)=>!cn&&Ct(t,e,n),kt=Nt("bm"),Vt=Nt("m"),Rt=Nt("bu"),Pt=Nt("u"),zt=Nt("bum"),$t=Nt("um"),Yt=Nt("rtg"),Wt=Nt("rtc"),Ht=(t,e=rn)=>{Ct("ec",t,e)};function Kt(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vt(()=>{t.isMounted=!0}),zt(()=>{t.isUnmounting=!0}),t}const Gt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Function,onEnter:Function,onAfterEnter:Function,onEnterCancelled:Function,onBeforeLeave:Function,onLeave:Function,onAfterLeave:Function,onLeaveCancelled:Function,onBeforeAppear:Function,onAppear:Function,onAfterAppear:Function,onAppearCancelled:Function},setup(t,{slots:e}){const n=sn(),i=Kt();let s;return()=>{const o=e.default&&ee(e.default(),!0);if(!o||!o.length)return;const a=Object(r["m"])(t),{mode:c}=a;const u=o[0];if(i.isLeaving)return Xt(u);const l=Qt(u);if(!l)return Xt(u);const h=l.transition=Zt(l,a,i,n),f=n.subTree,d=f&&Qt(f);let p=!1;const{getTransitionKey:y}=l.type;if(y){const t=y();void 0===s?s=t:t!==s&&(s=t,p=!0)}if(d&&d.type!==rt&&(!ht(l,d)||p)){const t=Zt(d,a,i,n);if(te(d,t),"out-in"===c)return i.isLeaving=!0,t.afterLeave=()=>{i.isLeaving=!1,n.update()},Xt(u);"in-out"===c&&(t.delayLeave=(t,e,n)=>{const r=Jt(i,d);r[String(d.key)]=d,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=n})}return u}}},qt=Gt;function Jt(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Zt(t,{appear:e,persisted:n=!1,onBeforeEnter:r,onEnter:i,onAfterEnter:s,onEnterCancelled:o,onBeforeLeave:a,onLeave:c,onAfterLeave:u,onLeaveCancelled:l,onBeforeAppear:h,onAppear:f,onAfterAppear:p,onAppearCancelled:y},b,g){const m=String(t.key),v=Jt(b,t),_=(t,e)=>{t&&d(t,g,9,e)},w={persisted:n,beforeEnter(n){let i=r;if(!b.isMounted){if(!e)return;i=h||r}n._leaveCb&&n._leaveCb(!0);const s=v[m];s&&ht(t,s)&&s.el._leaveCb&&s.el._leaveCb(),_(i,[n])},enter(t){let n=i,r=s,a=o;if(!b.isMounted){if(!e)return;n=f||i,r=p||s,a=y||o}let c=!1;const u=t._enterCb=e=>{c||(c=!0,_(e?a:r,[t]),w.delayedLeave&&w.delayedLeave(),t._enterCb=void 0)};n?(n(t,u),n.length<=1&&u()):u()},leave(e,n){const r=String(t.key);if(e._enterCb&&e._enterCb(!0),b.isUnmounting)return n();_(a,[e]);let i=!1;const s=e._leaveCb=s=>{i||(i=!0,n(),_(s?l:u,[e]),e._leaveCb=void 0,v[r]===t&&delete v[r])};v[r]=t,c?(c(e,s),c.length<=1&&s()):s()}};return w}function Xt(t){if(ne(t))return t=gt(t),t.children=null,t}function Qt(t){return ne(t)?t.children?t.children[0]:void 0:t}function te(t,e){6&t.shapeFlag&&t.component?te(t.component.subTree,e):t.transition=e}function ee(t,e=!1){let n=[],r=0;for(let i=0;i1)for(let i=0;it.type.__isKeepAlive;RegExp,RegExp;function re(t){return t.displayName||t.name}function ie(t,e){return Object(i["m"])(t)?t.some(t=>ie(t,e)):Object(i["x"])(t)?t.split(",").indexOf(e)>-1:!!t.test&&t.test(e)}function se(t,e){ae(t,"a",e)}function oe(t,e){ae(t,"da",e)}function ae(t,e,n=rn){const r=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}t()});if(Ct(e,r,n),n){let t=n.parent;while(t&&t.parent)ne(t.parent.vnode)&&ce(r,e,n,t),t=t.parent}}function ce(t,e,n,r){Ct(e,t,r,!0),$t(()=>{Object(i["E"])(r[e],t)},n)}function ue(t){let e=t.shapeFlag;256&e&&(e-=256),512&e&&(e-=512),t.shapeFlag=e}const le=t=>"_"===t[0]||"$stable"===t,he=t=>Object(i["m"])(t)?t.map(_t):[_t(t)],fe=(t,e,n)=>$(t=>he(e(t)),n),de=(t,e)=>{const n=t._ctx;for(const r in t){if(le(r))continue;const s=t[r];if(Object(i["n"])(s))e[r]=fe(r,s,n);else if(null!=s){0;const t=he(s);e[r]=()=>t}}},pe=(t,e)=>{const n=he(e);t.slots.default=()=>n},ye=(t,e)=>{if(32&t.vnode.shapeFlag){const n=e._;n?(t.slots=e,Object(i["g"])(e,"_",n)):de(e,t.slots={})}else t.slots={},e&&pe(t,e);Object(i["g"])(t.slots,ft,1)},be=(t,e)=>{const{vnode:n,slots:r}=t;let s=!0,o=i["b"];if(32&n.shapeFlag){const t=e._;t?1===t?s=!1:Object(i["h"])(r,e):(s=!e.$stable,de(e,r)),o=e}else e&&(pe(t,e),o={default:1});if(s)for(const i in r)le(i)||i in o||delete r[i]};function ge(t,e,n,r){const i=t.dirs,s=e&&e.dirs;for(let o=0;o/svg/.test(t.namespaceURI)&&"foreignObject"!==t.tagName,Oe=t=>8===t.nodeType;function Te(t){const{mt:e,p:n,o:{patchProp:r,nextSibling:s,parentNode:o,remove:a,insert:c,createComment:u}}=t,l=(t,e)=>{Ie=!1,h(e.firstChild,t,null,null),D(),Ie&&console.error("Hydration completed but contains mismatches.")},h=(n,r,i,a,c=!1)=>{const u=Oe(n)&&"["===n.data,l=()=>y(n,r,i,a,u),{type:g,ref:m,shapeFlag:v}=r,_=n.nodeType;r.el=n;let w=null;switch(g){case nt:3!==_?w=l():(n.data!==r.children&&(Ie=!0,n.data=r.children),w=s(n));break;case rt:w=8!==_||u?l():s(n);break;case it:if(1===_){w=n;const t=!r.children.length;for(let e=0;e{e(r,t,null,i,a,Se(t),c)},h=r.type.__asyncLoader;h?h().then(l):l(),w=u?b(n):s(n)}else 64&v?w=8!==_?l():r.type.hydrate(n,r,i,a,c,t,d):128&v&&(w=r.type.hydrate(n,r,i,a,Se(o(n)),c,t,h))}return null!=m&&i&&je(m,null,i,a,r),w},f=(t,e,n,s,o)=>{o=o||!!e.dynamicChildren;const{props:c,patchFlag:u,shapeFlag:l,dirs:h}=e;if(-1!==u){if(c)if(!o||16&u||32&u)for(const e in c)!Object(i["u"])(e)&&Object(i["s"])(e)&&r(t,e,null,c[e]);else c.onClick&&r(t,"onClick",null,c.onClick);let f;if((f=c&&c.onVnodeBeforeMount)&&Ee(f,n,e),h&&ge(e,null,n,"beforeMount"),((f=c&&c.onVnodeMounted)||h)&&z(()=>{f&&Ee(f,n,e),h&&ge(e,null,n,"mounted")},s),16&l&&(!c||!c.innerHTML&&!c.textContent)){let r=d(t.firstChild,e,t,n,s,o);while(r){Ie=!0;const t=r;r=r.nextSibling,a(t)}}else 8&l&&t.textContent!==e.children&&(Ie=!0,t.textContent=e.children)}return t.nextSibling},d=(t,e,r,i,s,o)=>{o=o||!!e.dynamicChildren;const a=e.children,c=a.length;for(let u=0;u{const a=o(t),l=d(s(t),e,a,n,r,i);return l&&Oe(l)&&"]"===l.data?s(e.anchor=l):(Ie=!0,c(e.anchor=u("]"),a,l),l)},y=(t,e,r,i,c)=>{if(Ie=!0,e.el=null,c){const e=b(t);while(1){const n=s(t);if(!n||n===e)break;a(n)}}const u=s(t),l=o(t);return a(t),n(null,e,l,u,r,i,Se(l)),u},b=t=>{let e=0;while(t)if(t=s(t),t&&Oe(t)&&("["===t.data&&e++,"]"===t.data)){if(0===e)return s(t);e--}return t};return[l,h]}function Ae(){}const xe={scheduler:A};const Be=z,je=(t,e,n,s,o)=>{let a;a=o?4&o.shapeFlag?o.component.proxy:o.el:null;const[c,u]=t;const l=e&&e[1],h=c.refs===i["b"]?c.refs={}:c.refs,d=c.setupState;null!=l&&l!==u&&(Object(i["x"])(l)?(h[l]=null,Object(i["j"])(d,l)&&Be(()=>{d[l]=null},s)):Object(r["e"])(l)&&(l.value=null)),Object(i["x"])(u)?(h[u]=a,Object(i["j"])(d,u)&&Be(()=>{d[u]=a},s)):Object(r["e"])(u)?u.value=a:Object(i["n"])(u)&&f(u,n,12,[a,h])};function De(t){return Le(t)}function Fe(t){return Le(t,Te)}function Le(t,e){Ae();const{insert:n,remove:s,patchProp:o,forcePatchProp:a,createElement:c,createText:u,createComment:l,setText:h,setElementText:f,parentNode:d,nextSibling:p,setScopeId:y=i["d"],cloneNode:b,insertStaticContent:g}=t,m=(t,e,n,r=null,i=null,s=null,o=!1,a=!1)=>{t&&!ht(t,e)&&(r=G(t),$(t,i,s,!0),t=null),-2===e.patchFlag&&(a=!1,e.dynamicChildren=null);const{type:c,ref:u,shapeFlag:l}=e;switch(c){case nt:v(t,e,n,r);break;case rt:_(t,e,n,r);break;case it:null==t&&w(e,n,r,o);break;case et:j(t,e,n,r,i,s,o,a);break;default:1&l?I(t,e,n,r,i,s,o,a):6&l?F(t,e,n,r,i,s,o,a):(64&l||128&l)&&c.process(t,e,n,r,i,s,o,a,J)}null!=u&&i&&je(u,t&&t.ref,i,s,e)},v=(t,e,r,i)=>{if(null==t)n(e.el=u(e.children),r,i);else{const n=e.el=t.el;e.children!==t.children&&h(n,e.children)}},_=(t,e,r,i)=>{null==t?n(e.el=l(e.children||""),r,i):e.el=t.el},w=(t,e,n,r)=>{[t.el,t.anchor]=g(t.children,e,n,r)},I=(t,e,n,r,i,s,o,a)=>{o=o||"svg"===e.type,null==t?S(e,n,r,i,s,o,a):T(t,e,i,s,o,a)},S=(t,e,r,s,a,u,l)=>{let h,d;const{type:p,props:g,shapeFlag:m,transition:v,scopeId:_,patchFlag:w,dirs:I}=t;if(t.el&&void 0!==b&&-1===w)h=t.el=b(t.el);else{if(h=t.el=c(t.type,u,g&&g.is),8&m?f(h,t.children):16&m&&O(t.children,h,null,s,a,u&&"foreignObject"!==p,l||!!t.dynamicChildren),g){for(const e in g)Object(i["u"])(e)||o(h,e,null,g[e],u,t.children,s,a,K);(d=g.onVnodeBeforeMount)&&Ee(d,s,t)}I&&ge(t,null,s,"beforeMount"),_&&y(h,_);const e=s&&s.type.__scopeId;e&&e!==_&&y(h,e+"-s"),v&&!v.persisted&&v.beforeEnter(h)}n(h,e,r);const S=(!a||a&&a.isResolved)&&v&&!v.persisted;((d=g&&g.onVnodeMounted)||S||I)&&Be(()=>{d&&Ee(d,s,t),S&&v.enter(h),I&&ge(t,null,s,"mounted")},a)},O=(t,e,n,r,i,s,o,a=0)=>{for(let c=a;c{const u=e.el=t.el;let{patchFlag:l,dynamicChildren:h,dirs:d}=e;l|=16&t.patchFlag;const p=t.props||i["b"],y=e.props||i["b"];let b;if((b=y.onVnodeBeforeUpdate)&&Ee(b,n,e,t),d&&ge(e,t,n,"beforeUpdate"),l>0){if(16&l)B(u,e,p,y,n,r,s);else if(2&l&&p.class!==y.class&&o(u,"class",null,y.class,s),4&l&&o(u,"style",p.style,y.style,s),8&l){const i=e.dynamicProps;for(let e=0;e{b&&Ee(b,n,e,t),d&&ge(e,t,n,"updated")},r)},A=(t,e,n,r,i,s)=>{for(let o=0;o{if(n!==r){for(const l in r){if(Object(i["u"])(l))continue;const h=r[l],f=n[l];(h!==f||a&&a(t,l))&&o(t,l,f,h,u,e.children,s,c,K)}if(n!==i["b"])for(const a in n)Object(i["u"])(a)||a in r||o(t,a,n[a],null,u,e.children,s,c,K)}},j=(t,e,r,i,s,o,a,c)=>{const l=e.el=t?t.el:u(""),h=e.anchor=t?t.anchor:u("");let{patchFlag:f,dynamicChildren:d}=e;f>0&&(c=!0),null==t?(n(l,r,i),n(h,r,i),O(e.children,r,h,s,o,a,c)):f>0&&64&f&&d?A(t.dynamicChildren,d,r,s,o,a):N(t,e,r,h,s,o,a,c)},F=(t,e,n,r,i,s,o,a)=>{null==t?512&e.shapeFlag?i.ctx.activate(e,n,r,o,a):L(e,n,r,i,s,o,a):E(t,e,a)},L=(t,e,n,r,i,s,o)=>{const a=t.component=nn(t,r,i);if(ne(t)&&(a.ctx.renderer=J),un(a),a.asyncDep){if(!i)return void 0;if(i.registerDep(a,M),!t.el){const t=a.subTree=yt(rt);_(null,t,e,n)}}else M(a,t,e,n,i,s,o)},E=(t,e,n)=>{const r=e.component=t.component;if(k(t,e,n)){if(r.asyncDep&&!r.asyncResolved)return void C(r,e,n);r.next=e,x(r.update),r.update()}else e.component=t.component,e.el=t.el,r.vnode=e},M=(t,e,n,s,o,a,c)=>{t.update=Object(r["b"])((function(){if(t.isMounted){let e,{next:n,bu:r,u:s,parent:u,vnode:l}=t,h=n;0,n?C(t,n,c):n=l;const f=U(t);0;const p=t.subTree;t.subTree=f,n.el=l.el,r&&Object(i["l"])(r),(e=n.props&&n.props.onVnodeBeforeUpdate)&&Ee(e,u,n,l),t.refs!==i["b"]&&(t.refs={}),m(p,f,d(p.el),G(p),t,o,a),n.el=f.el,null===h&&R(t,f.el),s&&Be(s,o),(e=n.props&&n.props.onVnodeUpdated)&&Be(()=>{Ee(e,u,n,l)},o)}else{let r;const{el:c,props:u}=e,{bm:l,m:h,a:f,parent:d}=t;0;const p=t.subTree=U(t);0,l&&Object(i["l"])(l),(r=u&&u.onVnodeBeforeMount)&&Ee(r,d,e),c&&X?X(e.el,p,t,o):(m(null,p,n,s,t,o,a),e.el=p.el),h&&Be(h,o),(r=u&&u.onVnodeMounted)&&Be(()=>{Ee(r,d,e)},o),f&&256&e.shapeFlag&&Be(f,o),t.isMounted=!0}}),xe)},C=(t,e,n)=>{e.component=t;const r=t.vnode.props;t.vnode=e,t.next=null,Bt(t,e.props,r,n),be(t,e.children)},N=(t,e,n,r,i,s,o,a=!1)=>{const c=t&&t.children,u=t?t.shapeFlag:0,l=e.children,{patchFlag:h,shapeFlag:d}=e;if(h>0){if(128&h)return void P(c,l,n,r,i,s,o,a);if(256&h)return void V(c,l,n,r,i,s,o,a)}8&d?(16&u&&K(c,i,s),l!==c&&f(n,l)):16&u?16&d?P(c,l,n,r,i,s,o,a):K(c,i,s,!0):(8&u&&f(n,""),16&d&&O(l,n,r,i,s,o,a))},V=(t,e,n,r,s,o,a,c)=>{t=t||i["a"],e=e||i["a"];const u=t.length,l=e.length,h=Math.min(u,l);let f;for(f=0;fl?K(t,s,o,!0,h):O(e,n,r,s,o,a,c,h)},P=(t,e,n,r,s,o,a,c)=>{let u=0;const l=e.length;let h=t.length-1,f=l-1;while(u<=h&&u<=f){const r=t[u],i=e[u]=c?wt(e[u]):_t(e[u]);if(!ht(r,i))break;m(r,i,n,null,s,o,a,c),u++}while(u<=h&&u<=f){const r=t[h],i=e[f]=c?wt(e[f]):_t(e[f]);if(!ht(r,i))break;m(r,i,n,null,s,o,a,c),h--,f--}if(u>h){if(u<=f){const t=f+1,i=tf)while(u<=h)$(t[u],s,o,!0),u++;else{const d=u,p=u,y=new Map;for(u=p;u<=f;u++){const t=e[u]=c?wt(e[u]):_t(e[u]);null!=t.key&&y.set(t.key,u)}let b,g=0;const v=f-p+1;let _=!1,w=0;const I=new Array(v);for(u=0;u=v){$(r,s,o,!0);continue}let i;if(null!=r.key)i=y.get(r.key);else for(b=p;b<=f;b++)if(0===I[b-p]&&ht(r,e[b])){i=b;break}void 0===i?$(r,s,o,!0):(I[i-p]=u+1,i>=w?w=i:_=!0,m(r,e[i],n,null,s,o,a,c),g++)}const S=_?Me(I):i["a"];for(b=S.length-1,u=v-1;u>=0;u--){const t=p+u,i=e[t],c=t+1{const{el:o,type:a,transition:c,children:u,shapeFlag:l}=t;if(6&l)return void z(t.component.subTree,e,r,i);if(128&l)return void t.suspense.move(e,r,i);if(64&l)return void a.move(t,e,r,J);if(a===et){n(o,e,r);for(let t=0;tc.enter(o),s);else{const{leave:t,delayLeave:i,afterLeave:s}=c,a=()=>n(o,e,r),u=()=>{t(o,()=>{a(),s&&s()})};i?i(o,a,u):u()}else n(o,e,r)},$=(t,e,n,r=!1)=>{const{type:i,props:s,ref:o,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:l,dirs:h}=t;if(null!=o&&e&&je(o,null,e,n,null),256&u)return void e.ctx.deactivate(t);const f=1&u&&h;let d;if((d=s&&s.onVnodeBeforeUnmount)&&Ee(d,e,t),6&u)H(t.component,n,r);else{if(128&u)return void t.suspense.unmount(n,r);f&&ge(t,null,e,"beforeUnmount"),c&&(i!==et||l>0&&64&l)?K(c,e,n):16&u&&K(a,e,n),64&u&&t.type.remove(t,J),r&&Y(t)}((d=s&&s.onVnodeUnmounted)||f)&&Be(()=>{d&&Ee(d,e,t),f&&ge(t,null,e,"unmounted")},n)},Y=t=>{const{type:e,el:n,anchor:r,transition:i}=t;if(e===et)return void W(n,r);const o=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&t.shapeFlag&&i&&!i.persisted){const{leave:e,delayLeave:r}=i,s=()=>e(n,o);r?r(t.el,o,s):s()}else o()},W=(t,e)=>{let n;while(t!==e)n=p(t),s(t),t=n;s(e)},H=(t,e,n)=>{const{bum:s,effects:o,update:a,subTree:c,um:u,da:l,isDeactivated:h}=t;if(s&&Object(i["l"])(s),o)for(let i=0;i{t.isUnmounted=!0},e),!e||e.isResolved||e.isUnmounted||!t.asyncDep||t.asyncResolved||(e.deps--,0===e.deps&&e.resolve())},K=(t,e,n,r=!1,i=0)=>{for(let s=i;s6&t.shapeFlag?G(t.component.subTree):128&t.shapeFlag?t.suspense.next():p(t.anchor||t.el),q=(t,e)=>{null==t?e._vnode&&$(e._vnode,null,null,!0):m(e._vnode||null,t,e),D(),e._vnode=t},J={p:m,um:$,m:z,r:Y,mt:L,mc:O,pc:N,pbc:A,n:G,o:t};let Z,X;return e&&([Z,X]=e(J)),{render:q,hydrate:Z,createApp:we(q,Z)}}function Ee(t,e,n,r=null){d(t,e,7,[n,r])}function Me(t){const e=t.slice(),n=[0];let r,i,s,o,a;const c=t.length;for(r=0;r0&&(e[r]=n[s-1]),n[s]=r)}}s=n.length,o=n[s-1];while(s-- >0)n[s]=o,o=e[o];return n}function Ue(t,e){return ke(t,null,e)}const Ce={};function Ne(t,e,n){return ke(t,e,n)}function ke(t,e,{immediate:n,deep:s,flush:o,onTrack:a,onTrigger:c}=i["b"],u=rn){let l,h;if(Object(r["e"])(t)?l=()=>t.value:Object(r["d"])(t)?(l=()=>t,s=!0):l=Object(i["m"])(t)?()=>t.map(t=>Object(r["e"])(t)?t.value:Object(r["d"])(t)?Re(t):Object(i["n"])(t)?f(t,u,2):void 0):Object(i["n"])(t)?e?()=>f(t,u,2):()=>{if(!u||!u.isUnmounted)return h&&h(),f(t,u,3,[p])}:i["d"],e&&s){const t=l;l=()=>Re(t())}const p=t=>{h=m.options.onStop=()=>{f(t,u,4)}};let y=Object(i["m"])(t)?[]:Ce;const b=()=>{if(m.active)if(e){const t=m();(s||Object(i["i"])(t,y))&&(h&&h(),d(e,u,3,[t,y===Ce?void 0:y,p]),y=t)}else m()};let g;"sync"===o?g=b:"pre"===o?(b.id=-1,g=()=>{!u||u.isMounted?A(b):b()}):g=()=>Be(b,u&&u.suspense);const m=Object(r["b"])(l,{lazy:!0,onTrack:a,onTrigger:c,scheduler:g});return pn(m),e?n?b():y=m():m(),()=>{Object(r["l"])(m),u&&Object(i["E"])(u.effects,m)}}function Ve(t,e,n){const r=this.proxy,s=Object(i["x"])(t)?()=>r[t]:t.bind(r);return ke(s,e.bind(r),n,this)}function Re(t,e=new Set){if(!Object(i["r"])(t)||e.has(t))return t;if(e.add(t),Object(i["m"])(t))for(let n=0;n{Re(t.get(r),e)});else if(t instanceof Set)t.forEach(t=>{Re(t,e)});else for(const n in t)Re(t[n],e);return t}function Pe(t,e){if(rn){let n=rn.provides;const r=rn.parent&&rn.parent.provides;r===n&&(n=rn.provides=Object.create(r)),n[t]=e}else 0}function ze(t,e){const n=rn||E;if(n){const r=n.provides;if(t in r)return r[t];if(arguments.length>1)return e}else 0}function $e(t,e,n=[],r=[],s=!1){const{mixins:o,extends:a,data:c,computed:u,methods:l,watch:h,provide:f,inject:d,beforeMount:p,mounted:y,beforeUpdate:b,updated:g,activated:m,deactivated:v,beforeUnmount:_,unmounted:w,render:I,renderTracked:S,renderTriggered:O,errorCaptured:T}=e,A=t.proxy,x=t.ctx,B=t.appContext.mixins;s&&I&&t.render===i["d"]&&(t.render=I),s||(Ye("beforeCreate",e,A,B),He(t,B,n,r)),a&&$e(t,a,n,r,!0),o&&He(t,o,n,r);if(d)if(Object(i["m"])(d))for(let i=0;iKe(t,e,A)),u)for(const j in u){const t=u[j],e=Object(i["n"])(t)?t.bind(A,A):Object(i["n"])(t.get)?t.get.bind(A,A):i["d"];0;const n=!Object(i["n"])(t)&&Object(i["n"])(t.set)?t.set.bind(A):i["d"],r=mn({get:e,set:n});Object.defineProperty(x,j,{enumerable:!0,configurable:!0,get:()=>r.value,set:t=>r.value=t})}if(h&&r.push(h),!s&&r.length&&r.forEach(t=>{for(const e in t)Ge(t[e],x,A,e)}),f){const t=Object(i["n"])(f)?f.call(A):f;for(const e in t)Pe(e,t[e])}s||Ye("created",e,A,B),p&&kt(p.bind(A)),y&&Vt(y.bind(A)),b&&Rt(b.bind(A)),g&&Pt(g.bind(A)),m&&se(m.bind(A)),v&&oe(v.bind(A)),T&&Ht(T.bind(A)),S&&Wt(S.bind(A)),O&&Yt(O.bind(A)),_&&zt(_.bind(A)),w&&$t(w.bind(A))}function Ye(t,e,n,r){We(t,r,n);const i=e.extends&&e.extends[t];i&&i.call(n);const s=e.mixins;s&&We(t,s,n);const o=e[t];o&&o.call(n)}function We(t,e,n){for(let r=0;rn[r];if(Object(i["x"])(t)){const n=e[t];Object(i["n"])(n)&&Ne(s,n)}else Object(i["n"])(t)?Ne(s,t.bind(n)):Object(i["r"])(t)&&(Object(i["m"])(t)?t.forEach(t=>Ge(t,e,n,r)):Ne(s,t.handler.bind(n),t))}function qe(t){const e=t.type,{__merged:n,mixins:r,extends:i}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!r&&!i)return e;const o={};return s.forEach(e=>Je(o,e,t)),i&&Je(o,i,t),r&&r.forEach(e=>Je(o,e,t)),Je(o,e,t),e.__merged=o}function Je(t,e,n){const r=n.appContext.config.optionMergeStrategies;for(const s in e)r&&Object(i["j"])(r,s)?t[s]=r[s](t[s],e[s],n.proxy,s):Object(i["j"])(t,s)||(t[s]=e[s])}const Ze=Object(i["h"])(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>t.parent&&t.parent.proxy,$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>qe(t),$forceUpdate:t=>()=>A(t.update),$nextTick:()=>T,$watch:t=>Ve.bind(t)}),Xe={get({_:t},e){const{ctx:n,setupState:s,data:o,props:a,accessCache:c,type:u,appContext:l}=t;if("__v_skip"===e)return!0;let h;if("$"!==e[0]){const t=c[e];if(void 0!==t)switch(t){case 0:return s[e];case 1:return o[e];case 3:return n[e];case 2:return a[e]}else{if(s!==i["b"]&&Object(i["j"])(s,e))return c[e]=0,s[e];if(o!==i["b"]&&Object(i["j"])(o,e))return c[e]=1,o[e];if((h=Ft(u)[0])&&Object(i["j"])(h,e))return c[e]=2,a[e];if(n!==i["b"]&&Object(i["j"])(n,e))return c[e]=3,n[e];c[e]=4}}const f=Ze[e];let d,p;return f?("$attrs"===e&&Object(r["n"])(t,"get",e),f(t)):(d=u.__cssModules)&&(d=d[e])?d:n!==i["b"]&&Object(i["j"])(n,e)?(c[e]=3,n[e]):(p=l.config.globalProperties,Object(i["j"])(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:r,setupState:s,ctx:o}=t;if(s!==i["b"]&&Object(i["j"])(s,e))s[e]=n;else if(r!==i["b"]&&Object(i["j"])(r,e))r[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,type:s,appContext:o}},a){let c;return void 0!==n[a]||t!==i["b"]&&Object(i["j"])(t,a)||e!==i["b"]&&Object(i["j"])(e,a)||(c=Ft(s)[0])&&Object(i["j"])(c,a)||Object(i["j"])(r,a)||Object(i["j"])(Ze,a)||Object(i["j"])(o.config.globalProperties,a)}};const Qe=Object(i["h"])({},Xe,{get(t,e){if(e!==Symbol.unscopables)return Xe.get(t,e,t)},has(t,e){const n="_"!==e[0]&&!Object(i["o"])(e);return n}});const tn=_e();let en=0;function nn(t,e,n){const r=t.type,s=(e?e.appContext:t.appContext)||tn,o={uid:en++,vnode:t,type:r,parent:e,appContext:s,root:null,next:null,subTree:null,update:null,render:null,proxy:null,withProxy:null,effects:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],ctx:i["b"],data:i["b"],props:i["b"],attrs:i["b"],slots:i["b"],refs:i["b"],setupState:i["b"],setupContext:null,suspense:n,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,emit:null,emitted:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=Ot.bind(null,o),o}let rn=null;const sn=()=>rn||E,on=t=>{rn=t};let an,cn=!1;function un(t,e=!1){cn=e;const{props:n,children:r,shapeFlag:i}=t.vnode,s=4&i;xt(t,n,s,e),ye(t,r);const o=s?ln(t,e):void 0;return cn=!1,o}function ln(t,e){const n=t.type;t.accessCache={},t.proxy=new Proxy(t.ctx,Xe);const{setup:s}=n;if(s){const n=t.setupContext=s.length>1?dn(t):null;rn=t,Object(r["f"])();const o=f(s,t,0,[t.props,n]);if(Object(r["j"])(),rn=null,Object(i["t"])(o)){if(e)return o.then(e=>{hn(t,e)});t.asyncDep=o}else hn(t,o)}else fn(t)}function hn(t,e,n){Object(i["n"])(e)?t.render=e:Object(i["r"])(e)&&(t.setupState=Object(r["g"])(e)),fn(t)}function fn(t,e){const n=t.type;t.render||(an&&n.template&&!n.render&&(n.render=an(n.template,{isCustomElement:t.appContext.config.isCustomElement,delimiters:n.delimiters})),t.render=n.render||i["d"],t.render._rc&&(t.withProxy=new Proxy(t.ctx,Qe))),rn=t,$e(t,n),rn=null}function dn(t){return{attrs:t.attrs,slots:t.slots,emit:t.emit}}function pn(t){rn&&(rn.effects||(rn.effects=[])).push(t)}const yn=/(?:^|[-_])(\w)/g,bn=t=>t.replace(yn,t=>t.toUpperCase()).replace(/[-_]/g,"");function gn(t,e,n=!1){let r=Object(i["n"])(e)&&e.displayName||e.name;if(!r&&e.__file){const t=e.__file.match(/([^/\\]+)\.vue$/);t&&(r=t[1])}if(!r&&t&&t.parent){const n=t=>{for(const n in t)if(t[n]===e)return n};r=n(t.parent.type.components)||n(t.appContext.components)}return r?bn(r):n?"App":"Anonymous"}function mn(t){const e=Object(r["a"])(t);return pn(e.effect),e}function vn(t){return Object(i["n"])(t)?{setup:t,name:t.name}:t}function _n(t,e,n){return 2===arguments.length?Object(i["r"])(e)&&!Object(i["m"])(e)?lt(e)?yt(t,null,[e]):yt(t,e):yt(t,null,e):(lt(n)&&(n=[n]),yt(t,e,n))}Symbol("");function wn(t,e){let n;if(Object(i["m"])(t)||Object(i["x"])(t)){n=new Array(t.length);for(let r=0,i=t.length;rl){var d,p=u(arguments[l++]),y=h?s(p).concat(h(p)):s(p),b=y.length,g=0;while(b>g)d=y[g++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:l},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),s=n("b622"),o=s("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[o],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var r,i,s,o=n("7f9a"),a=n("da84"),c=n("861d"),u=n("9112"),l=n("5135"),h=n("f772"),f=n("d012"),d=a.WeakMap,p=function(t){return s(t)?i(t):r(t,{})},y=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(o){var b=new d,g=b.get,m=b.has,v=b.set;r=function(t,e){return v.call(b,t,e),e},i=function(t){return g.call(b,t)||{}},s=function(t){return m.call(b,t)}}else{var _=h("state");f[_]=!0,r=function(t,e){return u(t,_,e),e},i=function(t){return l(t,_)?t[_]:{}},s=function(t){return l(t,_)}}t.exports={set:r,get:i,has:s,enforce:p,getterFor:y}},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),s=n("5135"),o=n("ce4e"),a=n("8925"),c=n("69f3"),u=c.get,l=c.enforce,h=String(String).split("String");(t.exports=function(t,e,n,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof e||s(n,"name")||i(n,"name",e),l(n).source=h.join("string"==typeof e?e:"")),t!==r?(c?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)):u?t[e]=n:o(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||a(this)}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),s=n("37e8"),o=n("7839"),a=n("d012"),c=n("1be4"),u=n("cc12"),l=n("f772"),h=">",f="<",d="prototype",p="script",y=l("IE_PROTO"),b=function(){},g=function(t){return f+p+h+t+f+"/"+p+h},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){var t,e=u("iframe"),n="java"+p+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}_=r?m(r):v();var t=o.length;while(t--)delete _[d][o[t]];return _()};a[y]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(b[d]=i(t),n=new b,b[d]=null,n[y]=t):n=_(),void 0===e?n:s(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),s=n("e163"),o=n("d2bb"),a=n("d44e"),c=n("9112"),u=n("6eeb"),l=n("b622"),h=n("c430"),f=n("3f8c"),d=n("ae93"),p=d.IteratorPrototype,y=d.BUGGY_SAFARI_ITERATORS,b=l("iterator"),g="keys",m="values",v="entries",_=function(){return this};t.exports=function(t,e,n,l,d,w,I){i(n,e,l);var S,O,T,A=function(t){if(t===d&&F)return F;if(!y&&t in j)return j[t];switch(t){case g:return function(){return new n(this,t)};case m:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this)}},x=e+" Iterator",B=!1,j=t.prototype,D=j[b]||j["@@iterator"]||d&&j[d],F=!y&&D||A(d),L="Array"==e&&j.entries||D;if(L&&(S=s(L.call(new t)),p!==Object.prototype&&S.next&&(h||s(S)===p||(o?o(S,p):"function"!=typeof S[b]&&c(S,b,_)),a(S,x,!0,!0),h&&(f[x]=_))),d==m&&D&&D.name!==m&&(B=!0,F=function(){return D.call(this)}),h&&!I||j[b]===F||c(j,b,F),f[e]=F,d)if(O={values:A(m),keys:w?F:A(g),entries:A(v)},I)for(T in O)(y||B||!(T in j))&&u(j,T,O[T]);else r({target:e,proto:!0,forced:y||B},O);return O}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),s=r.WeakMap;t.exports="function"===typeof s&&/native code/.test(i(s))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"830f":function(t,e,n){"use strict";n.d(e,"a",(function(){return Q}));var r=n("9ff4"),i=n("5c40");n("a1e9");const s="http://www.w3.org/2000/svg",o="undefined"!==typeof document?document:null;let a,c;const u={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n)=>e?o.createElementNS(s,t):o.createElement(t,n?{is:n}:void 0),createText:t=>o.createTextNode(t),createComment:t=>o.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>o.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){return t.cloneNode(!0)},insertStaticContent(t,e,n,r){const i=r?c||(c=o.createElementNS(s,"svg")):a||(a=o.createElement("div"));i.innerHTML=t;const l=i.firstChild;let h=l,f=h;while(h)f=h,u.insert(h,e,n),h=i.firstChild;return[l,f]}};function l(t,e,n){if(null==e&&(e=""),n)t.setAttribute("class",e);else{const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),t.className=e}}function h(t,e,n){const i=t.style;if(n)if(Object(r["x"])(n))e!==n&&(i.cssText=n);else{for(const t in n)d(i,t,n[t]);if(e&&!Object(r["x"])(e))for(const t in e)null==n[t]&&d(i,t,"")}else t.removeAttribute("style")}const f=/\s*!important$/;function d(t,e,n){if(e.startsWith("--"))t.setProperty(e,n);else{const i=b(t,e);f.test(n)?t.setProperty(Object(r["k"])(i),n.replace(f,""),"important"):t[i]=n}}const p=["Webkit","Moz","ms"],y={};function b(t,e){const n=y[e];if(n)return n;let i=Object(r["e"])(e);if("filter"!==i&&i in t)return y[e]=i;i=Object(r["f"])(i);for(let r=0;rdocument.createEvent("Event").timeStamp&&(_=()=>performance.now());let w=0;const I=Promise.resolve(),S=()=>{w=0},O=()=>w||(I.then(S),w=_());function T(t,e,n,r){t.addEventListener(e,n,r)}function A(t,e,n,r){t.removeEventListener(e,n,r)}function x(t,e,n,r,i=null){const s=n&&n.invoker;if(r&&s)n.invoker=null,s.value=r,r.invoker=s;else{const[n,o]=j(e);r?T(t,n,D(r,i),o):s&&A(t,n,s,o)}}const B=/(?:Once|Passive|Capture)$/;function j(t){let e;if(B.test(t)){let n;e={};while(n=t.match(B))t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t.slice(2).toLowerCase(),e]}function D(t,e){const n=t=>{const r=t.timeStamp||_();r>=n.attached-1&&Object(i["c"])(F(t,n.value),e,5,[t])};return n.value=t,t.invoker=n,n.attached=O(),n}function F(t,e){if(Object(r["m"])(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(t=>e=>!e._stopped&&t(e))}return e}const L=/^on[a-z]/,E=(t,e)=>"value"===e,M=(t,e,n,i,s=!1,o,a,c,u)=>{switch(e){case"class":l(t,i,s);break;case"style":h(t,n,i);break;default:Object(r["s"])(e)?Object(r["q"])(e)||x(t,e,n,i,a):U(t,e,i,s)?v(t,e,i,o,a,c,u):("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),m(t,e,i,s));break}};function U(t,e,n,i){return i?"innerHTML"===e||!!(e in t&&L.test(e)&&Object(r["n"])(n)):"spellcheck"!==e&&"draggable"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&((!L.test(e)||!Object(r["x"])(n))&&e in t))}const C="transition",N="animation",k=(t,{slots:e})=>Object(i["m"])(i["a"],R(t),e);k.displayName="Transition";const V={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};k.props=Object(r["h"])({},i["a"].props,V);function R(t){let{name:e="v",type:n,css:i=!0,duration:s,enterFromClass:o=e+"-enter-from",enterActiveClass:a=e+"-enter-active",enterToClass:c=e+"-enter-to",appearFromClass:u=o,appearActiveClass:l=a,appearToClass:h=c,leaveFromClass:f=e+"-leave-from",leaveActiveClass:d=e+"-leave-active",leaveToClass:p=e+"-leave-to"}=t;const y={};for(const r in t)r in V||(y[r]=t[r]);if(!i)return y;const b=P(s),g=b&&b[0],m=b&&b[1],{onBeforeEnter:v,onEnter:_,onEnterCancelled:w,onLeave:I,onLeaveCancelled:S,onBeforeAppear:O=v,onAppear:T=_,onAppearCancelled:A=w}=y,x=(t,e,n)=>{Y(t,e?h:c),Y(t,e?l:a),n&&n()},B=(t,e)=>{Y(t,p),Y(t,d),e&&e()},j=t=>(e,r)=>{const i=t?T:_,s=()=>x(e,t,r);i&&i(e,s),W(()=>{Y(e,t?u:o),$(e,t?h:c),i&&i.length>1||(g?setTimeout(s,g):H(e,n,s))})};return Object(r["h"])(y,{onBeforeEnter(t){v&&v(t),$(t,a),$(t,o)},onBeforeAppear(t){O&&O(t),$(t,l),$(t,u)},onEnter:j(!1),onAppear:j(!0),onLeave(t,e){const r=()=>B(t,e);$(t,d),$(t,f),W(()=>{Y(t,f),$(t,p),I&&I.length>1||(m?setTimeout(r,m):H(t,n,r))}),I&&I(t,r)},onEnterCancelled(t){x(t,!1),w&&w(t)},onAppearCancelled(t){x(t,!0),A&&A(t)},onLeaveCancelled(t){B(t),S&&S(t)}})}function P(t){if(null==t)return null;if(Object(r["r"])(t))return[z(t.enter),z(t.leave)];{const e=z(t);return[e,e]}}function z(t){const e=Object(r["G"])(t);return e}function $(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t._vtc||(t._vtc=new Set)).add(e)}function Y(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.remove(e));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function W(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}function H(t,e,n){const{type:r,timeout:i,propCount:s}=K(t,e);if(!r)return n();const o=r+"end";let a=0;const c=()=>{t.removeEventListener(o,u),n()},u=e=>{e.target===t&&++a>=s&&c()};setTimeout(()=>{a(n[t]||"").split(", "),i=r(C+"Delay"),s=r(C+"Duration"),o=G(i,s),a=r(N+"Delay"),c=r(N+"Duration"),u=G(a,c);let l=null,h=0,f=0;e===C?o>0&&(l=C,h=o,f=s.length):e===N?u>0&&(l=N,h=u,f=c.length):(h=Math.max(o,u),l=h>0?o>u?C:N:null,f=l?l===C?s.length:c.length:0);const d=l===C&&/\b(transform|all)(,|$)/.test(n[C+"Property"]);return{type:l,timeout:h,propCount:f,hasTransform:d}}function G(t,e){while(t.lengthq(e)+q(t[n])))}function q(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const J=Object(r["h"])({patchProp:M,forcePatchProp:E},u);let Z;function X(){return Z||(Z=Object(i["g"])(J))}const Q=(...t)=>{const e=X().createApp(...t);const{mount:n}=e;return e.mount=t=>{const i=tt(t);if(!i)return;const s=e._component;Object(r["n"])(s)||s.render||s.template||(s.template=i.innerHTML),i.innerHTML="";const o=n(i);return i.removeAttribute("v-cloak"),i.setAttribute("data-v-app",""),o},e};function tt(t){if(Object(r["x"])(t)){const e=document.querySelector(t);return e}return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),s=n("5c6c");t.exports=function(t,e,n){var o=r(e);o in t?i.f(t,o,s(0,n)):t[o]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),s=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,s=function(t,e){var n=a[o(t)];return n==u||n!=c&&("function"==typeof e?r(e):!!e)},o=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),s=n("e8b5"),o=n("861d"),a=n("7b0b"),c=n("50c4"),u=n("8418"),l=n("65f0"),h=n("1dde"),f=n("b622"),d=n("2d00"),p=f("isConcatSpreadable"),y=9007199254740991,b="Maximum allowed index exceeded",g=d>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=h("concat"),v=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:s(t)},_=!g||!m;r({target:"Array",proto:!0,forced:_},{concat:function(t){var e,n,r,i,s,o=a(this),h=l(o,0),f=0;for(e=-1,r=arguments.length;ey)throw TypeError(b);for(n=0;n=y)throw TypeError(b);u(h,f++,s)}return h.length=f,h}})},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){var s=t["return"];throw void 0!==s&&r(s.call(t)),o}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),s=n("825a"),o=n("c04e"),a=Object.defineProperty;e.f=r?a:function(t,e,n){if(s(t),e=o(e,!0),s(n),i)try{return a(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),s=n("5c6c"),o=n("d44e"),a=n("3f8c"),c=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:s(1,n)}),o(t,u,!1,!0),a[u]=c,t}},"9ff4":function(t,e,n){"use strict";(function(t){function r(t,e){const n=Object.create(null),r=t.split(",");for(let i=0;i!!n[t.toLowerCase()]:t=>!!n[t]}n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return O})),n.d(e,"e",(function(){return K})),n.d(e,"f",(function(){return J})),n.d(e,"g",(function(){return Q})),n.d(e,"h",(function(){return j})),n.d(e,"i",(function(){return Z})),n.d(e,"j",(function(){return L})),n.d(e,"k",(function(){return q})),n.d(e,"l",(function(){return X})),n.d(e,"m",(function(){return E})),n.d(e,"n",(function(){return U})),n.d(e,"o",(function(){return s})),n.d(e,"p",(function(){return y})),n.d(e,"q",(function(){return B})),n.d(e,"r",(function(){return k})),n.d(e,"s",(function(){return x})),n.d(e,"t",(function(){return V})),n.d(e,"u",(function(){return Y})),n.d(e,"v",(function(){return b})),n.d(e,"w",(function(){return a})),n.d(e,"x",(function(){return C})),n.d(e,"y",(function(){return N})),n.d(e,"z",(function(){return m})),n.d(e,"A",(function(){return v})),n.d(e,"B",(function(){return r})),n.d(e,"C",(function(){return f})),n.d(e,"D",(function(){return c})),n.d(e,"E",(function(){return D})),n.d(e,"F",(function(){return _})),n.d(e,"G",(function(){return tt})),n.d(e,"H",(function(){return z}));const i="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl",s=r(i);const o="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=r(o);function c(t){if(E(t)){const e={};for(let n=0;n{if(t){const n=t.split(l);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function f(t){let e="";if(C(t))e=t;else if(E(t))for(let n=0;nm(t,e))}const _=t=>null==t?"":k(t)?JSON.stringify(t,w,2):String(t),w=(t,e)=>e instanceof Map?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[e,n])=>(t[e+" =>"]=n,t),{})}:e instanceof Set?{[`Set(${e.size})`]:[...e.values()]}:!k(e)||E(e)||$(e)?e:String(e),I={},S=[],O=()=>{},T=()=>!1,A=/^on[^a-z]/,x=t=>A.test(t),B=t=>t.startsWith("onUpdate:"),j=Object.assign,D=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},F=Object.prototype.hasOwnProperty,L=(t,e)=>F.call(t,e),E=Array.isArray,M=t=>t instanceof Date,U=t=>"function"===typeof t,C=t=>"string"===typeof t,N=t=>"symbol"===typeof t,k=t=>null!==t&&"object"===typeof t,V=t=>k(t)&&U(t.then)&&U(t.catch),R=Object.prototype.toString,P=t=>R.call(t),z=t=>P(t).slice(8,-1),$=t=>"[object Object]"===P(t),Y=r("key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),W=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},H=/-(\w)/g,K=W(t=>t.replace(H,(t,e)=>e?e.toUpperCase():"")),G=/\B([A-Z])/g,q=W(t=>t.replace(G,"-$1").toLowerCase()),J=W(t=>t.charAt(0).toUpperCase()+t.slice(1)),Z=(t,e)=>t!==e&&(t===t||e===e),X=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},tt=t=>{const e=parseFloat(t);return isNaN(e)?t:e}}).call(this,n("c8ba"))},a1e9:function(t,e,n){"use strict";n.d(e,"a",(function(){return Ot})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return yt})),n.d(e,"d",(function(){return dt})),n.d(e,"e",(function(){return mt})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return St})),n.d(e,"h",(function(){return ut})),n.d(e,"i",(function(){return vt})),n.d(e,"j",(function(){return v})),n.d(e,"k",(function(){return lt})),n.d(e,"l",(function(){return h})),n.d(e,"m",(function(){return bt})),n.d(e,"n",(function(){return _})),n.d(e,"o",(function(){return w})),n.d(e,"p",(function(){return wt}));var r=n("9ff4");const i=new WeakMap,s=[];let o;const a=Symbol(""),c=Symbol("");function u(t){return t&&!0===t._isEffect}function l(t,e=r["b"]){u(t)&&(t=t.raw);const n=d(t,e);return e.lazy||n(),n}function h(t){t.active&&(p(t),t.options.onStop&&t.options.onStop(),t.active=!1)}let f=0;function d(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!s.includes(n)){p(n);try{return m(),s.push(n),o=n,t()}finally{s.pop(),v(),o=s[s.length-1]}}};return n.id=f++,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}function p(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach(t=>h.add(t))};if("clear"===e)l.forEach(f);else if("length"===n&&Object(r["m"])(t))l.forEach((t,e)=>{("length"===e||e>=s)&&f(t)});else{void 0!==n&&f(l.get(n));const i="add"===e||"delete"===e&&!Object(r["m"])(t);(i||"set"===e&&t instanceof Map)&&f(l.get(Object(r["m"])(t)?"length":a)),i&&t instanceof Map&&f(l.get(c))}const d=t=>{t.options.scheduler?t.options.scheduler(t):t()};h.forEach(d)}const I=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(r["y"])),S=B(),O=B(!1,!0),T=B(!0),A=B(!0,!0),x={};function B(t=!1,e=!1){return function(n,i,s){if("__v_isReactive"===i)return!t;if("__v_isReadonly"===i)return t;if("__v_raw"===i&&s===(t?n["__v_readonly"]:n["__v_reactive"]))return n;const o=Object(r["m"])(n);if(o&&Object(r["j"])(x,i))return Reflect.get(x,i,s);const a=Reflect.get(n,i,s);return(Object(r["y"])(i)?I.has(i):"__proto__"===i||"__v_isRef"===i)?a:(t||_(n,"get",i),e?a:mt(a)?o?a:a.value:Object(r["r"])(a)?t?ht(a):ut(a):a)}}["includes","indexOf","lastIndexOf"].forEach(t=>{x[t]=function(...e){const n=bt(this);for(let t=0,i=this.length;tObject(r["r"])(t)?ut(t):t),V=t=>Object(r["r"])(t)?ht(t):t,R=t=>t,P=t=>Reflect.getPrototypeOf(t);function z(t,e,n){t=bt(t);const r=bt(e);e!==r&&_(t,"get",e),_(t,"get",r);const{has:i,get:s}=P(t);return i.call(t,e)?n(s.call(t,e)):i.call(t,r)?n(s.call(t,r)):void 0}function $(t){const e=bt(this),n=bt(t);t!==n&&_(e,"has",t),_(e,"has",n);const r=P(e).has;return r.call(e,t)||r.call(e,n)}function Y(t){return t=bt(t),_(t,"iterate",a),Reflect.get(P(t),"size",t)}function W(t){t=bt(t);const e=bt(this),n=P(e),r=n.has.call(e,t),i=n.add.call(e,t);return r||w(e,"add",t,t),i}function H(t,e){e=bt(e);const n=bt(this),{has:i,get:s,set:o}=P(n);let a=i.call(n,t);a||(t=bt(t),a=i.call(n,t));const c=s.call(n,t),u=o.call(n,t,e);return a?Object(r["i"])(e,c)&&w(n,"set",t,e,c):w(n,"add",t,e),u}function K(t){const e=bt(this),{has:n,get:r,delete:i}=P(e);let s=n.call(e,t);s||(t=bt(t),s=n.call(e,t));const o=r?r.call(e,t):void 0,a=i.call(e,t);return s&&w(e,"delete",t,void 0,o),a}function G(){const t=bt(this),e=0!==t.size,n=void 0,r=P(t).clear.call(t);return e&&w(t,"clear",void 0,void 0,n),r}function q(t,e){return function(n,r){const i=this,s=bt(i),o=t?V:e?R:k;function c(t,e){return n.call(r,o(t),o(e),i)}return!t&&_(s,"iterate",a),P(s).forEach.call(s,c)}}function J(t,e,n){return function(...r){const i=bt(this),s=i instanceof Map,o="entries"===t||t===Symbol.iterator&&s,u="keys"===t&&s,l=P(i)[t].apply(i,r),h=e?V:n?R:k;return!e&&_(i,"iterate",u?c:a),{next(){const{value:t,done:e}=l.next();return e?{value:t,done:e}:{value:o?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function Z(t){return function(...e){return"delete"!==t&&this}}const X={get(t){return z(this,t,k)},get size(){return Y(this)},has:$,add:W,set:H,delete:K,clear:G,forEach:q(!1,!1)},Q={get(t){return z(this,t,R)},get size(){return Y(this)},has:$,add:W,set:H,delete:K,clear:G,forEach:q(!1,!0)},tt={get(t){return z(this,t,V)},get size(){return Y(this)},has:$,add:Z("add"),set:Z("set"),delete:Z("delete"),clear:Z("clear"),forEach:q(!0,!1)},et=["keys","values","entries",Symbol.iterator];function nt(t,e){const n=e?Q:t?tt:X;return(e,i,s)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get(Object(r["j"])(n,i)&&i in e?n:e,i,s)}et.forEach(t=>{X[t]=J(t,!1,!1),tt[t]=J(t,!0,!1),Q[t]=J(t,!1,!0)});const rt={get:nt(!1,!1)},it={get:nt(!1,!0)},st={get:nt(!0,!1)};const ot=new Set([Set,Map,WeakMap,WeakSet]),at=Object(r["B"])("Object,Array,Map,Set,WeakMap,WeakSet"),ct=t=>!t["__v_skip"]&&at(Object(r["H"])(t))&&!Object.isFrozen(t);function ut(t){return t&&t["__v_isReadonly"]?t:ft(t,!1,U,rt)}function lt(t){return ft(t,!1,N,it)}function ht(t){return ft(t,!0,C,st)}function ft(t,e,n,i){if(!Object(r["r"])(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const s=e?"__v_readonly":"__v_reactive";if(Object(r["j"])(t,s))return t[s];if(!ct(t))return t;const o=new Proxy(t,ot.has(t.constructor)?i:n);return Object(r["g"])(t,s,o),o}function dt(t){return pt(t)?dt(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function pt(t){return!(!t||!t["__v_isReadonly"])}function yt(t){return dt(t)||pt(t)}function bt(t){return t&&bt(t["__v_raw"])||t}const gt=t=>Object(r["r"])(t)?ut(t):t;function mt(t){return!!t&&!0===t.__v_isRef}function vt(t){return _t(t)}function _t(t,e=!1){if(mt(t))return t;let n=e?t:gt(t);const i={__v_isRef:!0,get value(){return _(i,"get","value"),n},set value(s){Object(r["i"])(bt(s),t)&&(t=s,n=e?s:gt(s),w(i,"set","value",s))}};return i}function wt(t){return mt(t)?t.value:t}const It={get:(t,e,n)=>wt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return mt(i)&&!mt(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function St(t){return dt(t)?t:new Proxy(t,It)}function Ot(t){let e,n;Object(r["n"])(t)?(e=t,n=r["d"]):(e=t.get,n=t.set);let i,s,o=!0;const a=l(e,{lazy:!0,scheduler:()=>{o||(o=!0,w(s,"set","value"))}});return s={__v_isRef:!0,["__v_isReadonly"]:Object(r["n"])(t)||!t.set,effect:a,get value(){return o&&(i=a(),o=!1),_(s,"get","value"),i},set value(t){n(t)}},s}},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a79d:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),s=n("fea9"),o=n("d039"),a=n("d066"),c=n("4840"),u=n("cdf9"),l=n("6eeb"),h=!!s&&o((function(){s.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(t){var e=c(this,a("Promise")),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then((function(){return n}))}:t,n?function(n){return u(e,t()).then((function(){throw n}))}:t)}}),i||"function"!=typeof s||s.prototype["finally"]||l(s.prototype,"finally",a("Promise").prototype["finally"])},a93d:function(t,e,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,s=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function I(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type,t){case h:case f:case o:case c:case a:case p:return t;default:switch(t=t&&t.$$typeof,t){case l:case d:case g:case b:case u:return t;default:return e}}case s:return e}}}function S(t){return I(t)===f}e.AsyncMode=h,e.ConcurrentMode=f,e.ContextConsumer=l,e.ContextProvider=u,e.Element=i,e.ForwardRef=d,e.Fragment=o,e.Lazy=g,e.Memo=b,e.Portal=s,e.Profiler=c,e.StrictMode=a,e.Suspense=p,e.isAsyncMode=function(t){return S(t)||I(t)===h},e.isConcurrentMode=S,e.isContextConsumer=function(t){return I(t)===l},e.isContextProvider=function(t){return I(t)===u},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return I(t)===d},e.isFragment=function(t){return I(t)===o},e.isLazy=function(t){return I(t)===g},e.isMemo=function(t){return I(t)===b},e.isPortal=function(t){return I(t)===s},e.isProfiler=function(t){return I(t)===c},e.isStrictMode=function(t){return I(t)===a},e.isSuspense=function(t){return I(t)===p},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===o||t===f||t===c||t===a||t===p||t===y||"object"===typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===b||t.$$typeof===u||t.$$typeof===l||t.$$typeof===d||t.$$typeof===v||t.$$typeof===_||t.$$typeof===w||t.$$typeof===m)},e.typeOf=I},ab5b:function(t,e,n){"use strict";t.exports=n("be24")},ab8b:function(t,e,n){},ae40:function(t,e,n){var r=n("83ab"),i=n("d039"),s=n("5135"),o=Object.defineProperty,a={},c=function(t){throw t};t.exports=function(t,e){if(s(a,t))return a[t];e||(e={});var n=[][t],u=!!s(e,"ACCESSORS")&&e.ACCESSORS,l=s(e,0)?e[0]:c,h=s(e,1)?e[1]:void 0;return a[t]=!!n&&!i((function(){if(u&&!r)return!0;var t={length:-1};u?o(t,1,{enumerable:!0,get:c}):t[1]=1,n.call(t,l,h)}))}},ae93:function(t,e,n){"use strict";var r,i,s,o=n("e163"),a=n("9112"),c=n("5135"),u=n("b622"),l=n("c430"),h=u("iterator"),f=!1,d=function(){return this};[].keys&&(s=[].keys(),"next"in s?(i=o(o(s)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),l||c(r,h)||a(r,h,d),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},b575:function(t,e,n){var r,i,s,o,a,c,u,l,h=n("da84"),f=n("06cf").f,d=n("c6b6"),p=n("2cf4").set,y=n("1cdc"),b=h.MutationObserver||h.WebKitMutationObserver,g=h.process,m=h.Promise,v="process"==d(g),_=f(h,"queueMicrotask"),w=_&&_.value;w||(r=function(){var t,e;v&&(t=g.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?o():s=void 0,n}}s=void 0,t&&t.enter()},v?o=function(){g.nextTick(r)}:b&&!y?(a=!0,c=document.createTextNode(""),new b(r).observe(c,{characterData:!0}),o=function(){c.data=a=!a}):m&&m.resolve?(u=m.resolve(void 0),l=u.then,o=function(){l.call(u,r)}):o=function(){p.call(h,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};s&&(s.next=e),i||(i=e,o()),s=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),s=n("5135"),o=n("90e3"),a=n("4930"),c=n("fdbf"),u=i("wks"),l=r.Symbol,h=c?l:l&&l.withoutSetter||o;t.exports=function(t){return s(u,t)||(a&&s(l,t)?u[t]=l[t]:u[t]=h("Symbol."+t)),u[t]}},be24:function(t,e,n){"use strict"; /** @license React v16.13.1 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n("320c"),i="function"===typeof Symbol&&Symbol.for,s=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,u=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,h=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,y=i?Symbol.for("react.lazy"):60116,b="function"===typeof Symbol&&Symbol.iterator;function g(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nL.length&&L.push(t)}function U(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var a=!1;if(null===t)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case s:case o:a=!0}}if(a)return n(r,t,""===e?"."+N(t,0):e),1;if(a=0,e=""===e?".":e+":",Array.isArray(t))for(var c=0;cc)r(a,n=e[c++])&&(~s(u,n)||u.push(n));return u}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),s=r.document,o=i(s)&&i(s.createElement);t.exports=function(t){return o?s.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cd74:function(t,e,n){},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),s=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=s.f(t),o=n.resolve;return o(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),s=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?s(r[t])||s(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d092:function(t,e,n){"use strict";n.d(e,"a",(function(){return Vh}));var r={};n.r(r),n.d(r,"memcpy",(function(){return jt})),n.d(r,"joinUint8Arrays",(function(){return Dt})),n.d(r,"toArrayBufferView",(function(){return Ft})),n.d(r,"toInt8Array",(function(){return Lt})),n.d(r,"toInt16Array",(function(){return Et})),n.d(r,"toInt32Array",(function(){return Mt})),n.d(r,"toBigInt64Array",(function(){return Ut})),n.d(r,"toUint8Array",(function(){return Ct})),n.d(r,"toUint16Array",(function(){return Nt})),n.d(r,"toUint32Array",(function(){return kt})),n.d(r,"toBigUint64Array",(function(){return Vt})),n.d(r,"toFloat32Array",(function(){return Rt})),n.d(r,"toFloat64Array",(function(){return Pt})),n.d(r,"toUint8ClampedArray",(function(){return zt})),n.d(r,"toArrayBufferViewIterator",(function(){return Yt})),n.d(r,"toInt8ArrayIterator",(function(){return Wt})),n.d(r,"toInt16ArrayIterator",(function(){return Ht})),n.d(r,"toInt32ArrayIterator",(function(){return Kt})),n.d(r,"toUint8ArrayIterator",(function(){return Gt})),n.d(r,"toUint16ArrayIterator",(function(){return qt})),n.d(r,"toUint32ArrayIterator",(function(){return Jt})),n.d(r,"toFloat32ArrayIterator",(function(){return Zt})),n.d(r,"toFloat64ArrayIterator",(function(){return Xt})),n.d(r,"toUint8ClampedArrayIterator",(function(){return Qt})),n.d(r,"toArrayBufferViewAsyncIterator",(function(){return te})),n.d(r,"toInt8ArrayAsyncIterator",(function(){return ee})),n.d(r,"toInt16ArrayAsyncIterator",(function(){return ne})),n.d(r,"toInt32ArrayAsyncIterator",(function(){return re})),n.d(r,"toUint8ArrayAsyncIterator",(function(){return ie})),n.d(r,"toUint16ArrayAsyncIterator",(function(){return se})),n.d(r,"toUint32ArrayAsyncIterator",(function(){return oe})),n.d(r,"toFloat32ArrayAsyncIterator",(function(){return ae})),n.d(r,"toFloat64ArrayAsyncIterator",(function(){return ce})),n.d(r,"toUint8ClampedArrayAsyncIterator",(function(){return ue})),n.d(r,"rebaseValueOffsets",(function(){return le})),n.d(r,"compareArrayLike",(function(){return he}));var i={};n.r(i),n.d(i,"getBool",(function(){return Ee})),n.d(i,"getBit",(function(){return Me})),n.d(i,"setBool",(function(){return Ue})),n.d(i,"truncateBitmap",(function(){return Ce})),n.d(i,"packBools",(function(){return Ne})),n.d(i,"iterateBits",(function(){return ke})),n.d(i,"popcnt_bit_range",(function(){return Ve})),n.d(i,"popcnt_array",(function(){return Re})),n.d(i,"popcnt_uint32",(function(){return Pe}));var s={};n.r(s),n.d(s,"uint16ToFloat64",(function(){return gr})),n.d(s,"float64ToUint16",(function(){return mr}));var o={};n.r(o),n.d(o,"isArrowBigNumSymbol",(function(){return Sr})),n.d(o,"bignumToString",(function(){return jr})),n.d(o,"bignumToBigInt",(function(){return Dr})),n.d(o,"BN",(function(){return Lr}));var a={};n.r(a),n.d(a,"clampIndex",(function(){return yi})),n.d(a,"clampRange",(function(){return gi})),n.d(a,"createElementComparator",(function(){return _i}));var c={};n.r(c),n.d(c,"BaseInt64",(function(){return mo})),n.d(c,"Uint64",(function(){return vo})),n.d(c,"Int64",(function(){return _o})),n.d(c,"Int128",(function(){return wo}));n("da6a");var u=n("ab5b"),l=n.n(u);const h=new WeakMap,f=new WeakMap;function d(t){const e=h.get(t);return console.assert(null!=e,"'this' is expected an Event object, but got",t),e}function p(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"===typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!==typeof console&&"function"===typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function y(t,e){h.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=Object.keys(e);for(let r=0;r0){const t=new Array(arguments.length);for(let e=0;e57343)i.push(s);else if(56320<=s&&s<=57343)i.push(65533);else if(55296<=s&&s<=56319)if(r===n-1)i.push(65533);else{var o=t.charCodeAt(r+1);if(56320<=o&&o<=57343){var a=1023&s,c=1023&o;i.push(65536+(a<<10)+c),r+=1}else i.push(65533)}r+=1}return i}function V(t){for(var e="",n=0;n>10),56320+(1023&r)))}return e}U.Offset,U.Table,U.SIZEOF_SHORT=2,U.SIZEOF_INT=4,U.FILE_IDENTIFIER_LENGTH=4,U.Encoding={UTF8_BYTES:1,UTF16_STRING:2},U.int32=new Int32Array(2),U.float32=new Float32Array(U.int32.buffer),U.float64=new Float64Array(U.int32.buffer),U.isLittleEndian=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],U.Long=function(t,e){this.low=0|t,this.high=0|e},U.Long.create=function(t,e){return 0==t&&0==e?U.Long.ZERO:new U.Long(t,e)},U.Long.prototype.toFloat64=function(){return(this.low>>>0)+4294967296*this.high},U.Long.prototype.equals=function(t){return this.low==t.low&&this.high==t.high},U.Long.ZERO=new U.Long(0,0),U.Builder=function(t){if(t)e=t;else var e=1024;this.bb=U.ByteBuffer.allocate(e),this.space=e,this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},U.Builder.prototype.clear=function(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},U.Builder.prototype.forceDefaults=function(t){this.force_defaults=t},U.Builder.prototype.dataBuffer=function(){return this.bb},U.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},U.Builder.prototype.prep=function(t,e){t>this.minalign&&(this.minalign=t);var n=1+~(this.bb.capacity()-this.space+e)&t-1;while(this.space=0&&0==this.vtable[e];e--);for(var n=e+1;e>=0;e--)this.addInt16(0!=this.vtable[e]?t-this.vtable[e]:0);var r=2;this.addInt16(t-this.object_start);var i=(n+r)*U.SIZEOF_SHORT;this.addInt16(i);var s=0,o=this.space;t:for(e=0;e=0;r--)this.writeInt8(n.charCodeAt(r))}this.prep(this.minalign,U.SIZEOF_INT),this.addOffset(t),this.bb.setPosition(this.space)},U.Builder.prototype.requiredField=function(t,e){var n=this.bb.capacity()-t,r=n-this.bb.readInt32(n),i=0!=this.bb.readInt16(r+e);if(!i)throw new Error("FlatBuffers: field "+e+" must be set")},U.Builder.prototype.startVector=function(t,e,n){this.notNested(),this.vector_num_elems=e,this.prep(U.SIZEOF_INT,t*e),this.prep(n,t*e)},U.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},U.Builder.prototype.createString=function(t){if(t instanceof Uint8Array)var e=t;else{e=[];var n=0;while(n=56320)r=i;else{var s=t.charCodeAt(n++);r=(i<<10)+s+-56613888}r<128?e.push(r):(r<2048?e.push(r>>6&31|192):(r<65536?e.push(r>>12&15|224):e.push(r>>18&7|240,r>>12&63|128),e.push(r>>6&63|128)),e.push(63&r|128))}}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);n=0;for(var o=this.space,a=this.bb.bytes();n>24},U.ByteBuffer.prototype.readUint8=function(t){return this.bytes_[t]},U.ByteBuffer.prototype.readInt16=function(t){return this.readUint16(t)<<16>>16},U.ByteBuffer.prototype.readUint16=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8},U.ByteBuffer.prototype.readInt32=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24},U.ByteBuffer.prototype.readUint32=function(t){return this.readInt32(t)>>>0},U.ByteBuffer.prototype.readInt64=function(t){return new U.Long(this.readInt32(t),this.readInt32(t+4))},U.ByteBuffer.prototype.readUint64=function(t){return new U.Long(this.readUint32(t),this.readUint32(t+4))},U.ByteBuffer.prototype.readFloat32=function(t){return U.int32[0]=this.readInt32(t),U.float32[0]},U.ByteBuffer.prototype.readFloat64=function(t){return U.int32[U.isLittleEndian?0:1]=this.readInt32(t),U.int32[U.isLittleEndian?1:0]=this.readInt32(t+4),U.float64[0]},U.ByteBuffer.prototype.writeInt8=function(t,e){this.bytes_[t]=e},U.ByteBuffer.prototype.writeUint8=function(t,e){this.bytes_[t]=e},U.ByteBuffer.prototype.writeInt16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},U.ByteBuffer.prototype.writeUint16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},U.ByteBuffer.prototype.writeInt32=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24},U.ByteBuffer.prototype.writeUint32=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24},U.ByteBuffer.prototype.writeInt64=function(t,e){this.writeInt32(t,e.low),this.writeInt32(t+4,e.high)},U.ByteBuffer.prototype.writeUint64=function(t,e){this.writeUint32(t,e.low),this.writeUint32(t+4,e.high)},U.ByteBuffer.prototype.writeFloat32=function(t,e){U.float32[0]=e,this.writeInt32(t,U.int32[0])},U.ByteBuffer.prototype.writeFloat64=function(t,e){U.float64[0]=e,this.writeInt32(t,U.int32[U.isLittleEndian?0:1]),this.writeInt32(t+4,U.int32[U.isLittleEndian?1:0])},U.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length>10),56320+(1023&s)))}return r},U.ByteBuffer.prototype.__indirect=function(t){return t+this.readInt32(t)},U.ByteBuffer.prototype.__vector=function(t){return t+this.readInt32(t)+U.SIZEOF_INT},U.ByteBuffer.prototype.__vector_len=function(t){return this.readInt32(t+this.readInt32(t))},U.ByteBuffer.prototype.__has_identifier=function(t){if(t.length!=U.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+U.FILE_IDENTIFIER_LENGTH);for(var e=0;e>6*n)+r];while(n>0){var s=e>>6*(n-1);i.push(128|63&s),n-=1}return i}}K.prototype={decode:function(t,e){var n;n="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),e=N(e),this._streaming||(this._decoder=new q({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e["stream"]);var r,i=new P(n),s=[];while(!i.endOfStream()){if(r=this._decoder.handler(i,i.read()),r===z)break;null!==r&&(Array.isArray(r)?s.push.apply(s,r):s.push(r))}if(!this._streaming){do{if(r=this._decoder.handler(i,i.read()),r===z)break;null!==r&&(Array.isArray(r)?s.push.apply(s,r):s.push(r))}while(!i.endOfStream());this._decoder=null}return s.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===s[0]?(this._BOMseen=!0,s.shift()):this._BOMseen=!0)),V(s)}},G.prototype={encode:function(t,e){t=t?String(t):"",e=N(e),this._streaming||(this._encoder=new J(this._options)),this._streaming=Boolean(e["stream"]);var n,r=[],i=new P(k(t));while(!i.endOfStream()){if(n=this._encoder.handler(i,i.read()),n===z)break;Array.isArray(n)?r.push.apply(r,n):r.push(n)}if(!this._streaming){while(1){if(n=this._encoder.handler(i,i.read()),n===z)break;Array.isArray(n)?r.push.apply(r,n):r.push(n)}this._encoder=null}return new Uint8Array(r)}};const Z="function"===typeof Buffer?Buffer:null,X="function"===typeof TextDecoder&&"function"===typeof TextEncoder,Q=(t=>{if(X||!Z){const e=new t("utf-8");return t=>e.decode(t)}return t=>{const{buffer:e,byteOffset:n,length:r}=Ct(t);return Z.from(e,n,r).toString()}})("undefined"!==typeof TextDecoder?TextDecoder:K),tt=(t=>{if(X||!Z){const e=new t;return t=>e.encode(t)}return(t="")=>Ct(Z.from(t,"utf8"))})("undefined"!==typeof TextEncoder?TextEncoder:G),et=Object.freeze({done:!0,value:void 0});class nt{constructor(t){this._json=t}get schema(){return this._json["schema"]}get batches(){return this._json["batches"]||[]}get dictionaries(){return this._json["dictionaries"]||[]}}class rt{tee(){return this._getDOMStream().tee()}pipe(t,e){return this._getNodeStream().pipe(t,e)}pipeTo(t,e){return this._getDOMStream().pipeTo(t,e)}pipeThrough(t,e){return this._getDOMStream().pipeThrough(t,e)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class it extends rt{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}get closed(){return this._closedPromise}async cancel(t){await this.return(t)}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){const{resolvers:t}=this;while(t.length>0)t.shift().resolve(et);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return fe.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return fe.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}async throw(t){return await this.abort(t),et}async return(t){return await this.close(),et}async read(t){return(await this.next(t,"read")).value}async peek(t){return(await this.next(t,"peek")).value}next(...t){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((t,e)=>{this.resolvers.push({resolve:t,reject:e})}):Promise.resolve(et)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error(this+" is closed")}}const[st,ot]=(()=>{const t=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=()=>{throw t()},e.asUintN=()=>{throw t()},"undefined"!==typeof BigInt?[BigInt,!0]:[e,!1]})(),[at,ct]=(()=>{const t=()=>{throw new Error("BigInt64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return"undefined"!==typeof BigInt64Array?[BigInt64Array,!0]:[e,!1]})(),[ut,lt]=(()=>{const t=()=>{throw new Error("BigUint64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return"undefined"!==typeof BigUint64Array?[BigUint64Array,!0]:[e,!1]})(),ht=t=>"number"===typeof t,ft=t=>"boolean"===typeof t,dt=t=>"function"===typeof t,pt=t=>null!=t&&Object(t)===t,yt=t=>pt(t)&&dt(t.then),bt=t=>pt(t)&&dt(t[Symbol.iterator]),gt=t=>pt(t)&&dt(t[Symbol.asyncIterator]),mt=t=>pt(t)&&pt(t["schema"]),vt=t=>pt(t)&&"done"in t&&"value"in t,_t=t=>pt(t)&&dt(t["stat"])&&ht(t["fd"]),wt=t=>pt(t)&&St(t["body"]),It=t=>pt(t)&&dt(t["abort"])&&dt(t["getWriter"])&&!(t instanceof rt),St=t=>pt(t)&&dt(t["cancel"])&&dt(t["getReader"])&&!(t instanceof rt),Ot=t=>pt(t)&&dt(t["end"])&&dt(t["write"])&&ft(t["writable"])&&!(t instanceof rt),Tt=t=>pt(t)&&dt(t["read"])&&dt(t["pipe"])&&ft(t["readable"])&&!(t instanceof rt);var At=U.ByteBuffer;const xt="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function Bt(t){let e,n,r,i,s=t[0]?[t[0]]:[];for(let o,a,c=0,u=0,l=t.length;++ct+e.byteLength,0),a=0,c=-1,u=Math.min(e||1/0,o);for(let l=s.length;++cFt(Int8Array,t),Et=t=>Ft(Int16Array,t),Mt=t=>Ft(Int32Array,t),Ut=t=>Ft(at,t),Ct=t=>Ft(Uint8Array,t),Nt=t=>Ft(Uint16Array,t),kt=t=>Ft(Uint32Array,t),Vt=t=>Ft(ut,t),Rt=t=>Ft(Float32Array,t),Pt=t=>Ft(Float64Array,t),zt=t=>Ft(Uint8ClampedArray,t),$t=t=>(t.next(),t);function*Yt(t,e){const n=function*(t){yield t},r="string"===typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof xt?n(e):bt(e)?e:n(e);yield*$t(function*(e){let n=null;do{n=e.next(yield Ft(t,n))}while(!n.done)}(r[Symbol.iterator]()))}const Wt=t=>Yt(Int8Array,t),Ht=t=>Yt(Int16Array,t),Kt=t=>Yt(Int32Array,t),Gt=t=>Yt(Uint8Array,t),qt=t=>Yt(Uint16Array,t),Jt=t=>Yt(Uint32Array,t),Zt=t=>Yt(Float32Array,t),Xt=t=>Yt(Float64Array,t),Qt=t=>Yt(Uint8ClampedArray,t);async function*te(t,e){if(yt(e))return yield*te(t,await e);const n=async function*(t){yield await t},r=async function*(t){yield*$t(function*(t){let e=null;do{e=t.next(yield e&&e.value)}while(!e.done)}(t[Symbol.iterator]()))},i="string"===typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof xt?n(e):bt(e)?r(e):gt(e)?e:n(e);yield*$t(async function*(e){let n=null;do{n=await e.next(yield Ft(t,n))}while(!n.done)}(i[Symbol.asyncIterator]()))}const ee=t=>te(Int8Array,t),ne=t=>te(Int16Array,t),re=t=>te(Int32Array,t),ie=t=>te(Uint8Array,t),se=t=>te(Uint16Array,t),oe=t=>te(Uint32Array,t),ae=t=>te(Float32Array,t),ce=t=>te(Float64Array,t),ue=t=>te(Uint8ClampedArray,t);function le(t,e,n){if(0!==t){n=n.slice(0,e+1);for(let r=-1;++r<=e;)n[r]+=t}return n}function he(t,e){let n=0,r=t.length;if(r!==e.length)return!1;if(r>0)do{if(t[n]!==e[n])return!1}while(++n(t.next(),t);function*pe(t){let e,n,r,i,s=!1,o=[],a=0;function c(){return"peek"===r?Dt(o,i)[0]:([n,o,a]=Dt(o,i),n)}({cmd:r,size:i}=yield null);let u=Gt(t)[Symbol.iterator]();try{do{if(({done:e,value:n}=isNaN(i-a)?u.next(void 0):u.next(i-a)),!e&&n.byteLength>0&&(o.push(n),a+=n.byteLength),e||i<=a)do{({cmd:r,size:i}=yield c())}while(i0&&(o.push(n),a+=n.byteLength),e||i<=a)do{({cmd:r,size:i}=yield c())}while(i0&&(o.push(Ct(e)),a+=e.byteLength),i||r<=a)do{({cmd:n,size:r}=yield c())}while(r{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}async cancel(t){const{reader:e,source:n}=this;e&&await e["cancel"](t).catch(()=>{}),n&&n["locked"]&&this.releaseLock()}async read(t){if(0===t)return{done:null==this.reader,value:new Uint8Array(0)};const e=this.supportsBYOB&&"number"===typeof t?await this.readFromBYOBReader(t):await this.getDefaultReader().read();return!e.done&&(e.value=Ct(e)),e}getDefaultReader(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source["getReader"](),this.defaultReader["closed"].catch(()=>{})),this.reader=this.defaultReader}getBYOBReader(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source["getReader"]({mode:"byob"}),this.byobReader["closed"].catch(()=>{})),this.reader=this.byobReader}async readFromBYOBReader(t){return await me(this.getBYOBReader(),new ArrayBuffer(t),0,t)}}async function me(t,e,n,r){if(n>=r)return{done:!1,value:new Uint8Array(e,0,r)};const{done:i,value:s}=await t.read(new Uint8Array(e,n,r-n));return(n+=s.byteLength){let n,r=t=>n([e,t]);return[e,r,new Promise(i=>(n=i)&&t["once"](e,r))]};async function*_e(t){let e,n,r,i=[],s="error",o=!1,a=null,c=0,u=[];function l(){return"peek"===e?Dt(u,n)[0]:([r,u,c]=Dt(u,n),r)}if(({cmd:e,size:n}=yield null),t["isTTY"])return yield new Uint8Array(0);try{i[0]=ve(t,"end"),i[1]=ve(t,"error");do{if(i[2]=ve(t,"readable"),[s,a]=await Promise.race(i.map(t=>t[2])),"error"===s)break;if((o="end"===s)||(isFinite(n-c)?(r=Ct(t["read"](n-c)),r.byteLength0&&(u.push(r),c+=r.byteLength)),o||n<=c)do{({cmd:e,size:n}=yield l())}while(n{for(const[n,o]of e)t["off"](n,o);try{const e=t["destroy"];e&&e.call(t,n),n=void 0}catch(s){n=s||n}finally{null!=n?i(n):r()}})}}class we{}var Ie,Se;(function(t){(function(t){(function(t){(function(t){let e;(function(t){t[t["V1"]=0]="V1",t[t["V2"]=1]="V2",t[t["V3"]=2]="V3",t[t["V4"]=3]="V4"})(e=t.MetadataVersion||(t.MetadataVersion={}))})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))})(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){let e;(function(t){t[t["Sparse"]=0]="Sparse",t[t["Dense"]=1]="Dense"})(e=t.UnionMode||(t.UnionMode={}))})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){let e;(function(t){t[t["HALF"]=0]="HALF",t[t["SINGLE"]=1]="SINGLE",t[t["DOUBLE"]=2]="DOUBLE"})(e=t.Precision||(t.Precision={}))})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){let e;(function(t){t[t["DAY"]=0]="DAY",t[t["MILLISECOND"]=1]="MILLISECOND"})(e=t.DateUnit||(t.DateUnit={}))})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){let e;(function(t){t[t["SECOND"]=0]="SECOND",t[t["MILLISECOND"]=1]="MILLISECOND",t[t["MICROSECOND"]=2]="MICROSECOND",t[t["NANOSECOND"]=3]="NANOSECOND"})(e=t.TimeUnit||(t.TimeUnit={}))})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){let e;(function(t){t[t["YEAR_MONTH"]=0]="YEAR_MONTH",t[t["DAY_TIME"]=1]="DAY_TIME"})(e=t.IntervalUnit||(t.IntervalUnit={}))})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){let e;(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",t[t["Duration"]=18]="Duration",t[t["LargeBinary"]=19]="LargeBinary",t[t["LargeUtf8"]=20]="LargeUtf8",t[t["LargeList"]=21]="LargeList"})(e=t.Type||(t.Type={}))})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){let e;(function(t){t[t["Little"]=0]="Little",t[t["Big"]=1]="Big"})(e=t.Endianness||(t.Endianness={}))})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsNull(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startNull(t){t.startObject(0)}static endNull(t){let e=t.endObject();return e}static createNull(t){return e.startNull(t),e.endNull(t)}}t.Null=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsStruct_(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){let e=t.endObject();return e}static createStruct_(t){return e.startStruct_(t),e.endStruct_(t)}}t.Struct_=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsList(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startList(t){t.startObject(0)}static endList(t){let e=t.endObject();return e}static createList(t){return e.startList(t),e.endList(t)}}t.List=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeList(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startLargeList(t){t.startObject(0)}static endLargeList(t){let e=t.endObject();return e}static createLargeList(t){return e.startLargeList(t),e.endLargeList(t)}}t.LargeList=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeList(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}listSize(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeList(t){t.startObject(1)}static addListSize(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeList(t){let e=t.endObject();return e}static createFixedSizeList(t,n){return e.startFixedSizeList(t),e.addListSize(t,n),e.endFixedSizeList(t)}}t.FixedSizeList=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMap(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}keysSorted(){let t=this.bb.__offset(this.bb_pos,4);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startMap(t){t.startObject(1)}static addKeysSorted(t,e){t.addFieldInt8(0,+e,0)}static endMap(t){let e=t.endObject();return e}static createMap(t,n){return e.startMap(t),e.addKeysSorted(t,n),e.endMap(t)}}t.Map=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUnion(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}mode(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.UnionMode.Sparse}typeIds(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+4*t):0}typeIdsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){let t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.UnionMode.Sparse)}static addTypeIds(t,e){t.addFieldOffset(1,e,0)}static createTypeIdsVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addInt32(e[n]);return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){let e=t.endObject();return e}static createUnion(t,e,r){return n.startUnion(t),n.addMode(t,e),n.addTypeIds(t,r),n.endUnion(t)}}e.Union=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInt(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){let t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startInt(t){t.startObject(2)}static addBitWidth(t,e){t.addFieldInt32(0,e,0)}static addIsSigned(t,e){t.addFieldInt8(1,+e,0)}static endInt(t){let e=t.endObject();return e}static createInt(t,n,r){return e.startInt(t),e.addBitWidth(t,n),e.addIsSigned(t,r),e.endInt(t)}}t.Int=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFloatingPoint(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.Precision.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.Precision.HALF)}static endFloatingPoint(t){let e=t.endObject();return e}static createFloatingPoint(t,e){return n.startFloatingPoint(t),n.addPrecision(t,e),n.endFloatingPoint(t)}}e.FloatingPoint=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){let e=t.endObject();return e}static createUtf8(t){return e.startUtf8(t),e.endUtf8(t)}}t.Utf8=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBinary(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(t){t.startObject(0)}static endBinary(t){let e=t.endObject();return e}static createBinary(t){return e.startBinary(t),e.endBinary(t)}}t.Binary=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeUtf8(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startLargeUtf8(t){t.startObject(0)}static endLargeUtf8(t){let e=t.endObject();return e}static createLargeUtf8(t){return e.startLargeUtf8(t),e.endLargeUtf8(t)}}t.LargeUtf8=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeBinary(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startLargeBinary(t){t.startObject(0)}static endLargeBinary(t){let e=t.endObject();return e}static createLargeBinary(t){return e.startLargeBinary(t),e.endLargeBinary(t)}}t.LargeBinary=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeBinary(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}byteWidth(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeBinary(t){let e=t.endObject();return e}static createFixedSizeBinary(t,n){return e.startFixedSizeBinary(t),e.addByteWidth(t,n),e.endFixedSizeBinary(t)}}t.FixedSizeBinary=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBool(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}static startBool(t){t.startObject(0)}static endBool(t){let e=t.endObject();return e}static createBool(t){return e.startBool(t),e.endBool(t)}}t.Bool=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDecimal(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}precision(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}scale(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}static startDecimal(t){t.startObject(2)}static addPrecision(t,e){t.addFieldInt32(0,e,0)}static addScale(t,e){t.addFieldInt32(1,e,0)}static endDecimal(t){let e=t.endObject();return e}static createDecimal(t,n,r){return e.startDecimal(t),e.addPrecision(t,n),e.addScale(t,r),e.endDecimal(t)}}t.Decimal=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDate(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.DateUnit.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.DateUnit.MILLISECOND)}static endDate(t){let e=t.endObject();return e}static createDate(t,e){return n.startDate(t),n.addUnit(t,e),n.endDate(t)}}e.Date=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTime(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.TimeUnit.MILLISECOND}bitWidth(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}static addBitWidth(t,e){t.addFieldInt32(1,e,32)}static endTime(t){let e=t.endObject();return e}static createTime(t,e,r){return n.startTime(t),n.addUnit(t,e),n.addBitWidth(t,r),n.endTime(t)}}e.Time=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTimestamp(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.TimeUnit.SECOND}timezone(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.TimeUnit.SECOND)}static addTimezone(t,e){t.addFieldOffset(1,e,0)}static endTimestamp(t){let e=t.endObject();return e}static createTimestamp(t,e,r){return n.startTimestamp(t),n.addUnit(t,e),n.addTimezone(t,r),n.endTimestamp(t)}}e.Timestamp=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInterval(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH)}static endInterval(t){let e=t.endObject();return e}static createInterval(t,e){return n.startInterval(t),n.addUnit(t,e),n.endInterval(t)}}e.Interval=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDuration(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.TimeUnit.MILLISECOND}static startDuration(t){t.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}static endDuration(t){let e=t.endObject();return e}static createDuration(t,e){return n.startDuration(t),n.addUnit(t,e),n.endDuration(t)}}e.Duration=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsKeyValue(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}key(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}value(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,e){t.addFieldOffset(0,e,0)}static addValue(t,e){t.addFieldOffset(1,e,0)}static endKeyValue(t){let e=t.endObject();return e}static createKeyValue(t,n,r){return e.startKeyValue(t),e.addKey(t,n),e.addValue(t,r),e.endKeyValue(t)}}t.KeyValue=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryEncoding(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}indexType(e){let n=this.bb.__offset(this.bb_pos,6);return n?(e||new t.apache.arrow.flatbuf.Int).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isOrdered(){let t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startDictionaryEncoding(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}static addIndexType(t,e){t.addFieldOffset(1,e,0)}static addIsOrdered(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryEncoding(t){let e=t.endObject();return e}static createDictionaryEncoding(t,e,r,i){return n.startDictionaryEncoding(t),n.addId(t,e),n.addIndexType(t,r),n.addIsOrdered(t,i),n.endDictionaryEncoding(t)}}e.DictionaryEncoding=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}name(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){let t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):t.apache.arrow.flatbuf.Type.NONE}type(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(e){let n=this.bb.__offset(this.bb_pos,12);return n?(e||new t.apache.arrow.flatbuf.DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}children(e,n){let r=this.bb.__offset(this.bb_pos,14);return r?(n||new t.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}childrenLength(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(e,n){let r=this.bb.__offset(this.bb_pos,16);return r?(n||new t.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(e,n){e.addFieldInt8(2,n,t.apache.arrow.flatbuf.Type.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startChildrenVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(6,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){let e=t.endObject();return e}static createField(t,e,r,i,s,o,a,c){return n.startField(t),n.addName(t,e),n.addNullable(t,r),n.addTypeType(t,i),n.addType(t,s),n.addDictionary(t,o),n.addChildren(t,a),n.addCustomMetadata(t,c),n.endField(t)}}e.Field=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static createBuffer(t,e,n){return t.prep(8,16),t.writeInt64(n),t.writeInt64(e),t.offset()}}t.Buffer=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.Endianness.Little}fields(e,n){let r=this.bb.__offset(this.bb_pos,6);return r?(n||new t.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}fieldsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(e,n){let r=this.bb.__offset(this.bb_pos,8);return r?(n||new t.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(3)}static addEndianness(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.Endianness.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startFieldsVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(2,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endSchema(t){let e=t.endObject();return e}static finishSchemaBuffer(t,e){t.finish(e)}static createSchema(t,e,r,i){return n.startSchema(t),n.addEndianness(t,e),n.addFields(t,r),n.addCustomMetadata(t,i),n.endSchema(t)}}e.Schema=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Ie||(Ie={})),function(t){(function(t){(function(t){(function(t){t.Schema=Ie.apache.arrow.flatbuf.Schema})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Se||(Se={})),function(t){(function(t){(function(t){(function(t){let e;(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",t[t["SparseTensor"]=5]="SparseTensor"})(e=t.MessageHeader||(t.MessageHeader={}))})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Se||(Se={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static createFieldNode(t,e,n){return t.prep(8,16),t.writeInt64(n),t.writeInt64(e),t.offset()}}t.FieldNode=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Se||(Se={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}length(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}nodes(e,n){let r=this.bb.__offset(this.bb_pos,6);return r?(n||new t.apache.arrow.flatbuf.FieldNode).__init(this.bb.__vector(this.bb_pos+r)+16*e,this.bb):null}nodesLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){let n=this.bb.__offset(this.bb_pos,8);return n?(e||new Ie.apache.arrow.flatbuf.Buffer).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}buffersLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}static startRecordBatch(t){t.startObject(3)}static addLength(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static endRecordBatch(t){let e=t.endObject();return e}static createRecordBatch(t,e,r,i){return n.startRecordBatch(t),n.addLength(t,e),n.addNodes(t,r),n.addBuffers(t,i),n.endRecordBatch(t)}}e.RecordBatch=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Se||(Se={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}data(e){let n=this.bb.__offset(this.bb_pos,6);return n?(e||new t.apache.arrow.flatbuf.RecordBatch).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isDelta(){let t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startDictionaryBatch(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}static addData(t,e){t.addFieldOffset(1,e,0)}static addIsDelta(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryBatch(t){let e=t.endObject();return e}static createDictionaryBatch(t,e,r,i){return n.startDictionaryBatch(t),n.addId(t,e),n.addData(t,r),n.addIsDelta(t,i),n.endDictionaryBatch(t)}}e.DictionaryBatch=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Se||(Se={})),function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Ie.apache.arrow.flatbuf.MetadataVersion.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):t.apache.arrow.flatbuf.MessageHeader.NONE}header(t){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}customMetadata(t,e){let n=this.bb.__offset(this.bb_pos,12);return n?(e||new Ie.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,Ie.apache.arrow.flatbuf.MetadataVersion.V1)}static addHeaderType(e,n){e.addFieldInt8(1,n,t.apache.arrow.flatbuf.MessageHeader.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,t.createLong(0,0))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endMessage(t){let e=t.endObject();return e}static finishMessageBuffer(t,e){t.finish(e)}static createMessage(t,e,r,i,s,o){return n.startMessage(t),n.addVersion(t,e),n.addHeaderType(t,r),n.addHeader(t,i),n.addBodyLength(t,s),n.addCustomMetadata(t,o),n.endMessage(t)}}e.Message=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Se||(Se={}));Ie.apache.arrow.flatbuf.Type;var Oe,Te,Ae=Ie.apache.arrow.flatbuf.DateUnit,xe=Ie.apache.arrow.flatbuf.TimeUnit,Be=Ie.apache.arrow.flatbuf.Precision,je=Ie.apache.arrow.flatbuf.UnionMode,De=Ie.apache.arrow.flatbuf.IntervalUnit,Fe=Se.apache.arrow.flatbuf.MessageHeader,Le=Ie.apache.arrow.flatbuf.MetadataVersion;function Ee(t,e,n,r){return 0!==(n&1<>r}function Ue(t,e,n){return n?!!(t[e>>3]|=1<>3]&=~(1<0||n.byteLength>3):Ne(ke(n,t,e,null,Ee)).subarray(0,r)),i}return n}function Ne(t){let e=[],n=0,r=0,i=0;for(const o of t)o&&(i|=1<0)&&(e[n++]=i);let s=new Uint8Array(e.length+7&-8);return s.set(e),s}function*ke(t,e,n,r,i){let s=e%8,o=e>>3,a=0,c=n;for(;c>0;s=0){let e=t[o++];do{yield i(r,a++,e,s)}while(--c>0&&++s<8)}}function Ve(t,e,n){if(n-e<=0)return 0;if(n-e<8){let r=0;for(const i of ke(t,e,n-e,t,Me))r+=i;return r}const r=n>>3<<3,i=e+(e%8===0?0:8-e%8);return Ve(t,e,i)+Ve(t,r,n)+Re(t,i>>3,r-i>>3)}function Re(t,e,n){let r=0,i=0|e;const s=new DataView(t.buffer,t.byteOffset,t.byteLength),o=void 0===n?t.byteLength:i+n;while(o-i>=4)r+=Pe(s.getUint32(i)),i+=4;while(o-i>=2)r+=Pe(s.getUint16(i)),i+=2;while(o-i>=1)r+=Pe(s.getUint8(i)),i+=1;return r}function Pe(t){let e=0|t;return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24}(function(t){t[t["NONE"]=0]="NONE",t[t["Null"]=1]="Null",t[t["Int"]=2]="Int",t[t["Float"]=3]="Float",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",t[t["Dictionary"]=-1]="Dictionary",t[t["Int8"]=-2]="Int8",t[t["Int16"]=-3]="Int16",t[t["Int32"]=-4]="Int32",t[t["Int64"]=-5]="Int64",t[t["Uint8"]=-6]="Uint8",t[t["Uint16"]=-7]="Uint16",t[t["Uint32"]=-8]="Uint32",t[t["Uint64"]=-9]="Uint64",t[t["Float16"]=-10]="Float16",t[t["Float32"]=-11]="Float32",t[t["Float64"]=-12]="Float64",t[t["DateDay"]=-13]="DateDay",t[t["DateMillisecond"]=-14]="DateMillisecond",t[t["TimestampSecond"]=-15]="TimestampSecond",t[t["TimestampMillisecond"]=-16]="TimestampMillisecond",t[t["TimestampMicrosecond"]=-17]="TimestampMicrosecond",t[t["TimestampNanosecond"]=-18]="TimestampNanosecond",t[t["TimeSecond"]=-19]="TimeSecond",t[t["TimeMillisecond"]=-20]="TimeMillisecond",t[t["TimeMicrosecond"]=-21]="TimeMicrosecond",t[t["TimeNanosecond"]=-22]="TimeNanosecond",t[t["DenseUnion"]=-23]="DenseUnion",t[t["SparseUnion"]=-24]="SparseUnion",t[t["IntervalDayTime"]=-25]="IntervalDayTime",t[t["IntervalYearMonth"]=-26]="IntervalYearMonth"})(Oe||(Oe={})),function(t){t[t["OFFSET"]=0]="OFFSET",t[t["DATA"]=1]="DATA",t[t["VALIDITY"]=2]="VALIDITY",t[t["TYPE"]=3]="TYPE"}(Te||(Te={}));class ze{visitMany(t,...e){return t.map((t,n)=>this.visit(t,...e.map(t=>t[n])))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return $e(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}}function $e(t,e,n=!0){let r=null,i=Oe.NONE;switch(e instanceof Yn||e instanceof we?i=Ye(e.type):e instanceof un?i=Ye(e):"number"!==typeof(i=e)&&(i=Oe[e]),i){case Oe.Null:r=t.visitNull;break;case Oe.Bool:r=t.visitBool;break;case Oe.Int:r=t.visitInt;break;case Oe.Int8:r=t.visitInt8||t.visitInt;break;case Oe.Int16:r=t.visitInt16||t.visitInt;break;case Oe.Int32:r=t.visitInt32||t.visitInt;break;case Oe.Int64:r=t.visitInt64||t.visitInt;break;case Oe.Uint8:r=t.visitUint8||t.visitInt;break;case Oe.Uint16:r=t.visitUint16||t.visitInt;break;case Oe.Uint32:r=t.visitUint32||t.visitInt;break;case Oe.Uint64:r=t.visitUint64||t.visitInt;break;case Oe.Float:r=t.visitFloat;break;case Oe.Float16:r=t.visitFloat16||t.visitFloat;break;case Oe.Float32:r=t.visitFloat32||t.visitFloat;break;case Oe.Float64:r=t.visitFloat64||t.visitFloat;break;case Oe.Utf8:r=t.visitUtf8;break;case Oe.Binary:r=t.visitBinary;break;case Oe.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case Oe.Date:r=t.visitDate;break;case Oe.DateDay:r=t.visitDateDay||t.visitDate;break;case Oe.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case Oe.Timestamp:r=t.visitTimestamp;break;case Oe.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case Oe.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case Oe.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case Oe.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case Oe.Time:r=t.visitTime;break;case Oe.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case Oe.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case Oe.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case Oe.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case Oe.Decimal:r=t.visitDecimal;break;case Oe.List:r=t.visitList;break;case Oe.Struct:r=t.visitStruct;break;case Oe.Union:r=t.visitUnion;break;case Oe.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case Oe.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case Oe.Dictionary:r=t.visitDictionary;break;case Oe.Interval:r=t.visitInterval;break;case Oe.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case Oe.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case Oe.FixedSizeList:r=t.visitFixedSizeList;break;case Oe.Map:r=t.visitMap;break}if("function"===typeof r)return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${Oe[i]}'`)}function Ye(t){switch(t.typeId){case Oe.Null:return Oe.Null;case Oe.Int:const{bitWidth:e,isSigned:n}=t;switch(e){case 8:return n?Oe.Int8:Oe.Uint8;case 16:return n?Oe.Int16:Oe.Uint16;case 32:return n?Oe.Int32:Oe.Uint32;case 64:return n?Oe.Int64:Oe.Uint64}return Oe.Int;case Oe.Float:switch(t.precision){case Be.HALF:return Oe.Float16;case Be.SINGLE:return Oe.Float32;case Be.DOUBLE:return Oe.Float64}return Oe.Float;case Oe.Binary:return Oe.Binary;case Oe.Utf8:return Oe.Utf8;case Oe.Bool:return Oe.Bool;case Oe.Decimal:return Oe.Decimal;case Oe.Time:switch(t.unit){case xe.SECOND:return Oe.TimeSecond;case xe.MILLISECOND:return Oe.TimeMillisecond;case xe.MICROSECOND:return Oe.TimeMicrosecond;case xe.NANOSECOND:return Oe.TimeNanosecond}return Oe.Time;case Oe.Timestamp:switch(t.unit){case xe.SECOND:return Oe.TimestampSecond;case xe.MILLISECOND:return Oe.TimestampMillisecond;case xe.MICROSECOND:return Oe.TimestampMicrosecond;case xe.NANOSECOND:return Oe.TimestampNanosecond}return Oe.Timestamp;case Oe.Date:switch(t.unit){case Ae.DAY:return Oe.DateDay;case Ae.MILLISECOND:return Oe.DateMillisecond}return Oe.Date;case Oe.Interval:switch(t.unit){case De.DAY_TIME:return Oe.IntervalDayTime;case De.YEAR_MONTH:return Oe.IntervalYearMonth}return Oe.Interval;case Oe.Map:return Oe.Map;case Oe.List:return Oe.List;case Oe.Struct:return Oe.Struct;case Oe.Union:switch(t.mode){case je.Dense:return Oe.DenseUnion;case je.Sparse:return Oe.SparseUnion}return Oe.Union;case Oe.FixedSizeBinary:return Oe.FixedSizeBinary;case Oe.FixedSizeList:return Oe.FixedSizeList;case Oe.Dictionary:return Oe.Dictionary}throw new Error(`Unrecognized type '${Oe[t.typeId]}'`)}ze.prototype.visitInt8=null,ze.prototype.visitInt16=null,ze.prototype.visitInt32=null,ze.prototype.visitInt64=null,ze.prototype.visitUint8=null,ze.prototype.visitUint16=null,ze.prototype.visitUint32=null,ze.prototype.visitUint64=null,ze.prototype.visitFloat16=null,ze.prototype.visitFloat32=null,ze.prototype.visitFloat64=null,ze.prototype.visitDateDay=null,ze.prototype.visitDateMillisecond=null,ze.prototype.visitTimestampSecond=null,ze.prototype.visitTimestampMillisecond=null,ze.prototype.visitTimestampMicrosecond=null,ze.prototype.visitTimestampNanosecond=null,ze.prototype.visitTimeSecond=null,ze.prototype.visitTimeMillisecond=null,ze.prototype.visitTimeMicrosecond=null,ze.prototype.visitTimeNanosecond=null,ze.prototype.visitDenseUnion=null,ze.prototype.visitSparseUnion=null,ze.prototype.visitIntervalDayTime=null,ze.prototype.visitIntervalYearMonth=null;class We extends ze{compareSchemas(t,e){return t===e||e instanceof t.constructor&&cn.compareFields(t.fields,e.fields)}compareFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((t,n)=>cn.compareField(t,e[n]))}compareField(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&cn.visit(t.type,e.type)}}function He(t,e){return e instanceof t.constructor}function Ke(t,e){return t===e||He(t,e)}function Ge(t,e){return t===e||He(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function qe(t,e){return t===e||He(t,e)&&t.precision===e.precision}function Je(t,e){return t===e||He(t,e)&&t.byteWidth===e.byteWidth}function Ze(t,e){return t===e||He(t,e)&&t.unit===e.unit}function Xe(t,e){return t===e||He(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function Qe(t,e){return t===e||He(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function tn(t,e){return t===e||He(t,e)&&t.children.length===e.children.length&&cn.compareFields(t.children,e.children)}function en(t,e){return t===e||He(t,e)&&t.children.length===e.children.length&&cn.compareFields(t.children,e.children)}function nn(t,e){return t===e||He(t,e)&&t.mode===e.mode&&t.typeIds.every((t,n)=>t===e.typeIds[n])&&cn.compareFields(t.children,e.children)}function rn(t,e){return t===e||He(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&cn.visit(t.indices,e.indices)&&cn.visit(t.dictionary,e.dictionary)}function sn(t,e){return t===e||He(t,e)&&t.unit===e.unit}function on(t,e){return t===e||He(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&cn.compareFields(t.children,e.children)}function an(t,e){return t===e||He(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&cn.compareFields(t.children,e.children)}We.prototype.visitNull=Ke,We.prototype.visitBool=Ke,We.prototype.visitInt=Ge,We.prototype.visitInt8=Ge,We.prototype.visitInt16=Ge,We.prototype.visitInt32=Ge,We.prototype.visitInt64=Ge,We.prototype.visitUint8=Ge,We.prototype.visitUint16=Ge,We.prototype.visitUint32=Ge,We.prototype.visitUint64=Ge,We.prototype.visitFloat=qe,We.prototype.visitFloat16=qe,We.prototype.visitFloat32=qe,We.prototype.visitFloat64=qe,We.prototype.visitUtf8=Ke,We.prototype.visitBinary=Ke,We.prototype.visitFixedSizeBinary=Je,We.prototype.visitDate=Ze,We.prototype.visitDateDay=Ze,We.prototype.visitDateMillisecond=Ze,We.prototype.visitTimestamp=Xe,We.prototype.visitTimestampSecond=Xe,We.prototype.visitTimestampMillisecond=Xe,We.prototype.visitTimestampMicrosecond=Xe,We.prototype.visitTimestampNanosecond=Xe,We.prototype.visitTime=Qe,We.prototype.visitTimeSecond=Qe,We.prototype.visitTimeMillisecond=Qe,We.prototype.visitTimeMicrosecond=Qe,We.prototype.visitTimeNanosecond=Qe,We.prototype.visitDecimal=Ke,We.prototype.visitList=tn,We.prototype.visitStruct=en,We.prototype.visitUnion=nn,We.prototype.visitDenseUnion=nn,We.prototype.visitSparseUnion=nn,We.prototype.visitDictionary=rn,We.prototype.visitInterval=sn,We.prototype.visitIntervalDayTime=sn,We.prototype.visitIntervalYearMonth=sn,We.prototype.visitFixedSizeList=on,We.prototype.visitMap=an;const cn=new We;class un{static isNull(t){return t&&t.typeId===Oe.Null}static isInt(t){return t&&t.typeId===Oe.Int}static isFloat(t){return t&&t.typeId===Oe.Float}static isBinary(t){return t&&t.typeId===Oe.Binary}static isUtf8(t){return t&&t.typeId===Oe.Utf8}static isBool(t){return t&&t.typeId===Oe.Bool}static isDecimal(t){return t&&t.typeId===Oe.Decimal}static isDate(t){return t&&t.typeId===Oe.Date}static isTime(t){return t&&t.typeId===Oe.Time}static isTimestamp(t){return t&&t.typeId===Oe.Timestamp}static isInterval(t){return t&&t.typeId===Oe.Interval}static isList(t){return t&&t.typeId===Oe.List}static isStruct(t){return t&&t.typeId===Oe.Struct}static isUnion(t){return t&&t.typeId===Oe.Union}static isFixedSizeBinary(t){return t&&t.typeId===Oe.FixedSizeBinary}static isFixedSizeList(t){return t&&t.typeId===Oe.FixedSizeList}static isMap(t){return t&&t.typeId===Oe.Map}static isDictionary(t){return t&&t.typeId===Oe.Dictionary}get typeId(){return Oe.NONE}compareTo(t){return cn.visit(this,t)}}un[Symbol.toStringTag]=(t=>(t.children=null,t.ArrayType=Array,t[Symbol.toStringTag]="DataType"))(un.prototype);class ln extends un{toString(){return"Null"}get typeId(){return Oe.Null}}ln[Symbol.toStringTag]=(t=>t[Symbol.toStringTag]="Null")(ln.prototype);class hn extends un{constructor(t,e){super(),this.isSigned=t,this.bitWidth=e}get typeId(){return Oe.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?Int32Array:Uint32Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}hn[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(hn.prototype);class fn extends hn{constructor(){super(!0,8)}}class dn extends hn{constructor(){super(!0,16)}}class pn extends hn{constructor(){super(!0,32)}}class yn extends hn{constructor(){super(!0,64)}}class bn extends hn{constructor(){super(!1,8)}}class gn extends hn{constructor(){super(!1,16)}}class mn extends hn{constructor(){super(!1,32)}}class vn extends hn{constructor(){super(!1,64)}}Object.defineProperty(fn.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(dn.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(pn.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(yn.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(bn.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(gn.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(mn.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(vn.prototype,"ArrayType",{value:Uint32Array});class _n extends un{constructor(t){super(),this.precision=t}get typeId(){return Oe.Float}get ArrayType(){switch(this.precision){case Be.HALF:return Uint16Array;case Be.SINGLE:return Float32Array;case Be.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return"Float"+(this.precision<<5||16)}}_n[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(_n.prototype);class wn extends _n{constructor(){super(Be.HALF)}}class In extends _n{constructor(){super(Be.SINGLE)}}class Sn extends _n{constructor(){super(Be.DOUBLE)}}Object.defineProperty(wn.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(In.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(Sn.prototype,"ArrayType",{value:Float64Array});class On extends un{constructor(){super()}get typeId(){return Oe.Binary}toString(){return"Binary"}}On[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(On.prototype);class Tn extends un{constructor(){super()}get typeId(){return Oe.Utf8}toString(){return"Utf8"}}Tn[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(Tn.prototype);class An extends un{constructor(){super()}get typeId(){return Oe.Bool}toString(){return"Bool"}}An[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(An.prototype);class xn extends un{constructor(t,e){super(),this.scale=t,this.precision=e}get typeId(){return Oe.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}xn[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(xn.prototype);class Bn extends un{constructor(t){super(),this.unit=t}get typeId(){return Oe.Date}toString(){return`Date${32*(this.unit+1)}<${Ae[this.unit]}>`}}Bn[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(Bn.prototype);class jn extends Bn{constructor(){super(Ae.DAY)}}class Dn extends Bn{constructor(){super(Ae.MILLISECOND)}}class Fn extends un{constructor(t,e){super(),this.unit=t,this.bitWidth=e}get typeId(){return Oe.Time}toString(){return`Time${this.bitWidth}<${xe[this.unit]}>`}}Fn[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Time"))(Fn.prototype);class Ln extends un{constructor(t,e){super(),this.unit=t,this.timezone=e}get typeId(){return Oe.Timestamp}toString(){return`Timestamp<${xe[this.unit]}${this.timezone?", "+this.timezone:""}>`}}Ln[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(Ln.prototype);class En extends un{constructor(t){super(),this.unit=t}get typeId(){return Oe.Interval}toString(){return`Interval<${De[this.unit]}>`}}En[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(En.prototype);class Mn extends un{constructor(t){super(),this.children=[t]}get typeId(){return Oe.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}Mn[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(Mn.prototype);class Un extends un{constructor(t){super(),this.children=t}get typeId(){return Oe.Struct}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}}Un[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(Un.prototype);class Cn extends un{constructor(t,e,n){super(),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce((t,e,n)=>(t[e]=n)&&t||t,Object.create(null))}get typeId(){return Oe.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(t=>""+t.type).join(" | ")}>`}}Cn[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(Cn.prototype);class Nn extends un{constructor(t){super(),this.byteWidth=t}get typeId(){return Oe.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}Nn[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Nn.prototype);class kn extends un{constructor(t,e){super(),this.listSize=t,this.children=[e]}get typeId(){return Oe.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}kn[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(kn.prototype);class Vn extends un{constructor(t,e=!1){super(),this.children=[t],this.keysSorted=e}get typeId(){return Oe.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}toString(){return`Map<{${this.children[0].type.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}}Vn[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(Vn.prototype);const Rn=(t=>()=>++t)(-1);class Pn extends un{constructor(t,e,n,r){super(),this.indices=e,this.dictionary=t,this.isOrdered=r||!1,this.id=null==n?Rn():"number"===typeof n?n:n.low}get typeId(){return Oe.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}function zn(t){let e=t;switch(t.typeId){case Oe.Decimal:return 4;case Oe.Timestamp:return 2;case Oe.Date:return 1+e.unit;case Oe.Interval:return 1+e.unit;case Oe.Int:return+(e.bitWidth>32)+1;case Oe.Time:return+(e.bitWidth>32)+1;case Oe.FixedSizeList:return e.listSize;case Oe.FixedSizeBinary:return e.byteWidth;default:return 1}}Pn[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(Pn.prototype);const $n=-1;class Yn{constructor(t,e,n,r,i,s,o){let a;this.type=t,this.dictionary=o,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(n||0,0)),this._nullCount=Math.floor(Math.max(r||0,-1)),this.childData=(s||[]).map(t=>t instanceof Yn?t:t.data),i instanceof Yn?(this.stride=i.stride,this.values=i.values,this.typeIds=i.typeIds,this.nullBitmap=i.nullBitmap,this.valueOffsets=i.valueOffsets):(this.stride=zn(t),i&&((a=i[0])&&(this.valueOffsets=a),(a=i[1])&&(this.values=a),(a=i[2])&&(this.nullBitmap=a),(a=i[3])&&(this.typeIds=a)))}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let t=0,{valueOffsets:e,values:n,nullBitmap:r,typeIds:i}=this;return e&&(t+=e.byteLength),n&&(t+=n.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),this.childData.reduce((t,e)=>t+e.byteLength,t)}get nullCount(){let t,e=this._nullCount;return e<=$n&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-Ve(t,this.offset,this.offset+this.length)),e}clone(t,e=this.offset,n=this.length,r=this._nullCount,i=this,s=this.childData){return new Yn(t,e,n,r,i,s,this.dictionary)}slice(t,e){const{stride:n,typeId:r,childData:i}=this,s=+(0===this._nullCount)-1,o=16===r?n:1,a=this._sliceBuffers(t,e,n,r);return this.clone(this.type,this.offset+t,e,s,a,!i.length||this.valueOffsets?i:this._sliceChildren(i,o*t,o*e))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===Oe.Null)return this.clone(this.type,0,t,0);const{length:e,nullCount:n}=this,r=new Uint8Array((t+63&-64)>>3).fill(255,0,e>>3);r[e>>3]=(1<0&&r.set(Ce(this.offset,e,this.nullBitmap),0);const i=this.buffers;return i[Te.VALIDITY]=r,this.clone(this.type,0,t,n+(t-e),i)}_sliceBuffers(t,e,n,r){let i,{buffers:s}=this;return(i=s[Te.TYPE])&&(s[Te.TYPE]=i.subarray(t,t+e)),(i=s[Te.OFFSET])&&(s[Te.OFFSET]=i.subarray(t,t+e+1))||(i=s[Te.DATA])&&(s[Te.DATA]=6===r?i:i.subarray(n*t,n*(t+e))),s}_sliceChildren(t,e,n){return t.map(t=>t.slice(e,n))}static new(t,e,n,r,i,s,o){switch(i instanceof Yn?i=i.buffers:i||(i=[]),t.typeId){case Oe.Null:return Yn.Null(t,e,n);case Oe.Int:return Yn.Int(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[]);case Oe.Dictionary:return Yn.Dictionary(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[],o);case Oe.Float:return Yn.Float(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[]);case Oe.Bool:return Yn.Bool(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[]);case Oe.Decimal:return Yn.Decimal(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[]);case Oe.Date:return Yn.Date(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[]);case Oe.Time:return Yn.Time(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[]);case Oe.Timestamp:return Yn.Timestamp(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[]);case Oe.Interval:return Yn.Interval(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[]);case Oe.FixedSizeBinary:return Yn.FixedSizeBinary(t,e,n,r||0,i[Te.VALIDITY],i[Te.DATA]||[]);case Oe.Binary:return Yn.Binary(t,e,n,r||0,i[Te.VALIDITY],i[Te.OFFSET]||[],i[Te.DATA]||[]);case Oe.Utf8:return Yn.Utf8(t,e,n,r||0,i[Te.VALIDITY],i[Te.OFFSET]||[],i[Te.DATA]||[]);case Oe.List:return Yn.List(t,e,n,r||0,i[Te.VALIDITY],i[Te.OFFSET]||[],(s||[])[0]);case Oe.FixedSizeList:return Yn.FixedSizeList(t,e,n,r||0,i[Te.VALIDITY],(s||[])[0]);case Oe.Struct:return Yn.Struct(t,e,n,r||0,i[Te.VALIDITY],s||[]);case Oe.Map:return Yn.Map(t,e,n,r||0,i[Te.VALIDITY],i[Te.OFFSET]||[],(s||[])[0]);case Oe.Union:return Yn.Union(t,e,n,r||0,i[Te.VALIDITY],i[Te.TYPE]||[],i[Te.OFFSET]||s,s)}throw new Error("Unrecognized typeId "+t.typeId)}static Null(t,e,n){return new Yn(t,e,n,0)}static Int(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,Ft(t.ArrayType,s),Ct(i)])}static Dictionary(t,e,n,r,i,s,o){return new Yn(t,e,n,r,[void 0,Ft(t.indices.ArrayType,s),Ct(i)],[],o)}static Float(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,Ft(t.ArrayType,s),Ct(i)])}static Bool(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,Ft(t.ArrayType,s),Ct(i)])}static Decimal(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,Ft(t.ArrayType,s),Ct(i)])}static Date(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,Ft(t.ArrayType,s),Ct(i)])}static Time(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,Ft(t.ArrayType,s),Ct(i)])}static Timestamp(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,Ft(t.ArrayType,s),Ct(i)])}static Interval(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,Ft(t.ArrayType,s),Ct(i)])}static FixedSizeBinary(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,Ft(t.ArrayType,s),Ct(i)])}static Binary(t,e,n,r,i,s,o){return new Yn(t,e,n,r,[Mt(s),Ct(o),Ct(i)])}static Utf8(t,e,n,r,i,s,o){return new Yn(t,e,n,r,[Mt(s),Ct(o),Ct(i)])}static List(t,e,n,r,i,s,o){return new Yn(t,e,n,r,[Mt(s),void 0,Ct(i)],[o])}static FixedSizeList(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,void 0,Ct(i)],[s])}static Struct(t,e,n,r,i,s){return new Yn(t,e,n,r,[void 0,void 0,Ct(i)],s)}static Map(t,e,n,r,i,s,o){return new Yn(t,e,n,r,[Mt(s),void 0,Ct(i)],[o])}static Union(t,e,n,r,i,s,o,a){const c=[void 0,void 0,Ct(i),Ft(t.ArrayType,s)];return t.mode===je.Sparse?new Yn(t,e,n,r,c,o):(c[Te.OFFSET]=Mt(o),new Yn(t,e,n,r,c,a))}}Yn.prototype.childData=Object.freeze([]);const Wn=void 0;function Hn(t){if(null===t)return"null";if(t===Wn)return"undefined";switch(typeof t){case"number":return""+t;case"bigint":return""+t;case"string":return`"${t}"`}return"function"===typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t)}function Kn(t){if(!t||t.length<=0)return function(t){return!0};let e="",n=t.filter(t=>t===t);return n.length>0&&(e=`\n switch (x) {${n.map(t=>`\n case ${Gn(t)}:`).join("")}\n return false;\n }`),t.length!==n.length&&(e="if (x !== x) return false;\n"+e),new Function("x",e+"\nreturn true;")}function Gn(t){return"bigint"!==typeof t?Hn(t):ot?Hn(t)+"n":`"${Hn(t)}"`}const qn=(t,e)=>(t*e+63&-64||64)/e,Jn=(t,e=0)=>t.length>=e?t.subarray(0,e):jt(new t.constructor(e),t,0);class Zn{constructor(t,e=1){this.buffer=t,this.stride=e,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t.constructor,this._resize(this.length=t.length/e|0)}get byteLength(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(t,e){return this}append(t){return this.set(this.length,t)}reserve(t){if(t>0){this.length+=t;const e=this.stride,n=this.length*e,r=this.buffer.length;n>=r&&this._resize(qn(0===r?1*n:2*n,this.BYTES_PER_ELEMENT))}return this}flush(t=this.length){t=qn(t*this.stride,this.BYTES_PER_ELEMENT);const e=Jn(this.buffer,t);return this.clear(),e}clear(){return this.length=0,this._resize(0),this}_resize(t){return this.buffer=jt(new this.ArrayType(t),this.buffer)}}Zn.prototype.offset=0;class Xn extends Zn{last(){return this.get(this.length-1)}get(t){return this.buffer[t]}set(t,e){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=e,this}}class Qn extends Xn{constructor(t=new Uint8Array(0)){super(t,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(t){return this.buffer[t>>3]>>t%8&1}set(t,e){const{buffer:n}=this.reserve(t-this.length+1),r=t>>3,i=t%8,s=n[r]>>i&1;return e?0===s&&(n[r]|=1<this.length&&this.set(t-1,0),super.flush(t+1)}}class er extends Zn{get ArrayType64(){return this._ArrayType64||(this._ArrayType64=this.buffer instanceof Int32Array?at:ut)}set(t,e){switch(this.reserve(t-this.length+1),typeof e){case"bigint":this.buffer64[t]=e;break;case"number":this.buffer[t*this.stride]=e;break;default:this.buffer.set(e,t*this.stride)}return this}_resize(t){const e=super._resize(t),n=e.byteLength/(this.BYTES_PER_ELEMENT*this.stride);return ot&&(this.buffer64=new this.ArrayType64(e.buffer,e.byteOffset,n)),e}}class nr{constructor({type:t,nullValues:e}){this.length=0,this.finished=!1,this.type=t,this.children=[],this.nullValues=e,this.stride=zn(t),this._nulls=new Qn,e&&e.length>0&&(this._isValid=Kn(e))}static new(t){}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t){throw new Error('"throughDOM" not available in this environment')}static throughIterable(t){return sr(t)}static throughAsyncIterable(t){return or(t)}toVector(){return we.new(this.flush())}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let t=0;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),this._typeIds&&(t+=this._typeIds.byteLength),this.children.reduce((t,e)=>t+e.byteLength,t)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce((t,e)=>t+e.reservedByteLength,t)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(t){return this.set(this.length,t)}isValid(t){return this._isValid(t)}set(t,e){return this.setValid(t,this.isValid(e))&&this.setValue(t,e),this}setValue(t,e){this._setValue(this,t,e)}setValid(t,e){return this.length=this._nulls.set(t,+e).length,e}addChild(t,e=""+this.numChildren){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(t){return this.children[t]||null}flush(){const t=[],e=this._values,n=this._offsets,r=this._typeIds,{length:i,nullCount:s}=this;r?(t[Te.TYPE]=r.flush(i),n&&(t[Te.OFFSET]=n.flush(i))):n?(e&&(t[Te.DATA]=e.flush(n.last())),t[Te.OFFSET]=n.flush(i)):e&&(t[Te.DATA]=e.flush(i)),s>0&&(t[Te.VALIDITY]=this._nulls.flush(i));const o=Yn.new(this.type,0,i,s,t,this.children.map(t=>t.flush()));return this.clear(),o}finish(){return this.finished=!0,this.children.forEach(t=>t.finish()),this}clear(){return this.length=0,this._offsets&&this._offsets.clear(),this._values&&this._values.clear(),this._nulls&&this._nulls.clear(),this._typeIds&&this._typeIds.clear(),this.children.forEach(t=>t.clear()),this}}nr.prototype.length=1,nr.prototype.stride=1,nr.prototype.children=null,nr.prototype.finished=!1,nr.prototype.nullValues=null,nr.prototype._isValid=()=>!0;class rr extends nr{constructor(t){super(t),this._values=new Xn(new this.ArrayType(0),this.stride)}setValue(t,e){const n=this._values;return n.reserve(t-n.length+1),super.setValue(t,e)}}class ir extends nr{constructor(t){super(t),this._pendingLength=0,this._offsets=new tr}setValue(t,e){const n=this._pending||(this._pending=new Map),r=n.get(t);r&&(this._pendingLength-=r.length),this._pendingLength+=e.length,n.set(t,e)}setValid(t,e){return!!super.setValid(t,e)||((this._pending||(this._pending=new Map)).set(t,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){const t=this._pending,e=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,e),this}}function sr(t){const{["queueingStrategy"]:e="count"}=t,{["highWaterMark"]:n=("bytes"!==e?1e3:16384)}=t,r="bytes"!==e?"length":"byteLength";return function*(e){let i=0,s=nr.new(t);for(const t of e)s.append(t)[r]>=n&&++i&&(yield s.toVector());(s.finish().length>0||0===i)&&(yield s.toVector())}}function or(t){const{["queueingStrategy"]:e="count"}=t,{["highWaterMark"]:n=("bytes"!==e?1e3:16384)}=t,r="bytes"!==e?"length":"byteLength";return async function*(e){let i=0,s=nr.new(t);for await(const t of e)s.append(t)[r]>=n&&++i&&(yield s.toVector());(s.finish().length>0||0===i)&&(yield s.toVector())}}class ar extends nr{constructor(t){super(t),this._values=new Qn}setValue(t,e){this._values.set(t,+e)}}class cr extends nr{setValue(t,e){}setValid(t,e){return this.length=Math.max(t+1,this.length),e}}class ur extends rr{}class lr extends ur{}class hr extends ur{}class fr extends rr{}class dr extends nr{constructor({type:t,nullValues:e,dictionaryHashFunction:n}){super({type:new Pn(t.dictionary,t.indices,t.id,t.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=nr.new({type:this.type.indices,nullValues:e}),this.dictionary=nr.new({type:this.type.dictionary,nullValues:null}),"function"===typeof n&&(this.valueToKey=n)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(t){return this.indices.isValid(t)}setValid(t,e){const n=this.indices;return e=n.setValid(t,e),this.length=n.length,e}setValue(t,e){let n=this._keysToIndices,r=this.valueToKey(e),i=n[r];return void 0===i&&(n[r]=i=this._dictionaryOffset+this.dictionary.append(e).length-1),this.indices.setValue(t,i)}flush(){const t=this.type,e=this._dictionary,n=this.dictionary.toVector(),r=this.indices.flush().clone(t);return r.dictionary=e?e.concat(n):n,this.finished||(this._dictionaryOffset+=n.length),this._dictionary=r.dictionary,this.clear(),r}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(t){return"string"===typeof t?t:""+t}}class pr extends rr{}const yr=new Float64Array(1),br=new Uint32Array(yr.buffer);function gr(t){let e=(31744&t)>>10,n=(1023&t)/1024,r=(-1)**((32768&t)>>15);switch(e){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*2**(e-15)*(1+n)}function mr(t){if(t!==t)return 32256;yr[0]=t;let e=(2147483648&br[1])>>16&65535,n=2146435072&br[1],r=0;return n>=1089470464?br[0]>0?n=31744:(n=(2080374784&n)>>16,r=(1048575&br[1])>>10):n<=1056964608?(r=1048576+(1048575&br[1]),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=512+(1048575&br[1])>>10),e|n|65535&r}class vr extends rr{}class _r extends vr{setValue(t,e){this._values.set(t,mr(e))}}class wr extends vr{setValue(t,e){this._values.set(t,e)}}class Ir extends vr{setValue(t,e){this._values.set(t,e)}}const Sr=Symbol.for("isArrowBigNum");function Or(t,...e){return 0===e.length?Object.setPrototypeOf(Ft(this["TypedArray"],t),this.constructor.prototype):Object.setPrototypeOf(new this["TypedArray"](t,...e),this.constructor.prototype)}function Tr(...t){return Or.apply(this,t)}function Ar(...t){return Or.apply(this,t)}function xr(...t){return Or.apply(this,t)}function Br(t){let e,n,{buffer:r,byteOffset:i,length:s,signed:o}=t,a=new Int32Array(r,i,s),c=0,u=0,l=a.length;while(u>>=0),c+=(n>>>0)+e*u**32;return c}let jr,Dr;function Fr(t){let e="",n=new Uint32Array(2),r=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer),s=-1,o=r.length-1;do{for(n[0]=r[s=0];s8===t.byteLength?new t["BigIntArray"](t.buffer,t.byteOffset,1)[0]:Fr(t),jr=t=>8===t.byteLength?""+new t["BigIntArray"](t.buffer,t.byteOffset,1)[0]:Fr(t)):(jr=Fr,Dr=jr);class Lr{constructor(t,e){return Lr.new(t,e)}static new(t,e){switch(e){case!0:return new Tr(t);case!1:return new Ar(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case at:return new Tr(t)}return 16===t.byteLength?new xr(t):new Ar(t)}static signed(t){return new Tr(t)}static unsigned(t){return new Ar(t)}static decimal(t){return new xr(t)}}class Er extends rr{setValue(t,e){this._values.set(t,e)}}class Mr extends Er{}class Ur extends Er{}class Cr extends Er{}class Nr extends Er{constructor(t){t["nullValues"]&&(t["nullValues"]=t["nullValues"].map(zr)),super(t),this._values=new er(new Int32Array(0),2)}get values64(){return this._values.buffer64}isValid(t){return super.isValid(zr(t))}}class kr extends Er{}class Vr extends Er{}class Rr extends Er{}class Pr extends Er{constructor(t){t["nullValues"]&&(t["nullValues"]=t["nullValues"].map(zr)),super(t),this._values=new er(new Uint32Array(0),2)}get values64(){return this._values.buffer64}isValid(t){return super.isValid(zr(t))}}const zr=(t=>e=>(ArrayBuffer.isView(e)&&(t.buffer=e.buffer,t.byteOffset=e.byteOffset,t.byteLength=e.byteLength,e=Dr(t),t.buffer=null),e))({BigIntArray:at});class $r extends rr{}class Yr extends $r{}class Wr extends $r{}class Hr extends $r{}class Kr extends $r{}class Gr extends rr{}class qr extends Gr{}class Jr extends Gr{}class Zr extends Gr{}class Xr extends Gr{}class Qr extends rr{}class ti extends Qr{}class ei extends Qr{}class ni extends ir{constructor(t){super(t),this._values=new Zn(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,Ct(e))}_flushPending(t,e){const n=this._offsets,r=this._values.reserve(e).buffer;let i,s=0,o=0,a=0;for([s,i]of t)void 0===i?n.set(s,0):(o=i.length,r.set(i,a),n.set(s,o),a+=o)}}class ri extends ir{constructor(t){super(t),this._values=new Zn(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,tt(e))}_flushPending(t,e){}}ri.prototype._flushPending=ni.prototype._flushPending;class ii{get length(){return this._values.length}get(t){return this._values[t]}clear(){return this._values=null,this}bind(t){return t instanceof we?t:(this._values=t,this)}}const si=Symbol.for("parent"),oi=Symbol.for("rowIndex"),ai=Symbol.for("keyToIdx"),ci=Symbol.for("idxToVal"),ui=Symbol.for("nodejs.util.inspect.custom");class li{constructor(t,e){this[si]=t,this.size=e}entries(){return this[Symbol.iterator]()}has(t){return void 0!==this.get(t)}get(t){let e=void 0;if(null!==t&&void 0!==t){const n=this[ai]||(this[ai]=new Map);let r=n.get(t);if(void 0!==r){const t=this[ci]||(this[ci]=new Array(this.size));void 0!==(e=t[r])||(t[r]=e=this.getValue(r))}else if((r=this.getIndex(t))>-1){n.set(t,r);const i=this[ci]||(this[ci]=new Array(this.size));void 0!==(e=i[r])||(i[r]=e=this.getValue(r))}}return e}set(t,e){if(null!==t&&void 0!==t){const n=this[ai]||(this[ai]=new Map);let r=n.get(t);if(void 0===r&&n.set(t,r=this.getIndex(t)),r>-1){const t=this[ci]||(this[ci]=new Array(this.size));t[r]=this.setValue(r,e)}}return this}clear(){throw new Error(`Clearing ${this[Symbol.toStringTag]} not supported.`)}delete(t){throw new Error(`Deleting ${this[Symbol.toStringTag]} values not supported.`)}*[Symbol.iterator](){const t=this.keys(),e=this.values(),n=this[ai]||(this[ai]=new Map),r=this[ci]||(this[ci]=new Array(this.size));for(let i,s,o,a,c=0;!(o=t.next()).done&&!(a=e.next()).done;++c)i=o.value,s=a.value,r[c]=s,n.has(i)||n.set(i,c),yield[i,s]}forEach(t,e){const n=this.keys(),r=this.values(),i=void 0===e?t:(n,r,i)=>t.call(e,n,r,i),s=this[ai]||(this[ai]=new Map),o=this[ci]||(this[ci]=new Array(this.size));for(let a,c,u,l,h=0;!(u=n.next()).done&&!(l=r.next()).done;++h)a=u.value,c=l.value,o[h]=c,s.has(a)||s.set(a,h),i(c,a,this)}toArray(){return[...this.values()]}toJSON(){const t={};return this.forEach((e,n)=>t[n]=e),t}inspect(){return this.toString()}[ui](){return this.toString()}toString(){const t=[];return this.forEach((e,n)=>{n=Hn(n),e=Hn(e),t.push(`${n}: ${e}`)}),`{ ${t.join(", ")} }`}}li[Symbol.toStringTag]=(t=>(Object.defineProperties(t,{size:{writable:!0,enumerable:!1,configurable:!1,value:0},[si]:{writable:!0,enumerable:!1,configurable:!1,value:null},[oi]:{writable:!0,enumerable:!1,configurable:!1,value:-1}}),t[Symbol.toStringTag]="Row"))(li.prototype);class hi extends li{constructor(t){return super(t,t.length),pi(this)}keys(){return this[si].getChildAt(0)[Symbol.iterator]()}values(){return this[si].getChildAt(1)[Symbol.iterator]()}getKey(t){return this[si].getChildAt(0).get(t)}getIndex(t){return this[si].getChildAt(0).indexOf(t)}getValue(t){return this[si].getChildAt(1).get(t)}setValue(t,e){this[si].getChildAt(1).set(t,e)}}class fi extends li{constructor(t){return super(t,t.type.children.length),di(this)}*keys(){for(const t of this[si].type.children)yield t.name}*values(){for(const t of this[si].type.children)yield this[t.name]}getKey(t){return this[si].type.children[t].name}getIndex(t){return this[si].type.children.findIndex(e=>e.name===t)}getValue(t){return this[si].getChildAt(t).get(this[oi])}setValue(t,e){return this[si].getChildAt(t).set(this[oi],e)}}Object.setPrototypeOf(li.prototype,Map.prototype);const di=(()=>{const t={enumerable:!0,configurable:!1,get:null,set:null};return e=>{let n=-1,r=e[ai]||(e[ai]=new Map);const i=t=>function(){return this.get(t)},s=t=>function(e){return this.set(t,e)};for(const o of e.keys())r.set(o,++n),t.get=i(o),t.set=s(o),e.hasOwnProperty(o)||(t.enumerable=!0,Object.defineProperty(e,o,t)),e.hasOwnProperty(n)||(t.enumerable=!1,Object.defineProperty(e,n,t));return t.get=t.set=null,e}})(),pi=(()=>{if("undefined"===typeof Proxy)return di;const t=li.prototype.has,e=li.prototype.get,n=li.prototype.set,r=li.prototype.getKey,i={isExtensible(){return!1},deleteProperty(){return!1},preventExtensions(){return!0},ownKeys(t){return[...t.keys()].map(t=>""+t)},has(t,e){switch(e){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case si:case oi:case ci:case ai:case ui:return!0}return"number"!==typeof e||t.has(e)||(e=t.getKey(e)),t.has(e)},get(n,i,s){switch(i){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case si:case oi:case ci:case ai:case ui:return Reflect.get(n,i,s)}return"number"!==typeof i||t.call(s,i)||(i=r.call(s,i)),e.call(s,i)},set(e,i,s,o){switch(i){case si:case oi:case ci:case ai:return Reflect.set(e,i,s,o);case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:return!1}return"number"!==typeof i||t.call(o,i)||(i=r.call(o,i)),!!t.call(o,i)&&!!n.call(o,i,s)}};return t=>new Proxy(t,i)})();function yi(t,e,n){const r=t.length,i=e>-1?e:r+e%r;return n?n(t,i):i}let bi;function gi(t,e,n,r){let{length:i=0}=t,s="number"!==typeof e?0:e,o="number"!==typeof n?i:n;return s<0&&(s=(s%i+i)%i),o<0&&(o=(o%i+i)%i),oi&&(o=i),r?r(t,s,o):[s,o]}const mi=ot?st(0):0,vi=t=>t!==t;function _i(t){let e=typeof t;if("object"!==e||null===t)return vi(t)?vi:"bigint"!==e?e=>e===t:e=>mi+e===t;if(t instanceof Date){const e=t.valueOf();return t=>t instanceof Date&&t.valueOf()===e}return ArrayBuffer.isView(t)?e=>!!e&&he(t,e):t instanceof Map?Ii(t):Array.isArray(t)?wi(t):t instanceof we?Si(t):Oi(t)}function wi(t){const e=[];for(let n=-1,r=t.length;++nn[++e]=_i(t)),Ti(n)}function Si(t){const e=[];for(let n=-1,r=t.length;++n!1;const n=[];for(let r=-1,i=e.length;++r{if(!n||"object"!==typeof n)return!1;switch(n.constructor){case Array:return Ai(t,n);case Map:case hi:case fi:return Bi(t,n,n.keys());case Object:case void 0:return Bi(t,n,e||Object.keys(n))}return n instanceof we&&xi(t,n)}}function Ai(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r`}get data(){return this._chunks[0]?this._chunks[0].data:null}get ArrayType(){return this._type.ArrayType}get numChildren(){return this._numChildren}get stride(){return this._chunks[0]?this._chunks[0].stride:1}get byteLength(){return this._chunks.reduce((t,e)=>t+e.byteLength,0)}get nullCount(){let t=this._nullCount;return t<0&&(this._nullCount=t=this._chunks.reduce((t,{nullCount:e})=>t+e,0)),t}get indices(){if(un.isDictionary(this._type)){if(!this._indices){const t=this._chunks;this._indices=1===t.length?t[0].indices:ji.concat(...t.map(t=>t.indices))}return this._indices}return null}get dictionary(){return un.isDictionary(this._type)?this._chunks[this._chunks.length-1].data.dictionary:null}*[Symbol.iterator](){for(const t of this._chunks)yield*t}clone(t=this._chunks){return new ji(this._type,t)}concat(...t){return this.clone(ji.flatten(this,...t))}slice(t,e){return gi(this,t,e,this._sliceInternal)}getChildAt(t){if(t<0||t>=this._numChildren)return null;let e,n,r,i=this._children||(this._children=[]);return(e=i[t])?e:(n=(this._type.children||[])[t])&&(r=this._chunks.map(e=>e.getChildAt(t)).filter(t=>null!=t),r.length>0)?i[t]=new ji(n.type,r):null}search(t,e){let n=t,r=this._chunkOffsets,i=r.length-1;if(n<0)return null;if(n>=r[i])return null;if(i<=1)return e?e(this,0,n):[0,n];let s=0,o=0,a=0;do{if(s+1===i)return e?e(this,s,n-o):[s,n-o];a=s+(i-s)/2|0,n>=r[a]?s=a:i=a}while(n=(o=r[s]));return null}isValid(t){return!!this.search(t,this.isValidInternal)}get(t){return this.search(t,this.getInternal)}set(t,e){this.search(t,({chunks:t},n,r)=>t[n].set(r,e))}indexOf(t,e){return e&&"number"===typeof e?this.search(e,(e,n,r)=>this.indexOfInternal(e,n,r,t)):this.indexOfInternal(this,0,Math.max(0,e||0),t)}toArray(){const{chunks:t}=this,e=t.length;let n=this._type.ArrayType;if(e<=0)return new n(0);if(e<=1)return t[0].toArray();let r=0,i=new Array(e);for(let a=-1;++a=n)break;if(e>=c+a)continue;if(c>=e&&c+a<=n){r.push(t);continue}const u=Math.max(0,e-c),l=Math.min(n-c,a);r.push(t.slice(u,l))}return t.clone(r)}}function Di(t){let e=new Uint32Array((t||[]).length+1),n=e[0]=0,r=e.length;for(let i=0;++i(e.set(t,n),n+t.length),Li=(t,e,n)=>{let r=n;for(let i=-1,s=t.length;++it>0)&&(t=t.clone({nullable:!0}));return new Ei(t,r)}get field(){return this._field}get name(){return this._field.name}get nullable(){return this._field.nullable}get metadata(){return this._field.metadata}clone(t=this._chunks){return new Ei(this._field,t)}getChildAt(t){if(t<0||t>=this.numChildren)return null;let e,n,r,i=this._children||(this._children=[]);return(e=i[t])?e:(n=(this.type.children||[])[t])&&(r=this._chunks.map(e=>e.getChildAt(t)).filter(t=>null!=t),r.length>0)?i[t]=new Ei(n,r):null}}class Mi extends Ei{constructor(t,e,n){super(t,[e],n),this._chunk=e}search(t,e){return e?e(this,0,t):[0,t]}isValid(t){return this._chunk.isValid(t)}get(t){return this._chunk.get(t)}set(t,e){this._chunk.set(t,e)}indexOf(t,e){return this._chunk.indexOf(t,e)}}const Ui=Array.isArray,Ci=(t,e)=>Pi(t,e,[],0),Ni=t=>{const[e,n]=Wi(t,[[],[]]);return n.map((t,n)=>t instanceof Ei?Ei.new(t.field.clone(e[n]),t):t instanceof we?Ei.new(e[n],t):Ei.new(e[n],[]))},ki=t=>Wi(t,[[],[]]),Vi=(t,e)=>zi(t,e,[],0),Ri=(t,e)=>$i(t,e,[],0);function Pi(t,e,n,r){let i,s=r,o=-1,a=e.length;while(++oi.getChildAt(e)),n,s).length:i instanceof we&&(n[s++]=i);return n}const Yi=(t,[e,n],r)=>(t[0][r]=e,t[1][r]=n,t);function Wi(t,e){let n,r;switch(r=t.length){case 0:return e;case 1:if(n=e[0],!t[0])return e;if(Ui(t[0]))return Wi(t[0],e);t[0]instanceof Yn||t[0]instanceof we||t[0]instanceof un||([n,t]=Object.entries(t[0]).reduce(Yi,e));break;default:Ui(n=t[r-1])?t=Ui(t[0])?t[0]:t.slice(0,r-1):(t=Ui(t[0])?t[0]:t,n=[])}let i,s,o=-1,a=-1,c=-1,u=t.length,[l,h]=e;while(++c`${e}: ${t}`).join(", ")} }>`}compareTo(t){return cn.compareSchemas(this,t)}select(...t){const e=t.reduce((t,e)=>(t[e]=!0)&&t,Object.create(null));return new Hi(this.fields.filter(t=>e[t.name]),this.metadata)}selectAt(...t){return new Hi(t.map(t=>this.fields[t]).filter(Boolean),this.metadata)}assign(...t){const e=t[0]instanceof Hi?t[0]:new Hi(Ci(Ki,t)),n=[...this.fields],r=Gi(Gi(new Map,this.metadata),e.metadata),i=e.fields.filter(t=>{const e=n.findIndex(e=>e.name===t.name);return!~e||(n[e]=t.clone({metadata:Gi(Gi(new Map,n[e].metadata),t.metadata)}))&&!1}),s=qi(i,new Map);return new Hi([...n,...i],r,new Map([...this.dictionaries,...s]))}}class Ki{constructor(t,e,n=!1,r){this.name=t,this.type=e,this.nullable=n,this.metadata=r||new Map}static new(...t){let[e,n,r,i]=t;return t[0]&&"object"===typeof t[0]&&(({name:e}=t[0]),void 0===n&&(n=t[0].type),void 0===r&&(r=t[0].nullable),void 0===i&&(i=t[0].metadata)),new Ki(""+e,n,r,i)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}compareTo(t){return cn.compareField(this,t)}clone(...t){let[e,n,r,i]=t;return t[0]&&"object"===typeof t[0]?({name:e=this.name,type:n=this.type,nullable:r=this.nullable,metadata:i=this.metadata}=t[0]):[e=this.name,n=this.type,r=this.nullable,i=this.metadata]=t,Ki.new(e,n,r,i)}}function Gi(t,e){return new Map([...t||new Map,...e||new Map])}function qi(t,e=new Map){for(let n=-1,r=t.length;++n0&&qi(i.children,e)}return e}Hi.prototype.fields=null,Hi.prototype.metadata=null,Hi.prototype.dictionaries=null,Ki.prototype.type=null,Ki.prototype.name=null,Ki.prototype.nullable=null,Ki.prototype.metadata=null;class Ji extends ir{constructor(t){super(t),this._run=new ii,this._offsets=new tr}addChild(t,e="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Mn(new Ki(e,t.type,!0)),this.numChildren-1}clear(){return this._run.clear(),super.clear()}_flushPending(t){const e=this._run,n=this._offsets,r=this._setValue;let i,s=0;for([s,i]of t)void 0===i?n.set(s,0):(n.set(s,i.length),r(this,s,e.bind(i)))}}class Zi extends nr{constructor(){super(...arguments),this._run=new ii}setValue(t,e){super.setValue(t,this._run.bind(e))}addChild(t,e="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");const n=this.children.push(t);return this.type=new kn(this.type.listSize,new Ki(e,t.type,!0)),n}clear(){return this._run.clear(),super.clear()}}class Xi extends ir{set(t,e){return super.set(t,e)}setValue(t,e){e=e instanceof Map?e:new Map(Object.entries(e));const n=this._pending||(this._pending=new Map),r=n.get(t);r&&(this._pendingLength-=r.size),this._pendingLength+=e.size,n.set(t,e)}addChild(t,e=""+this.numChildren){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Vn(new Ki(e,t.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(t){const e=this._offsets,n=this._setValue;t.forEach((t,r)=>{void 0===t?e.set(r,0):(e.set(r,t.size),n(this,r,t))})}}class Qi extends nr{addChild(t,e=""+this.numChildren){const n=this.children.push(t);return this.type=new Un([...this.type.children,new Ki(e,t.type,!0)]),n}}class ts extends nr{constructor(t){super(t),this._typeIds=new Xn(new Int8Array(0),1),"function"===typeof t["valueToChildTypeId"]&&(this._valueToChildTypeId=t["valueToChildTypeId"])}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(t,e){return this.set(this.length,t,e)}set(t,e,n){return void 0===n&&(n=this._valueToChildTypeId(this,e,t)),this.setValid(t,this.isValid(e))&&this.setValue(t,e,n),this}setValue(t,e,n){this._typeIds.set(t,n),super.setValue(t,e)}addChild(t,e=""+this.children.length){const n=this.children.push(t),{type:{children:r,mode:i,typeIds:s}}=this,o=[...r,new Ki(e,t.type)];return this.type=new Cn(i,[...s,n],o),n}_valueToChildTypeId(t,e,n){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}}class es extends ts{}class ns extends ts{constructor(t){super(t),this._offsets=new Xn(new Int32Array(0))}setValue(t,e,n){const r=this.type.typeIdToChildIndex[n];return this._offsets.set(t,this.getChildAt(r).length),super.setValue(t,e,n)}}class rs extends ze{}const is=(t,e,n)=>{t[e]=n/864e5|0},ss=(t,e,n)=>{t[e]=n%4294967296|0,t[e+1]=n/4294967296|0},os=(t,e,n)=>{t[e]=1e3*n%4294967296|0,t[e+1]=1e3*n/4294967296|0},as=(t,e,n)=>{t[e]=1e6*n%4294967296|0,t[e+1]=1e6*n/4294967296|0},cs=(t,e,n,r)=>{const{[n]:i,[n+1]:s}=e;null!=i&&null!=s&&t.set(r.subarray(0,s-i),i)},us=({offset:t,values:e},n,r)=>{const i=t+n;r?e[i>>3]|=1<>3]&=~(1<{is(t,e,n.valueOf())},hs=({values:t},e,n)=>{ss(t,2*e,n.valueOf())},fs=({stride:t,values:e},n,r)=>{e[t*n]=r},ds=({stride:t,values:e},n,r)=>{e[t*n]=mr(r)},ps=(t,e,n)=>{switch(typeof n){case"bigint":t.values64[e]=n;break;case"number":t.values[e*t.stride]=n;break;default:const r=n,{stride:i,ArrayType:s}=t,o=Ft(s,r);t.values.set(o.subarray(0,i),i*e)}},ys=({stride:t,values:e},n,r)=>{e.set(r.subarray(0,t),t*n)},bs=({values:t,valueOffsets:e},n,r)=>cs(t,e,n,r),gs=({values:t,valueOffsets:e},n,r)=>{cs(t,e,n,tt(r))},ms=(t,e,n)=>{t.type.bitWidth<64?fs(t,e,n):ps(t,e,n)},vs=(t,e,n)=>{t.type.precision!==Be.HALF?fs(t,e,n):ds(t,e,n)},_s=(t,e,n)=>{t.type.unit===Ae.DAY?ls(t,e,n):hs(t,e,n)},ws=({values:t},e,n)=>ss(t,2*e,n/1e3),Is=({values:t},e,n)=>ss(t,2*e,n),Ss=({values:t},e,n)=>os(t,2*e,n),Os=({values:t},e,n)=>as(t,2*e,n),Ts=(t,e,n)=>{switch(t.type.unit){case xe.SECOND:return ws(t,e,n);case xe.MILLISECOND:return Is(t,e,n);case xe.MICROSECOND:return Ss(t,e,n);case xe.NANOSECOND:return Os(t,e,n)}},As=({values:t,stride:e},n,r)=>{t[e*n]=r},xs=({values:t,stride:e},n,r)=>{t[e*n]=r},Bs=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},js=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},Ds=(t,e,n)=>{switch(t.type.unit){case xe.SECOND:return As(t,e,n);case xe.MILLISECOND:return xs(t,e,n);case xe.MICROSECOND:return Bs(t,e,n);case xe.NANOSECOND:return js(t,e,n)}},Fs=({values:t},e,n)=>{t.set(n.subarray(0,4),4*e)},Ls=(t,e,n)=>{const r=t.getChildAt(0),i=t.valueOffsets;for(let s=-1,o=i[e],a=i[e+1];o{const r=t.getChildAt(0),i=t.valueOffsets,s=n instanceof Map?[...n]:Object.entries(n);for(let o=-1,a=i[e],c=i[e+1];a(n,r,i)=>n&&n.set(t,e[i]),Us=(t,e)=>(n,r,i)=>n&&n.set(t,e.get(i)),Cs=(t,e)=>(n,r,i)=>n&&n.set(t,e.get(r.name)),Ns=(t,e)=>(n,r,i)=>n&&n.set(t,e[r.name]),ks=(t,e,n)=>{const r=n instanceof Map?Cs(e,n):n instanceof we?Us(e,n):Array.isArray(n)?Ms(e,n):Ns(e,n);t.type.children.forEach((e,n)=>r(t.getChildAt(n),e,n))},Vs=(t,e,n)=>{t.type.mode===je.Dense?Rs(t,e,n):Ps(t,e,n)},Rs=(t,e,n)=>{const r=t.typeIdToChildIndex[t.typeIds[e]],i=t.getChildAt(r);i&&i.set(t.valueOffsets[e],n)},Ps=(t,e,n)=>{const r=t.typeIdToChildIndex[t.typeIds[e]],i=t.getChildAt(r);i&&i.set(e,n)},zs=(t,e,n)=>{const r=t.getKey(e);null!==r&&t.setValue(r,n)},$s=(t,e,n)=>{t.type.unit===De.DAY_TIME?Ys(t,e,n):Ws(t,e,n)},Ys=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},Ws=({values:t},e,n)=>{t[e]=12*n[0]+n[1]%12},Hs=(t,e,n)=>{const r=t.getChildAt(0),{stride:i}=t;for(let s=-1,o=e*i;++s0){const r=t["children"]||[],i={nullValues:t["nullValues"]},s=Array.isArray(r)?(t,e)=>r[e]||i:({name:t})=>r[t]||i;e.children.forEach((t,e)=>{const{type:r}=t,i=s(t,e);n.children.push(Js({...i,type:r}))})}return n}var Zs;nr.new=Js,Object.keys(Oe).map(t=>Oe[t]).filter(t=>"number"===typeof t&&t!==Oe.NONE).forEach(t=>{const e=qs.visit(t);e.prototype._setValue=Ks.getVisitFn(t)}),ri.prototype._setValue=Ks.visitBinary,function(t){(function(e){(function(e){(function(e){class n{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new n).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Ie.apache.arrow.flatbuf.MetadataVersion.V1}schema(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new Ie.apache.arrow.flatbuf.Schema).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(e,n){let r=this.bb.__offset(this.bb_pos,8);return r?(n||new t.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}dictionariesLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(e,n){let r=this.bb.__offset(this.bb_pos,10);return r?(n||new t.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}recordBatchesLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(4)}static addVersion(t,e){t.addFieldInt16(0,e,Ie.apache.arrow.flatbuf.MetadataVersion.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static endFooter(t){let e=t.endObject();return e}static finishFooterBuffer(t,e){t.finish(e)}static createFooter(t,e,r,i,s){return n.startFooter(t),n.addVersion(t,e),n.addSchema(t,r),n.addDictionaries(t,i),n.addRecordBatches(t,s),n.endFooter(t)}}e.Footer=n})(e.flatbuf||(e.flatbuf={}))})(e.arrow||(e.arrow={}))})(t.apache||(t.apache={}))}(Zs||(Zs={})),function(t){(function(t){(function(t){(function(t){class e{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static createBlock(t,e,n,r){return t.prep(8,24),t.writeInt64(r),t.pad(4),t.writeInt32(n),t.writeInt64(e),t.offset()}}t.Block=e})(t.flatbuf||(t.flatbuf={}))})(t.arrow||(t.arrow={}))})(t.apache||(t.apache={}))}(Zs||(Zs={}));var Xs=U.Long,Qs=U.Builder,to=U.ByteBuffer,eo=Zs.apache.arrow.flatbuf.Block,no=Zs.apache.arrow.flatbuf.Footer;class ro{constructor(t,e=Le.V4,n,r){this.schema=t,this.version=e,n&&(this._recordBatches=n),r&&(this._dictionaryBatches=r)}static decode(t){t=new to(Ct(t));const e=no.getRootAsFooter(t),n=Hi.decode(e.schema());return new io(n,e)}static encode(t){const e=new Qs,n=Hi.encode(e,t.schema);no.startRecordBatchesVector(e,t.numRecordBatches),[...t.recordBatches()].slice().reverse().forEach(t=>so.encode(e,t));const r=e.endVector();no.startDictionariesVector(e,t.numDictionaries),[...t.dictionaryBatches()].slice().reverse().forEach(t=>so.encode(e,t));const i=e.endVector();return no.startFooter(e),no.addSchema(e,n),no.addVersion(e,Le.V4),no.addRecordBatches(e,r),no.addDictionaries(e,i),no.finishFooterBuffer(e,no.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let t,e=-1,n=this.numRecordBatches;++e=0&&t=0&&t=0&&t=0&&t0)return super.write(t)}toString(t=!1){return t?Q(this.toUint8Array(!0)):this.toUint8Array(!1).then(Q)}toUint8Array(t=!1){return t?Dt(this._values)[0]:(async()=>{let t=[],e=0;for await(const n of this)t.push(n),e+=n.byteLength;return Dt(t,e)[0]})()}}class ao{constructor(t){t&&(this.source=new uo(fe.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class co{constructor(t){t instanceof co?this.source=t.source:t instanceof oo?this.source=new lo(fe.fromAsyncIterable(t)):Tt(t)?this.source=new lo(fe.fromNodeStream(t)):St(t)?this.source=new lo(fe.fromDOMStream(t)):wt(t)?this.source=new lo(fe.fromDOMStream(t.body)):bt(t)?this.source=new lo(fe.fromIterable(t)):(yt(t)||gt(t))&&(this.source=new lo(fe.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class uo{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||et)}return(t){return Object.create(this.source.return&&this.source.return(t)||et)}}class lo{constructor(t){this.source=t,this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}async cancel(t){await this.return(t)}get closed(){return this._closedPromise}async read(t){return(await this.next(t,"read")).value}async peek(t){return(await this.next(t,"peek")).value}async next(t,e="read"){return await this.source.next({cmd:e,size:t})}async throw(t){const e=this.source.throw&&await this.source.throw(t)||et;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}async return(t){const e=this.source.return&&await this.source.return(t)||et;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}}class ho extends ao{constructor(t,e){super(),this.position=0,this.buffer=Ct(t),this.size="undefined"===typeof e?this.buffer.byteLength:e}readInt32(t){const{buffer:e,byteOffset:n}=this.readAt(t,4);return new DataView(e,n).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t{this.size=(await t.stat()).size,delete this._pending})()}async readInt32(t){const{buffer:e,byteOffset:n}=await this.readAt(t,4);return new DataView(e,n).getInt32(0,!0)}async seek(t){return this._pending&&await this._pending,this.position=Math.min(t,this.size),t>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),n=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]]);let r=e[3]*n[3];this.buffer[0]=65535&r;let i=r>>>16;return r=e[2]*n[3],i+=r,r=e[3]*n[2]>>>0,i+=r,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0>>16,this.buffer[1]+=e[1]*n[3]+e[2]*n[2]+e[3]*n[1],this.buffer[1]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0]<<16,this}_plus(t){const e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]>>0&&++e[1],e[1]>>0&&++e[2],e[2]>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${yo(this.buffer[3])} ${yo(this.buffer[2])} ${yo(this.buffer[1])} ${yo(this.buffer[0])}`}static multiply(t,e){let n=new wo(new Uint32Array(t.buffer));return n.times(e)}static add(t,e){let n=new wo(new Uint32Array(t.buffer));return n.plus(e)}static from(t,e=new Uint32Array(4)){return wo.fromString("string"===typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return wo.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){const n=t.startsWith("-"),r=t.length;let i=new wo(e);for(let s=n?1:0;s0&&this.readData(t,n)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:n}=this.nextBufferRange()){return this.bytes.subarray(n,n+e)}readDictionary(t){return this.dictionaries.get(t.id)}}class So extends Io{constructor(t,e,n,r){super(new Uint8Array(0),e,n,r),this.sources=t}readNullBitmap(t,e,{offset:n}=this.nextBufferRange()){return e<=0?new Uint8Array(0):Ne(this.sources[n])}readOffsets(t,{offset:e}=this.nextBufferRange()){return Ft(Uint8Array,Ft(Int32Array,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return Ft(Uint8Array,Ft(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){const{sources:n}=this;return un.isTimestamp(t)||(un.isInt(t)||un.isTime(t))&&64===t.bitWidth||un.isDate(t)&&t.unit===Ae.MILLISECOND?Ft(Uint8Array,_o.convertArray(n[e])):un.isDecimal(t)?Ft(Uint8Array,wo.convertArray(n[e])):un.isBinary(t)||un.isFixedSizeBinary(t)?Oo(n[e]):un.isBool(t)?Ne(n[e]):un.isUtf8(t)?tt(n[e].join("")):Ft(Uint8Array,Ft(t.ArrayType,n[e].map(t=>+t)))}}function Oo(t){const e=t.join(""),n=new Uint8Array(e.length/2);for(let r=0;r>1]=parseInt(e.substr(r,2),16);return n}var To=U.Long,Ao=Ie.apache.arrow.flatbuf.Null,xo=Ie.apache.arrow.flatbuf.Int,Bo=Ie.apache.arrow.flatbuf.FloatingPoint,jo=Ie.apache.arrow.flatbuf.Binary,Do=Ie.apache.arrow.flatbuf.Bool,Fo=Ie.apache.arrow.flatbuf.Utf8,Lo=Ie.apache.arrow.flatbuf.Decimal,Eo=Ie.apache.arrow.flatbuf.Date,Mo=Ie.apache.arrow.flatbuf.Time,Uo=Ie.apache.arrow.flatbuf.Timestamp,Co=Ie.apache.arrow.flatbuf.Interval,No=Ie.apache.arrow.flatbuf.List,ko=Ie.apache.arrow.flatbuf.Struct_,Vo=Ie.apache.arrow.flatbuf.Union,Ro=Ie.apache.arrow.flatbuf.DictionaryEncoding,Po=Ie.apache.arrow.flatbuf.FixedSizeBinary,zo=Ie.apache.arrow.flatbuf.FixedSizeList,$o=Ie.apache.arrow.flatbuf.Map;class Yo extends ze{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return Ao.startNull(e),Ao.endNull(e)}visitInt(t,e){return xo.startInt(e),xo.addBitWidth(e,t.bitWidth),xo.addIsSigned(e,t.isSigned),xo.endInt(e)}visitFloat(t,e){return Bo.startFloatingPoint(e),Bo.addPrecision(e,t.precision),Bo.endFloatingPoint(e)}visitBinary(t,e){return jo.startBinary(e),jo.endBinary(e)}visitBool(t,e){return Do.startBool(e),Do.endBool(e)}visitUtf8(t,e){return Fo.startUtf8(e),Fo.endUtf8(e)}visitDecimal(t,e){return Lo.startDecimal(e),Lo.addScale(e,t.scale),Lo.addPrecision(e,t.precision),Lo.endDecimal(e)}visitDate(t,e){return Eo.startDate(e),Eo.addUnit(e,t.unit),Eo.endDate(e)}visitTime(t,e){return Mo.startTime(e),Mo.addUnit(e,t.unit),Mo.addBitWidth(e,t.bitWidth),Mo.endTime(e)}visitTimestamp(t,e){const n=t.timezone&&e.createString(t.timezone)||void 0;return Uo.startTimestamp(e),Uo.addUnit(e,t.unit),void 0!==n&&Uo.addTimezone(e,n),Uo.endTimestamp(e)}visitInterval(t,e){return Co.startInterval(e),Co.addUnit(e,t.unit),Co.endInterval(e)}visitList(t,e){return No.startList(e),No.endList(e)}visitStruct(t,e){return ko.startStruct_(e),ko.endStruct_(e)}visitUnion(t,e){Vo.startTypeIdsVector(e,t.typeIds.length);const n=Vo.createTypeIdsVector(e,t.typeIds);return Vo.startUnion(e),Vo.addMode(e,t.mode),Vo.addTypeIds(e,n),Vo.endUnion(e)}visitDictionary(t,e){const n=this.visit(t.indices,e);return Ro.startDictionaryEncoding(e),Ro.addId(e,new To(t.id,0)),Ro.addIsOrdered(e,t.isOrdered),void 0!==n&&Ro.addIndexType(e,n),Ro.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return Po.startFixedSizeBinary(e),Po.addByteWidth(e,t.byteWidth),Po.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return zo.startFixedSizeList(e),zo.addListSize(e,t.listSize),zo.endFixedSizeList(e)}visitMap(t,e){return $o.startMap(e),$o.addKeysSorted(e,t.keysSorted),$o.endMap(e)}}const Wo=new Yo;function Ho(t,e=new Map){return new Hi(qo(t,e),ea(t["customMetadata"]),e)}function Ko(t){return new ma(t["count"],Zo(t["columns"]),Xo(t["columns"]))}function Go(t){return new va(Ko(t["data"]),t["id"],t["isDelta"])}function qo(t,e){return(t["fields"]||[]).filter(Boolean).map(t=>Ki.fromJSON(t,e))}function Jo(t,e){return(t["children"]||[]).filter(Boolean).map(t=>Ki.fromJSON(t,e))}function Zo(t){return(t||[]).reduce((t,e)=>[...t,new wa(e["count"],Qo(e["VALIDITY"])),...Zo(e["children"])],[])}function Xo(t,e=[]){for(let n=-1,r=(t||[]).length;++nt+ +(0===e),0)}function ta(t,e){let n,r,i,s,o,a;return e&&(s=t["dictionary"])?e.has(n=s["id"])?(r=(r=s["indexType"])?na(r):new pn,a=new Pn(e.get(n),r,n,s["isOrdered"]),i=new Ki(t["name"],a,t["nullable"],ea(t["customMetadata"]))):(r=(r=s["indexType"])?na(r):new pn,e.set(n,o=ra(t,Jo(t,e))),a=new Pn(o,r,n,s["isOrdered"]),i=new Ki(t["name"],a,t["nullable"],ea(t["customMetadata"]))):(o=ra(t,Jo(t,e)),i=new Ki(t["name"],o,t["nullable"],ea(t["customMetadata"]))),i||null}function ea(t){return new Map(Object.entries(t||{}))}function na(t){return new hn(t["isSigned"],t["bitWidth"])}function ra(t,e){const n=t["type"]["name"];switch(n){case"NONE":return new ln;case"null":return new ln;case"binary":return new On;case"utf8":return new Tn;case"bool":return new An;case"list":return new Mn((e||[])[0]);case"struct":return new Un(e||[]);case"struct_":return new Un(e||[])}switch(n){case"int":{const e=t["type"];return new hn(e["isSigned"],e["bitWidth"])}case"floatingpoint":{const e=t["type"];return new _n(Be[e["precision"]])}case"decimal":{const e=t["type"];return new xn(e["scale"],e["precision"])}case"date":{const e=t["type"];return new Bn(Ae[e["unit"]])}case"time":{const e=t["type"];return new Fn(xe[e["unit"]],e["bitWidth"])}case"timestamp":{const e=t["type"];return new Ln(xe[e["unit"]],e["timezone"])}case"interval":{const e=t["type"];return new En(De[e["unit"]])}case"union":{const n=t["type"];return new Cn(je[n["mode"]],n["typeIds"]||[],e||[])}case"fixedsizebinary":{const e=t["type"];return new Nn(e["byteWidth"])}case"fixedsizelist":{const n=t["type"];return new kn(n["listSize"],(e||[])[0])}case"map":{const n=t["type"];return new Vn((e||[])[0],n["keysSorted"])}}throw new Error(`Unrecognized type: "${n}"`)}var ia=U.Long,sa=U.Builder,oa=U.ByteBuffer,aa=Ie.apache.arrow.flatbuf.Type,ca=Ie.apache.arrow.flatbuf.Field,ua=Ie.apache.arrow.flatbuf.Schema,la=Ie.apache.arrow.flatbuf.Buffer,ha=Se.apache.arrow.flatbuf.Message,fa=Ie.apache.arrow.flatbuf.KeyValue,da=Se.apache.arrow.flatbuf.FieldNode,pa=Ie.apache.arrow.flatbuf.Endianness,ya=Se.apache.arrow.flatbuf.RecordBatch,ba=Se.apache.arrow.flatbuf.DictionaryBatch;class ga{constructor(t,e,n,r){this._version=e,this._headerType=n,this.body=new Uint8Array(0),r&&(this._createHeader=()=>r),this._bodyLength="number"===typeof t?t:t.low}static fromJSON(t,e){const n=new ga(0,Le.V4,e);return n._createHeader=Ia(t,e),n}static decode(t){t=new oa(Ct(t));const e=ha.getRootAsMessage(t),n=e.bodyLength(),r=e.version(),i=e.headerType(),s=new ga(n,r,i);return s._createHeader=Sa(e,i),s}static encode(t){let e=new sa,n=-1;return t.isSchema()?n=Hi.encode(e,t.header()):t.isRecordBatch()?n=ma.encode(e,t.header()):t.isDictionaryBatch()&&(n=va.encode(e,t.header())),ha.startMessage(e),ha.addVersion(e,Le.V4),ha.addHeader(e,n),ha.addHeaderType(e,t.headerType),ha.addBodyLength(e,new ia(t.bodyLength,0)),ha.finishMessageBuffer(e,ha.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof Hi)return new ga(0,Le.V4,Fe.Schema,t);if(t instanceof ma)return new ga(e,Le.V4,Fe.RecordBatch,t);if(t instanceof va)return new ga(e,Le.V4,Fe.DictionaryBatch,t);throw new Error("Unrecognized Message header: "+t)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===Fe.Schema}isRecordBatch(){return this.headerType===Fe.RecordBatch}isDictionaryBatch(){return this.headerType===Fe.DictionaryBatch}}class ma{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(t,e,n){this._nodes=e,this._buffers=n,this._length="number"===typeof t?t:t.low}}class va{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(t,e,n=!1){this._data=t,this._isDelta=n,this._id="number"===typeof e?e:e.low}}class _a{constructor(t,e){this.offset="number"===typeof t?t:t.low,this.length="number"===typeof e?e:e.low}}class wa{constructor(t,e){this.length="number"===typeof t?t:t.low,this.nullCount="number"===typeof e?e:e.low}}function Ia(t,e){return()=>{switch(e){case Fe.Schema:return Hi.fromJSON(t);case Fe.RecordBatch:return ma.fromJSON(t);case Fe.DictionaryBatch:return va.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${Fe[e]}, type: ${e} }`)}}function Sa(t,e){return()=>{switch(e){case Fe.Schema:return Hi.decode(t.header(new ua));case Fe.RecordBatch:return ma.decode(t.header(new ya),t.version());case Fe.DictionaryBatch:return va.decode(t.header(new ba),t.version())}throw new Error(`Unrecognized Message type: { name: ${Fe[e]}, type: ${e} }`)}}function Oa(t,e=new Map){const n=Fa(t,e);return new Hi(n,Ma(t),e)}function Ta(t,e=Le.V4){return new ma(t.length(),ja(t),Da(t,e))}function Aa(t,e=Le.V4){return new va(ma.decode(t.data(),e),t.id(),t.isDelta())}function xa(t){return new _a(t.offset(),t.length())}function Ba(t){return new wa(t.length(),t.nullCount())}function ja(t){const e=[];for(let n,r=-1,i=-1,s=t.nodesLength();++rKi.encode(t,e));ua.startFieldsVector(t,n.length);const r=ua.createFieldsVector(t,n),i=e.metadata&&e.metadata.size>0?ua.createCustomMetadataVector(t,[...e.metadata].map(([e,n])=>{const r=t.createString(""+e),i=t.createString(""+n);return fa.startKeyValue(t),fa.addKey(t,r),fa.addValue(t,i),fa.endKeyValue(t)})):-1;return ua.startSchema(t),ua.addFields(t,r),ua.addEndianness(t,$a?pa.Little:pa.Big),-1!==i&&ua.addCustomMetadata(t,i),ua.endSchema(t)}function ka(t,e){let n=-1,r=-1,i=-1,s=e.type,o=e.typeId;un.isDictionary(s)?(o=s.dictionary.typeId,i=Wo.visit(s,t),r=Wo.visit(s.dictionary,t)):r=Wo.visit(s,t);const a=(s.children||[]).map(e=>Ki.encode(t,e)),c=ca.createChildrenVector(t,a),u=e.metadata&&e.metadata.size>0?ca.createCustomMetadataVector(t,[...e.metadata].map(([e,n])=>{const r=t.createString(""+e),i=t.createString(""+n);return fa.startKeyValue(t),fa.addKey(t,r),fa.addValue(t,i),fa.endKeyValue(t)})):-1;return e.name&&(n=t.createString(e.name)),ca.startField(t),ca.addType(t,r),ca.addTypeType(t,o),ca.addChildren(t,c),ca.addNullable(t,!!e.nullable),-1!==n&&ca.addName(t,n),-1!==i&&ca.addDictionary(t,i),-1!==u&&ca.addCustomMetadata(t,u),ca.endField(t)}function Va(t,e){const n=e.nodes||[],r=e.buffers||[];ya.startNodesVector(t,n.length),n.slice().reverse().forEach(e=>wa.encode(t,e));const i=t.endVector();ya.startBuffersVector(t,r.length),r.slice().reverse().forEach(e=>_a.encode(t,e));const s=t.endVector();return ya.startRecordBatch(t),ya.addLength(t,new ia(e.length,0)),ya.addNodes(t,i),ya.addBuffers(t,s),ya.endRecordBatch(t)}function Ra(t,e){const n=ma.encode(t,e.data);return ba.startDictionaryBatch(t),ba.addId(t,new ia(e.id,0)),ba.addIsDelta(t,e.isDelta),ba.addData(t,n),ba.endDictionaryBatch(t)}function Pa(t,e){return da.createFieldNode(t,new ia(e.length,0),new ia(e.nullCount,0))}function za(t,e){return la.createBuffer(t,new ia(e.offset,0),new ia(e.length,0))}Ki["encode"]=ka,Ki["decode"]=Ea,Ki["fromJSON"]=ta,Hi["encode"]=Na,Hi["decode"]=Oa,Hi["fromJSON"]=Ho,ma["encode"]=Va,ma["decode"]=Ta,ma["fromJSON"]=Ko,va["encode"]=Ra,va["decode"]=Aa,va["fromJSON"]=Go,wa["encode"]=Pa,wa["decode"]=Ba,_a["encode"]=za,_a["decode"]=xa;const $a=function(){const t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]}();var Ya=U.ByteBuffer;const Wa=t=>`Expected ${Fe[t]} Message in stream, but was null or length 0.`,Ha=t=>`Header pointer of flatbuffer-encoded ${Fe[t]} Message is null or length 0.`,Ka=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,Ga=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`;class qa{constructor(t){this.source=t instanceof ao?t:new ao(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?et:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(Wa(t));return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);const e=Ct(this.source.read(t));if(e.byteLength[...t,...n["VALIDITY"]&&[n["VALIDITY"]]||[],...n["TYPE"]&&[n["TYPE"]]||[],...n["OFFSET"]&&[n["OFFSET"]]||[],...n["DATA"]&&[n["DATA"]]||[],...e(n["children"])],[])}}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(Wa(t));return e.value}readSchema(){const t=Fe.Schema,e=this.readMessage(t),n=e&&e.header();if(!e||!n)throw new Error(Ha(t));return n}}const Xa=4,Qa="ARROW1",tc=new Uint8Array(Qa.length);for(let $h=0;$h2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");un.isNull(t.type)||oc.call(this,r<=0?new Uint8Array(0):Ce(e.offset,n,e.nullBitmap)),this.nodes.push(new wa(n,r))}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.indices)}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function oc(t){const e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new _a(this._byteLength,e)),this._byteLength+=e,this}function ac(t){const{type:e,length:n,typeIds:r,valueOffsets:i}=t;if(oc.call(this,r),e.mode===je.Sparse)return fc.call(this,t);if(e.mode===je.Dense){if(t.offset<=0)return oc.call(this,i),fc.call(this,t);{const s=r.reduce((t,e)=>Math.max(t,e),r[0]),o=new Int32Array(s+1),a=new Int32Array(s+1).fill(-1),c=new Int32Array(n),u=le(-i[0],n,i);for(let t,e,i=-1;++i=t.length?oc.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?oc.call(this,Ce(t.offset,t.length,e)):oc.call(this,Ne(t))}function uc(t){return oc.call(this,t.values.subarray(0,t.length*t.stride))}function lc(t){const{length:e,values:n,valueOffsets:r}=t,i=r[0],s=r[e],o=Math.min(s-i,n.byteLength-i);return oc.call(this,le(-r[0],e,r)),oc.call(this,n.subarray(i,i+o)),this}function hc(t){const{length:e,valueOffsets:n}=t;return n&&oc.call(this,le(n[0],e,n)),this.visit(t.getChildAt(0))}function fc(t){return this.visitMany(t.type.children.map((e,n)=>t.getChildAt(n)).filter(Boolean))[0]}sc.prototype.visitBool=cc,sc.prototype.visitInt=uc,sc.prototype.visitFloat=uc,sc.prototype.visitUtf8=lc,sc.prototype.visitBinary=lc,sc.prototype.visitFixedSizeBinary=uc,sc.prototype.visitDate=uc,sc.prototype.visitTimestamp=uc,sc.prototype.visitTime=uc,sc.prototype.visitDecimal=uc,sc.prototype.visitList=hc,sc.prototype.visitStruct=fc,sc.prototype.visitUnion=ac,sc.prototype.visitInterval=uc,sc.prototype.visitFixedSizeList=hc,sc.prototype.visitMap=hc;class dc extends rt{constructor(t){super(),this._position=0,this._started=!1,this._sink=new oo,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,pt(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!==typeof t.autoDestroy||t.autoDestroy,this._writeLegacyIpcFormat="boolean"===typeof t.writeLegacyIpcFormat&&t.writeLegacyIpcFormat}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return yt(t)?t.then(t=>this.writeAll(t)):gt(t)?gc(this,t):bc(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,e=null){return t===this._sink||t instanceof oo?this._sink=t:(this._sink=new oo,t&&It(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&Ot(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,e&&e.compareTo(this._schema)||(null===e?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}write(t){let e=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null===t||void 0===t)return this.finish()&&void 0;if(t instanceof zl&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof Wl&&!(e=t.schema))return this.finish()&&void 0;if(e&&!e.compareTo(this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof Wl?t instanceof Hl||this._writeRecordBatch(t):t instanceof zl?this.writeAll(t.chunks):bt(t)&&this.writeAll(t)}_writeMessage(t,e=8){const n=e-1,r=ga.encode(t),i=r.byteLength,s=this._writeLegacyIpcFormat?4:8,o=i+s+n&~n,a=o-i-s;return t.headerType===Fe.RecordBatch?this._recordBatchBlocks.push(new so(o,t.bodyLength,this._position)):t.headerType===Fe.DictionaryBatch&&this._dictionaryBlocks.push(new so(o,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(o-s)),i>0&&this._write(r),this._writePadding(a)}_write(t){if(this._started){const e=Ct(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}_writeSchema(t){return this._writeMessage(ga.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(tc)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){const{byteLength:e,nodes:n,bufferRegions:r,buffers:i}=sc.assemble(t),s=new ma(t.length,n,r),o=ga.from(s,e);return this._writeDictionaries(t)._writeMessage(o)._writeBodyBuffers(i)}_writeDictionaryBatch(t,e,n=!1){this._dictionaryDeltaOffsets.set(e,t.length+(this._dictionaryDeltaOffsets.get(e)||0));const{byteLength:r,nodes:i,bufferRegions:s,buffers:o}=sc.assemble(t),a=new ma(t.length,i,s),c=new va(a,e,n),u=ga.from(c,r);return this._writeMessage(u)._writeBodyBuffers(o)}_writeBodyBuffers(t){let e,n,r;for(let i=-1,s=t.length;++i0&&(this._write(e),(r=(n+7&-8)-n)>0&&this._writePadding(r));return this}_writeDictionaries(t){for(let[e,n]of t.dictionaries){let t=this._dictionaryDeltaOffsets.get(e)||0;if(0===t||(n=n.slice(t)).length>0){const r="chunks"in n?n.chunks:[n];for(const n of r)this._writeDictionaryBatch(n,e,t>0),t+=n.length}}return this}}class pc extends dc{static writeAll(t,e){const n=new pc(e);return yt(t)?t.then(t=>n.writeAll(t)):gt(t)?gc(n,t):bc(n,t)}}class yc extends dc{constructor(){super(),this._autoDestroy=!0}static writeAll(t){const e=new yc;return yt(t)?t.then(t=>e.writeAll(t)):gt(t)?gc(e,t):bc(e,t)}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){const e=ro.encode(new ro(t,Le.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic()}}function bc(t,e){let n=e;e instanceof zl&&(n=e.chunks,t.reset(void 0,e.schema));for(const r of n)t.write(r);return t.finish()}async function gc(t,e){for await(const n of e)t.write(n);return t.finish()}const mc=new Uint8Array(0),vc=t=>[mc,mc,new Uint8Array(t),mc];function _c(t,e,n=e.reduce((t,e)=>Math.max(t,e.length),0)){let r,i,s=-1,o=e.length;const a=[...t.fields],c=[],u=(n+63&-64)>>3;while(++st)),t)}function Ic(t,e){return Sc(t,e.map(t=>t instanceof ji?t.chunks.map(t=>t.data):[t.data]))}function Sc(t,e){const n=[...t.fields],r=[],i={numBatches:e.reduce((t,e)=>Math.max(t,e.length),0)};let s,o=0,a=0,c=-1,u=e.length,l=[];while(i.numBatches-- >0){for(a=Number.POSITIVE_INFINITY,c=-1;++c0&&(r[o++]=[a,l.slice()]))}return[t=new Hi(n,t.metadata),r.map(e=>new Wl(t,...e))]}function Oc(t,e,n,r,i){let s,o,a=0,c=-1,u=r.length;const l=(e+63&-64)>>3;while(++c=e?a===e?n[c]=s:(n[c]=s.slice(0,e),s=s.slice(e,a-e),i.numBatches=Math.max(i.numBatches,r[c].unshift(s))):((o=t[c]).nullable||(t[c]=o.clone({nullable:!0})),n[c]=s?s._changeLengthAndBackfillNullBitmap(e):Yn.new(o.type,0,e,e,vc(l)));return n}class Tc extends we{constructor(t,e){super(),this._children=e,this.numChildren=t.childData.length,this._bindDataAccessors(this.data=t)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return Oe[this.typeId]+"Vector"}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(t,e=this._children){return we.new(t,e)}concat(...t){return ji.concat(this,...t)}slice(t,e){return gi(this,t,e,this._sliceInternal)}isValid(t){if(this.nullCount>0){const e=this.offset+t,n=this.nullBitmap[e>>3],r=n&1<=this.numChildren?null:(this._children||(this._children=[]))[t]||(this._children[t]=we.new(this.data.childData[t]))}toJSON(){return[...this]}_sliceInternal(t,e,n){return t.clone(t.data.slice(e,n-e),null)}_bindDataAccessors(t){}}Tc.prototype[Symbol.isConcatSpreadable]=!0;class Ac extends Tc{asUtf8(){return we.new(this.data.clone(new Tn))}}class xc extends Tc{static from(t){return Cl(()=>new An,t)}}class Bc extends Tc{static from(...t){return 2===t.length?Cl(()=>t[1]===Ae.DAY?new jn:new Dn,t[0]):Cl(()=>new Dn,t[0])}}class jc extends Bc{}class Dc extends Bc{}class Fc extends Tc{}class Lc extends Tc{constructor(t){super(t),this.indices=we.new(t.clone(this.type.indices))}static from(...t){if(3===t.length){const[e,n,r]=t,i=new Pn(e.type,n,null,null);return we.new(Yn.Dictionary(i,0,r.length,0,null,r,e))}return Cl(()=>t[0].type,t[0])}get dictionary(){return this.data.dictionary}reverseLookup(t){return this.dictionary.indexOf(t)}getKey(t){return this.indices.get(t)}getValue(t){return this.dictionary.get(t)}setKey(t,e){return this.indices.set(t,e)}setValue(t,e){return this.dictionary.set(t,e)}}Lc.prototype.indices=null;class Ec extends Tc{}class Mc extends Tc{}class Uc extends Tc{static from(t){let e=Pc(this);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let n=Rc(t.constructor)||e;if(null===e&&(e=n),e&&e===n){let n=new e,r=t.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!Vc(e,t.constructor))return we.new(Yn.Float(n,0,r,0,null,t))}}if(e)return Cl(()=>new e,t);if(t instanceof DataView||t instanceof ArrayBuffer)throw new TypeError("Cannot infer float type from instance of "+t.constructor.name);throw new TypeError("Unrecognized FloatVector input")}}class Cc extends Uc{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}}class Nc extends Uc{}class kc extends Uc{}const Vc=(t,e)=>t===wn&&e!==Uint16Array,Rc=t=>{switch(t){case Uint16Array:return wn;case Float32Array:return In;case Float64Array:return Sn;default:return null}},Pc=t=>{switch(t){case Cc:return wn;case Nc:return In;case kc:return Sn;default:return null}};class zc extends Tc{}class $c extends zc{}class Yc extends zc{}class Wc extends Tc{static from(...t){let[e,n=!1]=t,r=nu(this,n);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let t=eu(e.constructor,n)||r;if(null===r&&(r=t),r&&r===t){let t=new r,n=e.byteLength/t.ArrayType.BYTES_PER_ELEMENT;return tu(r,e.constructor)&&(n*=.5),we.new(Yn.Int(t,0,n,0,null,e))}}if(r)return Cl(()=>new r,e);if(e instanceof DataView||e instanceof ArrayBuffer)throw new TypeError("Cannot infer integer type from instance of "+e.constructor.name);throw new TypeError("Unrecognized IntVector input")}}class Hc extends Wc{}class Kc extends Wc{}class Gc extends Wc{}class qc extends Wc{toBigInt64Array(){return Ut(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}}class Jc extends Wc{}class Zc extends Wc{}class Xc extends Wc{}class Qc extends Wc{toBigUint64Array(){return Vt(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}}const tu=(t,e)=>(t===yn||t===vn)&&(e===Int32Array||e===Uint32Array),eu=(t,e)=>{switch(t){case Int8Array:return fn;case Int16Array:return dn;case Int32Array:return e?yn:pn;case at:return yn;case Uint8Array:return bn;case Uint16Array:return gn;case Uint32Array:return e?vn:mn;case ut:return vn;default:return null}},nu=(t,e)=>{switch(t){case Hc:return fn;case Kc:return dn;case Gc:return e?yn:pn;case qc:return yn;case Jc:return bn;case Zc:return gn;case Xc:return e?vn:mn;case Qc:return vn;default:return null}};class ru extends Tc{}class iu extends Tc{asList(){const t=this.type.children[0];return we.new(this.data.clone(new Mn(t)))}bind(t){const e=this.getChildAt(0),{[t]:n,[t+1]:r}=this.valueOffsets;return new hi(e.slice(n,r))}}class su extends Tc{}const ou=Symbol.for("rowIndex");class au extends Tc{bind(t){const e=this._row||(this._row=new fi(this)),n=Object.create(e);return n[ou]=t,n}}class cu extends Tc{}class uu extends cu{}class lu extends cu{}class hu extends cu{}class fu extends cu{}class du extends Tc{}class pu extends du{}class yu extends du{}class bu extends du{}class gu extends du{}class mu extends Tc{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}}class vu extends mu{get valueOffsets(){return this.data.valueOffsets}}class _u extends mu{}class wu extends Tc{static from(t){return Cl(()=>new Tn,t)}asBinary(){return we.new(this.data.clone(new On))}}function Iu(t){return function(){return t(this)}}function Su(t){return function(e){return t(this,e)}}function Ou(t){return function(e,n){return t(this,e,n)}}class Tu extends ze{}const Au=(t,e)=>864e5*t[e],xu=(t,e)=>4294967296*t[e+1]+(t[e]>>>0),Bu=(t,e)=>t[e+1]/1e3*4294967296+(t[e]>>>0)/1e3,ju=(t,e)=>t[e+1]/1e6*4294967296+(t[e]>>>0)/1e6,Du=t=>new Date(t),Fu=(t,e)=>Du(Au(t,e)),Lu=(t,e)=>Du(xu(t,e)),Eu=(t,e)=>null,Mu=(t,e,n)=>{const{[n]:r,[n+1]:i}=e;return null!=r&&null!=i?t.subarray(r,i):null},Uu=({offset:t,values:e},n)=>{const r=t+n,i=e[r>>3];return 0!==(i&1<Fu(t,e),Nu=({values:t},e)=>Lu(t,2*e),ku=({stride:t,values:e},n)=>e[t*n],Vu=({stride:t,values:e},n)=>gr(e[t*n]),Ru=({stride:t,values:e,type:n},r)=>Lr.new(e.subarray(t*r,t*(r+1)),n.isSigned),Pu=({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1)),zu=({values:t,valueOffsets:e},n)=>Mu(t,e,n),$u=({values:t,valueOffsets:e},n)=>{const r=Mu(t,e,n);return null!==r?Q(r):null},Yu=(t,e)=>t.type.bitWidth<64?ku(t,e):Ru(t,e),Wu=(t,e)=>t.type.precision!==Be.HALF?ku(t,e):Vu(t,e),Hu=(t,e)=>t.type.unit===Ae.DAY?Cu(t,e):Nu(t,e),Ku=({values:t},e)=>1e3*xu(t,2*e),Gu=({values:t},e)=>xu(t,2*e),qu=({values:t},e)=>Bu(t,2*e),Ju=({values:t},e)=>ju(t,2*e),Zu=(t,e)=>{switch(t.type.unit){case xe.SECOND:return Ku(t,e);case xe.MILLISECOND:return Gu(t,e);case xe.MICROSECOND:return qu(t,e);case xe.NANOSECOND:return Ju(t,e)}},Xu=({values:t,stride:e},n)=>t[e*n],Qu=({values:t,stride:e},n)=>t[e*n],tl=({values:t},e)=>Lr.signed(t.subarray(2*e,2*(e+1))),el=({values:t},e)=>Lr.signed(t.subarray(2*e,2*(e+1))),nl=(t,e)=>{switch(t.type.unit){case xe.SECOND:return Xu(t,e);case xe.MILLISECOND:return Qu(t,e);case xe.MICROSECOND:return tl(t,e);case xe.NANOSECOND:return el(t,e)}},rl=({values:t},e)=>Lr.decimal(t.subarray(4*e,4*(e+1))),il=(t,e)=>{const n=t.getChildAt(0),{valueOffsets:r,stride:i}=t;return n.slice(r[e*i],r[e*i+1])},sl=(t,e)=>t.bind(e),ol=(t,e)=>t.bind(e),al=(t,e)=>t.type.mode===je.Dense?cl(t,e):ul(t,e),cl=(t,e)=>{const n=t.typeIdToChildIndex[t.typeIds[e]],r=t.getChildAt(n);return r?r.get(t.valueOffsets[e]):null},ul=(t,e)=>{const n=t.typeIdToChildIndex[t.typeIds[e]],r=t.getChildAt(n);return r?r.get(e):null},ll=(t,e)=>t.getValue(t.getKey(e)),hl=(t,e)=>t.type.unit===De.DAY_TIME?fl(t,e):dl(t,e),fl=({values:t},e)=>t.subarray(2*e,2*(e+1)),dl=({values:t},e)=>{const n=t[e],r=new Int32Array(2);return r[0]=n/12|0,r[1]=n%12|0,r},pl=(t,e)=>{const n=t.getChildAt(0),{stride:r}=t;return n.slice(e*r,(e+1)*r)};Tu.prototype.visitNull=Eu,Tu.prototype.visitBool=Uu,Tu.prototype.visitInt=Yu,Tu.prototype.visitInt8=ku,Tu.prototype.visitInt16=ku,Tu.prototype.visitInt32=ku,Tu.prototype.visitInt64=Ru,Tu.prototype.visitUint8=ku,Tu.prototype.visitUint16=ku,Tu.prototype.visitUint32=ku,Tu.prototype.visitUint64=Ru,Tu.prototype.visitFloat=Wu,Tu.prototype.visitFloat16=Vu,Tu.prototype.visitFloat32=ku,Tu.prototype.visitFloat64=ku,Tu.prototype.visitUtf8=$u,Tu.prototype.visitBinary=zu,Tu.prototype.visitFixedSizeBinary=Pu,Tu.prototype.visitDate=Hu,Tu.prototype.visitDateDay=Cu,Tu.prototype.visitDateMillisecond=Nu,Tu.prototype.visitTimestamp=Zu,Tu.prototype.visitTimestampSecond=Ku,Tu.prototype.visitTimestampMillisecond=Gu,Tu.prototype.visitTimestampMicrosecond=qu,Tu.prototype.visitTimestampNanosecond=Ju,Tu.prototype.visitTime=nl,Tu.prototype.visitTimeSecond=Xu,Tu.prototype.visitTimeMillisecond=Qu,Tu.prototype.visitTimeMicrosecond=tl,Tu.prototype.visitTimeNanosecond=el,Tu.prototype.visitDecimal=rl,Tu.prototype.visitList=il,Tu.prototype.visitStruct=ol,Tu.prototype.visitUnion=al,Tu.prototype.visitDenseUnion=cl,Tu.prototype.visitSparseUnion=ul,Tu.prototype.visitDictionary=ll,Tu.prototype.visitInterval=hl,Tu.prototype.visitIntervalDayTime=fl,Tu.prototype.visitIntervalYearMonth=dl,Tu.prototype.visitFixedSizeList=pl,Tu.prototype.visitMap=sl;const yl=new Tu;class bl extends ze{}function gl(t,e){return null===e&&t.length>0?0:-1}function ml(t,e){const{nullBitmap:n}=t;if(!n||t.nullCount<=0)return-1;let r=0;for(const i of ke(n,t.data.offset+(e||0),t.length,n,Ee)){if(!i)return r;++r}return-1}function vl(t,e,n){if(void 0===e)return-1;if(null===e)return ml(t,n);const r=_i(e);for(let i=(n||0)-1,s=t.length;++i0!==(r&1<0)return Sl(t);const{type:e,typeId:n,length:r}=t;return 1===t.stride&&(n===Oe.Timestamp||n===Oe.Int&&64!==e.bitWidth||n===Oe.Time&&64!==e.bitWidth||n===Oe.Float&&e.precision>0)?t.values.subarray(0,r)[Symbol.iterator]():function*(e){for(let n=-1;++nt+e,Dl=t=>"Cannot compute the byte width of variable-width column "+t;class Fl extends ze{visitNull(t){return 0}visitInt(t){return t.bitWidth/8}visitFloat(t){return t.ArrayType.BYTES_PER_ELEMENT}visitBinary(t){throw new Error(Dl(t))}visitUtf8(t){throw new Error(Dl(t))}visitBool(t){return 1/8}visitDecimal(t){return 16}visitDate(t){return 4*(t.unit+1)}visitTime(t){return t.bitWidth/8}visitTimestamp(t){return t.unit===xe.SECOND?4:8}visitInterval(t){return 4*(t.unit+1)}visitList(t){throw new Error(Dl(t))}visitStruct(t){return this.visitFields(t.children).reduce(jl,0)}visitUnion(t){return this.visitFields(t.children).reduce(jl,0)}visitFixedSizeBinary(t){return t.byteWidth}visitFixedSizeList(t){return t.listSize*this.visitFields(t.children).reduce(jl,0)}visitMap(t){return this.visitFields(t.children).reduce(jl,0)}visitDictionary(t){return this.visit(t.indices)}visitFields(t){return(t||[]).map(t=>this.visit(t.type))}visitSchema(t){return this.visitFields(t.fields).reduce(jl,0)}}const Ll=new Fl;class El extends ze{visitNull(){return su}visitBool(){return xc}visitInt(){return Wc}visitInt8(){return Hc}visitInt16(){return Kc}visitInt32(){return Gc}visitInt64(){return qc}visitUint8(){return Jc}visitUint16(){return Zc}visitUint32(){return Xc}visitUint64(){return Qc}visitFloat(){return Uc}visitFloat16(){return Cc}visitFloat32(){return Nc}visitFloat64(){return kc}visitUtf8(){return wu}visitBinary(){return Ac}visitFixedSizeBinary(){return Ec}visitDate(){return Bc}visitDateDay(){return jc}visitDateMillisecond(){return Dc}visitTimestamp(){return cu}visitTimestampSecond(){return uu}visitTimestampMillisecond(){return lu}visitTimestampMicrosecond(){return hu}visitTimestampNanosecond(){return fu}visitTime(){return du}visitTimeSecond(){return pu}visitTimeMillisecond(){return yu}visitTimeMicrosecond(){return bu}visitTimeNanosecond(){return gu}visitDecimal(){return Fc}visitList(){return ru}visitStruct(){return au}visitUnion(){return mu}visitDenseUnion(){return vu}visitSparseUnion(){return _u}visitDictionary(){return Lc}visitInterval(){return zc}visitIntervalDayTime(){return $c}visitIntervalYearMonth(){return Yc}visitFixedSizeList(){return Mc}visitMap(){return iu}}const Ml=new El;function Ul(t,...e){return new(Ml.getVisitFn(t)())(t,...e)}function Cl(t,e){if(bt(e))return we.from({nullValues:[null,void 0],type:t(),values:e});if(gt(e))return we.from({nullValues:[null,void 0],type:t(),values:e});const{values:n=[],type:r=t(),nullValues:i=[null,void 0]}={...e};return bt(n),we.from({nullValues:i,...e,type:r})}function Nl(t){const{values:e=[],...n}={nullValues:[null,void 0],...t};if(bt(e)){const t=[...nr.throughIterable(n)(e)];return 1===t.length?t[0]:ji.concat(t)}return(async t=>{const r=nr.throughAsyncIterable(n);for await(const n of r(e))t.push(n);return 1===t.length?t[0]:ji.concat(t)})([])}function kl(t){return function(){return t(this.type)}}function Vl(t){return function(e){return this.isValid(e)?t.call(this,e):null}}function Rl(t){return function(e,n){Ue(this.nullBitmap,this.offset+e,!(null===n||void 0===n))&&t.call(this,e,n)}}function Pl(){const t=this.nullBitmap;t&&t.byteLength>0&&(this.get=Vl(this.get),this.set=Rl(this.set))}we.new=Ul,we.from=Nl,Tc.prototype.get=function(t){return yl.visit(this,t)},Tc.prototype.set=function(t,e){return Ks.visit(this,t,e)},Tc.prototype.indexOf=function(t,e){return wl.visit(this,t,e)},Tc.prototype.toArray=function(){return Bl.visit(this)},Tc.prototype.getByteWidth=function(){return Ll.visit(this.type)},Tc.prototype[Symbol.iterator]=function(){return Tl.visit(this)},Tc.prototype._bindDataAccessors=Pl,Object.keys(Oe).map(t=>Oe[t]).filter(t=>"number"===typeof t).filter(t=>t!==Oe.NONE).forEach(t=>{const e=Ml.visit(t);e.prototype["get"]=Su(yl.getVisitFn(t)),e.prototype["set"]=Ou(Ks.getVisitFn(t)),e.prototype["indexOf"]=Ou(wl.getVisitFn(t)),e.prototype["toArray"]=Iu(Bl.getVisitFn(t)),e.prototype["getByteWidth"]=kl(Ll.getVisitFn(t)),e.prototype[Symbol.iterator]=Iu(Tl.getVisitFn(t))});class zl extends ji{constructor(...t){let e=null;t[0]instanceof Hi&&(e=t.shift());let n=Ci(Wl,t);if(!e&&!(e=n[0]&&n[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");n[0]||(n[0]=new Hl(e)),super(new Un(e.fields),n),this._schema=e,this._chunks=n}static empty(t=new Hi([])){return new zl(t,[])}static from(t){if(!t)return zl.empty();if("object"===typeof t){let e=bt(t["values"])?$l(t):gt(t["values"])?Yl(t):null;if(null!==e)return e}let e=Gl.from(t);return yt(e)?(async()=>await zl.from(await e))():e.isSync()&&(e=e.open())?e.schema?new zl(e.schema,[...e]):zl.empty():(async t=>{const e=await t,n=e.schema,r=[];if(n){for await(let t of e)r.push(t);return new zl(n,r)}return zl.empty()})(e.open())}static async fromAsync(t){return await zl.from(t)}static fromStruct(t){return zl.new(t.data.childData,t.type.children)}static new(...t){return new zl(...wc(Ni(t)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(t=this._chunks){return new zl(this._schema,t)}getColumn(t){return this.getColumnAt(this.getColumnIndex(t))}getColumnAt(t){return this.getChildAt(t)}getColumnIndex(t){return this._schema.fields.findIndex(e=>e.name===t)}getChildAt(t){if(t<0||t>=this.numChildren)return null;let e,n;const r=this._schema.fields,i=this._children||(this._children=[]);if(n=i[t])return n;if(e=r[t]){const n=this._chunks.map(e=>e.getChildAt(t)).filter(t=>null!=t);if(n.length>0)return i[t]=new Ei(e,n)}return null}serialize(t="binary",e=!0){const n=e?pc:yc;return n.writeAll(this).toUint8Array(!0)}count(){return this._length}select(...t){const e=this._schema.fields.reduce((t,e,n)=>t.set(e.name,n),new Map);return this.selectAt(...t.map(t=>e.get(t)).filter(t=>t>-1))}selectAt(...t){const e=this._schema.selectAt(...t);return new zl(e,this._chunks.map(({length:n,data:{childData:r}})=>new Wl(e,n,t.map(t=>r[t]).filter(Boolean))))}assign(t){const e=this._schema.fields,[n,r]=t.schema.fields.reduce((t,n,r)=>{const[i,s]=t,o=e.findIndex(t=>t.name===n.name);return~o?s[o]=r:i.push(r),t},[[],[]]),i=this._schema.assign(t.schema),s=[...e.map((e,n,i,s=r[n])=>void 0===s?this.getColumnAt(n):t.getColumnAt(s)),...n.map(e=>t.getColumnAt(e))].filter(Boolean);return new zl(...Ic(i,s))}}function $l(t){const{type:e}=t;return e instanceof Un?zl.fromStruct(au.from(t)):null}function Yl(t){const{type:e}=t;return e instanceof Un?au.from(t).then(t=>zl.fromStruct(t)):null}class Wl extends au{constructor(...t){let e,n,r=t[0];if(t[1]instanceof Yn)[,e,n]=t;else{const n=r.fields,[,i,s]=t;e=Yn.Struct(new Un(n),0,i,0,null,s)}super(e,n),this._schema=r}static from(t){return bt(t["values"]),zl.from(t)}static new(...t){const[e,n]=ki(t),r=n.filter(t=>t instanceof we);return new Wl(..._c(new Hi(e),r.map(t=>t.data)))}clone(t,e=this._children){return new Wl(this._schema,t,e)}concat(...t){const e=this._schema,n=ji.flatten(this,...t);return new zl(e,n.map(({data:t})=>new Wl(e,t)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=Kl.collect(this))}select(...t){const e=this._schema.fields.reduce((t,e,n)=>t.set(e.name,n),new Map);return this.selectAt(...t.map(t=>e.get(t)).filter(t=>t>-1))}selectAt(...t){const e=this._schema.selectAt(...t),n=t.map(t=>this.data.childData[t]).filter(Boolean);return new Wl(e,this.length,n)}}class Hl extends Wl{constructor(t){super(t,0,t.fields.map(t=>Yn.new(t.type,0,0,0)))}}class Kl extends ze{constructor(){super(...arguments),this.dictionaries=new Map}static collect(t){return(new Kl).visit(t.data,new Un(t.schema.fields)).dictionaries}visit(t,e){return un.isDictionary(e)?this.visitDictionary(t,e):(t.childData.forEach((t,n)=>this.visit(t,e.children[n].type)),this)}visitDictionary(t,e){const n=t.dictionary;return n&&n.length>0&&this.dictionaries.set(e.id,n),this}}class Gl extends rt{constructor(t){super(),this._impl=t}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(t){return this._impl.throw(t)}return(t){return this._impl.return(t)}cancel(){return this._impl.cancel()}reset(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}open(t){const e=this._impl.open(t);return yt(e)?e.then(()=>this):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return fe.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return fe.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof Gl?t:mt(t)?ch(t):_t(t)?hh(t):yt(t)?(async()=>await Gl.from(await t))():wt(t)||St(t)||Tt(t)||gt(t)?lh(new co(t)):uh(new ao(t))}static readAll(t){return t instanceof Gl?t.isSync()?oh(t):ah(t):mt(t)||ArrayBuffer.isView(t)||bt(t)||vt(t)?oh(t):ah(t)}}class ql extends Gl{constructor(t){super(t),this._impl=t}[Symbol.iterator](){return this._impl[Symbol.iterator]()}async*[Symbol.asyncIterator](){yield*this[Symbol.iterator]()}}class Jl extends Gl{constructor(t){super(t),this._impl=t}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class Zl extends ql{constructor(t){super(t),this._impl=t}}class Xl extends Jl{constructor(t){super(t),this._impl=t}}class Ql{constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){return new Wl(this.schema,t.length,this._loadVectors(t,e,this.schema.fields))}_loadDictionaryBatch(t,e){const{id:n,isDelta:r,data:i}=t,{dictionaries:s,schema:o}=this,a=s.get(n);if(r||!a){const t=o.dictionaries.get(n);return a&&r?a.concat(we.new(this._loadVectors(i,e,[t])[0])):we.new(this._loadVectors(i,e,[t])[0])}return a}_loadVectors(t,e,n){return new Io(e,t.nodes,t.buffers,this.dictionaries).visitMany(n)}}class th extends Ql{constructor(t,e){super(e),this._reader=mt(t)?new Za(this._handle=t):new qa(this._handle=t)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(t){return this.closed||(this.autoDestroy=sh(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):et}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):et}next(){if(this.closed)return et;let t,{_reader:e}=this;while(t=this._readNextMessageAndValidate())if(t.isSchema())this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;const n=t.header(),r=e.readMessageBody(t.bodyLength),i=this._loadRecordBatch(n,r);return{done:!1,value:i}}if(t.isDictionaryBatch()){this._dictionaryIndex++;const n=t.header(),r=e.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Hl(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class eh extends Ql{constructor(t,e){super(e),this._reader=new Ja(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}async cancel(){!this.closed&&(this.closed=!0)&&(await this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}async open(t){return this.closed||(this.autoDestroy=sh(this,t),this.schema||(this.schema=await this._reader.readSchema())||await this.cancel()),this}async throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.throw(t):et}async return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.return(t):et}async next(){if(this.closed)return et;let t,{_reader:e}=this;while(t=await this._readNextMessageAndValidate())if(t.isSchema())await this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;const n=t.header(),r=await e.readMessageBody(t.bodyLength),i=this._loadRecordBatch(n,r);return{done:!1,value:i}}if(t.isDictionaryBatch()){this._dictionaryIndex++;const n=t.header(),r=await e.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(n,r);this.dictionaries.set(n.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Hl(this.schema)}):await this.return()}async _readNextMessageAndValidate(t){return await this._reader.readMessage(t)}}class nh extends th{constructor(t,e){super(t instanceof ho?t:new ho(t),e)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){if(this.closed)return null;this._footer||this.open();const e=this._footer&&this._footer.getRecordBatch(t);if(e&&this._handle.seek(e.offset)){const t=this._reader.readMessage(Fe.RecordBatch);if(t&&t.isRecordBatch()){const e=t.header(),n=this._reader.readMessageBody(t.bodyLength),r=this._loadRecordBatch(e,n);return r}}return null}_readDictionaryBatch(t){const e=this._footer&&this._footer.getDictionaryBatch(t);if(e&&this._handle.seek(e.offset)){const t=this._reader.readMessage(Fe.DictionaryBatch);if(t&&t.isDictionaryBatch()){const e=t.header(),n=this._reader.readMessageBody(t.bodyLength),r=this._loadDictionaryBatch(e,n);this.dictionaries.set(e.id,r)}}}_readFooter(){const{_handle:t}=this,e=t.size-rc,n=t.readInt32(e),r=t.readAt(e-n,n);return ro.decode(r)}_readNextMessageAndValidate(t){if(this._footer||this.open(),this._footer&&this._recordBatchIndex=4?ec(e)?new Zl(new nh(t.read())):new ql(new th(t)):new ql(new th(function*(){}()))}async function lh(t){const e=await t.peek(nc+7&-8);return e&&e.byteLength>=4?ec(e)?new Zl(new nh(await t.read())):new Jl(new eh(t)):new Jl(new eh(async function*(){}()))}async function hh(t){const{size:e}=await t.stat(),n=new fo(t,e);return e>=ic&&ec(await n.readAt(0,nc+7&-8))?new Xl(new rh(n)):new Jl(new eh(n))}function fh(t,e){if(gt(t))return ph(t,e);if(bt(t))return dh(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function dh(t,e){let n=null;const r=e&&"bytes"===e.type||!1,i=e&&e.highWaterMark||2**24;return new ReadableStream({...e,start(e){s(e,n||(n=t[Symbol.iterator]()))},pull(t){n?s(t,n):t.close()},cancel(){n&&n.return&&n.return(),n=null}},{highWaterMark:r?i:void 0,...e});function s(t,e){let n,i=null,s=t.desiredSize||null;while(!(i=e.next(r?s:null)).done)if(ArrayBuffer.isView(i.value)&&(n=Ct(i.value))&&(null!=s&&r&&(s=s-n.byteLength+1),i.value=n),t.enqueue(i.value),null!=s&&--s<=0)return;t.close()}}function ph(t,e){let n=null;const r=e&&"bytes"===e.type||!1,i=e&&e.highWaterMark||2**24;return new ReadableStream({...e,async start(e){await s(e,n||(n=t[Symbol.asyncIterator]()))},async pull(t){n?await s(t,n):t.close()},async cancel(){n&&n.return&&await n.return(),n=null}},{highWaterMark:r?i:void 0,...e});async function s(t,e){let n,i=null,s=t.desiredSize||null;while(!(i=await e.next(r?s:null)).done)if(ArrayBuffer.isView(i.value)&&(n=Ct(i.value))&&(null!=s&&r&&(s=s-n.byteLength+1),i.value=n),t.enqueue(i.value),null!=s&&--s<=0)return;t.close()}}function yh(t){return new bh(t)}class bh{constructor(t){this._numChunks=0,this._finished=!1,this._bufferedSize=0;const{["readableStrategy"]:e,["writableStrategy"]:n,["queueingStrategy"]:r="count",...i}=t;this._controller=null,this._builder=nr.new(i),this._getSize="bytes"!==r?gh:mh;const{["highWaterMark"]:s=("bytes"===r?16384:1e3)}={...e},{["highWaterMark"]:o=("bytes"===r?16384:1e3)}={...n};this["readable"]=new ReadableStream({["cancel"]:()=>{this._builder.clear()},["pull"]:t=>{this._maybeFlush(this._builder,this._controller=t)},["start"]:t=>{this._maybeFlush(this._builder,this._controller=t)}},{highWaterMark:s,size:"bytes"!==r?gh:mh}),this["writable"]=new WritableStream({["abort"]:()=>{this._builder.clear()},["write"]:()=>{this._maybeFlush(this._builder,this._controller)},["close"]:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:o,size:t=>this._writeValueAndReturnChunkSize(t)})}_writeValueAndReturnChunkSize(t){const e=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-e}_maybeFlush(t,e){null!==e&&(this._bufferedSize>=e.desiredSize&&++this._numChunks&&this._enqueue(e,t.toVector()),t.finished&&((t.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(e,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(e,null)))}_enqueue(t,e){this._bufferedSize=0,this._controller=null,null===e?t.close():t.enqueue(e)}}const gh=t=>t.length,mh=t=>t.byteLength;function vh(t,e){const n=new oo;let r=null;const i=new ReadableStream({async cancel(){await n.close()},async start(t){await o(t,r||(r=await s()))},async pull(t){r?await o(t,r):t.close()}});return{writable:new WritableStream(n,{highWaterMark:16384,...t}),readable:i};async function s(){return await(await Gl.from(n)).open(e)}async function o(t,e){let n=t.desiredSize,r=null;while(!(r=await e.next()).done)if(t.enqueue(r.value),null!=n&&--n<=0)return;t.close()}}function _h(t,e){const n=new this(t),r=new co(n),i=new ReadableStream({type:"bytes",async cancel(){await r.cancel()},async pull(t){await s(t)},async start(t){await s(t)}},{highWaterMark:16384,...e});return{writable:new WritableStream(n,t),readable:i};async function s(t){let e=null,n=t.desiredSize;while(e=await r.read(n||null))if(t.enqueue(e),null!=n&&(n-=e.byteLength)<=0)return;t.close()}}class wh{eq(t){return t instanceof wh||(t=new Ih(t)),new jh(this,t)}le(t){return t instanceof wh||(t=new Ih(t)),new Dh(this,t)}ge(t){return t instanceof wh||(t=new Ih(t)),new Fh(this,t)}lt(t){return new Lh(this.ge(t))}gt(t){return new Lh(this.le(t))}ne(t){return new Lh(this.eq(t))}}class Ih extends wh{constructor(t){super(),this.v=t}}class Sh extends wh{constructor(t){super(),this.name=t}bind(t){if(!this.colidx){this.colidx=-1;const e=t.schema.fields;for(let t=-1;++te.get(t)}}class Oh{and(...t){return new xh(this,...t)}or(...t){return new Bh(this,...t)}not(){return new Lh(this)}}class Th extends Oh{constructor(t,e){super(),this.left=t,this.right=e}bind(t){return this.left instanceof Ih?this.right instanceof Ih?this._bindLitLit(t,this.left,this.right):this._bindLitCol(t,this.left,this.right):this.right instanceof Ih?this._bindColLit(t,this.left,this.right):this._bindColCol(t,this.left,this.right)}}class Ah extends Oh{constructor(...t){super(),this.children=t}}Ah.prototype.children=Object.freeze([]);class xh extends Ah{constructor(...t){t=t.reduce((t,e)=>t.concat(e instanceof xh?e.children:e),[]),super(...t)}bind(t){const e=this.children.map(e=>e.bind(t));return(t,n)=>e.every(e=>e(t,n))}}class Bh extends Ah{constructor(...t){t=t.reduce((t,e)=>t.concat(e instanceof Bh?e.children:e),[]),super(...t)}bind(t){const e=this.children.map(e=>e.bind(t));return(t,n)=>e.some(e=>e(t,n))}}class jh extends Th{_bindLitLit(t,e,n){const r=e.v==n.v;return()=>r}_bindColCol(t,e,n){const r=e.bind(t),i=n.bind(t);return(t,e)=>r(t,e)==i(t,e)}_bindColLit(t,e,n){const r=e.bind(t);if(e.vector instanceof Lc){let t;const r=e.vector;return r.dictionary!==this.lastDictionary?(t=r.reverseLookup(n.v),this.lastDictionary=r.dictionary,this.lastKey=t):t=this.lastKey,-1===t?()=>!1:e=>r.getKey(e)===t}return(t,e)=>r(t,e)==n.v}_bindLitCol(t,e,n){return this._bindColLit(t,n,e)}}class Dh extends Th{_bindLitLit(t,e,n){const r=e.v<=n.v;return()=>r}_bindColCol(t,e,n){const r=e.bind(t),i=n.bind(t);return(t,e)=>r(t,e)<=i(t,e)}_bindColLit(t,e,n){const r=e.bind(t);return(t,e)=>r(t,e)<=n.v}_bindLitCol(t,e,n){const r=n.bind(t);return(t,n)=>e.v<=r(t,n)}}class Fh extends Th{_bindLitLit(t,e,n){const r=e.v>=n.v;return()=>r}_bindColCol(t,e,n){const r=e.bind(t),i=n.bind(t);return(t,e)=>r(t,e)>=i(t,e)}_bindColLit(t,e,n){const r=e.bind(t);return(t,e)=>r(t,e)>=n.v}_bindLitCol(t,e,n){const r=n.bind(t);return(t,n)=>e.v>=r(t,n)}}class Lh extends Oh{constructor(t){super(),this.child=t}bind(t){const e=this.child.bind(t);return(t,n)=>!e(t,n)}}zl.prototype.countBy=function(t){return new Eh(this.chunks).countBy(t)},zl.prototype.scan=function(t,e){return new Eh(this.chunks).scan(t,e)},zl.prototype.scanReverse=function(t,e){return new Eh(this.chunks).scanReverse(t,e)},zl.prototype.filter=function(t){return new Eh(this.chunks).filter(t)};class Eh extends zl{filter(t){return new Uh(this.chunks,t)}scan(t,e){const n=this.chunks,r=n.length;for(let i=-1;++i=0;){const r=n[i];e&&e(r);for(let e=r.length;--e>=0;)t(e,r)}}countBy(t){const e=this.chunks,n=e.length,r="string"===typeof t?new Sh(t):t;r.bind(e[n-1]);const i=r.vector;if(!un.isDictionary(i.type))throw new Error("countBy currently only supports dictionary-encoded columns");const s=Math.ceil(Math.log(i.length)/Math.log(256)),o=4==s?Uint32Array:s>=2?Uint16Array:Uint8Array,a=new o(i.dictionary.length);for(let c=-1;++c=0;){const r=n[i],s=this._predicate.bind(r);let o=!1;for(let n=r.length;--n>=0;)s(n,r)&&(e&&!o&&(e(r),o=!0),t(n,r))}}count(){let t=0;const e=this._chunks,n=e.length;for(let r=-1;++r=2?Uint16Array:Uint8Array,a=new o(i.dictionary.length);for(let c=-1;++c=i.headerRows&&e=i.headerColumns;if(n){var o=["blank"];return e>0&&o.push("level"+t),{type:"blank",classNames:o.join(" "),content:""}}if(s){var a=e-i.headerColumns;o=["col_heading","level"+t,"col"+a];return{type:"columns",classNames:o.join(" "),content:i.getContent(i.columnsTable,a,t)}}if(r){var c=t-i.headerRows;o=["row_heading","level"+e,"row"+c];return{type:"index",id:"T_"+i.uuid+"level"+e+"_row"+c,classNames:o.join(" "),content:i.getContent(i.indexTable,c,e)}}c=t-i.headerRows,a=e-i.headerColumns,o=["data","row"+c,"col"+a];var u=i.styler?i.getContent(i.styler.displayValuesTable,c,a):i.getContent(i.dataTable,c,a);return{type:"data",id:"T_"+i.uuid+"row"+c+"_col"+a,classNames:o.join(" "),content:u}},this.getContent=function(t,e,n){var r=t.getColumnAt(n);if(null===r)return"";var s=i.getColumnTypeId(t,n);switch(s){case Oe.Timestamp:return i.nanosToDate(r.get(e));default:return r.get(e)}},this.dataTable=zl.from(t),this.indexTable=zl.from(e),this.columnsTable=zl.from(n),this.styler=r?{caption:r.caption,displayValuesTable:zl.from(r.displayValues),styles:r.styles,uuid:r.uuid}:void 0}return Object.defineProperty(t.prototype,"rows",{get:function(){return this.indexTable.length+this.columnsTable.numCols},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataRows",{get:function(){return this.dataTable.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.dataTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.indexTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!0,configurable:!0}),t.prototype.serialize=function(){return{data:this.dataTable.serialize(),index:this.indexTable.serialize(),columns:this.columnsTable.serialize()}},t.prototype.getColumnTypeId=function(t,e){return t.schema.fields[e].type.typeId},t.prototype.nanosToDate=function(t){return new Date(t/1e6)},t}(),kh=function(){return kh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?t.argsDataframeToObject(e["dfs"]):{};n=kh(kh({},n),r);var i=Boolean(e["disabled"]),s=e["theme"];s&&Rh(s);var o={disabled:i,args:n,theme:s},a=new CustomEvent(t.RENDER_EVENT,{detail:o});t.events.dispatchEvent(a)},t.argsDataframeToObject=function(e){var n=e.map((function(e){var n=e.key,r=e.value;return[n,t.toArrowTable(r)]}));return Object.fromEntries(n)},t.toArrowTable=function(t){var e=t.data,n=e.data,r=e.index,i=e.columns,s=e.styler;return new Nh(n,r,i,s)},t.sendBackMsg=function(t,e){window.parent.postMessage(kh({isStreamlitMessage:!0,type:t},e),"*")},t}(),Rh=function(t){var e=document.createElement("style");document.head.appendChild(e),e.innerHTML="\n :root {\n --primary-color: "+t.primaryColor+";\n --background-color: "+t.backgroundColor+";\n --secondary-background-color: "+t.secondaryBackgroundColor+";\n --text-color: "+t.textColor+";\n --font: "+t.font+";\n }\n\n body {\n background-color: var(--background-color);\n color: var(--text-color);\n }\n "};function Ph(t){var e=!1;try{e=t instanceof BigInt64Array||t instanceof BigUint64Array}catch(n){}return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array||e} /** * @license * Copyright 2018-2021 Streamlit Inc. * * Licensed 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. */var zh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}zh(e,t),e.prototype.componentDidMount=function(){Vh.setFrameHeight()},e.prototype.componentDidUpdate=function(){Vh.setFrameHeight()}})(l.a.PureComponent)},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);e.f=s?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(s){}return function(n,s){return r(n),i(s),e?t.call(n,s):n.__proto__=s,n}}():void 0)},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),s=n("b622"),o=s("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},da6a:function(t,e,n){"use strict";var r=n("4cec"),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(t){return r.isMemo(t)?a:c[t["$$typeof"]]||i}c[r.ForwardRef]=o,c[r.Memo]=a;var l=Object.defineProperty,h=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function b(t,e,n){if("string"!==typeof e){if(y){var r=p(e);r&&r!==y&&b(t,r,n)}var i=h(e);f&&(i=i.concat(f(e)));for(var o=u(t),a=u(e),c=0;c=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,i,s,o,a=n("23e7"),c=n("c430"),u=n("da84"),l=n("d066"),h=n("fea9"),f=n("6eeb"),d=n("e2cc"),p=n("d44e"),y=n("2626"),b=n("861d"),g=n("1c0b"),m=n("19aa"),v=n("c6b6"),_=n("8925"),w=n("2266"),I=n("1c7e"),S=n("4840"),O=n("2cf4").set,T=n("b575"),A=n("cdf9"),x=n("44de"),B=n("f069"),j=n("e667"),D=n("69f3"),F=n("94ca"),L=n("b622"),E=n("2d00"),M=L("species"),U="Promise",C=D.get,N=D.set,k=D.getterFor(U),V=h,R=u.TypeError,P=u.document,z=u.process,$=l("fetch"),Y=B.f,W=Y,H="process"==v(z),K=!!(P&&P.createEvent&&u.dispatchEvent),G="unhandledrejection",q="rejectionhandled",J=0,Z=1,X=2,Q=1,tt=2,et=F(U,(function(){var t=_(V)!==String(V);if(!t){if(66===E)return!0;if(!H&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!V.prototype["finally"])return!0;if(E>=51&&/native code/.test(V))return!1;var e=V.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[M]=n,!(e.then((function(){}))instanceof n)})),nt=et||!I((function(t){V.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!b(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;T((function(){var i=e.value,s=e.state==Z,o=0;while(r.length>o){var a,c,u,l=r[o++],h=s?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{h?(s||(e.rejection===tt&&ct(t,e),e.rejection=Q),!0===h?a=i:(p&&p.enter(),a=h(i),p&&(p.exit(),u=!0)),a===l.promise?d(R("Promise-chain cycle")):(c=rt(a))?c.call(a,f,d):f(a)):d(i)}catch(y){p&&!u&&p.exit(),d(y)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&ot(t,e)}))}},st=function(t,e,n){var r,i;K?(r=P.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(i=u["on"+t])?i(r):t===G&&x("Unhandled promise rejection",n)},ot=function(t,e){O.call(u,(function(){var n,r=e.value,i=at(e);if(i&&(n=j((function(){H?z.emit("unhandledRejection",r,t):st(G,t,r)})),e.rejection=H||at(e)?tt:Q,n.error))throw n.value}))},at=function(t){return t.rejection!==Q&&!t.parent},ct=function(t,e){O.call(u,(function(){H?z.emit("rejectionHandled",t):st(q,t,e.value)}))},ut=function(t,e,n,r){return function(i){t(e,n,i,r)}},lt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=X,it(t,e,!0))},ht=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw R("Promise can't be resolved itself");var i=rt(n);i?T((function(){var r={done:!1};try{i.call(n,ut(ht,t,r,e),ut(lt,t,r,e))}catch(s){lt(t,r,s,e)}})):(e.value=n,e.state=Z,it(t,e,!1))}catch(s){lt(t,{done:!1},s,e)}}};et&&(V=function(t){m(this,V,U),g(t),r.call(this);var e=C(this);try{t(ut(ht,this,e),ut(lt,this,e))}catch(n){lt(this,e,n)}},r=function(t){N(this,{type:U,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:J,value:void 0})},r.prototype=d(V.prototype,{then:function(t,e){var n=k(this),r=Y(S(this,V));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=H?z.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=J&&it(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=C(t);this.promise=t,this.resolve=ut(ht,t,e),this.reject=ut(lt,t,e)},B.f=Y=function(t){return t===V||t===s?new i(t):W(t)},c||"function"!=typeof h||(o=h.prototype.then,f(h.prototype,"then",(function(t,e){var n=this;return new V((function(t,e){o.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof $&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return A(V,$.apply(u,arguments))}}))),a({global:!0,wrap:!0,forced:et},{Promise:V}),p(V,U,!1,!0),y(U),s=l(U),a({target:U,stat:!0,forced:et},{reject:function(t){var e=Y(this);return e.reject.call(void 0,t),e.promise}}),a({target:U,stat:!0,forced:c||et},{resolve:function(t){return A(c&&this===s?V:this,t)}}),a({target:U,stat:!0,forced:nt},{all:function(t){var e=this,n=Y(e),r=n.resolve,i=n.reject,s=j((function(){var n=g(e.resolve),s=[],o=0,a=1;w(t,(function(t){var c=o++,u=!1;s.push(void 0),a++,n.call(e,t).then((function(t){u||(u=!0,s[c]=t,--a||r(s))}),i)})),--a||r(s)}));return s.error&&i(s.value),n.promise},race:function(t){var e=this,n=Y(e),r=n.reject,i=j((function(){var i=g(e.resolve);w(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),s=n("06cf"),o=n("9bf2");t.exports=function(t,e){for(var n=i(e),a=o.f,c=s.f,u=0;u